Introduce in detail how to realize two-dimensional code recognition based on ESP32 -- with source code

equipment components

For this code to work, you need the following components:

  • this repository. It contains submodules, so make sure to --recursiveclone it with options. If you've already cloned it without cloning --recursive, run git submodule update --init.
  • ESP32 module
  • camera module
  • PC with esp-idf

camera selection

This example has been tested with OV7725 and ov2640 camera modules. Use this if this is your first experience with interfacing a microcontroller with a camera.

Other OV7xxx series should also work with a few changes to the camera configuration code. OV5xxx can also work, but it is recommended to choose one that supports RGB or YUV 8-bit wide output bus. The ones that only output 10 bits of raw data can be a bit hard to work with. Also choose a camera that can output reduced (QVGA or VGA) images. Using a larger framebuffer will require external SPI RAM.

Ai-Thinker CAM Board

Ai-Thinker launched a camera board. The board contains camera interface, TF card and ESP32 with psram. This is a very small module. The size of the board is 40mm*26mm*4mm. You can plug a camera into the board. We will sell this board on our Taobao .

Guess you like

Origin blog.csdn.net/tianqiquan/article/details/132432412