Build your own Document Scanner(CamScanner) from scratch in Python

  Рет қаралды 67,098

Aditya Pai Thon

Aditya Pai Thon

Күн бұрын

Пікірлер: 103
@suyashvashishtha4904
@suyashvashishtha4904 4 жыл бұрын
Bro you have my respect... jab bhi kisi indian ko programming tutoprial dete dekhta hu dil khush ho jata hai .. love u bhai
@oundhakar
@oundhakar 3 жыл бұрын
Awesome, no nonsense and straight to the point. Excellent work.
@CristYaghjian
@CristYaghjian 9 ай бұрын
what you have done is great job dude, I appreciate that
@HostDotPromo
@HostDotPromo 5 жыл бұрын
This is awesome dude. Would love to see more tuts from you in the future 👍
@kooser6
@kooser6 4 жыл бұрын
Good tutorial, clear and concise. Thanks.
@akashpb1865
@akashpb1865 5 жыл бұрын
Bahut achey bhai !! chamaktey raho ! :)
@pankajt10
@pankajt10 3 жыл бұрын
Aditya ...do yo take projects for development?
@snehitvaddi
@snehitvaddi 4 жыл бұрын
*Problem* : *ValueError: not enough values to unpack (expected 3, got 2)* *Solution* : github.com/facebookresearch/maskrcnn-benchmark/issues/339#issuecomment-524189545 Refer to this thread. Give a like over there if your problem solved.😉👍 if your using OpenCV version>=4.0.0 just use two parameters like " contours, hierarchy " not " image,contours, hierarchy "
@Alina-er9vv
@Alina-er9vv 4 жыл бұрын
cv2, in the recent update has just been returning contours and hierarchy, as shown under: contours,hierarchy = cv2.findContours(edged,cv2.RETR_LIST,cv2.CHAIN_APPROX_SIMPLE)
@JibinPhiliposeDGameR
@JibinPhiliposeDGameR 6 жыл бұрын
Any chance we can run this natively on Android?
@mukilan2815
@mukilan2815 4 жыл бұрын
no bro
@rockstarkarn3316
@rockstarkarn3316 3 жыл бұрын
Yes, anywhere,,, install pydroid3 on ur Android and run this code.
@jamesu6420
@jamesu6420 3 жыл бұрын
Kivy?
@AnuranPaul13
@AnuranPaul13 2 жыл бұрын
Can we apply OCR to the output image for text recognition?
@ArjunKocher
@ArjunKocher 4 жыл бұрын
The code doesn’t with other images.. only with the test image. Also, the final image wasted grayscaled; but that can be adjusted. Although this doesn’t work with every image.
@astarothdaidalos
@astarothdaidalos 2 жыл бұрын
@Abruzzi7
@Abruzzi7 2 жыл бұрын
DAAAA, tu-l in gura de tigan. Bubuie pe recunoastere. Great work man, bou' drecu. Keep the good work!
@marcelmuller9174
@marcelmuller9174 4 жыл бұрын
What does the Mapper.mapp() function? How can I implement it in C#? Please help!
@myprojects-df6ol
@myprojects-df6ol 8 ай бұрын
Is the camera module or webcam you used for the video
@jayc33day
@jayc33day 5 ай бұрын
it worked perfectly, thank you.
@Alina-er9vv
@Alina-er9vv 4 жыл бұрын
cv2, in the recent update has just been returning contours and hierarchy, as shown under: contours,hierarchy = cv2.findContours(edged,cv2.RETR_LIST,cv2.CHAIN_APPROX_SIMPLE)
@adityapaithon6499
@adityapaithon6499 4 жыл бұрын
This has been fixed in the code already right? I mean the github code in the description
@gopalsahni1387
@gopalsahni1387 5 жыл бұрын
I am getting exact output image till canny edge detection but not getting scanned image after perspective transformation. What should I do now?
@testylass
@testylass 5 жыл бұрын
I am also face this problem plzzzz help!
@vigneshrajendiran8384
@vigneshrajendiran8384 5 жыл бұрын
@@testylass Use cv2.waitKey() command at the end if you don't get images after using imshow()
@AnchitBhardwaj
@AnchitBhardwaj 5 жыл бұрын
Did you solve this issue ?
@devloper_hs
@devloper_hs 5 жыл бұрын
Pycharm not recognising open cv2 as a module... What to do bro
@iamvishu591
@iamvishu591 5 жыл бұрын
install the open cv package ,
@TheFunkiGuy
@TheFunkiGuy 5 жыл бұрын
Pip install opencv-python
@sanjeevkumar-ub4sv
@sanjeevkumar-ub4sv 4 жыл бұрын
@@iamvishu591 bro can you please tell me where i can find code for it ....i open gitup but i am not familar with it. so i can,t get code from there .........plaese help ...if you can you please give me direct link of code to open ...........thanks in advance
@adityapaithon6499
@adityapaithon6499 4 жыл бұрын
pip install opencv-python should work
@Alina-er9vv
@Alina-er9vv 4 жыл бұрын
How to fix this? op = cv2.getPerspectiveTransform(approx.pts) AttributeError: 'numpy.ndarray' object has no attribute 'pts'
@mr.crazyunknown7094
@mr.crazyunknown7094 4 жыл бұрын
it is "cv2.getPerspectiveTransform(approx, pts)"....the difference is about . and ,
@mayur3049
@mayur3049 4 жыл бұрын
hey, Aditya brilliant work is done. I just want to ask you after completing scanning if I want to extract that scanned data. how will extract that data ? have you made any video on that?
@adityapaithon6499
@adityapaithon6499 4 жыл бұрын
Yes. Use tesseract OCR
@mayur3049
@mayur3049 4 жыл бұрын
@@adityapaithon6499 have you done any video on that? that'd help me
@vishalnk9189
@vishalnk9189 4 жыл бұрын
Bro i get an error name 'np' is not defined can anyone help In the line of pts=np.float32([[0, 0]........[0, 800]])
@adityapaithon6499
@adityapaithon6499 4 жыл бұрын
import numpy as np
@vishalnk9189
@vishalnk9189 4 жыл бұрын
@@adityapaithon6499 bro i tried it finally is came but no image only full brown color
@adityapaithon6499
@adityapaithon6499 4 жыл бұрын
Try changing few parameters and check.. you need to fine tune some values
@vishalnk9189
@vishalnk9189 4 жыл бұрын
@@adityapaithon6499 Thank u bro now is working perfectly I like all your videos your doing great 👏👏 and again thank u for help
@esooghazy
@esooghazy 4 жыл бұрын
How were you able to solve it? I'm stuck with it.
@shivasaibonala
@shivasaibonala 5 жыл бұрын
Bro i'm getting this error image,contours,hierarchy=cv2.findContours(edged,cv2.RETR_LIST,cv2.CHAIN_APPROX_SIMPLE) #retrieve the contours as a list, with simple apprximation model ValueError: not enough values to unpack (expected 3, got 2) how to solve this
@vipulrastogi4136
@vipulrastogi4136 5 жыл бұрын
change to (image,contours,hierarchy -------> contours,hierarchy)
@sahityathota3156
@sahityathota3156 5 жыл бұрын
Getting module not found error:no module named 'cv2' What should we do
@nhanluong4853
@nhanluong4853 5 жыл бұрын
@@vipulrastogi4136 Bro. this error after edit contours=sorted(contours,key=cv2.contoursArea,reverse=True) AttributeError: module 'cv2.cv2' has no attribute 'contoursArea' how to fix this.
@vigneshrajendiran8384
@vigneshrajendiran8384 5 жыл бұрын
@@nhanluong4853 If you have not fixed the error, then change it into cv2.contourArea. Remove 's' from the keyword.
@snehitvaddi
@snehitvaddi 4 жыл бұрын
github.com/facebookresearch/maskrcnn-benchmark/issues/339#issuecomment-524189545 Refer to this thread. Give a like over there if your problem solved.😉👍 if your using OpenCV version>=4.0.0 just use two parameters like " contours, hierarchy " not " image,contours, hierarchy "
@yb.11
@yb.11 5 жыл бұрын
Aditya ...very nice video..
@mvanditha07
@mvanditha07 4 жыл бұрын
You're Awesome! Thank you sooooooooooo much
@maltehansen3558
@maltehansen3558 5 жыл бұрын
Please make a video about encoding/decoding text in tkinter
@ramsekargnanasekar9384
@ramsekargnanasekar9384 4 жыл бұрын
Im getting “”no module named ‘numpy’ “”” what to do now
@adityapaithon6499
@adityapaithon6499 4 жыл бұрын
Install numpy
@lmaonoidea
@lmaonoidea 5 жыл бұрын
I am getting errors like --> unable to import 'cv2' unable to import 'numpy' unable to import 'mapper' please help
@AeroAndZero
@AeroAndZero 5 жыл бұрын
you need to download opencv, numpy and mapper by python's pip package manager. goto the folder of the project -> open command line on that location -> type "pip install opencv-python" also do "pip install numpy" and for mapper also download the mapper.py file from github
@vilw4739
@vilw4739 4 жыл бұрын
@@AeroAndZero ty😭💖
@examino9629
@examino9629 5 жыл бұрын
I m getting an error like Error:(-215:Assertion failed) src. Checkvector(2,cv_32f)==4&& dst. Checkvector(2,cv_32f)==4 in function ' cv:: getperspectiveTransform
@Alina-er9vv
@Alina-er9vv 4 жыл бұрын
Add this in the mapp function: def mapp(h): h= h.reshape((4,2))
@uddhavtonde6175
@uddhavtonde6175 5 жыл бұрын
Great Video. Just wanted to know more about path of the image code. i have provided full path of the image but image prompt will not open without throwing any error. image = cv2.imread("D:/PyCharm/Projects/myScanner/TestPhoto.jpg") Please help ??
@uddhavtonde6175
@uddhavtonde6175 5 жыл бұрын
It's work after using below command cv2.waitKey() Thanks
@suyashvashishtha4904
@suyashvashishtha4904 4 жыл бұрын
@@uddhavtonde6175 thanks buddy
@PythonisLove
@PythonisLove 5 жыл бұрын
Well done bro !
@hritvikgupta8038
@hritvikgupta8038 4 жыл бұрын
Bro please tell how to convert it into an apk
@hritvikgupta8038
@hritvikgupta8038 4 жыл бұрын
Bro please reply or tell me
@hritvikgupta8038
@hritvikgupta8038 4 жыл бұрын
tell me how to convert
@viralnews4890
@viralnews4890 4 жыл бұрын
Hey If i wanna contact u for giving u a work for a cam scanner app how to contact you? I hope i get a reply asap
@adityapaithon6499
@adityapaithon6499 4 жыл бұрын
Give the order kind sir, and I shall oblige
@viralnews4890
@viralnews4890 4 жыл бұрын
@@adityapaithon6499 how to contact youu .i need how much will the time take and the price for the cam scanner .do u use insta o whatsapp
@adityapaithon6499
@adityapaithon6499 4 жыл бұрын
@@viralnews4890 myspace
@viralnews4890
@viralnews4890 4 жыл бұрын
@@adityapaithon6499 can you contact me david_dobrik_unseen brother .sorry for the late reply as i was busy
@DividedStates
@DividedStates 5 жыл бұрын
Is there something like it in javascript somewhere. I am looking for days.
@adityapaithon6499
@adityapaithon6499 5 жыл бұрын
No. Use PYTHON.
@lmaonoidea
@lmaonoidea 5 жыл бұрын
@@adityapaithon6499 hi i need help... I am getting errors like --> unable to import 'cv2' unable to import 'numpy' unable to import 'mapper' please help
@adityapaithon6499
@adityapaithon6499 5 жыл бұрын
@@lmaonoidea pip install opencv-python pip install numpy Mapper.py is a file, download it from GitHub or re-watch the video.
@malte153
@malte153 5 жыл бұрын
Please make more videos.
@akshyarikadas3226
@akshyarikadas3226 5 жыл бұрын
Will it work if we write it in terminal??
@adityapaithon6499
@adityapaithon6499 5 жыл бұрын
Write what in terminal?
@akshyarikadas3226
@akshyarikadas3226 5 жыл бұрын
The code
@adityapaithon6499
@adityapaithon6499 5 жыл бұрын
Why would you want to do that?
@valigotech
@valigotech 6 жыл бұрын
Cool tutorial! But why aren't you using monospaced font for the code?
@HuxVx
@HuxVx 6 жыл бұрын
What are its advatage? Say while coding?
@adityapaithon6499
@adityapaithon6499 6 жыл бұрын
I'm ashamed now. 😂 I don't always use IDLE so I didn't bother to change it (apart from setting it to dark mode) Edit:Heck IDLE seems to come with default Courier New and I've got no idea when I changed it to something different. @Hulla It's easier to see few punctuation, characters (O&0) and even indentation sometimes.
@HuxVx
@HuxVx 6 жыл бұрын
@@adityapaithon6499 Plz bear with me Im kinda new to this whole programming world, so i search for the monospaced font in IDLE's configure IDLE option but didn't found it there. So do i have to download it from somewhere or im blind?
@HuxVx
@HuxVx 6 жыл бұрын
@@adityapaithon6499 Also would like to know your setup for python like what IDE you used or Text editor. If it's not to much to ask.
@adityapaithon6499
@adityapaithon6499 6 жыл бұрын
Hey MonoSpace isn't a name but a category of fonts. Examples of monospaced fonts include Courier, Courier New, Lucida Console, Monaco, Consolas and Inconsolata. And I use Anaconda Distribution with Spyder IDE for data analysis projects and sometimes ATOM too.
@shivamkumraa
@shivamkumraa 6 жыл бұрын
Bro Are You A CS student or graduated?
@adityapaithon6499
@adityapaithon6499 6 жыл бұрын
Undergrad
@shivamkumraa
@shivamkumraa 6 жыл бұрын
@@adityapaithon6499 Which College and year bro??
@josephstalin9481
@josephstalin9481 4 жыл бұрын
nice explaniation
@kalonacharjee1729
@kalonacharjee1729 6 жыл бұрын
Nice👍
@kaushikipradhan6193
@kaushikipradhan6193 3 жыл бұрын
op=cv.getPerspectiveTransform(approx,pts) cv2.error:-1: error: (-5: Bad argument) in function 'getPerspectiveTransform' >Overload resolution failed: > - src is not a bumpy array, neither a scalar > - Expected Ptr for argument 'src' What to do ?
@edutoys49
@edutoys49 4 жыл бұрын
Can you create this app for me
@boktiarchy3841
@boktiarchy3841 3 жыл бұрын
bravooooooooo
Detecting Cars in a video Using OpenCV and Haar Cascades
7:10
Aditya Pai Thon
Рет қаралды 36 М.
OpenCV Python Tutorial #3 - Cameras and VideoCapture
17:16
Tech With Tim
Рет қаралды 184 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
Warp Perspective with OpenCV | Document Scanner
11:35
Giovanni Code
Рет қаралды 15 М.
Document Scanner, using OpenCV python !!!!!!
26:47
LearnFromBasics
Рет қаралды 10 М.
Build A Python App That Tracks Amazon Prices!
18:44
developedbyed
Рет қаралды 1 МЛН
How C++ took a turn for the worse
5:03
Code Persist
Рет қаралды 334 М.
Document Scanner | OpenCV
15:37
Giovanni Code
Рет қаралды 12 М.
Python RAG Tutorial (with Local LLMs): AI For Your PDFs
21:33
pixegami
Рет қаралды 348 М.
How ChatGPT Built My App in Minutes 🤯
8:28
Website Learners
Рет қаралды 3 МЛН
Learn To Code Like a GENIUS and Not Waste Time
9:41
The Coding Sloth
Рет қаралды 1,9 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН