(self, *args, **kwargs)
| 480 | icon = "data:image/png;base64,"+base64.b64encode( cv2.imencode('.png', cv2.bitwise_not(cv2.threshold(cv2.cvtColor(sample_icon_data, cv2.COLOR_BGR2GRAY),130,255,cv2.THRESH_BINARY)[1]) )[1] ).decode("utf-8") |
| 481 | |
| 482 | def __init__(self, *args, **kwargs): |
| 483 | super(OpencvBitwiseNot, self).__init__("", *args, **kwargs) |
| 484 | |
| 485 | def on_new_image_listener(self, emitter): |
| 486 | try: |