37 #include <opencv2/opencv.hpp>
38 #include <opencv2/highgui/highgui.hpp>
40 #include "cavapa/cavapa.h"
48 using CalibrationPoint = calibration_point;
49 using CameraSettings = camera;
50 using CavapaDetector = detector;
51 using Sighting = sighting;
52 using Sightings = sightings;
68 enum class SourceType { CAMERA, NOTHING, STREAM, VIDEO, VIDEOSET };
77 enum class ErrorLevel : int { INFO = 1, WARNING = 2, CRITICAL = 3 };
97 return static_cast<int>(a) & static_cast<int>(b);
108 return static_cast<EXPORT_FLAGS>(
static_cast<int>(a) | static_cast<int>(b));
130 static inline bool isNaN(
double value)
132 return value != value;
315 "The size of the structure members is not correct.");
351 static const FrameCapture EMPTY_FRAME_CAPTURE = {0,0,cv::Mat()};
352 static const FrameStats EMPTY_FRAME_STATS = {0,0,0};
353 static const SourceStats EMPTY_SOURCE_STATS = {0,0,0,0};
362 #define DISALLOW_COPY_AND_ASSIGN(f) \
363 f(const f&) = delete; \
365 f& operator =(const f&) = delete; \
366 f& operator =(f&&) = delete
FrameTime start
The period's start point.
Definition: common.h:208
FrameFlags
Parameter type to hold frame specific flags.
Definition: common.h:266
The structure holds the properties of a single marker on the graph.
Definition: common.h:145
Structure for holding frame statistics on activity.
Definition: common.h:285
unsigned int total_recorded
The total number of the frames recorded in all video files.
Definition: common.h:347
unsigned int SourceID
Used to indicate unique source ID-numbers.
Definition: common.h:229
const SourceID UNDEFINED_SOURCE
Used to indicate unknown sources.
Definition: common.h:234
cv::Mat image
The actual frame image.
Definition: common.h:256
std::vector< Marker > markers
The markers for the export.
Definition: common.h:203
FrameTime time
The calculation time of the frame.
Definition: common.h:291
unsigned int recorded
The frames recorded to the current video file.
Definition: common.h:337
EXPORT_FLAGS
The flags that are used for exporting the results.
Definition: common.h:83
FrameTime pos
The position of the marker.
Definition: common.h:155
FrameTime stop
The period's stop point.
Definition: common.h:213
float activity
The total activity on the frame.
Definition: common.h:298
The structure to hold statistics about the source performance.
Definition: common.h:327
FrameTime interval
The interval to be averaged in milliseconds.
Definition: common.h:198
std::string text
The text of the marker.
Definition: common.h:160
bool active
Defines if the marker is active or not.
Definition: common.h:150
int time_offset
The offset change for each marker time in seconds.
Definition: common.h:218
SourceType
Available source types are the following ones: CAMERA = hardware or network camera, NOTHING = not a working source, STREAM = network stream, VIDEO = video file and VIDEOSET = set of multiple files.
Definition: common.h:68
std::uint64_t FrameTime
Used to store milliseconds interval in frame times.
Definition: common.h:138
The structure is used for storing a single source frame.
Definition: common.h:241
unsigned int missed
The total number of the missed frames.
Definition: common.h:332
bool operator<(const Marker &str) const
Operator for sorting by time with std::sort.
Definition: common.h:168
EXPORT_FLAGS flags
The flags for export.
Definition: common.h:193
The structure holds CSV export options.
Definition: common.h:183
FrameTime time
The time of the frame.
Definition: common.h:251
float count
The number of detected sightings on the frame.
Definition: common.h:303
std::string filename
The export filename with full path.
Definition: common.h:188
unsigned int retrieved
The total number of the frames retrieved from the source.
Definition: common.h:342
const int UNKNOWN_DEVICE
Used to indicate unknown hardware device.
Definition: common.h:224
SourceID id
The source ID number.
Definition: common.h:246
ErrorLevel
Error level indicator.
Definition: common.h:77