-
Notifications
You must be signed in to change notification settings - Fork 406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Signature generator fails on seemingly normal image #76
Comments
@SthPhoenix maybe this is not a real jpeg? Usually the In [1]: from skimage.io import imread
In [2]: r = imread('https://cloud.githubusercontent.com/assets/17834919/25771654/4aa9732c-3260-11e7-8370-8fcc62418677.JPG')
In [3]: r.shape
Out[3]: (3,)
In [4]: r[0].shape
Out[4]: (4000, 6000, 3)
In [5]: r[1].shape
Out[5]: ()
In [6]: r[2].shape
Out[6]: () |
This image was taken by Nikon D5300, I have tested other images taken by it, same result. Interestingly, though, NEF(RAW) version of this image works fine |
Trying a dirty fix like:
in
And a distance in range of 0.7-0.9, depending on rotation of second test image |
Also interestingly enough, arrays of
In second case:
|
BTW, are there any specific reasons to use
beside it accepting urls as parameter? |
Looks like RGB (dimensions l x w x 3 0-255) vs greyscale (l x w 0.0-1.0). They're all greyscaled by image-match anyway.
Nope, you got it. The image loader is kind of a mess, we hastily improved it when doing our image crawl. That's why it supports obscure formats like MPO. Anyway, could definitely use some cleanup, like using PIL or cv2 and getting rid of the skimage dependency completely. |
Causes an error (see #64 )
The text was updated successfully, but these errors were encountered: