Skip to main content

CircuitPython driver for OV2640 cameras

Project description

Introduction

Documentation Status Discord Build Status Code Style: Ruff

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

adafruit_circuitpython_ov2640-1.2.10.tar.gz (36.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

adafruit_circuitpython_ov2640-1.2.10-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file adafruit_circuitpython_ov2640-1.2.10.tar.gz.

File metadata

File hashes

Hashes for adafruit_circuitpython_ov2640-1.2.10.tar.gz
Algorithm Hash digest
SHA256 1e1e24cac9d598421f379d733e42fa4d42dd44670cf5b1dd3e5eec30f2afb602
MD5 bab376d9474cb0c6b1550351e6f7fda2
BLAKE2b-256 f2b28d857051d12f18e9492ede33a7bda9f9e5fedd32b1e9fb2156bc78ecc67b

See more details on using hashes here.

File details

Details for the file adafruit_circuitpython_ov2640-1.2.10-py3-none-any.whl.

File metadata

File hashes

Hashes for adafruit_circuitpython_ov2640-1.2.10-py3-none-any.whl
Algorithm Hash digest
SHA256 d3c005d75ffb484cb7f168b1456262ae9be8cb5f3d7deb5bc2f756417874596c
MD5 6efbf86acd7f6edfcda6fa6c02e3bb56
BLAKE2b-256 c3c4254f1531a6cbea60f6504f53cc18a55341faa2f0d21901295b668cd2194f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page