June 2019
Intermediate to advanced
348 pages
8h 28m
English
In the preceding subsection, we set up the basis of our new application, Facetious, by removing the video saving and motion detecting features from the Gazer application. We also placed some stubs of photo taking in a new application. In this subsection, we will complete the photo taking feature.
Compared to the video recording feature, photo taking is much simpler. First, in the capture_thread.h header file, we add a field and many methods to the CaptureThread class:
public: // ... void takePhoto() {taking_photo = true; } // ... signals: // ... void photoTaken(QString name); private: void takePhoto(cv::Mat &frame); private: // ... // take photos bool taking_photo;
The bool taking_photo field is the flag that indicates whether ...
Read now
Unlock full access