File tree Expand file tree Collapse file tree 2 files changed +124
-163
lines changed
content/hardware/06.nicla/boards/nicla-vision/tutorials Expand file tree Collapse file tree 2 files changed +124
-163
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ def start_streaming(s):
148
148
while True :
149
149
clock.tick() # Track elapsed milliseconds between snapshots().
150
150
frame = sensor.snapshot()
151
- cframe = frame.compressed (quality = 35 )
151
+ cframe = frame.to_jpeg (quality = 35 , copy = True )
152
152
header = (
153
153
" \r\n --openmv\r\n "
154
154
" Content-Type: image/jpeg\r\n "
@@ -273,7 +273,7 @@ def start_streaming(s):
273
273
while True :
274
274
clock.tick() # Track elapsed milliseconds between snapshots().
275
275
frame = sensor.snapshot()
276
- cframe = frame.compressed (quality = 35 )
276
+ cframe = frame.to_jpeg (quality = 35 , copy = True )
277
277
header = (
278
278
" \r\n --openmv\r\n "
279
279
" Content-Type: image/jpeg\r\n "
You can’t perform that action at this time.
0 commit comments