On Sun, 26 Nov 2006 03:10:41 -0300, you wrote: > >Thanks everyone. The thing is that I "only" need to detect where is a high >contras object, relative to the frame. The system is now working on a PC and >I want to put it on an embedded processor. If it is really high contrast, e.g. the top bit tells you if it is there or not, then you can maybe just maeasure the position using input capture - you just capture the start and end of the object on each line, and calculate the mid-point to give the centre. I did this a while ago on an Atmel 90S2313 to detect the position of a laser spot in the frame - worked great. You can tweak the contrast & exposure on the camera to get the sensitivity in the right range - you could do this dynamically if image conditons vary, i.e. start at sensitive and reduce until you only see one object. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist