当前位置:   article > 正文

esp32 cam vscode 网页查看摄像头视频_vscode 打开esp32s3摄像头

vscode 打开esp32s3摄像头

1、书接上回,建立工程后,开始搭建摄像头例程

在这里插入图片描述
使用这个板子测试,官方的板子。BOARD_ESP32CAM_AITHINKER

1、下载esp32组件:
csdn链接:https://download.csdn.net/download/weixin_37663721/85981142
github:https://github.com/espressif/esp-who

2、把下面的文件拷贝到新建的工程里面,template-app是新建的工程
在这里插入图片描述
在这里插入图片描述
3、更改template-app/CMakeLists.txt,添加如下内容

set(EXTRA_COMPONENT_DIRS components)
  • 1

在这里插入图片描述

4、重命名template-app/main/main.c为main.cpp
在这里插入图片描述
5、更改template-app/main/CMakeLists.txt,把main.c更改为main.cpp
在这里插入图片描述
6、复制以下代码到template-app/main/main.cpp

#include <esp_log.h>
#include <esp_system.h>
#include <nvs_flash.h>
#include <sys/param.h>
#include <string.h>

#include "app_wifi.h"
#include "app_httpd.hpp"
#include "app_mdns.h"

#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"
#include "freertos/semphr.h"

// support IDF 5.x
#ifndef portTICK_RATE_MS
#define portTICK_RATE_MS portTICK_PERIOD_MS
#endif

#include "esp_camera.h"

#define BOARD_ESP32CAM_AITHINKER 1

// WROVER-KIT PIN Map
#ifdef
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小蓝xlanll/article/detail/471125
推荐阅读
相关标签
  

闽ICP备14008679号