Warp Perspective with OpenCV | Document Scanner

  Рет қаралды 14,871

Giovanni Code

Giovanni Code

Күн бұрын

Пікірлер: 11
@egordigitax
@egordigitax 11 ай бұрын
thank you! thats first code i found which actually work
@icecats19
@icecats19 4 ай бұрын
Great content! You have gained a subscriber!
@prabaj84
@prabaj84 2 жыл бұрын
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
@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.
@BroughtMirrorYT
@BroughtMirrorYT 9 ай бұрын
Thanks, god content!
@amritanjanthakur6510
@amritanjanthakur6510 2 жыл бұрын
I tried something like this , m getting black border.. why is it happening?
@giovannicode9393
@giovannicode9393 2 жыл бұрын
Hi, any errors?
@aziahkhamis4443
@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?
@giovannicode9393
@giovannicode9393 2 жыл бұрын
Hello! If you want to learn how to build a simple Document Scanner, check this video: kzbin.info/www/bejne/jWSnq4ajbbx8Z8k
@suryapratapsinghnaruka6961
@suryapratapsinghnaruka6961 Жыл бұрын
subscribed sir
@wishIKnewHowToLove
@wishIKnewHowToLove Жыл бұрын
Dislike: you should use your own voice. You are not Wojack!
Where's Waldo? | OpenCV
10:54
Giovanni Code
Рет қаралды 1,1 М.
Contour Detection with CV2 python | CV2 object detection | computer vision
13:23
When Maths Meet Coding
Рет қаралды 30 М.
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Document Scanner, using OpenCV python !!!!!!
26:47
LearnFromBasics
Рет қаралды 10 М.
Enhance a Document Scan using Python and OpenCV
9:11
North Code
Рет қаралды 6 М.
Image Features & Alignment with OpenCV
12:55
OpenCV University
Рет қаралды 14 М.
Build your own Document Scanner(CamScanner) from scratch in Python
10:29
Document Scanner | OpenCV
15:37
Giovanni Code
Рет қаралды 11 М.
Document Scanner OPENCV PYTHON | Beginner Project
18:38
Murtaza's Workshop - Robotics and AI
Рет қаралды 144 М.
Perspective Transformation | Digital Image Processing
15:13
Auto-Measuring with OpenCV + Python - Try It Yourself
25:17
Clayton Darwin
Рет қаралды 92 М.
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН