Last active
December 17, 2019 04:43
-
-
Save stevenjlm/c913a0f8fcb2d156236b9b9ce48dc34f to your computer and use it in GitHub Desktop.
mini-vision image fade
This file contains hidden or 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
| """ Fade detection """ | |
| class Fade(VisionTask): | |
| def run(self, system): | |
| log.info("Testing for image fade") | |
| log.info(system.image_gray.shape) | |
| mn = np.amin(system.image_gray) | |
| if mn > 30.0: | |
| system.full_caption += system.tools.cv_comms['fade'] | |
| return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment