Skip to content

Instantly share code, notes, and snippets.

@stevenjlm
Last active December 17, 2019 04:43
Show Gist options
  • Select an option

  • Save stevenjlm/c913a0f8fcb2d156236b9b9ce48dc34f to your computer and use it in GitHub Desktop.

Select an option

Save stevenjlm/c913a0f8fcb2d156236b9b9ce48dc34f to your computer and use it in GitHub Desktop.
mini-vision image fade
""" 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