23#include <nlohmann/json.hpp>
25#include <smartspectra/container/foreground_container.hpp>
26#include <smartspectra/container/settings.hpp>
27#include <mediapipe/framework/port/opencv_core_inc.h>
31namespace presage::smartspectra::lab {
34 platform_independence::DeviceType TDeviceType,
35 container::settings::OperationMode TOperationMode,
36 container::settings::IntegrationMode TIntegrationMode
42 explicit PreprocessingForegroundContainer(SettingsType settings);
44 std::function<absl::Status(
const nlohmann::json&, int64_t input_timestamp)> OnPreprocessedDataOutput =
45 [](
const nlohmann::json&, int64_t input_timestamp){
return absl::OkStatus(); };
47 absl::Status DrawDebugOverlays(cv::Mat& output_frame_bgr);
63 std::optional<cv::Size> transformed_size;
66template<container::settings::OperationMode TOperationMode>
67using CpuRestPreprocessingForegroundContainer =
69 platform_independence::DeviceType::Cpu,
71 container::settings::IntegrationMode::Rest
Convenience container with a built-in video source and optional GUI.
Definition foreground_container.hpp:46
Definition output_stream_poller_wrapper.hpp:33
Definition preprocessing_foreground_container.hpp:38
absl::Status HandleOutputData(int64_t frame_timestamp) override
Definition preprocessing_foreground_container_impl.hpp:76
std::string GetGraphFilePrefix() const override
Definition preprocessing_foreground_container_impl.hpp:114
std::string GetThirdGraphFileSuffix() const override
Definition preprocessing_foreground_container_impl.hpp:104
absl::Status InitializeOutputDataPollers() override
Definition preprocessing_foreground_container_impl.hpp:51
Definition settings.hpp:136