Save Detection Results

Feature Description

This operator is used to save the detection results (JSON file) generated during the image detection process, along with the corresponding original images (multiple PNG images packaged as a ZIP file), to a specified local location. The data can be directly uploaded to an annotation website for use.

Usage Scenarios

Saving detection result data, which can be uploaded to an annotation website to serve as raw data for subsequent manual fine-tuning or adjustment of annotations.

Inputs and Outputs

Input Items

Detection Results: Detection results output by an upstream detection operator, containing information such as object class names, polygon lists, bounding boxes, confidence scores, etc.

Image: The original input image corresponding to the detection results. The operator will save this image along with the detection results. If multiple images are input, only the first image is processed and saved by default.

Output Items

Save Path: Outputs the absolute folder path after successfully saving the data.

Parameter Description

Save Path

Parameter Description

Used to specify the target folder path for saving files.

Adjustment Notes

  • Specify Path: Directly enter a valid folder path, or click the icon on the right to select a folder path.

  • Do Not Specify Path: Leave it blank. The operator will, by default, create a subfolder named file_save_dir in the .transfertech atom folder as the storage path. This is convenient for temporary saving or when the specific storage location is not critical.

  • Path Check: The operator will check if the specified path is valid. If the path points to an existing file (not a folder), or if the path is invalid, the operator will report an error. If the specified path does not exist, it will attempt to create it.

Save Name

Parameter Description

Specifies the save file name; no need to include the file extension.

Adjustment Notes

It is recommended to use a descriptive name for easy retrieval and management later. Avoid using special characters. Default name: data

Save Only Single File

Parameter Description

Sets the file saving strategy, either saving as a single file or multiple files.

Adjustment Notes

  • Disabled (default): Generates multiple files, automatically adding a timestamp after the specified file name to avoid duplication. Suitable for scenarios requiring historical data or multiple run results.

  • Enabled: The operator will attempt to use the specified name as the file name to save data each time it runs. If the file already exists, the new data will overwrite the old file. Suitable for scenarios requiring a fixed file name output, e.g., for overwriting the previous result.

Maximum Storable Memory

Parameter Description

Sets the maximum total size of files allowed in the save directory. When the total size of relevant files in the folder exceeds this limit, the software will attempt to delete the oldest files of the same type in that directory to free up space.

Adjustment Notes

Please set this value based on available disk space and data retention needs:

  • Smaller value: Will delete old files more frequently, saving disk space, but may lead to faster loss of historical data.

  • Larger value: Allows more historical data to be saved but will consume more disk space.

Parameter Range

[0.00001, 10], Default: 10, Unit: GB

Smoothing Enabled

Parameter Description

Used to control whether to perform smoothing on the polygon contours in the input detection results. Applies only to polygons with more than 4 vertices.

Adjustment Notes

  • Enabled (default): Attempts to smooth the edges of polygons, typically used to reduce redundant control points and facilitate subsequent manual annotation adjustments.

  • Disabled: Directly uses the original, unmodified polygon vertex data.

Annotation Smoothing Granularity

Parameter Description

Used to control the intensity of polygon contour smoothing, determining the precision of contour approximation.

Adjustment Notes

  • Larger value: Results in fewer polygon vertices. Appropriately reducing the number of vertices can facilitate subsequent manual annotation adjustments; however, too few vertices will cause significant loss of detail, leading to excessive deviation from the original polygon contour. If the number of vertices after smoothing is too small (less than 3), the operator will attempt to use the minimum bounding rectangle as the contour.

  • Smaller value: Results in more polygon vertices, and the contour will be closer to the original detection result. However, too small a value may lead to an excessive number of retained vertices, making manual adjustment more difficult.

Parameter Range

[0.01, 50], Default: 1