» CamShiftTracker (FreeFrame DShow9)
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

CamShiftTracker (FreeFrame DShow9)

Help
Author
Info This node comes with the addon pack. Get it here.

Here you are supposed to see an image (rendered with SVG) describing the pins of this node. However, this does not work with Internet Explorer. You may want to consider using another browser, like FireFox, Chrome, Safari or Opera that do support SVG.

Credits
Warnings
Bugs

related discussions

start a forum thread about this node

about CamShiftTracker (FreeFrame DShow9)

open source

usage

When you use CamShiftTracker the most important step is the fine tuning of the tracking parameters.

These are:

  • Size and orientation of initial ROI
  • Saturation min, Value min and max

To achieve an optimal tracking output, these parameters have to be adjusted to the lighting situation of the video scene (or vice versa).

If possible, turn off automatic gain control (AGC), automatic brighness ajustment etc. on your camera.

During fine tuning of the parameters you should have Show Backproject set to 1, so you can see which pixels of the image are considered as belonging to the object (i.e. those which are white). Also, set Show ROI to 1, to see the search frame.
When nearly all pixels in the area of the object are white and the rest of the image is black, you're done.

Like a good linear minimizer, adjust one parameter at a time, then continue with the next one. Playing around will give you a feeling for this...

Be sure that your object lies in or, ideally, fills the initial ROI when you initialise the tracker by banging Init Tracker. You will get the best results by using a white background. Since white (background) pixels have a very low saturation, you can kick 'em out by increasing the 'Saturation min' pin value.
Adjust Value min and Value max to the range of your object brightness:

OBJECT BRIGHTNESS VALUE MIN VALUE MAX
dark very low V1 (near 0.0) low V2
bright high very high V2 (near 1.0)
different shades low high

After each tuning step, init Tracker again to submit the tracking values and refine the object search.

If all that doesn't help, you might have to improve the lighting situation.
Think about illuminating the object with a lamp, or adding a diffuser if the video image is too dark and the colors don't come out right.

anonymous user login

Shoutbox

~1d ago

joreg: vvvvTv S02E03 is out: Logging: https://youtube.com/live/OpUrJjTXBxM

~3d ago

~5d ago

joreg: Follow TobyK on his Advent of Code: https://www.twitch.tv/tobyklight

~8d ago

joreg: vvvvTv S02E02 is out: Saving & Loading UI State: https://www.youtube.com/live/GJQGVxA1pIQ

~8d ago

joreg: We now have a presence on LinkedIn: https://www.linkedin.com/company/vvvv-group

~15d ago

joreg: vvvvTv S02E01 is out: Buttons & Sliders with Dear ImGui: https://www.youtube.com/live/PuuTilbqd9w

~22d ago

joreg: vvvvTv S02E00 is out: Sensors & Servos with Arduino: https://visualprogramming.net/blog/2024/vvvvtv-is-back-with-season-2/

~22d ago

~23d ago

fleg: hey there! What's the best tool for remote work? Teamviewer feels terrible. Thanks!

~1mth ago

joreg: Last call: 6-session vvvv beginner course starting November 4: https://thenodeinstitute.org/courses/ws24-5-vvvv-beginners-part-i/