Skip to content

Commit a548e37

Browse files
committed
Remove references to boot.py from examples
1 parent 8502bf8 commit a548e37

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

examples/ex01_hello_opencv.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,11 @@
4040
# Once we have an image ready to show, just call `cv2.imshow()`, almost like any
4141
# other Python environment! However, there is one important difference:
4242
#
43-
# Standard OpenCV leverages the host operating system to display images in
44-
# windows, but we don't have that luxury in MicroPython. So there is an API
45-
# change to `cv2.imshow()` to accommodate this: instead of passing a window name
46-
# string as the first argument to `cv2.imshow()`, we pass a display driver. Any
43+
# Standard OpenCV takes a window name string in `cv2.imshow()`, which is used
44+
# to display the image in a window. We don't have windows in MicroPython, so
45+
# there is an API change where the first argument must be a display driver. Any
4746
# display driver can be used, as long as it implements an `imshow()` method that
4847
# takes a NumPy array as input
49-
#
50-
# This example assumes a display driver called `display` has been initialized by
51-
# a `boot.py` script. See the example `boot.py` script for more details
5248
cv2.imshow(display, img) # Can alternatively call `display.imshow(img)`
5349

5450
# Standard OpenCV requires a call to `cv2.waitKey()` to process events and

examples/ex02_camera.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
# so a camera driver is required instead. Any camera driver can be used, as long
1010
# as it implements the same methods as the standard OpenCV `cv2.VideoCapture`
1111
# class, such as `open()`, `read()`, and `release()`
12-
#
13-
# This example assumes a camera driver called `camera` has been initialized by a
14-
# `boot.py` script. See the example `boot.py` script for more details
1512
camera.open()
1613

1714
# Prompt the user to press a key to continue

0 commit comments

Comments
 (0)