Introduction
============
.. image:: https://readthedocs.org/projects/adafruit-circuitpython-ov2640/badge/?version=latest
:target: https://docs.circuitpython.org/projects/ov2640/en/latest/
:alt: Documentation Status
.. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/badges/adafruit_discord.svg
:target: https://adafru.it/discord
:alt: Discord
.. image:: https://github.com/adafruit/Adafruit_CircuitPython_OV2640/workflows/Build%20CI/badge.svg
:target: https://github.com/adafruit/Adafruit_CircuitPython_OV2640/actions
:alt: Build Status
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black
:alt: Code Style: Black
CircuitPython driver for OV2640 Camera.
This driver is designed to work directly with the OV2640 camera module through an 18-pin header.
It does not work with products such as ArduCam which process the camera data themselves.
Dependencies
=============
This driver depends on:
* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_
* `Bus Device <https://github.com/adafruit/Adafruit_CircuitPython_BusDevice>`_
Please ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloading
`the Adafruit library and driver bundle <https://circuitpython.org/libraries>`_
or individual libraries can be installed using
`circup <https://github.com/adafruit/circup>`_.
* `ESP32-S2 Kaluga Dev Kit featuring ESP32-S2 WROVER <https://www.adafruit.com/product/4729>`_
Usage Example
=============
Using the ESP32-S2 Kaluga Dev Kit and its included camera, capture a 160x120 image into a buffer:
.. code-block:: python3
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)
Documentation
=============
API documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/ov2640/en/latest/>`_.
For information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.
Contributing
============
Contributions are welcome! Please read our `Code of Conduct
<https://github.com/adafruit/Adafruit_CircuitPython_OV2640/blob/main/CODE_OF_CONDUCT.md>`_
before contributing to help this project stay welcoming.
Raw data
{
"_id": null,
"home_page": null,
"name": "adafruit-circuitpython-ov2640",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "adafruit, ov2640, camera, breakout, hardware, micropythoncircuitpython",
"author": null,
"author_email": "Adafruit Industries <circuitpython@adafruit.com>",
"download_url": "https://files.pythonhosted.org/packages/4f/03/90966ce22b15ef267f7424f67e8ff117d5792669a294034e3bff0183b004/adafruit_circuitpython_ov2640-1.2.3.tar.gz",
"platform": null,
"description": "Introduction\n============\n\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-ov2640/badge/?version=latest\n :target: https://docs.circuitpython.org/projects/ov2640/en/latest/\n :alt: Documentation Status\n\n\n.. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/badges/adafruit_discord.svg\n :target: https://adafru.it/discord\n :alt: Discord\n\n\n.. image:: https://github.com/adafruit/Adafruit_CircuitPython_OV2640/workflows/Build%20CI/badge.svg\n :target: https://github.com/adafruit/Adafruit_CircuitPython_OV2640/actions\n :alt: Build Status\n\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n :target: https://github.com/psf/black\n :alt: Code Style: Black\n\nCircuitPython driver for OV2640 Camera.\n\nThis driver is designed to work directly with the OV2640 camera module through an 18-pin header.\nIt does not work with products such as ArduCam which process the camera data themselves.\n\nDependencies\n=============\nThis driver depends on:\n\n* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_\n* `Bus Device <https://github.com/adafruit/Adafruit_CircuitPython_BusDevice>`_\n\nPlease ensure all dependencies are available on the CircuitPython filesystem.\nThis is easily achieved by downloading\n`the Adafruit library and driver bundle <https://circuitpython.org/libraries>`_\nor individual libraries can be installed using\n`circup <https://github.com/adafruit/circup>`_.\n\n\n* `ESP32-S2 Kaluga Dev Kit featuring ESP32-S2 WROVER <https://www.adafruit.com/product/4729>`_\n\n\n\nUsage Example\n=============\n\nUsing the ESP32-S2 Kaluga Dev Kit and its included camera, capture a 160x120 image into a buffer:\n\n.. code-block:: python3\n\n import board\n from adafruit_ov2640 import OV2640, OV2640_SIZE_QQVGA\n\n bus = busio.I2C(scl=board.CAMERA_SIOC, sda=board.CAMERA_SIOD)\n cam = OV2640(\n bus,\n data_pins=board.CAMERA_DATA,\n clock=board.CAMERA_PCLK,\n vsync=board.CAMERA_VSYNC,\n href=board.CAMERA_HREF,\n mclk=board.CAMERA_XCLK,\n size=OV2640_SIZE_QQVGA,\n )\n buf = bytearray(2 * cam.width * cam.height)\n\n cam.capture(buf)\n\n\nDocumentation\n=============\n\nAPI documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/ov2640/en/latest/>`_.\n\nFor information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.\n\nContributing\n============\n\nContributions are welcome! Please read our `Code of Conduct\n<https://github.com/adafruit/Adafruit_CircuitPython_OV2640/blob/main/CODE_OF_CONDUCT.md>`_\nbefore contributing to help this project stay welcoming.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "CircuitPython driver for OV2640 cameras",
"version": "1.2.3",
"project_urls": {
"Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_OV2640"
},
"split_keywords": [
"adafruit",
" ov2640",
" camera",
" breakout",
" hardware",
" micropythoncircuitpython"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b3644b52216e1084cba6aa8de391fb0a99745d601ed7f92a1698694a625e81af",
"md5": "7f406d30279d0599d0cab833c7c5d9e0",
"sha256": "d34b6992967d985f0166ddb22450b6228eb54b5d0858a286ffa590e9dd49d637"
},
"downloads": -1,
"filename": "adafruit_circuitpython_ov2640-1.2.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7f406d30279d0599d0cab833c7c5d9e0",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 10987,
"upload_time": "2024-12-23T15:40:57",
"upload_time_iso_8601": "2024-12-23T15:40:57.095046Z",
"url": "https://files.pythonhosted.org/packages/b3/64/4b52216e1084cba6aa8de391fb0a99745d601ed7f92a1698694a625e81af/adafruit_circuitpython_ov2640-1.2.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4f0390966ce22b15ef267f7424f67e8ff117d5792669a294034e3bff0183b004",
"md5": "f99cf3f2e1e24bff075b3bed4177c464",
"sha256": "5da579176346bceba6b42eaa56c58bf19d4911101635d5a7c2ae642b3da3f4b6"
},
"downloads": -1,
"filename": "adafruit_circuitpython_ov2640-1.2.3.tar.gz",
"has_sig": false,
"md5_digest": "f99cf3f2e1e24bff075b3bed4177c464",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 39416,
"upload_time": "2024-12-23T15:40:59",
"upload_time_iso_8601": "2024-12-23T15:40:59.397371Z",
"url": "https://files.pythonhosted.org/packages/4f/03/90966ce22b15ef267f7424f67e8ff117d5792669a294034e3bff0183b004/adafruit_circuitpython_ov2640-1.2.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-23 15:40:59",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "adafruit",
"github_project": "Adafruit_CircuitPython_OV2640",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "Adafruit-Blinka",
"specs": []
},
{
"name": "adafruit-circuitpython-busdevice",
"specs": []
}
],
"lcname": "adafruit-circuitpython-ov2640"
}