Skip to content

Commit f3d8c11

Browse files
committed
Add note to Example 2 about large/small images
1 parent 9599677 commit f3d8c11

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/ex02_imread_imwrite.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
# Note - only BMP and PNG formats are currently supported in MicroPython OpenCV
1212
img = cv2.imread("test_images/sparkfun_logo.png")
1313

14-
# Show the image for a moment
14+
# Show the image for 1 second
15+
#
16+
# Note - If the image is larger or smaller than the display, the behavior will
17+
# depend on the display driver. For example, the default ST7789 display driver
18+
# will crop large images, and show small images in the top-left corner
1519
cv2.imshow(display, img)
1620
key = cv2.waitKey(1000)
1721

0 commit comments

Comments
 (0)