HalfdanJ / ofxFaceTracker2

Landmark detection addon for openFrameworks using DLIB
Other
209 stars 60 forks source link

Add initialization of 'imageDirty' #20

Closed musiko closed 6 years ago

musiko commented 7 years ago

Add initialization of 'imageDirty' to avoid OpenCV assertion error in threaded function.

If 'imageDirty' is not initialized, its initial value will sometime be true. Thread function may run runFaceDetector() before ofxFaceTracker2::update() is called, causing OpenCV assertion error since the input cv:Mat is null.