Skip to content

Commit adce7ed

Browse files
Show count
1 parent 9658184 commit adce7ed

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

internal_filesystem/apps/com.example.camtest/assets/camtest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,10 @@ def init_cam():
209209

210210
if cam or use_webcam:
211211
build_ui()
212+
count=0
212213
while appscreen == lv.screen_active() and keepgoing is True:
214+
print(f"capture nr {count}")
215+
count += 1
213216
try_capture()
214217
time.sleep_ms(100) # Allow for the MicroPython REPL to still work. Reducing it doesn't seem to affect the on-display FPS.
215218
print("App backgrounded, deinitializing camera...")

webcam_test/webcam_capture.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ int main() {
185185
return -1;
186186
}
187187

188-
if (capture_frames(100) < 0) {
188+
if (capture_frames(1000) < 0) {
189189
printf("Frame capture failed\n");
190190
deinit_webcam();
191191
return -1;

0 commit comments

Comments
 (0)