Skip to main content

SimaRender.h File

SimaRender Node — renders bounding-box overlays onto a video frame. More...

Included Headers

#include "builder/Node.h" #include "builder/OutputSpec.h" #include <memory> #include <string> #include <vector>

Namespaces Index

namespacesimaai
namespaceneat
namespacenodes

Classes Index

structSimaRenderOptions

Construction options for a SimaRender Node. More...

classSimaRender

Node that renders bounding-box overlays onto a video frame. More...

Description

SimaRender Node — renders bounding-box overlays onto a video frame.

Consumes the boxes emitted by SimaBoxDecode and the source frame, draws labelled box overlays in-place, and forwards the annotated frame downstream. Place after SimaBoxDecode in detection-display pipelines that show results on screen or stream them out via H264EncodeSima + H264Packetize.

File Listing

The file content with the documentation metadata removed is:

1
11#pragma once
12
13#include "builder/Node.h"
14#include "builder/OutputSpec.h"
15
16#include <memory>
17#include <string>
18#include <vector>
19
20namespace simaai::neat {
21
28 std::string config_path;
30 bool silent = true;
31 bool emit_signals = false;
32 bool transmit = false;
33};
34
40class SimaRender final : public Node, public OutputSpecProvider {
41public:
43 explicit SimaRender(SimaRenderOptions opt = {});
44
46 std::string kind() const override {
47 return "SimaRender";
48 }
50 NodeCapsBehavior caps_behavior() const override {
51 return NodeCapsBehavior::Static;
52 }
54 bool has_config_json() const override;
56 bool wire_input_names(const std::vector<std::string>& upstream_names,
57 const std::string& tag) override;
59 std::string backend_fragment(int node_index) const override;
61 std::vector<std::string> element_names(int node_index) const override;
63 OutputSpec output_spec(const OutputSpec& input) const override;
64
66 const SimaRenderOptions& options() const {
67 return opt_;
68 }
69
70private:
71 struct ConfigHolder;
72
74 std::shared_ptr<ConfigHolder> config_holder_;
75 std::string config_path_;
76};
77
78} // namespace simaai::neat
79
80namespace simaai::neat::nodes {
82std::shared_ptr<simaai::neat::Node> SimaRender(SimaRenderOptions opt = {});
83} // namespace simaai::neat::nodes

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.