Updated on 2024-02-29 GMT+08:00

Configuring the ROI

Region of Interest (ROI) indicates the detection area of an algorithm. Some algorithms require JSON strings indicating the detection area, for example, {"polygons":[{"data":[[84,389], [1840,349], [1824,526], [78,526]]}]}, where [84,389] indicates the horizontal and vertical coordinates, {"data":[...]} indicates a graph formed by connection lines of these coordinate points, and "polygons":[...]} indicates that multiple {"data":[...]} graphs are polygonal areas. The entire string example represents a polygonal area formed by the four coordinate points. Similarly, {"lines":[{"data":[[238,481], [1309,481]]}]} indicates a line segment formed by two coordinate points.

You can also draw an ROI. The platform automatically generates JSON strings indicating a detection area based on the drawing.

  • When drawing a straight-line segment, click .
    Figure 1 Drawing a straight-line segment
  • When drawing a polygon, click . Draw the expected detection area in the photo. You do not need to draw the last line segment. Double-click the left mouse button to end the drawing of the polygon. The area will be automatically closed. When drawing a polygon, ensure that the line segments do not overlap. You can draw multiple polygon areas in a photo.
    Figure 2 Drawing a polygon