Skip to main content

CircuitPython driver for OV7670 cameras

Project description

Introduction

Documentation Status Discord Build Status Code Style: Ruff

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.1.9.tar.gz (31.7 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_ov7670-1.1.9-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file adafruit_circuitpython_ov7670-1.1.9.tar.gz.

File metadata

File hashes

Hashes for adafruit_circuitpython_ov7670-1.1.9.tar.gz
Algorithm Hash digest
SHA256 5440c69a668ed1719d3452a947621c641de48e344ad874625caff30bea372750
MD5 de464789f42b2cd5ac8df4eefc316a91
BLAKE2b-256 4c1fee1a9259e820ee080fe90cea97f45e9e113aff97e48eaa0a4dfbea76c34f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adafruit_circuitpython_ov7670-1.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 ff0a28a7841c312a0afb385ef709b11e98d9185a696fe5d0ae43cbfb80d42cbb
MD5 25e0e802f3d5f24d8e2ac57f67442c4d
BLAKE2b-256 f7e8802e0715c8ecde3677b8d5ce7d78fb6730dc814985c522fa16e9a209d64a

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