loading
 
Motion tracking and coloring what is tracked
Pranav from India  [9 posts]
12 year
Hi all,

I am trying to do the following.
1. Detect movement.
2. Move the camera to track that movement.
3. The operator should be able to see the image as it moves.

The idea is to move the camera in the direction of motion of the object. I do not care about recognition.

So far, I have the following pipeline.
1. I use the movement detection module to detect movement..
2. I then use the segment colors module to break down the image.
3. I then use the blob tracking module for tracking.

Am I on the right track? As of now, I am using a Microsoft Lifecam webcam for testing. The image from the webcam is blurring. I cannot tell if it is the modules that I have chosen which are incorrect or the values that I have set. I have accepted the defaults. Before that though, is roborealnm the right tool for this?

My *.robo file is below.
<head><version>2.44.19</version></head>
<Movement enabled>
  <freeze_difference>0</freeze_difference>
  <difference_channel>6</difference_channel>
  <freeze_percent>0</freeze_percent>
  <continuous>TRUE</continuous>
  <low_difference>10</low_difference>
  <remove_global_movement>FALSE</remove_global_movement>
  <anti_auto_adjustment>FALSE</anti_auto_adjustment>
  <difference>10</difference>
  <window_size>5</window_size>
  <set_still_black>1</set_still_black>
  <rgb_precent_threshold>20</rgb_precent_threshold>
  <reference_frame>Previous Frame</reference_frame>
</Movement>
<Segment_Colors>
  <tolerance>80</tolerance>
  <detail_size>4</detail_size>
</Segment_Colors>
<Blob_Tracking>
  <display_as_annotation>FALSE</display_as_annotation>
  <trail_length>5</trail_length>
  <track_shape>FALSE</track_shape>
  <id_font_size_index>1</id_font_size_index>
  <aspect_weight>1.0</aspect_weight>
  <absent_after_frames>2</absent_after_frames>
  <match_threshold>0.75</match_threshold>
  <track_overlap>FALSE</track_overlap>
  <raw_image>Microsoft LifeCam HD-5000</raw_image>
  <histogram_weight>1.0</histogram_weight>
  <overlap_weight>1.0</overlap_weight>
  <length_limit>150</length_limit>
  <display_id>TRUE</display_id>
  <track_aspect>FALSE</track_aspect>
  <display_trail>TRUE</display_trail>
  <tracking_precision>1.0</tracking_precision>
  <track_size>FALSE</track_size>
  <track_color>FALSE</track_color>
  <shape_weight>1.0</shape_weight>
  <track_orientation>FALSE</track_orientation>
  <graphic_color_index>6</graphic_color_index>
  <size_weight>1.0</size_weight>
  <present_after_frames>2</present_after_frames>
  <blob_image>Microsoft LifeCam HD-5000</blob_image>
  <location_weight>1.0</location_weight>
  <present_after_pixels>0</present_after_pixels>
  <track_histogram>FALSE</track_histogram>
  <track_location>TRUE</track_location>
  <color_weight>1.0</color_weight>
  <orientation_weight>1.0</orientation_weight>
</Blob_Tracking>

Note:
In the blob tracking module, I have set the source and comparing frames to the Microsoft lifecam webcam.

Pranav
Syfy from Netherlands  [18 posts] 12 year
can you post your robo file?

Syfy
Pranav from India  [9 posts] 12 year
Hi Syfy,

Sure I can. I thought I posted its contents in my message.

Pranav  



program.robo
Syfy from Netherlands  [18 posts] 12 year

i changed some settings and added modules
maybe it's in the direction you need it to be

what resolution are you using and what kind of servo controller?

Syfy
program.robo
Pranav from India  [9 posts] 12 year
Hi Syfy,
Many thanks for this file. I will test today and will get back to you.

I am not too sure of the resolution. I am currently experimenting with my Microsoft lifecam webcam. I have not changed its resolution. I have not determined the servo controllers I am going to use. My colleague has a SDK of a PTZ camera which is what we will use to drive the camera. I'll ask him and see what he has.

Once I get the modules working as I want, I will probably create a .net application and use that to interface with the SDK.

pranav
Pranav from India  [9 posts] 12 year
Hi again Siphi,
Thanks for the *.robo file. It is very close to what I need.

I was discussing the application with my colleague. He has now   added to the requirement. We need to track a specific object in the frame. I  added the object tracking module to the pipeline and deleted the blob tracking module to keep things clean. I trained a single image but no go. I have set roborealm to draw a orange box around the object but no go. I am attaching the *.robo file and the image I tried with.

Yes, I am experimenting very cheaply so I am using a webcam and a laptop. The real world applications will involve PTZ cameras but I need to convince my employer with a proof of concept application before I get any financial sanction.

Pranav

 

program.robo
Syfy from Netherlands  [18 posts] 12 year
you got a hd 5000 cam, then it's best you set all camera functions on
not automatic, find the best setting manualy.

in case you want more functions in your robo file you can use marker module
to sapperate them.

i have added a pix for example of how you need to make the object to recognice

Syfy


 

program.robo
Pranav from India  [9 posts] 12 year
Hi Sify,
This is exactly what II wanted. <Many thanks!

By the way, roborealm is being flakey. There are times when I get wrong results. Random objects are being recognised. Moreover, roborealm is crash at random intervals. See the crash report from the windows event logs.
Fault bucket , type 0
Event Name: APPCRASH
Response: Not available
Cab Id: 0

Problem signature:
P1: RoboRealm.exe
P2: 2.44.24.0
P3: 4f7fc177
P4: RoboRealm.exe
P5: 2.44.24.0
P6: 4f7fc177
P7: c0000005
P8: 00062174
P9:
P10:

Attached files:
d:\temp\WERA2B9.tmp.WERInternalMetadata.xml

These files may be available here:
C:\Users\Pranav.Lal\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_RoboRealm.exe_bfbf35d2549b3b618156a3d62039d6741aa8ba9_10d1bcce

Analysis symbol:
Rechecking for solution: 0
Report Id: 0987724f-893b-11e1-acea-002713bb8370
Report Status: 65
Anonymous 12 year
You should have also seen a c:\RoboRealm.log file which is more useful in determining crash reasons. Be sure to also have the latest version.

Thanks,
STeven.

This forum thread has been closed due to inactivity (more than 4 months) or number of replies (more than 50 messages). Please start a New Post and enter a new forum thread with the appropriate title.

 New Post   Forum Index