Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b58a203

Browse files
[PC-1957] Nicla Vision - Update Tutorial examples to work OpenMV (#2205)
* microphone fixed * SPI Fixed * I2C fixed * BLE fixed * Live Stream ex fixed * pin macros updated * tables format
1 parent 9116281 commit b58a203

File tree

2 files changed

+124
-163
lines changed
  • content/hardware/06.nicla/boards/nicla-vision/tutorials

2 files changed

+124
-163
lines changed

‎content/hardware/06.nicla/boards/nicla-vision/tutorials/live-streaming/content.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def start_streaming(s):
148148
while True:
149149
clock.tick() # Track elapsed milliseconds between snapshots().
150150
frame = sensor.snapshot()
151-
cframe = frame.compressed(quality=35)
151+
cframe = frame.to_jpeg(quality=35, copy=True)
152152
header = (
153153
"\r\n--openmv\r\n"
154154
"Content-Type: image/jpeg\r\n"
@@ -273,7 +273,7 @@ def start_streaming(s):
273273
while True:
274274
clock.tick() # Track elapsed milliseconds between snapshots().
275275
frame = sensor.snapshot()
276-
cframe = frame.compressed(quality=35)
276+
cframe = frame.to_jpeg(quality=35, copy=True)
277277
header = (
278278
"\r\n--openmv\r\n"
279279
"Content-Type: image/jpeg\r\n"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /