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
13
namespace
LaneAndObjectDetection
14
{
18
struct
ObjectDetectionInformation
19
{
23
struct
DetectedObjectInformation
24
{
28
cv::Rect
m_boundingBox
;
29
33
cv::Scalar
m_boundingBoxColour
;
34
38
std::string
m_objectName
;
39
};
40
44
std::vector<DetectedObjectInformation>
m_objectInformation
;
45
};
46
50
struct
LaneDetectionInformation
51
{
55
cv::Mat
m_roiFrame
;
56
60
cv::Mat
m_cannyFrame
;
61
65
cv::Mat
m_houghLinesFrame
;
66
70
std::vector<cv::Point>
m_laneOverlayCorners
;
71
75
std::string
m_drivingStateTitle
;
76
80
std::string
m_drivingStateSubTitle
;
81
};
82
86
struct
PerformanceInformation
87
{
91
double
m_averageFramesPerSecond
;
92
96
double
m_currentFramesPerSecond
;
97
};
98
102
struct
VideoManagerInformation
103
{
107
std::string
m_debugModeText
;
108
112
std::string
m_saveOutputElapsedTime
;
113
117
std::string
m_saveOutputText
;
118
122
bool
m_debugMode
;
123
127
bool
m_saveOutput
;
128
};
129
}
LaneAndObjectDetection
Contains all Lane-and-Object-Detection objects.
LaneAndObjectDetection::LaneDetectionInformation
The information needed by FrameBuilder to update frame with lane detection information.
Definition
Information.hpp:51
LaneAndObjectDetection::LaneDetectionInformation::m_cannyFrame
cv::Mat m_cannyFrame
The frame containing the edges detected by the Canny algorithm.
Definition
Information.hpp:60
LaneAndObjectDetection::LaneDetectionInformation::m_drivingStateTitle
std::string m_drivingStateTitle
The current driving state title.
Definition
Information.hpp:75
LaneAndObjectDetection::LaneDetectionInformation::m_roiFrame
cv::Mat m_roiFrame
The initial region-of-interest frame.
Definition
Information.hpp:55
LaneAndObjectDetection::LaneDetectionInformation::m_houghLinesFrame
cv::Mat m_houghLinesFrame
The frame contains the lines detected by the Hough transform.
Definition
Information.hpp:65
LaneAndObjectDetection::LaneDetectionInformation::m_laneOverlayCorners
std::vector< cv::Point > m_laneOverlayCorners
The co-ordinate points that outline the current lane.
Definition
Information.hpp:70
LaneAndObjectDetection::LaneDetectionInformation::m_drivingStateSubTitle
std::string m_drivingStateSubTitle
Either the lane line information or turning state depending upon the current driving state.
Definition
Information.hpp:80
LaneAndObjectDetection::ObjectDetectionInformation::DetectedObjectInformation
The properties of a single detected object.
Definition
Information.hpp:24
LaneAndObjectDetection::ObjectDetectionInformation::DetectedObjectInformation::m_boundingBoxColour
cv::Scalar m_boundingBoxColour
The bounding box colour.
Definition
Information.hpp:33
LaneAndObjectDetection::ObjectDetectionInformation::DetectedObjectInformation::m_objectName
std::string m_objectName
The name of the detected object.
Definition
Information.hpp:38
LaneAndObjectDetection::ObjectDetectionInformation::DetectedObjectInformation::m_boundingBox
cv::Rect m_boundingBox
The bounding box of the detected object.
Definition
Information.hpp:28
LaneAndObjectDetection::ObjectDetectionInformation
The information needed by FrameBuilder to update frame with object detection information.
Definition
Information.hpp:19
LaneAndObjectDetection::ObjectDetectionInformation::m_objectInformation
std::vector< DetectedObjectInformation > m_objectInformation
The list of detected objects for the current frame.
Definition
Information.hpp:44
LaneAndObjectDetection::PerformanceInformation
The information needed by FrameBuilder to update frame with performance information.
Definition
Information.hpp:87
LaneAndObjectDetection::PerformanceInformation::m_averageFramesPerSecond
double m_averageFramesPerSecond
The average number of frames per second.
Definition
Information.hpp:91
LaneAndObjectDetection::PerformanceInformation::m_currentFramesPerSecond
double m_currentFramesPerSecond
The current number of frames per second.
Definition
Information.hpp:96
LaneAndObjectDetection::VideoManagerInformation
The information needed by FrameBuilder to update frame with video manager information.
Definition
Information.hpp:103
LaneAndObjectDetection::VideoManagerInformation::m_saveOutputElapsedTime
std::string m_saveOutputElapsedTime
The time that has elapsed since starting to save the output video stream locally.
Definition
Information.hpp:112
LaneAndObjectDetection::VideoManagerInformation::m_saveOutputText
std::string m_saveOutputText
Text to display whether or not the program is recording the output.
Definition
Information.hpp:117
LaneAndObjectDetection::VideoManagerInformation::m_saveOutput
bool m_saveOutput
Whether the output video stream should be saved locally.
Definition
Information.hpp:127
LaneAndObjectDetection::VideoManagerInformation::m_debugMode
bool m_debugMode
Whether in debug mode.
Definition
Information.hpp:122
LaneAndObjectDetection::VideoManagerInformation::m_debugModeText
std::string m_debugModeText
Text to display whether or not the program is in debug mode.
Definition
Information.hpp:107
include
helpers
Information.hpp
Generated on
for Lane and Object Detection by
1.14.0