|
YODAU 1.0
YEAR OF THE DEPEND ADULT UNDERGARMENT
|
Classes | |
| struct | point |
| Point in percentage-based image coordinates. More... | |
| struct | line |
| Polyline / polygon described in percentage coordinates. More... | |
| class | stream |
| Represents a single video stream and its analytic connections. More... | |
| struct | event |
| Generic event produced by the backend. More... | |
| struct | frame |
| Video frame container. More... | |
| class | cli_client |
| Simple interactive CLI (REPL) for controlling a stream_manager. More... | |
| class | stream_manager |
| Central coordinator for streams, geometry, frame processing and events. More... | |
Typedefs | |
| using | line_ptr = std::shared_ptr<line const> |
| Shared, immutable line pointer. | |
Enumerations | |
| enum class | tripwire_dir { any , neg_to_pos , pos_to_neg } |
| Allowed crossing direction for a tripwire. More... | |
| enum | stream_type { local , file , rtsp , http } |
| Source/transport type of a video stream. More... | |
| enum class | stream_pipeline { manual , automatic , none } |
| Processing pipeline mode for a stream. More... | |
| enum class | event_kind { motion , tripwire , roi , info } |
| High-level classification of backend events. More... | |
| enum class | pixel_format { gray8 , rgb24 , bgr24 , rgba32 , bgra32 } |
| Pixel format of a frame buffer. More... | |
Functions | |
| line_ptr | make_line (std::vector< point > points, std::string name, bool closed=false) |
| Create and normalize a line. | |
| std::vector< point > | parse_points (const std::string &points_str) |
| Parse points from a textual representation. | |
| std::string | normalize_str (std::string_view str) |
| Remove whitespace and parentheses from a string. | |
| float | parse_float (std::string_view num_str) |
| Parse a float from a string view. | |
| using yodau::backend::line_ptr = std::shared_ptr<line const> |
Shared, immutable line pointer.
Definition at line 146 of file geometry.hpp.
|
strong |
High-level classification of backend events.
Events are produced by analytics / processing modules and can represent detections (e.g., motion), logical triggers (tripwire/ROI), or informational messages.
|
strong |
Pixel format of a frame buffer.
The enumerators describe the byte layout of pixels in frame::data. All formats are tightly packed without per-pixel padding.
|
strong |
Processing pipeline mode for a stream.
A stream can be inactive (none), or active in either a user-managed (manual) or auto-managed (automatic) pipeline.
| Enumerator | |
|---|---|
| manual | Stream is active with manual/user-controlled processing. |
| automatic | Stream is active with automatic backend-controlled processing. |
| none | Stream is not active in any pipeline. |
Definition at line 40 of file stream.hpp.
Source/transport type of a video stream.
This is a lightweight classification inferred from the stream path/URL or specified explicitly by the user.
| Enumerator | |
|---|---|
| local | Local capture device (e.g., /dev/video*). |
| file | File-based stream (path to a video file). |
| rtsp | RTSP network stream. |
| http | HTTP/HTTPS network stream. |
Definition at line 23 of file stream.hpp.
|
strong |
Allowed crossing direction for a tripwire.
| Enumerator | |
|---|---|
| any | Direction is not constrained; any crossing counts. |
| neg_to_pos | Crossing from negative side to positive side counts. |
| pos_to_neg | Crossing from positive side to negative side counts. |
Definition at line 62 of file geometry.hpp.
| yodau::backend::line_ptr yodau::backend::make_line | ( | std::vector< point > | points, |
| std::string | name, | ||
| bool | closed = false ) |
Create and normalize a line.
Allocates a new line, moves in points and name, sets closed, and calls line::normalize().
| points | Vertex list to move into the line. |
| name | Logical name to move into the line. |
| closed | Whether the line should be treated as closed. |
Definition at line 82 of file geometry.cpp.
| std::string yodau::backend::normalize_str | ( | std::string_view | str | ) |
Remove whitespace and parentheses from a string.
Used internally to simplify parsing of point lists.
| str | Input string view. |
Definition at line 133 of file geometry.cpp.
| float yodau::backend::parse_float | ( | std::string_view | num_str | ) |
Parse a float from a string view.
Uses std::from_chars for locale-independent parsing.
| num_str | Number representation. |
| std::runtime_error | if the input is not a valid float. |
Definition at line 145 of file geometry.cpp.
| std::vector< yodau::backend::point > yodau::backend::parse_points | ( | const std::string & | points_str | ) |
Parse points from a textual representation.
Input format:
Examples:
| points_str | Input string containing points. |
| std::runtime_error | if parsing fails or no valid points are found. |
Definition at line 94 of file geometry.cpp.