ESP32 Camera demo & face recognition

게시자

It wasn't long ago that digital pictures were in their infancy. And even now, investing in an industrial vision system will set you back thousands of dollars. But you don't have to pay hundreds or thousands of dollars for a camera, processor, and Wi-Fi capabilities. You can obtain a basic vision system for under ten dollars in the form of an ESP32 camera: the ESP32-CAM.

Make no mistake; this device can't compete with a top-of-the-line Hasselblad camera or a hardened Cognex industrial vision system. However, the ESP32-CAM boasts the following impressive features:

  •  Included Wi-Fi
  •  Processor with speeds up to 240MHz
  •  2.0MP OV2640 image sensor

The system can stream images or video over Wi-Fi as well as perform face detection and face ID, all via a demo program included with the drivers.

So, what's the catch? Why isn't the ESP32-CAM everywhere? Well, the system is quite new and—perhaps owing in part to its newness—the initial setup can be tricky. Notably, the ESP32-CAM doesn't have a USB port, so you'll need to be able to program it with an FTDI cable. In my case, loading a program onto the device took a fair amount of hacking and research. I'll walk you through the process, which will hopefully help you avoid frustration and progress to processing video faster.

Initial Software Setup: ESP32 Cam Arduino IDE

Body-Image 1-ESP32-Camera-demo

Follow these steps to set up the software:

    1. If you have the Arduino IDE setup, you'll need to install the ESP32 add-on package using these steps:
  •  Navigate to File - Preferences
  •  Enter https://dl.espressif.com/dl/package_esp32_index.json in the "Additional Boards Manager URLs" field, using a comma to separate the URL from any other text in the field.

  • 2. Select OK, then navigate to Tools - Board – Boards Manager and search for ESP32.

    3. Select ESP32 and select "Install".

    4. Navigate to File – Examples – ESP32 – Camera – CameraWebServer to bring up the ESP32 web server example.

    5. Plug in your FTDI device (more information below).

    6. Select the appropriate port under Tools.

    7. Select the board as ESP32 Wrover Module, and set the partition scheme as Huge APP (3mb No OTA/1MB SPIFFS).

    8. In the example sketch, comment out the line: #define CAMERA_MODEL_WROVER_KIT by putting a pair of forward slashes before it.

    9. Uncomment the last camera line to: #define CAMERA_MODEL_AI_THINKER to select the camera setup you'll be using.

    10. Below that text, input your Wi-Fi SSID and password in place of the existing asterisks (*), then save your customized file under a different name.

최신 뉴스

Sorry, your filter selection returned no results.

개인정보 보호정책이 업데이트되었습니다. 잠시 시간을 내어 변경사항을 검토하시기 바랍니다. 동의를 클릭하면 Arrow Electronics 개인정보 보호정책 및 이용 조건에 동의하는 것입니다.

당사의 웹사이트에서는 사용자의 경험 향상과 사이트 개선을 위해 사용자의 기기에 쿠키를 저장합니다. 당사에서 사용하는 쿠키 및 쿠키 비활성화 방법에 대해 자세히 알아보십시오. 쿠키와 추적 기술은 마케팅 목적으로 사용될 수 있습니다. '동의'를 클릭하면 기기에 쿠키를 배치하고 추적 기술을 사용하는 데 동의하는 것입니다. 쿠키 및 추적 기술을 해제하는 방법에 대한 자세한 내용과 지침을 알아보려면 아래의 '자세히 알아보기'를 클릭하십시오. 쿠키 및 추적 기술 수락은 사용자의 자발적 선택이지만, 웹사이트가 제대로 작동하지 않을 수 있으며 사용자와 관련이 적은 광고가 표시될 수 있습니다. Arrow는 사용자의 개인정보를 존중합니다. 여기에서 당사의 개인정보 보호정책을 읽을 수 있습니다.