Save Detection Results

Description

This operator is used to save the detection results (JSON files) generated in the image detection process and the corresponding original images (multiple PNG images packaged as a ZIP file) to a specified local location. The data can be directly uploaded to annotation websites for use.

Overview

Packs and saves the detection result JSON file and the corresponding original image to a specified path in real-time.

Scenarios

Saving detection result data, which can be uploaded to annotation websites as raw data for subsequent manual fine-grained annotation or adjustment.

Inputs and Outputs

Inputs

Detection Results: Includes bounding boxes, classes, scores, polygons, and other information.

Image: Input image. Must be an RGB color image.

Enable Switch: Enables the node function. Default is True. If the input is False, no data will be saved.

Outputs

Save Path: The absolute folder path where the data is successfully saved.

Parameters

Initialization Parameters

Save to FTP

Description

Main switch for background FTP upload functionality.

Tuning Instructions

  • False (Default): Saves files locally only.

  • True: Attempts to upload to the specified FTP server after local save.

Parameter Range

Default: False

Delete Local Data

Description

Handles local files after a successful FTP upload.

Tuning Instructions

  • True (Default): Deletes local file after sync to save space.

  • False: Retains both local and remote copies.

Parameter Range

Default: True

FTP IP Address

Description

IP address of the FTP server.

Parameter Range

Default: 192.168.33.18

FTP Port

Description

Listening port number of the FTP service.

Parameter Range

Default: 8089

FTP Username

Description

Username for FTP server login.

Parameter Range

Default: admin

FTP Password

Description

Password for FTP server login.

Parameter Range

Default: qy123456

FTP Directory

Description

Target storage directory on the FTP server.

Parameter Range

Default: data

Run Parameters

Save Path

Description

Used to specify the target folder path for saving files.

Tuning Instructions

If no path is entered, the operator will by default save to the ATOM cache directory.

Save Name

Description

Specifies the name prefix of the saved file, without the file extension.

Tuning Instructions

It is recommended to use a descriptive name to facilitate subsequent retrieval and management. Default name: data

Parameter Range

Default: data

Save Single File Only

Description

Sets the file saving strategy: save as a single file or multiple files.

Tuning Instructions

  • False (Default): Automatically appends a timestamp to the filename (e.g., data_20231027120000_z.tiff) to avoid overwriting.

  • True: Uses the fixed name prefix, overwriting existing files and only keeping the result of the last execution.

Parameter Range

Default: False

Max Storage Memory

Description

Sets the maximum total size of files allowed in the save directory. When the limit is exceeded, the software deletes the oldest files of the same type.

Tuning Instructions

Range: [0.00001, 10] GB, Default value: 10 GB.

Parameter Range

Values/Range: [1e-05, 4000.0]

Default: 10.0

Unit: GB

Enable Smoothing

Description

Whether to smooth the edges of input detection results. Applied only to polygons with more than 4 points.

Parameter Range

Default: True

Annotation Smoothing Granularity

Description

Maximum distance between the original curve and its approximation. Points whose distance to the curve segment is less than this value are removed. Larger values yield fewer annotation points (coarser); smaller values yield more points (closer to original contour) but may affect subsequent annotation adjustment.

Parameter Range

Values/Range: [0.01, 50]

Default: 1