|
|
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 47 of file AbstractPlaybackStrategy.h.
| using Recording = std::shared_ptr<AbstractRecordingStrategy> |
Convenience alias for any recording strategy.
Definition at line 179 of file AbstractRecordingStrategy.h.
|
strong |
| Enumerator | |
|---|---|
| lossy | |
| lossless | |
Definition at line 73 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 53 of file public_api.h.
|
strong |
| Enumerator | |
|---|---|
| static_fps | |
| dynamic_fps | |
Definition at line 66 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 40 of file helper.cpp.
Here is the caller graph for this function:| 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.
Here is the call graph for this function:| 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 64 of file helper.cpp.
Here is the caller graph for this function:| 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 109 of file public_api.cpp.
| void visionx::imrec::from_json | ( | const nlohmann::json & | j, |
| ChannelConfig & | cc | ||
| ) |
Definition at line 45 of file json_conversions.h.
| void visionx::imrec::from_json | ( | const nlohmann::json & | j, |
| Config & | c | ||
| ) |
Definition at line 63 of file json_conversions.h.
| std::vector< visionx::imrec::Format > getFormats | ( | ) |
| std::map< visionx::imrec::Format, visionx::imrec::RegistryEntry > getFormatsMap | ( | ) |
Definition at line 144 of file public_api.cpp.
| bool isFormatDynamicFramerate | ( | Format | format | ) |
Definition at line 156 of file public_api.cpp.
| bool isFormatLossless | ( | Format | format | ) |
Definition at line 150 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 162 of file public_api.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| 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 230 of file public_api.cpp.
Here is the call graph for this function:| 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 267 of file public_api.cpp.
Here is the caller graph for this function:| 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 273 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 38 of file json_conversions.h.
| void visionx::imrec::to_json | ( | nlohmann::json & | j, |
| const Config & | c | ||
| ) |
Definition at line 54 of file json_conversions.h.