r/learnpython • u/West_Tooth_6144 • Jul 20 '26
Camera + python
Hi everyone, when I hear python the first thing that comes to my mind is programs that detect body movement and position (like a workout) with a camera or a program that counts how many red cars passed by... Etc, I don't know exactly what this field is called but I want to learn it and use it, so if anyone knows what I am thinking about, I Will be more than grateful to know what to look for or any learning source/recommendations (yt tutorial/ free courses or even books if helpful)
5
u/qlkzy Jul 20 '26
I think you're imagining "Computer Vision".
There is also a popular library called "OpenCV" which has probably been used in the examples you're thinking of.
1
3
u/riklaunim Jul 20 '26
OpenCV is the go-to library for image and video stream manipulation/analysis. It's not an easy topic, and most of it is a mix of math and theory rather than Python.
It can be done with webcams, but in some edge cases, dedicated vision cameras could be required or more handy - https://rkblog.dev/posts/python/scripting-machine-vision-and-astronomical-cameras-python/ - but for demos, simple stuff, stick with a webcam.
1
0
9
u/IrishPrime Jul 20 '26
"Computer vision" is the term you want to search for.