Thanks to visit codestin.com
Credit goes to github.com

Skip to content

adafruit/Adafruit_CircuitPython_OV2640

 
 

Repository files navigation

Introduction

Documentation Status Discord Build Status Code Style: Black

CircuitPython driver for OV2640 Camera.

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)

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

Documentation

For information on building library documentation, please check out this guide.

About

CircuitPython driver for OV2640 cameras

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages