Object Detection
5.0
Image Processing Using Qt and Opencv
|
this class is used to detect a a colored circle object(s) More...
Classes | |
class | _ObjectDetectionImpl |
Public Slots | |
void | setCirDetector (DetectCircle *cirDetector) |
ObjectDetection::setCirDetector sets the circleDetector. More... | |
void | setDiler (Dilate *diler) |
ObjectDetection::setDiler sets the dilate object. More... | |
void | setColDetector (DetectColor *colDetector) |
void | addFilter (PluginSharedPointer proc) |
ObjectDetection::addFilter adds a filter from a plugin. More... | |
std::vector< PluginSharedPointer > | getFilters () const |
void | setFilters (const std::vector< PluginSharedPointer > &value) |
Public Slots inherited from ImageProcessor::AbstractImageProcessor | |
virtual void | setDst (const cv::Mat &dst) |
sets The output of the operation More... | |
virtual void | setImg (const cv::Mat &img) |
Public Member Functions | |
ObjectDetection (QObject *parent=nullptr) | |
ObjectDetection::ObjectDetection. More... | |
Dilate * | getDiler () const |
ObjectDetection::getDiler. More... | |
DetectColor * | getColDetector () const |
ObjectDetection::getColDetector. More... | |
DetectCircle * | getCirDetector () const |
ObjectDetection::getCirDetector. More... | |
std::vector< cv::Vec3f > | getCircles () |
ObjectDetection::getCircles. More... | |
QVariant | getResults () const |
virtual QVariant | processImage () override |
Pure Virtual Function representes the operation to be done on the Image to be processed. More... | |
Public Member Functions inherited from ImageProcessor::AbstractImageProcessor | |
cv::Mat | getImg () const |
AbstractImageProcessor::getImg. More... | |
cv::Mat | getDst () const |
returns A cv::Mat Object which represents the output of the image processing operation More... | |
Protected Member Functions | |
void | setResults (QVariant res) |
cv::Mat | applyFilters (cv::Mat dst) const |
ObjectDetection::applyFilters applies filters to the image. More... | |
Protected Member Functions inherited from ImageProcessor::AbstractImageProcessor | |
AbstractImageProcessor (QObject *parent=nullptr) | |
accpets A pointer To the Parent Class For The Qt Meta-object Model See Qt Meta-Object More... | |
Additional Inherited Members | |
Signals inherited from ImageProcessor::AbstractImageProcessor | |
void | imageChanged (const cv::Mat &img) |
this Signal Is Emited When the source cv::Mat Object Changed. | |
void | dstChanged (const cv::Mat &img) |
this Signal Is Emited When the destnation cv::Mat Object Changed. example: More... | |
this class is used to detect a a colored circle object(s)
the class first thresholds the image to get the colored object using cv::threshold algorthim so you must supply a max and min colors as cv::Scalar using ImageProcessor::DetectColor after detecting color it applies a Morphological operation (dilation) using cv::Dilate algorthim and guassian blur to decrease the noise using cv::GuassianBlur using ImageProcssor::Dilate then applies filters using Plugins CircleDetectorPlugins::ImageProcessorPluginIFace then detect Circles using cv::HoughCircles ImageProcessor::DetectCircle
Definition at line 17 of file objectdetection.h.
|
explicit |
ObjectDetection::ObjectDetection.
parent |
Definition at line 9 of file objectdetection.cpp.
|
slot |
ObjectDetection::addFilter adds a filter from a plugin.
proc |
Definition at line 73 of file objectdetection.cpp.
|
protected |
ObjectDetection::applyFilters applies filters to the image.
cv::Excpetion |
dst |
Definition at line 104 of file objectdetection.cpp.
std::vector< Vec3f > ObjectDetection::getCircles | ( | ) |
Definition at line 42 of file objectdetection.cpp.
DetectCircle * ObjectDetection::getCirDetector | ( | ) | const |
ObjectDetection::getCirDetector.
Definition at line 34 of file objectdetection.cpp.
DetectColor * ObjectDetection::getColDetector | ( | ) | const |
ObjectDetection::getColDetector.
Definition at line 26 of file objectdetection.cpp.
Dilate * ObjectDetection::getDiler | ( | ) | const |
Definition at line 17 of file objectdetection.cpp.
|
overridevirtual |
Pure Virtual Function representes the operation to be done on the Image to be processed.
cv::Exception.not | garunteed to throw this exception |
Implements ImageProcessor::AbstractImageProcessor.
Definition at line 113 of file objectdetection.cpp.
|
slot |
ObjectDetection::setCirDetector sets the circleDetector.
cirDetector |
Definition at line 51 of file objectdetection.cpp.
|
slot |
ObjectDetection::setDiler sets the dilate object.
diler |
Definition at line 59 of file objectdetection.cpp.