Skip to content
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

Issue with phone captured images #14

Open
lvaleriu opened this issue Aug 12, 2020 · 0 comments
Open

Issue with phone captured images #14

lvaleriu opened this issue Aug 12, 2020 · 0 comments

Comments

@lvaleriu
Copy link

For some images (mainly the ones taken with a phone) the library inverts height and width dimensions.
For the attached image (which is a landscape image of a document)

  • the following code: get_image_size.get_image_metadata('test.jpg') returns
Image(path=Path('test.jpg'), type='JPEG', file_size=321819, width=747, height=1080)
  • whereas

cv2.imread('test.jpg')).shape returns (747, 1080, 3) # height, width, channels.

(We get the same value as opencv when using skimage imread).

test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant