unable to capture the image dectected by vi_objectdetector service

Submitted by petergeorge73 on Sun, 06/29/2008 - 14:04.

Iam using vi_objectdetector to detect an object in a simulation environment. I have trained the object using the vi_objectdector service. Event though my object is getting detected and its showing the rectangle around the object in the service screen, the below code does't get me the dectected image because the Detections count is always zero.

Start method
-------------
ccr.Arbiter.ReceiveWithIterator(true, _vi_ObjectDetectorNotify, Vi_ObjectDetectorUpdateFrameHandler)
----------

Method
--------
IEnumerator Vi_ObjectDetectorUpdateFrameHandler(vi_objectdetector.UpdateFrame message)
{
if (message.Body.Detections.Count > 0)
{

System.Console.WriteLine("**********Vi ObjectDetector {0}************", message.Body);
}
return null;
}

Would like to know if i have missed anything because of which iam not getting the detected object. I would also like to know if i can capture the detected image when ever the red , yellow or blue rectangle is shown on the object dectector service screen

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Hi, sorry for the delayed

Hi, sorry for the delayed response. Between summer vacations and upcoming demos we are working to reproduce this issue. If we have any questions we'll be in touch.