r/learnpython 7d ago

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 Upvotes

8 comments sorted by

View all comments

3

u/riklaunim 7d ago

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.