Getting started with Camera vision

Alright so, i want to make a project that uses a camera (preferably a webcam connected to my computer), i want to use 2 mg996r servo motors and a webcam that will track my hand, is there anything you guys recommend i get to get started or any resources to get started? I have a webcam already and i want to connect my webcam to my arduino to then take the visionand track to make the motors rotste to where my hand or something would be

First, learn about servos, then find a tutorial on using a webcam with an Arduino. I have always used the camera modules, so I have no idea how a USB camera works. Google is your friend. Once you find something, look at the samples in whatever library is being used; that is how I start 90% of my projects.

The Arduino compatible PIxy2 Cam can track objects out of the box.

1 Like

So in your experiences, a camera module is better than webcams?

I can't say that I have no experience with webcams. The modules are mostlyh 2MP some 5

Its a bit pricey for my liking, i have a good 1080p 30 fps camera but its usb, i dont know how i would connect it to my arduino

Are modules the only way?

Look for USB library for arduino.

how i would connect it to my arduino

Not practical or possible for any Arduino that I know of, because a webcam requires a USB host. The ESP32 CAM is a possibility, but the camera is very poor quality.

what would usb library do? I want to use my webcam on my computer to then rotate a little laser pointer or something similar to that, i want the camera to track my hands and then send the coordinates to the arduino so it can move the servos the way it is needed

Sorry, I thought you wanted to connect the camera to the Arduino.
How does a camera rotate a laser pointer?
How does the camera determine the coordinates?
How will the Camera/PC communicate with the Arduino?

There are plenty of informational pages and detailed tutorials on the web, covering topics on object tracking using cameras. Start by doing basic reading and research.

Hey guys, i used firmata library and then opencv on python with pyfirmata and numpy, found some great tutorials online and then i just modified it with previous knowledge i had with python! Thank you all for your help!