Persistent saved-picture inference with explicit request correlation and module-owned results. More...

Go to the source code of this file.
Functions | |
| static bool | analyze_image (struct inference_context *context, const struct inference_image_processor *processor, const char *image, uint32_t sequence, char *error, size_t capacity) |
| Publish a result only after complete preparation and execution for this picture. | |
| static bool | open_fallback_onnx (struct inference_context *context, struct inference_settings *settings, const struct inference_image_processor *processor, char *error, size_t capacity) |
| Probe sibling INT8 then FP32 ONNX exports when automatic settings point to an RPK or unsupported INT8 graph. | |
| int | inference_worker_cli (int argc, char **argv, const struct inference_image_processor *processor) |
| Dispatch one-shot analysis, model checks or the persistent ANALYZE protocol. | |
Detailed Description
Persistent saved-picture inference with explicit request correlation and module-owned results.
No sensor is acquired here; simulated and real saved images enter the same model path.
Definition in file inference_worker.c.
Function Documentation
◆ analyze_image()
|
static |
Publish a result only after complete preparation and execution for this picture.
Definition at line 28 of file inference_worker.c.
◆ inference_worker_cli()
| int inference_worker_cli | ( | int | argc, |
| char ** | argv, | ||
| const struct inference_image_processor * | processor ) |
Dispatch one-shot analysis, model checks or the persistent ANALYZE protocol.
- Parameters
-
argc Argument count including the executable. argv Borrowed command-line tokens; diagnostics use stderr, protocol replies stdout. processor Module contract whose callback/context lifetimes cover this call.
- Returns
- Minus one when this mode was not selected, zero on success, one on failure, two on misuse.
- Note
- Request numbers increase within a server lifetime to prevent stale reply association.
Definition at line 75 of file inference_worker.c.
◆ open_fallback_onnx()
|
static |
Probe sibling INT8 then FP32 ONNX exports when automatic settings point to an RPK or unsupported INT8 graph.
Definition at line 38 of file inference_worker.c.