Closed Abgaryan closed 6 years ago
Although PassportEye can sometimes recognize sideways passports, at the moment the code implicitly assumes the passport is more-or-less straight on the image.
Adding the possibility of recognizing landscape orientation is, in principle, not too complicated, but it would make the code slower overall (because it would basically have to go through extra image rotations to search the correct one). In the cases I've needed this library, it was more practical easier to simply make sure the passport on the image is properly rotated (e.g. by asking the user to rotate it as needed).
I am using PassportEye inside chatbot for facebook messenger developed in Node.js , it works perfectly when the phone is a portrait , but when the phone is landscape it doesn't work.