Hi guys! I am going make a project with arduino that makes image processing without connection to the computer. It will be embedded. Is it possible to connect a webcam to the robot and according to the image processing results make the movement of the robot towards the desired object. Object may be a different colour flag. Please help!..
msryn1903:
Hi guys! I am going make a project with arduino that makes image processing without connection to the computer. It will be embedded. Is it possible to connect a webcam to the robot and according to the image processing results make the movement of the robot towards the desired object. Object may be a different colour flag. Please help!..
Probably not by using the arduino in the image processing part.
zoomkat:
Probably not by using the arduino in the image processing part.
why not? is the power of arduino enough for this?
why not? is the power of arduino enough for this?
Apparently you know what you are talking about, so go for it and post your working code for others when you have it working.
zoomkat:
Apparently you know what you are talking about, so go for it and post your working code for others when you have it working.
i want to know if it is possible with arduino to do this processing argument so i didnt start to code. if i learn it is possible , i ll start
Estimate how much memory you are going to need, and how much processing, and you should see why the Arduino isn't suitable.
With 2K of RAM, anything is possible. If you are willing to wait long enough.
i ll only use it for direction detection for my robot and resolution is not needed to be complex .. with 2k of ram how slow the response time will be
With 2K of RAM, anything is possible.
Well no, not when you want to look over a whole image.
i ll only use it for direction detection
You don't have all of that 2K available for the image but suppose you did, then at 1 bit per pixel you could have an image of
2048 * 8 = 16384 pixels which is an image of 128 by 128. Is that enough?
The amount of memory on an arduino makes it not very suitable.
To get an idea of what you need run up an example in the Processing language. That runs on a PC and it is easy to interface a web cam to it and do all sorts of stuff. Just see how far you can get with that before handicapping yourself by trying to do it with an arduino.
msryn1903:
i ll only use it for direction detection for my robot and resolution is not needed to be complex .. with 2k of ram how slow the response time will be
You misunderstood. It was a rhetorical statement. You can't process images on the ATmega328.
The Arduino is a microcontroller, not a microprocessor. It is best at controlling things. You might more interested in a BeagleBone or Raspberry Pi if you really need to process the image locally.
Search around the forum for arduino and image processing, see how those threads end up and you'll get a pretty good understanding of what can, has, and can't be done
i understand that i can not make image processing with arduino without connection of computer .. in my project i must drive my robot 80 cm x 80 cm with slope of 15 degrees and ball control in front of it with pushing surface. when controlling the ball robot will go away from the way which is one corner from other corner and i must drive without line following could you advice me any idea ??
Can't you just make your pushing surface in a V shape?
If you're going up a slope, the ball will naturally fall into the apex of the V.
(What's wrong with your punctuation keys?)
pushing surface will be square type and pushing surface can only be rectangular type ..not possible to make v shape
Flat Velcro? 8)
Seriously, can't you simply put a number of light sensors in the pushing surface, and figure out where the ball is by which ones are obscured?
This seems simpler than vision.
There is a project, arrduino "tracking" a plate:
http://optical-magnet-laser-6d-tracking.blogspot.com/
my problem is not the ball control mechanism i will make it with sharp sensors but i dont know how to drive the robot to the corner without line following or image processing and determine the position of the robot with respect to target
If you put a "beacon" - bright white LED in the corner, some kind of "flag" , than you don't need a lasers, just cam.
To create a several different "flags", helping robot to navigate around the room, you could stack two, three and more leds one above other ( homemade street light).
Single color streetlights, but of course you could do real red-yellow-green + blinking, you would need "color decoder" which I omitted in the design.
msryn1903:
my problem is not the ball control mechanism i will make it with sharp sensors but i dont know how to drive the robot to the corner without line following or image processing and determine the position of the robot with respect to target
Are you allowed to assume a fixed starting position and target position? If so, you could navigate by dead reckoning. Otherwise, you need a way to measure your position and orientation, and that makes things harder.
I can't quite get my head around the geometry of your problem. Are you trying to push a ball sideways across a sloping surface? Does this mean you need to actively position your 'bot below the ball to stop it rolling down hill as you move it? That sounds like a much harder problem to solve than just moving towards the target.