Object Detection(Recognize Orientation)

Description

This operator performs object detection on input images based on deep learning. Unlike standard rectangular box detection, this operator can identify and output the rotation angle of objects, thereby distinguishing the orientation of targets and generating rotated rectangular boxes that fit the objects more closely.

Overview

Performs object detection on input images based on deep learning, capable of identifying object rotation angles and distinguishing orientation.

Scenarios

Select this operator when the application scenario requires not only locating the object but also knowing its precise placement pose or orientation. For example, ensuring parts are aligned and installed at the correct angle in automated assembly processes; checking if specific features on a product are at the correct rotation angle; classifying based on object orientation, etc.

Inputs and Outputs

Inputs

Image: A single color image to be detected.

Outputs

Detection Results: A list of detection instances. Each element in the list represents an identified object, containing its category, confidence score, and a rotated rectangular box describing its precise position and direction.

Parameters

Weight File

Description

Loads a pretrained model file for rotated object detection.

Tuning Instructions

Select and upload a model file trained for the current specific application scenario and target objects. The quality of the model directly determines the accuracy and robustness of the results.

Parameter Range

The file format is required to be .pth.

Parameter Range

Values/Range:

  • .pth

Confidence Threshold

Description

Sets the "confidence" threshold for the model’s output results. When identifying each object, the model assigns a score between 0 and 1 indicating how confident it is in that result; only objects with a score above this threshold are output as valid results.

Tuning Instructions

  • Increase the value: The filtering criteria become more strict. The operator will only output results in which the model has high confidence. This reduces false positives but may cause some true targets with inconspicuous features or partial occlusion to be missed.

  • Decrease the value: The filtering criteria become more lenient. The operator will output more candidate targets, but may introduce more false positives.

If many non-target objects are being incorrectly output, try increasing this threshold. If obvious targets are not being detected, try decreasing this threshold appropriately.

Parameter Range

[0,1], Default value: 0.5

Parameter Range

Values/Range: [0.0, 1.0]

Default: 0.5

Enable GPU Acceleration

Description

Controls whether the operator uses CPU or GPU for calculation. Since deep learning models have large computational loads, using a GPU can greatly improve processing speed.

Tuning Instructions

  • Disabled (Default): The operator will use the CPU for calculation. Although it has good compatibility and requires no special hardware, processing a single image may take longer, making it unsuitable for scenarios with high speed requirements.

  • Enabled (Recommended): If the local device supports a GPU graphics card, it is recommended to enable this option to significantly improve processing speed.

Parameter Range

Default: False

Enable Rotation

Description

Sets whether the model is trained with angle rotation, used to rotate the detection box to fit the target more closely.

Tuning Instructions

  • Enabled: When the model is a rotated object detection model, rotation must be enabled. The operator can parse the angle information output by the model to generate rotated detection boxes.

  • Disabled: If the trained model is a standard object detection model that can only output horizontal rectangular boxes, this item needs to be disabled.

Parameter Range

Values/Range:

  • True

  • False

Default: False

Legacy Labeling Model

Description

Used to handle models trained with a legacy data annotation method.

Tuning Instructions

  • Enable: If the model was trained using the early "strict sequential four-point annotation" method, enable this option.

  • Disable: If the model was trained using the standard "rotated bounding box" annotation method, disable this option.

If you are unsure whether the model uses the legacy annotation format, try both settings. When the detection box angle is clearly incorrect (e.g., the angle is consistently offset by 90 degrees), toggle this option to attempt to resolve the issue. For newly trained models, this option is disabled by default.

Parameter Range

Default: False