Canopy Rate Calculator

Calculate rice canopy coverage rate from images

Calculate Coverage

AI-generated

Summary

Calculate rice canopy coverage rate from an input image, either from binary data of a previous node or a file path, returning coverage metrics in JSON or CSV format.

Inputs

  • Image Source (required) — Choose the source of the input image: from binary data of a previous node or from a file path.
  • File Path — Specify the file system path to the image if 'File Path' is selected as the image source.
  • Binary Property — Name of the binary property holding the image data when 'Binary Data' is selected as the image source (default: 'data').
  • Output Format (required) — Select the output format of the coverage result, either JSON or CSV.
  • Options: Threshold Method — Choose the thresholding method for coverage calculation: automatic OTSU method or fixed threshold.
  • Options: Fixed Threshold — Specify the fixed threshold value (0-255) if 'Fixed' threshold method is selected (default: 128).
  • Options: Minimum Coverage — Define the minimum coverage percentage required to consider the analyzed area valid (default: 0).

Output shape

A list with one item per input image containing either JSON data or CSV binary data representing canopy coverage metrics.

If output format is JSON, the output JSON includes data_name, canopy_rate_percent, total_area, leaf_area, image dimensions, and timestamp. If CSV is selected, the output is a binary CSV file with the same information. If the calculated coverage percent is below the minimum coverage threshold, that item is skipped and not included in the output. The node supports multiple input items and processes each separately, returning an array of results.

Discussion