文章目录
前言
之前我将爱智官方的代码移植到了 arduino 上,详细可见arduino 天下第一(暴论) – 智能猫眼与 SDDC 连接器移植到 arduino 上
在这过程中我踩了一些坑,在这里和大家分享一下。
arduino 操作接口
arduino 官方提供demo已经封装很好了,只用调用一个函数就能完成拍摄上传等一系列操作,但是如果这个接口不符合我们的需求,就只能自己同时改改了。
通过下面的连接可以看到 ESP32-CAM 底层的东西一些接口
https://github.com/espressif/arduino-esp32/releases/tag/2.0.2
或者你已经安装了 ESP32-CAM 相关库后可以去:
C:\Users\123456\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\tools\sdk\include\esp32-camera
可以看到一个 esp_camera.h 文件,里面有一些可以用到的接口和结构体。
/**
* @brief Data structure of camera frame buffer
*/
typedef struct {
uint8_t * buf; /*!< Pointer to the pixel data */ // 这就是摄像头拍下来的数据
size_t len; /*!< Length of the buffer in bytes */
size_t width; /*!< Width of the buffer in pixels */
size_t height; /*!< Height of the buffer in pixels */
pixformat_t format; /*!< Format of the pixel data */
struct timeval timestamp; /*!< Timestamp since boot of the fir

最低0.47元/天 解锁文章
4596

被折叠的 条评论
为什么被折叠?



