26 bool isProcessing =
false;
28 bool newFrame =
false;
29 bool err_frame =
false;
30 int frame_counter = 0;
33 std::thread procThread;
34 void processingThreadLoop();
37 cv::Mat preprocess_image(cv::Mat &image);
39 cv::Mat flatten_card(
qCard &
qCard, cv::Mat &image);
Generic abstract Callback Interface class.
Definition: CallbackLinker.h:20
Class to implement detection method from Card Rank ROIs. Can be adapted for other solutions such as m...
Definition: CardDiscriminator.h:125
Class for the detection of cards. Runs the processing pipeline.
Definition: DetectCard.h:24
void registerCallback(CallbackLinker *cb)
Register a Callback for the DetectCard Class.
Definition: DetectCard.cpp:435
DetectCard(cv::String folder_path)
Construct a new Detect Card:: Detect Card object.
Definition: DetectCard.cpp:474
void unregisterCallback()
Unregister existing callback.
Definition: DetectCard.cpp:443
void startProcessing()
Method call to start the Processing Thread.
Definition: DetectCard.cpp:451
void nextCallback(AcePlaysUtils &callbackData)
Implement the nextCallback virtual method to pass information down the pipeline.
Definition: DetectCard.cpp:423
~DetectCard()
Destroy the Detect Card:: Detect Card object.
Definition: DetectCard.cpp:482
void stopProcessing()
Method call to stop the Processing Thread.
Definition: DetectCard.cpp:461
Utility structure used by the AcePlays repo for passing necessary information down the processing pip...
Definition: Card.h:80
Structure holding the parameters of all detected card shapes in a frame, such as their position in th...
Definition: Card.h:52
Structure to store information about single card in the camera image.
Definition: Card.h:93