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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for adafruit_circuitpython_ov7670-1.1.8.tar.gz
Algorithm Hash digest
SHA256 5e40b3e64681cfc834ea50d36e65c47bc4c8e655b544dd13af9d88683910e62d
MD5 c7b906bbad1a617cb560fd4c3e03a270
BLAKE2b-256 0299cd3164085979c16835943649506801d912e28662dec49f5e165be9e4dd9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adafruit_circuitpython_ov7670-1.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 45b3cb10ff7deb6ac5804d3b46a6b64f4658e5f7fca55f8fa4a4422f06fa68a0
MD5 9b0824fcd36af862f9688e196b6751db
BLAKE2b-256 0da85d38b4c439ef167a48b72ec4014a1045cbbb2a5fa9ee3b4cfdf39dbafc0b

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