-1

Error in importing image folder , if i use double \ than the error is resolve but consider location as string and give me empty string r

how to resolve this and import all images ? what are the alternative to import images in Pyhton ? can all images can be readable all together ?

Christoph Rackwitz
  • 11,317
  • 4
  • 27
  • 36
  • First, I don't think you understand using `glob` in Python. Review that. Plus....Your questions is written poorly and you shouldn't even be posting images only. Always focus on posting complete text as text. Does ", if i use double \ than the error is resolve" mean you have a solution? You bury that in a link to showing an error so it is confusing, to say the least. Are you asking about why? (Are you familiar with the complexities of Windows Paths? See [here](https://stackoverflow.com/a/2953843/8508004) if not.) If you know how to resolve it, I'm not getting the point of the question? – Wayne Aug 03 '23 at 16:33
  • Your code is not importing a folder. You are mentioning exactly one file, and you have even misspelled that. What exactly do you want here? What do you mean by "import all images"? Do you want all of the image file names? Do you want an array of PIL `Image` objects? Do you want OpenCV image objects? – Tim Roberts Aug 05 '23 at 22:49
  • Hello, welcome to Stack Overflow! Maybe you should [read this](https://meta.stackoverflow.com/questions/285551/why-should-i-not-upload-images-of-code-data-errors/285557#285557), and then edit your question. – Diego Borba Aug 11 '23 at 20:21

0 Answers0