Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save stevenjlm/721b7d67c5e9bc31f416a6b303e91e4a to your computer and use it in GitHub Desktop.
mini-vision contrast
mean_s = np.mean(system.hsv[:,:,2])
std_s = np.std(system.hsv[:,:,2])
log.info("Mean and std value %f, %f" % (mean_s, std_s))
if std_s > 80.0:
system.full_caption += system.tools.cv_comms['new-contrast']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment