rmcv
v0.1.0
A library for RoboMaster computer vision based on OpenCV.
|
5 #ifndef RMCV_OBJDETECT_H
6 #define RMCV_OBJDETECT_H
21 bool MatchLightBlob(
const rm::Contour &contour,
float minRatio,
float maxRatio,
float tiltAngle,
float minArea,
22 float maxArea, cv::RotatedRect &lightBlobBox,
bool fitEllipse =
true);
34 void FindLightBlobs(std::vector<rm::Contour> &contours, std::vector<rm::LightBlob> &lightBlobs,
float minRatio,
35 float maxRatio,
float tiltAngle,
float minArea,
float maxArea,
const cv::Mat &source,
36 bool fitEllipse =
true);
48 void FindLightBlobs(std::vector<rm::Contour> &contours, std::vector<rm::LightBlob> &lightBlobs,
float minRatio,
49 float maxRatio,
float tiltAngle,
float minArea,
float maxArea, rm::CampType camp,
50 bool fitEllipse =
true);
56 int FindGuidLight(
const std::vector<rm::LightBlob> &lightBlobs,
const cv::Mat &source);
63 bool LightBlobOverlap(std::vector<rm::LightBlob> &lightBlobs,
int leftIndex,
int rightIndex);
78 void FindArmour(std::vector<rm::LightBlob> &lightBlobs, std::vector<rm::Armour> &armours,
float maxAngleDif,
79 float errAngle,
float minBoxRatio,
float maxBoxRatio,
float lenRatio, rm::CampType enemy,
83 #endif //RMCV_OBJDETECT_H
void FindLightBlobs(std::vector< rm::Contour > &contours, std::vector< rm::LightBlob > &lightBlobs, float minRatio, float maxRatio, float tiltAngle, float minArea, float maxArea, const cv::Mat &source, bool fitEllipse=true)
Definition: objdetect.cpp:28
int FindGuidLight(const std::vector< rm::LightBlob > &lightBlobs, const cv::Mat &source)
Main modules.
Definition: daheng.h:17
bool MatchLightBlob(const rm::Contour &contour, float minRatio, float maxRatio, float tiltAngle, float minArea, float maxArea, cv::RotatedRect &lightBlobBox, bool fitEllipse=true)
Definition: objdetect.cpp:8
bool LightBlobOverlap(std::vector< rm::LightBlob > &lightBlobs, int leftIndex, int rightIndex)
Definition: objdetect.cpp:62
void FindArmour(std::vector< rm::LightBlob > &lightBlobs, std::vector< rm::Armour > &armours, float maxAngleDif, float errAngle, float minBoxRatio, float maxBoxRatio, float lenRatio, rm::CampType enemy, bool filter=true)
Definition: objdetect.cpp:82