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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for adafruit_circuitpython_ov7670-1.1.7.tar.gz
Algorithm Hash digest
SHA256 5ba55e71bfaabbf386c5efe8e39563a0a500ed714fe7751771a236143735ed8b
MD5 394e847548b766c3c7cd82a375b37659
BLAKE2b-256 a24f187116476a07dfc7667b870341e1b35b8d1f52c8bc571026ae4bc1a5245f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adafruit_circuitpython_ov7670-1.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 3e0c26d183e2aa4575fd68fbc378b008e8acb6db03c16d8862d840637d2acf27
MD5 a94345cd613afeac54dc53d42bacefc2
BLAKE2b-256 e59354afb16016e730fb7453ae43b21f07b2a3e8b5fa34db5b2bba59a51de163

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