Reference no: EM132420756
Assignment Task -
You need to detect Machine Readable Zone (Zone-VII) as described in Passport_Guidelines.pdf from given passport image with help of adaptive algorithms through MATLAB Code and return the output as text detected of Machine Readable Zones. We are attaching steps which you can follow for this work which might help you but they are not compulsory to follow and you can use your own approach. We want to see how close you can reach to the result by the time you submit the work. Remember your code must find only MRZ Section and its text output not the whole text from the given passport image. All calculations must be done programmatically and if you enter pixel values or positions manually for MRZ detection then your work will be considered as hard-coded and not optimized for other images. We will be testing your code with different images during evaluation.
Steps which you may fol low in MATLAB for above task:
1. Load the image.
2. Rotate: portrait -> landscape (if required).
3. Scale: If image size is bigger than 4MP than Normalize image size to a width of 1000 while retaining aspect ratio.
4. Adaptive blur.
5. Contour detection: If reliable contour is found, draw it on the image.
6. Line identification: Find lines based on edges for required zones (For image and text in bottom).
7. Intersection identification: Extend lines in step 6 to find intersections.
8. Intersection filtering (contours): Remove intersections that fall outside of valid contours of the document.
9. Intersection filtering (aspect ratio): Remove intersections that don't yield a valid, pre-specified document aspect ratio.
10. Intersection selection: Of the remaining intersections, choose four representing the required zone result that are closest to the edges of the image and draw rectangle for showing output with different colors.
11. Apply your own logic or use MATLAB functions for detecting the text from Machine Readable Zone and display the text in command window.
Attachment:- Assignment Files.rar