r/learnpython • u/West_Tooth_6144 • 2d 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)
3
u/riklaunim 2d 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.
1
u/ManzoorAhmedShaikh 2d ago
This domain is called "Computer Vision" - A sub domain of AI (Artificial Intelligence). I assume you know Python, so start looking at these libraries that specifically being used for Computer Vision:
- OpenCV (The fundamental one and that alone can do a lot of work)
- Pillow (Image reading, writing and editing library)
- Mediapipe (A well-known framework that contains a lot of prebuilt model for hand traccking, skeleton joints, face joints ,etc)
- YOLO (An advance library for some custom model creation but requires good GPU)
Hope it helps and if you need any more help, reach out to me as I have spent 2 year in this CV domain. Honestly, I too like this domain. Good luck u/West_Tooth_6144
1
0
9
u/IrishPrime 2d ago
"Computer vision" is the term you want to search for.