File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 2323#define CAPTURE_HEIGHT 480
2424#define OUTPUT_WIDTH 240 // Resize to 240x240
2525#define OUTPUT_HEIGHT 240
26- #define NUM_BUFFERS 5 // Use 5 buffers, as it achieved 5 captures
27- #define QUEUE_RETRIES 5 // Number of retry attempts for queueing
26+ #define NUM_BUFFERS 3 // Use 5 buffers, as it achieved 5 captures
27+ #define QUEUE_RETRIES 3 // Number of retry attempts for queueing
2828#define QUEUE_RETRY_DELAY_US 100000 // 100ms delay between retries
2929
3030// Webcam object type
@@ -393,8 +393,11 @@ static const mp_rom_map_elem_t webcam_module_globals_table[] = {
393393 { MP_ROM_QSTR (MP_QSTR___name__ ), MP_ROM_QSTR (MP_QSTR_webcam ) },
394394 { MP_ROM_QSTR (MP_QSTR_init ), MP_ROM_PTR (& webcam_init_obj ) },
395395 { MP_ROM_QSTR (MP_QSTR_capture_grayscale ), MP_ROM_PTR (& webcam_capture_grayscale_obj ) },
396- { MP_ROM_QSTR (MP_QSTR_deinit ), MP_ROM_PTR / & webcam_deinit_obj ) },
396+ { MP_ROM_QSTR (MP_QSTR_deinit ), MP_ROM_PTR ( & webcam_deinit_obj ) },
397397};
398+
399+
400+
398401static MP_DEFINE_CONST_DICT (webcam_module_globals , webcam_module_globals_table ) ;
399402
400403// Webcam type definition
You can’t perform that action at this time.
0 commit comments