Stage

Contents

Stage#

class rapidtools.processing.Stage(value)[source]#

Bases: IntEnum

Execution order of pipeline steps (lower runs first).

Variables:
  • DETECT – Discover assets in imagery (e.g. SAM 3 feature extraction).

  • EXTRACT_IMAGERY – Attach aerial or street-level images to assets.

  • REGULARIZE – Clean and regularize asset geometries.

  • SEGMENT – Segment the attached images (masks, boxes).

  • VERIFY – Confirm detections with a model and drop false positives; runs after imagery is attached and before analysis, so rejected objects are never sent to the (paid) analysis model.

  • ANALYZE – Run vision-language models over the images.

  • EXPORT – Reporters and exporters.

  • CUSTOM – Steps without a declared stage; run last.

Example

>>> Stage.DETECT < Stage.ANALYZE < Stage.CUSTOM
True

Methods

conjugate

Returns self, the complex conjugate of any int.

bit_length

Number of bits necessary to represent self in binary.

bit_count

Number of ones in the binary representation of the absolute value of self.

to_bytes

Return an array of bytes representing an integer.

from_bytes

Return the integer represented by the given array of bytes.

as_integer_ratio

Return integer ratio.