matejak / imreg_dft

Image registration using discrete Fourier transform.
Other
245 stars 68 forks source link

[Need Help] What's that FILE OBJECT? #43

Open daidaiworm opened 3 years ago

daidaiworm commented 3 years ago

I'm a green hand. Successfully installed your function. It's working when I input "image's path and name" in im1 = sp.misc.imread(ImagePathName, True)

But in my project, I need read an image and manipulate it, then convert it into PIL-object. Currently I had to write that PIL-object to hdd.

Is there any way to read that PIL-object directly. I read the function's doc, it's working in file object. But I tried this, but failed. fo=open('image.png','r'); im1 = sp.misc.imread(fo, True)

Please give me some guide, thanks a lot.