2020-09-27 14:17:02 -0600 | received badge | ● Notable Question (source) |
2019-01-05 00:34:07 -0600 | received badge | ● Popular Question (source) |
2016-10-29 11:26:43 -0600 | commented question | Detect the bounds of a Passport page with OpenCV @LorenaGdL all those passport images are collected from Google image search. I didn't think of the security issue as they're already out there on the web. |
2016-10-29 00:00:43 -0600 | commented question | Detect the bounds of a Passport page with OpenCV @StevenPuttemans added a few samples. Thanks! |
2016-10-29 00:00:43 -0600 | received badge | ● Enthusiast |
2016-10-28 23:58:57 -0600 | received badge | ● Editor (source) |
2016-10-28 23:12:58 -0600 | commented question | Detect the bounds of a Passport page with OpenCV @StevenPuttemans the goal is to detect the Passport and crop out the passport from the image and get a top view of it. As it'll be done with the device camera, background can be of any color (preferably darker than the passport). I'll share a few sample images shortly. |
2016-10-27 08:35:26 -0600 | commented question | Detect the bounds of a Passport page with OpenCV @StevenPuttemans Tried that actually. Due to the document's & device's orientation the continuous end can be on any side so I am having a hard time determining where to draw that line. And drawing a line end to end messes up the perspective transform a bit. |
2016-10-26 01:29:00 -0600 | commented question | Detect the bounds of a Passport page with OpenCV @StevenPuttemans The 2nd example tries to demonstrate the problem I am facing while trying to scan an actual Passport with the device's camera. The algorithm for finding the largest contour doesn't work as it can't detect the edge on the top side, hence cannot find a quadrilateral. |
2016-10-22 09:01:33 -0600 | asked a question | Detect the bounds of a Passport page with OpenCV I am trying to develop a scanner that can scan a page of a Passport with the camera. So from a Passport page like this: I'd like to crop out the marked part. I have written code for edge detection using OpenCV which finds the contours and then approximates the largest quadrilateral. Finally it does a 4 point perspective transformation to get a top view of the image. The edge detection code look like this: this code works for single page documents i.e ID cards, credit cards. Where the input is like this: But doesn't work for passports as the top edge is not as distinctive, for example: The inputs will be taken from camera preview on Android. Any idea how can I detect the passport page? I am using OpenCV 3.1. Thanks in Advance! EDIT: I am adding a few sample images. 1. 2. 3. 4. EDIT 2: I have tried drawing the top border myself so that a quadrilateral could be formed, but in that case the perspective transformation doesn't work as expected. Here's the complete code: (more) |