We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81f7cb1 commit be7d810Copy full SHA for be7d810
cv2_drivers/displays/cv2_display.py
@@ -82,6 +82,8 @@ def _write_image_to_buffer_bgr565(self, image_roi, buffer_roi):
82
if ch == 1: # Grayscale
83
buffer_roi = cv2.cvtColor(image_roi, cv2.COLOR_GRAY2BGR565, buffer_roi)
84
elif ch == 2: # Already in BGR565 format
85
+ # For some reason, this is relatively slow and creates a new buffer:
86
+ # https://github.com/v923z/micropython-ulab/issues/726
87
buffer_roi[:] = image_roi
88
elif ch == 3: # BGR
89
buffer_roi = cv2.cvtColor(image_roi, cv2.COLOR_BGR2BGR565, buffer_roi)
0 commit comments