Skip to main content

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.

Metadata

Release files for adafruit-circuitpython-ov2640 1.2.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adafruit-circuitpython-ov2640 1.2.11
File Size Uploaded
adafruit_circuitpython_ov2640-1.2.11.tar.gz 36.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for adafruit-circuitpython-ov2640 1.2.11
File Interpreter ABI Platform
adafruit_circuitpython_ov2640-1.2.11-py3-none-any.whl Python 3 none any Details

Total release size: 47.0 kB

Release files / adafruit_circuitpython_ov2640-1.2.11.tar.gz

Download URL adafruit_circuitpython_ov2640-1.2.11.tar.gz
Size 36.1 kB
Tags Source
SHA-256 checksum
How to use checksums
14946a0ecdd52e0e8ef47fbf3a14b5bc58e6b746faf0547d7ee1b62b314e01e1
BLAKE2b-256 checksum
How to use checksums
66a317da5ff856d1e8853a052634fa5918d79b3b59743eb67773818bc448bed4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / adafruit_circuitpython_ov2640-1.2.11-py3-none-any.whl

Download URL adafruit_circuitpython_ov2640-1.2.11-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
82c8b7259611600c0c59b3c25fed5b5de183c7d44aa5773fa61df200d176ce5f
BLAKE2b-256 checksum
How to use checksums
20fcb52281c5413d3b45dbe425a2954c31dfa5fed8ce687d1b9b6a61676d366b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release history Release notifications | RSS feed

This release

1.2.11 This release

2 release files

1.2.10

2 release files

1.2.9

2 release files

1.2.8

2 release files

1.2.7

2 release files

1.2.6

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.11

2 release files

1.1.10

2 release files

1.1.9

2 release files

1.1.8

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page