Loading...
Searching...
No Matches
spotter_camera_backend.c
Go to the documentation of this file.
308 .capabilities = CAMERA_CAP_IMAGE | CAMERA_CAP_DETECTION | CAMERA_CAP_FINISH_OWNED | CAMERA_CAP_PRIVATE_IMAGE,
bool usher_camera_profile_read(const char *filename, struct usher_camera_profile *profile)
Read a bounded PANGEA_CAMERA_V1 key=value calibration file.
Definition camera_profile.c:132
Public C API for reading PANGEA camera calibration profiles.
bool coverage_project_pixel(const struct coverage_camera *camera, const struct coverage_pose *pose, double column, double row, struct coverage_point *offset)
Project an image pixel onto the same ground plane as the coverage footprint.
Definition coverage_scheduler.c:88
Fixed-memory geometric coverage accounting, independent of camera I/O.
void spotter_cam_pipe_deinit(void)
Stop the native camera process and clear detector-specific configuration.
Definition spotter_cam_pipe.c:532
bool spotter_cam_pipe_photo_only(void)
Report whether capture was configured without analysis.
Definition spotter_cam_pipe.c:126
void spotter_cam_pipe_last_detection_summary(char *buffer, size_t buffer_size)
Format the most recent shot's detection result for EXIF writing.
Definition spotter_cam_pipe.c:374
void spotter_cam_pipe_save_detection_copy(const char *filename)
Copy filename into a "detections" subdirectory of the photo directory if the last spotter_cam_pipe_sh...
Definition spotter_cam_pipe.c:459
void spotter_cam_pipe_configure(const struct camera_backend_host *host)
Borrow USHER's shutdown flag for both serialized native worker owners.
Definition spotter_cam_pipe.c:110
int spotter_cam_pipe_shoot(char *filename, size_t filename_size, int image_number)
Request one JPEG and, when enabled, parse its matching detection sidecar.
Definition spotter_cam_pipe.c:510
bool spotter_cam_pipe_bind_frame(uint64_t sequence, uint64_t sensor_timestamp_ns)
Reject a detection result whose identity differs from the validated saved frame.
Definition spotter_cam_pipe.c:351
bool spotter_cam_pipe_read_detections(const char *filename, struct spotter_detections *detections)
Read the full detector result associated with a JPEG.
Definition spotter_cam_pipe.c:345
int spotter_cam_pipe_init(const char *unused)
Start and qualify native persistent capture with the selected analysis policy.
Definition spotter_cam_pipe.c:496
Native USHER adapter for on-sensor detection or photo-only capture.
static void spotter_stream_drain(void)
Discard pending target results and close their notification channel.
Definition spotter_camera_backend.c:129
static void notify_locked(void)
Wake the event loop after queuing a result under target_mutex.
Definition spotter_camera_backend.c:77
static struct usher_camera_profile target_profile
Definition spotter_camera_backend.c:51
static bool spotter_stream_poll_result(struct camera_point_result *result)
Pop one queued Spottercam point.
Definition spotter_camera_backend.c:158
static void spotter_image_saved(const char *filename, const union dc_shot_union *shot)
Convert a saved image's detections into stream observations.
Definition spotter_camera_backend.c:182
static struct spotter_detections parsed_detections
Definition spotter_camera_backend.c:54
static void drain_notification_locked(void)
Clear the event hint while holding target_mutex.
Definition spotter_camera_backend.c:64
static int spotter_stream_init(void)
Reset target accumulation and prepare completion notification.
Definition spotter_camera_backend.c:111
static int spotter_stream_completion_fd(void)
Get the stream's borrowed poll descriptor.
Definition spotter_camera_backend.c:145
struct camera_backend spotter_camera_backend_get(void)
Build the Spottercam backend descriptor for the registry.
Definition spotter_camera_backend.c:289
bool spotter_camera_backend_targets_enabled(void)
True when native Spottercam UART target projection is configured and active.
Definition spotter_camera_backend.c:102
bool spotter_camera_backend_set_targets_profile(const char *filename)
Configure pinhole camera calibration for projecting Spottercam boxes to UART points.
Definition spotter_camera_backend.c:87
#define SPOTTER_POINT_QUEUE_CAPACITY
Definition spotter_camera_backend.c:48
static struct camera_point_result pending_points[SPOTTER_POINT_QUEUE_CAPACITY]
Definition spotter_camera_backend.c:55
Spottercam backend descriptor and optional native UART target projection.
void spotter_targets_reset(struct spotter_targets *targets)
Forget all prior assignments without manufacturing target coordinates.
Definition spotter_targets.c:24
int spotter_targets_offer(struct spotter_targets *targets, const struct spotter_target *observation, bool(*apply)(void *, unsigned, const struct spotter_target *), void *context)
Admit a target only after its owner's coordinate application succeeds.
Definition spotter_targets.c:31
Five ranked geographic targets, independent of navigation and camera transport.
Function table describing one backend's owned camera operations.
Definition camera_backend.h:94
Definition camera_backend.h:50
Repeated correlated point updates from saved photos or non-image work.
Definition camera_backend.h:68
Measured pinhole calibration for the delivered image, including its mount.
Definition coverage_scheduler.h:41
unsigned width
Delivered width in pixels; must agree with the saved image, not the sensor mode alone.
Definition coverage_scheduler.h:42
Local ground coordinates in metres, east and north of the projection origin.
Definition coverage_scheduler.h:73
double north
Metres north of the shared local geographic reference.
Definition coverage_scheduler.h:73
Pose estimate and its positional margin for a single observation.
Definition coverage_scheduler.h:59
double latitude_deg
Observation latitude in geographic degrees, not FC fixed-point units.
Definition coverage_scheduler.h:60
Definition spotter_cam_pipe.h:40
Definition spotter_cam_pipe.h:48
Geographic observation in the shared USHER point units.
Definition spotter_targets.h:33
Caller-owned fixed storage; slot indices stay stable while scores improve.
Definition spotter_targets.h:41
One measured camera calibration loaded from the flat PANGEA profile format.
Definition camera_profile.h:41
Definition usher_protocol.h:51