Overview
With a QuecPython development board paired with a camera module, developers can easily implement code scanning (QR code/barcode recognition) and photo capture functions, which are applicable to scenarios such as smart access control, industrial inspection, and mobile payment.
Core Features
Minimalist Development Experience: No need to write underlying drivers, complete photo capture with just 3 lines of code.
Plug and Play: Supports common camera modules (such as GC032A).
Cross-platform Compatibility: Code can be ported to other QuecPython development boards that support camera functions.
Working Mode
Note: The LCD must be initialized before using the camera function.
For the LCD initialization program, please refer to: https://github.com/QuecPython/QuecPython_lib_bundles/tree/master/libraries/LCD
Camera Preview
Create Camera Preview Object
For parameter details, please refer to camera.camPreview.
Enable Camera Preview Function
This method is used to turn on the preview function of the camera.
Disable Camera Preview Function
This method is used to turn off the preview function of the camera.
For API details, please refer to camPreview.close.
Sample Code
Camera Code Scanning
Create Camera Code Scanning Object
For parameter details, please refer to camera.camScandecode.
Enable Camera Code Scanning Function
This method is used to enable the code scanning function of the camera.
For API details, please refer to camScandecode.start.
Sample Code
Camera Photo Capture
Create Camera Photo Capture Object
For parameter details, please refer to camera.camCapture.
Enable Camera Photo Capture Function
This method is used to enable the photo capture function of the camera.
Start Photo Capture
This method is used to start photo capture and save the image file.
Note: There is a typo camCapture in the original text, the standard API name is camCapture.









Top comments (0)