|
Namespaces | |
strats | |
Classes | |
class | AbstractPlaybackStrategy |
class | AbstractRecordingStrategy |
Abstract interface of a recording strategy. More... | |
class | AbstractSequencedRecordingStrategy |
An object of this class behaves likee a normal recording, but is in fact a sequence of images. More... | |
struct | RegistryEntry |
Typedefs | |
using | Playback = std::shared_ptr< visionx::imrec::AbstractPlaybackStrategy > |
Convenience alias for an instance of any playback strategy. More... | |
using | Recording = std::shared_ptr< AbstractRecordingStrategy > |
Convenience alias for any recording strategy. More... | |
Enumerations | |
enum | Compression { lossy, lossless } |
enum | Format { bmp_img_seq, png_img_seq, png_fast_img_seq, png_mt_img_seq, png_fast_mt_img_seq, jpg_img_seq, avi_default, mp4_default } |
Supported recording Formats. More... | |
enum | Framerate { static_fps, dynamic_fps } |
Functions | |
void | convert (const CByteImage &in, cv::Mat &out) |
Converts an IVT CByteImage to OpenCV's BGR Mat. More... | |
void | convert (const cv::Mat &in, CByteImage &out) |
Converts an OpenCV BGR Mat to IVT's CByteImage. More... | |
void | convert_rgb2cbi (const cv::Mat &in, CByteImage &out) |
Converts an OpenCV RGB Mat to IVT's CByteImage. More... | |
std::string | datetime_to_string (std::chrono::microseconds ts) |
const std::string & | format2hrstr (const Format format) |
const std::string & | format2str (const Format format) |
void | from_json (const nlohmann::json &j, ChannelConfig &cc) |
void | from_json (const nlohmann::json &j, Config &c) |
std::vector< Format > | getFormats () |
std::map< Format, RegistryEntry > | getFormatsMap () |
bool | isFormatDynamicFramerate (Format format) |
bool | isFormatLossless (Format format) |
visionx::imrec::Playback | newPlayback (const std::filesystem::path &path) |
Instantiates and returns a new playback strategy which is capable of replaying the file or collection at path. More... | |
visionx::imrec::Recording | newRecording (const std::filesystem::path &filePath, double fps) |
Creates a new recording given the file extension and additional parameters. More... | |
visionx::imrec::Recording | newRecording (const std::filesystem::path &path, const std::string &name, const Format format, double fps) |
Format | str2format (const std::string &format_str) |
void | takeSnapshot (const CByteImage &image, const std::filesystem::path &filePath) |
Takes a snapshot using the default recording method for snapshots. More... | |
void | takeSnapshot (const cv::Mat &image, const std::filesystem::path &filePath) |
Takes a snapshot using the default recording method for snapshots. More... | |
std::string | timestamp_to_string (std::chrono::microseconds ts) |
void | to_json (nlohmann::json &j, const ChannelConfig &cc) |
void | to_json (nlohmann::json &j, const Config &c) |
using Playback = std::shared_ptr<visionx::imrec::AbstractPlaybackStrategy> |
Convenience alias for an instance of any playback strategy.
Definition at line 48 of file AbstractPlaybackStrategy.h.
using Recording = std::shared_ptr<AbstractRecordingStrategy> |
Convenience alias for any recording strategy.
Definition at line 181 of file AbstractRecordingStrategy.h.
|
strong |
Enumerator | |
---|---|
lossy | |
lossless |
Definition at line 75 of file public_api.h.
|
strong |
Supported recording Formats.
Enumerator | |
---|---|
bmp_img_seq | |
png_img_seq | |
png_fast_img_seq | |
png_mt_img_seq | |
png_fast_mt_img_seq | |
jpg_img_seq | |
avi_default | |
mp4_default |
Definition at line 55 of file public_api.h.
|
strong |
Enumerator | |
---|---|
static_fps | |
dynamic_fps |
Definition at line 68 of file public_api.h.
void convert | ( | const CByteImage & | in, |
cv::Mat & | out | ||
) |
Converts an IVT CByteImage to OpenCV's BGR Mat.
in | CByteImage |
out | Output parameter |
Definition at line 41 of file helper.cpp.
void convert | ( | const cv::Mat & | in, |
CByteImage & | out | ||
) |
Converts an OpenCV BGR Mat to IVT's CByteImage.
in | cv::Mat with BGR format |
out | Output parameter |
Definition at line 54 of file helper.cpp.
void convert_rgb2cbi | ( | const cv::Mat & | in, |
CByteImage & | out | ||
) |
Converts an OpenCV RGB Mat to IVT's CByteImage.
in | cv::Mat with RGB format |
out | Output parameter |
Definition at line 65 of file helper.cpp.
std::string datetime_to_string | ( | std::chrono::microseconds | ts | ) |
const std::string & format2hrstr | ( | const Format | format | ) |
const std::string & format2str | ( | const Format | format | ) |
Definition at line 145 of file public_api.cpp.
void visionx::imrec::from_json | ( | const nlohmann::json & | j, |
ChannelConfig & | cc | ||
) |
Definition at line 48 of file json_conversions.h.
void visionx::imrec::from_json | ( | const nlohmann::json & | j, |
Config & | c | ||
) |
Definition at line 67 of file json_conversions.h.
std::vector< visionx::imrec::Format > getFormats | ( | ) |
std::map< visionx::imrec::Format, visionx::imrec::RegistryEntry > getFormatsMap | ( | ) |
Definition at line 184 of file public_api.cpp.
bool isFormatDynamicFramerate | ( | Format | format | ) |
Definition at line 198 of file public_api.cpp.
bool isFormatLossless | ( | Format | format | ) |
Definition at line 191 of file public_api.cpp.
visionx::imrec::Playback newPlayback | ( | const std::filesystem::path & | path | ) |
Instantiates and returns a new playback strategy which is capable of replaying the file or collection at path.
path | Path to the recording file or collection (folder, glob, ...) |
Definition at line 205 of file public_api.cpp.
visionx::imrec::Recording newRecording | ( | const std::filesystem::path & | filePath, |
double | fps | ||
) |
Creates a new recording given the file extension and additional parameters.
filePath | Path to where the recording file should be written to |
fps | Amount of frames being recorded per second |
Definition at line 269 of file public_api.cpp.
visionx::imrec::Recording newRecording | ( | const std::filesystem::path & | path, |
const std::string & | name, | ||
const Format | format, | ||
double | fps | ||
) |
visionx::imrec::Format str2format | ( | const std::string & | format_str | ) |
void takeSnapshot | ( | const CByteImage & | image, |
const std::filesystem::path & | filePath | ||
) |
Takes a snapshot using the default recording method for snapshots.
filePath | Path to where the recording file should be written to |
image | The image to be saved |
Definition at line 307 of file public_api.cpp.
void takeSnapshot | ( | const cv::Mat & | image, |
const std::filesystem::path & | filePath | ||
) |
Takes a snapshot using the default recording method for snapshots.
filePath | Path to where the recording file should be written to |
image | The image to be saved |
Definition at line 314 of file public_api.cpp.
std::string timestamp_to_string | ( | std::chrono::microseconds | ts | ) |
void visionx::imrec::to_json | ( | nlohmann::json & | j, |
const ChannelConfig & | cc | ||
) |
Definition at line 37 of file json_conversions.h.
void visionx::imrec::to_json | ( | nlohmann::json & | j, |
const Config & | c | ||
) |
Definition at line 56 of file json_conversions.h.