Webcam working, ideas for target?

Hi

I've just managed to get my webcam working on my mini itx robot.

I've written a bit of c# (yes im using win 2000) to capture images and all seems fine. I can analyse the bitmamps and identify colors etc.

I'm now trying to decide on the best kind of 'target' or 'targets' that will help my robot navigate back to base.

I realise this is probably trial and error on my part, but does anyone have any previous experience with the ideal type of 'target'? Ie should it be a bright red square, a cross or target etc?

I will be writing the code to anaylse the image etc so any thoughts from this group always appreciated.

Reply to
rw
Loading thread data ...

A lot depends on the environment you're working in. I did some trial runs with three blinking (1hz) blue LEDS in a line. This worked fairly well -- I used frequency and color as the major components to identify rather than the actual pattern.

Reply to
The Artist Formerly Known as K

anyone

An ideal target for a webcam would be a high contrast shape (black on white). Traffic signs are a good example. It might be useful also to have a black border.

It is possible to get a rough idea of distance (size of sign) and directions (distortion of sign).

John Casey

Reply to
JGCASEY

I used blocks of bright colours in a row, about 2cm square. This gave quite a large target to pickup from a distance etc.

The idea was that using 4 different colours I could have 16 different "instructions" or whatever. It is easy to work out the order of the colours just by working out the centre of each colour block along the x axis (i.e. the average position of the pixels it detected with that colour - helps to eliminate the issues of random noise on the camera), and then work out the order of the blocks. This way you only need to detect colour and do some very simple maths to work out where the centres of each block are rather than doing any complex image analysis.

Matt

Reply to
Matt D

Any particular kind of motion (in any shape) is easy for a stationery camera to detect; then the computations work out wether it is actually a valid target or not. (Something I worked on a while back).

----------------------------------------------------------------------- Ashley Clarke

Reply to
Mr Clarke

It is much easier to get a better idea of distance with stereoscopic vision, comparing the position of the object in one field with its position in the other... Not terribly difficult work, either (assuming you can locate the object reliably in the bitmap).

Reply to
larwe

Thats where all the work is! :-)

Reply to
Matt D

Yes, and remember that the video information jumps around alot too (even with a still camera) after it`s been through the digitizer.

----------------------------------------------------------------------- Ashley Clarke

Reply to
Mr Clarke

PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.