Skip to main content

CircuitPython driver for OV7670 cameras

Project description

Introduction

Documentation Status Discord Build Status Code Style: Black

CircuitPython driver for OV7670 cameras

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

On an Adafruit Metro M4 Grand Central, capture a 40x30 image into a buffer:

import board
from adafruit_ov7670 import OV7670

cam = OV7670(
    bus,
    data_pins=[board.PCC_D0, board.PCC_D1, board.PCC_D2, board.PCC_D3, board.PCC_D4, board.PCC_D5, board.PCC_D6, board.PCC_D7],
    clock=board.PCC_CLK,
    vsync=board.PCC_DEN1,
    href=board.PCC_DEN2,
    mclk=board.D29,
    shutdown=board.D39,
    reset=board.D38,
)
cam.size = OV7670_SIZE_DIV16

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-ov7670-1.0.12.tar.gz (35.1 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file adafruit-circuitpython-ov7670-1.0.12.tar.gz.

File metadata

File hashes

Hashes for adafruit-circuitpython-ov7670-1.0.12.tar.gz
Algorithm Hash digest
SHA256 f70560a4b9a825d77a8f12e17b850c6cfedac1f3bfa168423c05c46966f085e5
MD5 bd8928d80ed2f29b1dee46b6398c2593
BLAKE2b-256 46c13d810fcf0351bde15d782fe8a89c381dfaef28427bcdfbac9d3cc283e872

See more details on using hashes here.

Provenance

File details

Details for the file adafruit_circuitpython_ov7670-1.0.12-py3-none-any.whl.

File metadata

File hashes

Hashes for adafruit_circuitpython_ov7670-1.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 92b27a95f20f11543927d995dee20846ef3ffc03dacc5e712d5741f1928bada8
MD5 94c3dbb26d330edd45f765234c219856
BLAKE2b-256 a8645d6985c1048ebbb65c9ba7c77c523d9571fb1ca1eb0b070b39e817c5c2bb

See more details on using hashes here.

Provenance

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