Lane and Object Detection
Using OpenCV and YOLOv7
Loading...
Searching...
No Matches
Information.hpp
1#pragma once
2
3#include <string>
4#include <vector>
5
6#include <opencv2/core/mat.hpp>
7#include <opencv2/core/types.hpp>
8
14{
19 {
24 {
28 cv::Rect m_boundingBox;
29
34
38 std::string m_objectName;
39 };
40
44 std::vector<DetectedObjectInformation> m_objectInformation;
45 };
46
51 {
55 cv::Mat m_roiFrame;
56
60 cv::Mat m_cannyFrame;
61
66
70 std::vector<cv::Point> m_laneOverlayCorners;
71
76
81 };
82
98
103 {
107 std::string m_debugModeText;
108
113
117 std::string m_saveOutputText;
118
123
128 };
129}
Contains all Lane-and-Object-Detection objects.
The information needed by FrameBuilder to update frame with lane detection information.
cv::Mat m_cannyFrame
The frame containing the edges detected by the Canny algorithm.
std::string m_drivingStateTitle
The current driving state title.
cv::Mat m_roiFrame
The initial region-of-interest frame.
cv::Mat m_houghLinesFrame
The frame contains the lines detected by the Hough transform.
std::vector< cv::Point > m_laneOverlayCorners
The co-ordinate points that outline the current lane.
std::string m_drivingStateSubTitle
Either the lane line information or turning state depending upon the current driving state.
The information needed by FrameBuilder to update frame with object detection information.
std::vector< DetectedObjectInformation > m_objectInformation
The list of detected objects for the current frame.
The information needed by FrameBuilder to update frame with performance information.
double m_averageFramesPerSecond
The average number of frames per second.
double m_currentFramesPerSecond
The current number of frames per second.
The information needed by FrameBuilder to update frame with video manager information.
std::string m_saveOutputElapsedTime
The time that has elapsed since starting to save the output video stream locally.
std::string m_saveOutputText
Text to display whether or not the program is recording the output.
bool m_saveOutput
Whether the output video stream should be saved locally.
std::string m_debugModeText
Text to display whether or not the program is in debug mode.