OpenCV tools


Open the OpenCV menu on the controls sidebar to draw polygons with intelligent scissors, track objects across frames, or adjust image contrast.

Intelligent scissors

To use Intelligent scissors, do the following:

  1. On the menu toolbar, click OpenCVOpenCV icon and wait for the library to load.


    Interface for loading OpenCV progress bar

  2. Go to the Drawing tab, select the label, and click on the Intelligent scissors button.

    Selecting Intelligent scissors instrument in Drawing tab

  3. Add the first point on the boundary of the allocated object.
    You will see a line repeating the outline of the object.

  4. Add the second point, so that the previous point is within the restrictive threshold.
    After that a line repeating the object boundary will be automatically created between the points. Diagram with points and lines created by intelligent scissors

  5. To finish placing points, on the top menu click Done (or N on the keyboard).

As a result, a polygon will be created.

You can change the number of points in the polygon with the slider:

Slider for point number in polygon

To increase or lower the action threshold, hold Ctrl and scroll the mouse wheel.

During the drawing process, you can remove the last point by clicking on it with the left mouse button.

Example of annotation process using Intelligent scissors

For more information on intelligent scissors, see the Intelligent Scissors Specification.

Track objects

To track objects, do the following:

  1. Create basic rectangle shapes or tracks for tracker initialization

  2. On the menu toolbar, click OpenCVOpenCV icon and wait for the library to load.


    Interface for loading OpenCV progress bar

  3. From Tracker drop-down, select tracker and Click Track


    Tracking tab in OpenCV window with selected Tracker

    Currently, TrackerMIL is the only tracker available. For more information on it, see Object Tracking using OpenCV.

  4. Annotation actions window will pop-up. Setup Target frame and Convert rectangle shapes to tracks parameters and click Run


    Annotation actions window with parameters and buttons

All annotated objects will be automatically tracked up until target frame parameter.

Histogram equalization

Histogram equalization improves the contrast by stretching the intensity range.

It increases the global contrast of images when its usable data is represented by close contrast values.

It is useful in images with backgrounds and foregrounds that are bright or dark.

To improve the contrast of the image, do the following:

  1. In the OpenCV menu, go to the Image tab.
  2. Click on Histogram equalization button.
    Image tab in OpenCV window with highlighted histogram equalization button

Histogram equalization will improve contrast on current and following frames.

Example of the result:

Example of original image and image with applied histogram equalization

To disable Histogram equalization, click on the button again.