1. 开发板介绍: https://www.espressif.com.cn/zh-hans/products/devkits/esp-eye/overview
2. ESP32-EYE代码库及环境搭建:https://github.com/espressif/esp-who/blob/master/docs/zh_CN/get-started/ESP-EYE_Getting_Started_Guide.md
3. ESP-IDF环境搭建:https://docs.espressif.com/projects/esp-idf/zh_CN/release-v4.4/esp32/get-started/index.html#esp-idf
注意选择ESP32-EYE工程对应的IDF版本,这里根据文档说明选择v4.4。拉取完IDF后记得执行 ./install.sh 然后 . ./export.sh
4. 编译:进入ESP-EYE的example目录,注意里面很多子目录,进入最里面的一个例子,然后执行 idf.py build即可编译。过一会儿就显示编译成功了。然后可以下载测试。
[1128/1129] Generating binary image from built executable
esptool.py v3.3.4-dev
Creating esp32 image...
Merged 25 ELF sections
Successfully created esp32 image.
Generated /home/user1/coding/esp-who/examples/human_face_detection/web/build/human_face_detection_web.bin
[1129/1129] cd /home/user1/coding/esp-who/examples/human_face_de...s/human_face_detection/web/build/human_face_detection_web.bin
human_face_detection_web.bin binary size 0x1858e0 bytes. Smallest app partition is 0x3c0000 bytes. 0x23a720 bytes (59%) free.Project build complete. To flash, run this command:
/home/user1/.espressif/python_env/idf4.4_py3.8_env/bin/python ../../../esp-idf/components/esptool_py/esptool/esptool.py -p (PORT) -b 460800 --before default_reset --after hard_reset --chip esp32 write_flash --flash_mode dio --flash_size detect --flash_freq 80m 0x1000 build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin 0x10000 build/human_face_detection_web.bin
or run 'idf.py -p (PORT) flash'