How to find rectangle edges from image and crop image from it's edges?

asked 2018-05-12 01:33:30 -0500

Akhil Patel gravatar image

Hello,

I am developing an application for detect driving license and capture image of driving license using surface view and and crop from those it's four corner using openCV.

so right now i am using canny edge detection and find the edges but i am not able to crop the image because canny edge detection return black and white image i am crop my original license image from it's edges.

Please suggest any best solution.

edit retag flag offensive close merge delete

Comments

2

You can be using the addWeigh method to draw result image RGB Image.

monxarat gravatar imagemonxarat ( 2018-09-19 02:03:52 -0500 )edit