Skip to main content

CircuitPython driver for OV2640 cameras

Project description

Introduction

Documentation Status Discord Build Status Code Style: Black

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.1.7.tar.gz (40.7 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file adafruit-circuitpython-ov2640-1.1.7.tar.gz.

File metadata

File hashes

Hashes for adafruit-circuitpython-ov2640-1.1.7.tar.gz
Algorithm Hash digest
SHA256 d46d416c8d1ad2839cc559ebf458fb7904d9d3c886b0a24221a02123977cfe68
MD5 522dea18c3fbc44d8411d7d53b09fc1c
BLAKE2b-256 78d99ae5605fe02a1fd2a40e88da1689c02c371596a6257d0e1310c9f2013202

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adafruit_circuitpython_ov2640-1.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 04fb4e5725e01a81c82eef10103afdc8d9731b0982b660ce7eac95677c183957
MD5 c9ac2d1af1b829a88cd28204d0e00b88
BLAKE2b-256 dc372b3f41a4296ffa5d477c6c06dbb640df04346605a66a278ca4dc8d2416a2

See more details on using hashes here.

Supported by

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