CircuitPython driver for OV2640 cameras
Project description
Introduction
CircuitPython driver for OV2640 Camera.
This driver is designed to work directly with the OV2640 camera module through an 18-pin header. It does not work with products such as ArduCam which process the camera data themselves.
Dependencies
This driver depends on:
Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle or individual libraries can be installed using circup.
Usage Example
Using the ESP32-S2 Kaluga Dev Kit and its included camera, capture a 160x120 image into a buffer:
import board
from adafruit_ov2640 import OV2640, OV2640_SIZE_QQVGA
bus = busio.I2C(scl=board.CAMERA_SIOC, sda=board.CAMERA_SIOD)
cam = OV2640(
bus,
data_pins=board.CAMERA_DATA,
clock=board.CAMERA_PCLK,
vsync=board.CAMERA_VSYNC,
href=board.CAMERA_HREF,
mclk=board.CAMERA_XCLK,
size=OV2640_SIZE_QQVGA,
)
buf = bytearray(2 * cam.width * cam.height)
cam.capture(buf)
Documentation
API documentation for this library can be found on Read the Docs.
For information on building library documentation, please check out this guide.
Contributing
Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file adafruit_circuitpython_ov2640-1.2.2.tar.gz
.
File metadata
- Download URL: adafruit_circuitpython_ov2640-1.2.2.tar.gz
- Upload date:
- Size: 39.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d0132c64b12beb8a08e3d2b55bd964cde438afaedbd95edb7b3824d67810ef9 |
|
MD5 | 0ebe74d7df32c4a8cc4d1bbb62fdf330 |
|
BLAKE2b-256 | 77537d2f6cd94f0bc083b41b337e0aa2ef45480be37c55f7dc6c2fc9c454a6d8 |
File details
Details for the file adafruit_circuitpython_ov2640-1.2.2-py3-none-any.whl
.
File metadata
- Download URL: adafruit_circuitpython_ov2640-1.2.2-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb6b8b6eabdeb4c3d7978fef931fe0f5892f43b3ed503564cef60be11dfba695 |
|
MD5 | 28ae979ef7c109cedba0b3597d62a72b |
|
BLAKE2b-256 | 5072488113db4a5adbe8e3788767f4ebb9470e6c766aefb54a48e14fd401c9c6 |