thank you! thats first code i found which actually work
@icecats194 ай бұрын
Great content! You have gained a subscriber!
@prabaj842 жыл бұрын
Hi, thanks for sharing this. However i tried with some real world images of id card where corners are distorted, i am not getting rectangle contour. And biggest contour is coming out to be empty for same reason, any ideas how to fix that? Tia
@giovannicode9393 Жыл бұрын
Hi, unfortunatelly in real world we have different situations and building generic model is very difficult. What we can do is to control the environment, if you taking the photos by yourself try to have the good and consistent lightning, no shadows. Also you can try experimenting with different background colors, contrasting colors may help for better contour detection.
@BroughtMirrorYT9 ай бұрын
Thanks, god content!
@amritanjanthakur65102 жыл бұрын
I tried something like this , m getting black border.. why is it happening?
@giovannicode93932 жыл бұрын
Hi, any errors?
@aziahkhamis4443 Жыл бұрын
i got an error when using getPerspectiveTransform. i cant used no.float32, so i change into np.uint. however whent i used getPerspectiveTransform the error popup : here my code width,height= 250, 350 pts1 = np.uint([[111,219],[287,188],[154,482],[352,440]]) pts2 = np.uint([[0,0],[width,0],[0,height],[width,height]]) #print(pts1,pts2) Matrix = cv2.getPerspectiveTransform(pts1,pts2) #cannot used this imgOutput = cv2.warpPerspective(img,Matrix,(width,height)) and i got error saying cv2.error: OpenCV(4.8.0) :-1: error: (-5:Bad argument) in function 'getPerspectiveTransform' > Overload resolution failed: > - src data type = 8 is not supported > - Expected Ptr for argument 'src' can anyone help me?
@giovannicode93932 жыл бұрын
Hello! If you want to learn how to build a simple Document Scanner, check this video: kzbin.info/www/bejne/jWSnq4ajbbx8Z8k
@suryapratapsinghnaruka6961 Жыл бұрын
subscribed sir
@wishIKnewHowToLove Жыл бұрын
Dislike: you should use your own voice. You are not Wojack!