Object_Labels
Using of command
Function draw objects parameters to the picture.Parameters can be in pixels or milimeters. In case of milimeters must be used undistortion
picture with selected undistortion channel. It can be draw:
- Bounding rectangle X-coordinate (Top left corner)
- Bounding rectangle Y-coordinates (Top left corner)
- Bounding rectangle height
- Bounding rectangle width
- Perimeter of object
- Object area
- Minimal area rectangle X-coordinate
- Minimal area rectangle Y-coordinate
- Minimal area rectangle height
- Minimal area rectangle width
- Minimal area rectange angle
- Minimal enclosing circle X-coordinate
- Minimal enclosing circle Y-coordinate
- Minimal circle radius
Commands parameters
Command has 11 parameters:
- Source picture: You need select source picture.Labels will be draw to this picture. Source picture must be activated before use of this function. You can select Picture_0 to Picture_19.
- Object name: You need write object name, which object parameters will be draw
- Position: Position of labels according to selected oblect.
- Dimension from object: It can be write dimesion between object edge and start of label.This parameter is in pixels.
- Parameter: Select parameter which should be drawn
- Label color: You need select color of external contours.Left click on this parameter line opens color selection dialog
- Unit: It can be select if drawn parameter will be in pixels or milimeters. In case of milimeters it must be used undistortion image with proper undistortion channel
- Line Tickness: Thickness of letter on label.
- Scale:Scale of letters on label.
- Font: Select labels font
- Get undistortion channel: Select undistortion channel where unditortion matrix is stored. This option is used when you select option milimeters in Unit poarameter
Error codes
- Error code -11:Bad position of source picture in picture array. Position of source picture is not from range 0 to 19. Check test program file if command has correct format.
- Error code -12:Bad external contour color code. Check test program file if command has correct format.
- Error code -13: No undistorion channel was selected
- Error code -14: Bad undistorion channel was selected (It is not from range 0 to 19)
- Error code -15:Pixeles in milimeters in undistortion channel is close 0. Check if you select correct undistortion channel or make again camera calibration.
- Error code -100: OpenCV error. Explanation of this error will be displayed in result window.