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
inference_capture.hpp
Go to the documentation of this file.
1/*
2 * Copyright 2026 OpenUAS
3 * SPDX-License-Identifier: Apache-2.0
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18/** @file inference_capture.hpp
19 * @brief Settings-driven capture bridge; neutral camera mechanics never interpret neural outputs. */
20#ifndef SENSORAIA_INFERENCE_CAPTURE_HPP
21#define SENSORAIA_INFERENCE_CAPTURE_HPP
22
23#include "imx500_camera.hpp"
24#include "inference_worker.h"
25
26/** @brief Dispatch configured RPK/ONNX capture while preserving one physical camera owner.
27 * @param argc Count of borrowed command-line arguments.
28 * @param argv Capture tokens; --settings - requests executable-relative discovery.
29 * @param processor CPU-model contract, output callbacks and application settings handler.
30 * @param sensor_processor Existing RPK feature/detection policy for the on-sensor backend.
31 * @return Minus one for another CLI mode, zero on success, one on runtime failure, two on misuse.
32 * @details Pixels are prepared and encoded under the frame lease; slow CPU inference follows release.
33 * Private image/result names are finalized before no-overwrite publication; failures never replay exposure. */
34int inference_capture_cli(int argc, char **argv, const inference_image_processor &processor,
35 const imx500::FrameProcessor &sensor_processor);
36
37#endif
Neutral IMX500 frame ownership, JPEG publication and worker protocol.
int inference_capture_cli(int argc, char **argv, const inference_image_processor &processor, const imx500::FrameProcessor &sensor_processor)
Dispatch configured RPK/ONNX capture while preserving one physical camera owner.
Warm saved-picture processing without acquiring a camera or interpreting CAM results.
Stack-owned model-specific operations; no dynamic plugin allocation.
Borrowed module callbacks; the worker serializes calls and retains no per-request pixel pointers.