Hi im new to Arduino but have some smaller experience with programming.
For a project i need to track the position of a person in Front of a camera. I just need
to detect if something moving is in front of the camera and if something is moving I need to get
information on the x-Position of this person. With this information i want to controll a motor. Do you have
an idea if i should use a Camera and work with backgrounsubstraction or do you think its maybe better to use a sensor? So at the end something should recognize the appearance of a person and recognize the position in a certain area and depending on the position a motor should turn. It would be super nice if you can help me with any advice how to realize something like this
a camera is a sensor.
define "x-position of person". nose-position? toe-position? arm-position? belley-position?
Image processing is required to detect objects and estimate positions.
This is not something most Arduinos can do, because memory is so limited, but the Arduino compatible PIXY camera can track differently colored blobs automatically.
jremington:
, but the Arduino compatible PIXY camera can track differently colored blobs automatically.
Does it track, or does it simply label?
Thank you for the answers, for the x-position i mean the approximate position of the person. Yeah I have read about the PIXY Camera but can it also track a person?
I saw a project where a curtain was attached to a motor and followed a person passing the window and i wanted to create something similar
Yes, tracking is an intended function, demonstrated here.
The PIXY produces a stream of labeled (x,y) coordinates, which in principle allows object tracking (e.g. with servos). Whether this works in the real world with a person is for you to determine.
You might want your subject to wear a brightly colored garment.
found something Arduino Image processing based human recognition CCTV system using vb.net, EmguCv ,PIR motion sensor - YouTube
Hello, I managed to track a person with a webcam in processing and get the y-value at the end.
I now want to send thin number to an Arduino, to controll a servo motor. Does someone maybe has an advise how i can send it to the arduino. Is there maybe a simpler way then using a serial pot because its only one number which has to be send to the Arduino. Thank you so much for your answers! edit: Or maybe use a serial port but then i have the problem that i can only send 1 or 0 but i need to send the position value.
I don't know Processing but for receiving data on the Arduino Have a look at the examples in Serial Input Basics - simple reliable non-blocking ways to receive data. There is also a parse example to illustrate how to extract numbers from the received text.
The technique in the 3rd example will be the most reliable. It is what I use for Arduino to Arduino and Arduino to PC communication.
You can send data in a compatible format with code like this (or the equivalent in any other programming language)
Serial.print('<'); // start marker
Serial.print(value1);
Serial.print(','); // comma separator
Serial.print(value2);
Serial.println('>'); // end marker
...R
Send the value over the Serial interface makes the most sense to me.
I don't see why that limits you to a 1 or 0.
TOPIC MERGED.
Please do NOT cross post / duplicate as it wastes peoples time and efforts to have more than one post for a single topic.
Continued cross posting could result in a time out from the forum.
Could you take a few moments to Learn How To Use The Forum.
Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum.