23 lines
546 B
C++
23 lines
546 B
C++
#pragma once
|
|
|
|
#include <opencv2/core.hpp>
|
|
#include <cstdint>
|
|
#include <filesystem>
|
|
#include <optional>
|
|
#include <string>
|
|
|
|
namespace cms {
|
|
|
|
struct DoorMaskAnnotationOptions {
|
|
std::filesystem::path output_json;
|
|
std::filesystem::path reference_image;
|
|
bool overwrite{};
|
|
std::optional<std::string> source_video;
|
|
std::optional<std::int64_t> source_frame_index;
|
|
};
|
|
|
|
// Returns false when the user cancels without writing any annotation files.
|
|
bool annotateDoorMask(cv::Mat const& image, DoorMaskAnnotationOptions const& options);
|
|
|
|
}
|