Illustrated C/C++ source sheets, symbol index, API relationship graph, compiler console and debug trace

LIVE AI / FLEXIBLE SENSING / FLIGHT CONTEXT

Sensoraia API

Live AI and sensing, connected to the flight.
See, listen, inspect and return supported results while airborne.

Loading...
Searching...
No Matches
soda_object_postprocess.h File Reference

EXIF-driven object-hit post-processing for SODA. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool soda_process_object_detection (const char *image_path)
 Post-process a captured image for an object-detection hit, if it has one.

Detailed Description

EXIF-driven object-hit post-processing for SODA.

Definition in file soda_object_postprocess.h.

Function Documentation

◆ soda_process_object_detection()

bool soda_process_object_detection ( const char * image_path)

Post-process a captured image for an object-detection hit, if it has one.

Parameters
image_pathPath to the JPEG SODA was invoked on.
Returns
true when there was nothing to do (no AICAM_OBJECTS_V1 hit in EXIF, or the marker couldn't be read at all – the common case for every non-spottercam shot) or every post-processing step for a real hit succeeded; false only when a hit was found but at least one downstream step (full-frame copy, crop, or CSV row) failed.

No-op beyond one EXIF read unless image_path carries an AICAM_OBJECTS_V1 record (written by usher's image_exif_write_object_detections()) reporting count >= 1. On a hit, copies the image into a sibling objects_captured/ directory, saves a padded crop of the detected box into a sibling tight_crop_objects/ directory, and appends one row to objects_captured/detections.csv. Both directories are derived from image_path's own directory – there is no separately configured base directory.

Create SODA review derivatives only when the source EXIF describes an object hit.

Returns
True for no-op/no-hit or complete processing; false when a detected hit could not be fully copied, cropped, or recorded.

Definition at line 581 of file soda_object_postprocess.cpp.