forked from chili-epfl/attention-tracker
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #15 was caused by errors in using the `_debug` member variable, such as forgetting to wrap access to it in `#ifdef DEBUG`. A couple of build problems were discovered, when the `DEBUG` flag was either set or unset, resulting from such logical errors in the code. This issue has been resolved, and the code made a little cleaner, by refactoring the way detections are visualized. Instead of modifying `_debug` whenever facial features or head poses are detected, define member functions for drawing the most recent detections onto a copy of the original image. Detections can be visualized even when the flag to enable debug visualizations is not set, as in `show_head_pose.cpp`. Rename the flag so as not to conflate the meaning of `DEBUG`, which conventionally refers to *Debug* vs. *Release* compilation mode. One may want to compile the package in Release mode and still be able to visualize detections. NOTE: visualization of numeric IDs of facial features, as well as reprojected points has been commented out due to personal preference. Resolves #15.
- Loading branch information
1 parent
55f3f52
commit 2d82998
Showing
10 changed files
with
147 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.