camera module
- camera.camera_close()
Cleanup the current camera instance.
See also
camera_open camera_open_at_res camera_open_device
- camera.camera_load_config(name)
Loads the config file specified by name. The system will look for the config in the base path.
- Parameters:
name (str) – The configuration to load. Configuration file names are case sensitive.
- Returns:
1 on success, 0 on failure.
- Return type:
int
See also
set_camera_config_base_path
- camera.camera_open()
Opens the default system camera for use at LOW_RES (160x120).
- Returns:
1 on success, 0 on failure
- Return type:
int
See also
camera_open_at_res camera_open_device camera_close
- camera.camera_open_at_res(res)
Opens the default system camera for use at a given resolution.
- Parameters:
res (Resolution) – The resolution the camera should operate at. This can be: LOW_RES (160x120) MED_RES (320x240) HIGH_RES (640x480) TELLO_RES (1280x720)
- Returns:
1 on success, 0 on failure
- Return type:
int
Warning
Only LOW_RES is currently supported. The function will fail for other resolutions.
See also
camera_open camera_open_device camera_close