版本协议

CC-BY-NC-SA 3.0

标签
标准版
#第六届立创电赛#ESP_MASTER ESP32多功能开发板

创建时间:2年前

视频

  • 菜单.mp4

  • VID_20210824_184928_3.mp4

  • VID_20210824_184928_4.mp4

描述

<div class="document"> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">注:* 为必填项</p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><strong><span style="color: #0093e6;">请在报名阶段填写 ↓</span></strong></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p> <h3 class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">* 1、项目功能介绍</h3> <hr class="horizontal-splitline normal-bold-2"> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">本项目是以ESP32为核心,尽可能榨干其MCU的能力,打造一个多功能集合的综合性极强的小模块,功能包含:</span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;"> </span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">1、语音识别。将数字麦克风通过I2S连接到ESP32,经过esp-skainet离线语音识别,自定义语音命令词最大个数为 100</span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">2、物体识别、文字识别(车牌识别)。基于百度智能云,将摄像头获取的RGB图像转为JPG,经过base64和urlcode编码上传到百度云后获取识别结果来显示。</span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">3、颜色识别。可由摄像头获取的图像将RGB转为HSL判断每一个像素点,进行颜色块的识别,获取颜色块坐标。</span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">4、家电控制。可由语音设置空调类型,也可以在设置界面设置空调种类,当前支持格力、美的、海尔空调,空调码库由IREXT提供,码库存放在flash的spiffs分区中。</span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">5、LVGL。基于LVGL 7.6.0,10余个界面切换。</span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">6、ADC按键。在ESP32引脚极其不够的情况下,使用一个IO口,经过电阻分压可读取三个按键的状态。</span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">7、FFT频谱,将数字麦克风通过I2S连接到ESP32,经过软件fft获得频谱通过lvgl img显示。</span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">8、小游戏。移植2048和贪吃蛇游戏。</span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">9、每日鸡汤。进入每日鸡汤界面后,HTTP随机获取一句话显示。</span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/PyTXlQ84awSK7ZwM74l8M5aJh8IRnpnqxrFRd27N.png"><img src="//image.lceda.cn/pullimage/GhFcxogEehw7G6dbZCqVIsHQ3H6HPYpMbOYhb8UF.png"><img src="//image.lceda.cn/pullimage/nIgQQeUoIIp0QiL6Vq0Ph9MpOJGvEeaNB9rrUMnx.png"><img src="//image.lceda.cn/pullimage/GQl6d7FWffRk2p9PLkVecDVyVI9Q0mmwPwc6XDyo.png"><img src="//image.lceda.cn/pullimage/jMX2KzFvb3eWmXo7wN40yWwd6qMddLzl1FdqMPN1.png"><img src="//image.lceda.cn/pullimage/WP7K1hQw9JPD7Rfn7Bn02YtjCeqxItSGCwmDPQwp.png">  </p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p> <h3 class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">*2、项目属性</h3> <hr class="horizontal-splitline normal-bold-2"> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">首次公开,软硬件均为原创。</span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">注:请说明项目是否首次公开;项目是否为原创;项目是否曾经在其他比赛中获奖,若有获奖则叙述获奖详情;项目是否在学校参加过答辩。</span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p> <h3 class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">* 3、开源协议</h3> <hr class="horizontal-splitline normal-bold-2"> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">CC-BY-NC-SA 3.0</span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #e03e2d; font-size: 14px; background-color: #ecf0f1;">禁止将此项目放淘宝或者闲鱼上售卖!!</span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">注:利他即利己,请认真阅读下述内容。</span></p> <ol style="line-height: 1.8;"> <li class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-hanging-indent-1.6em" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">拥抱开源,赋予项目无限价值。建议项目核心功能开源80%以上;</span></li> <li class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-hanging-indent-1.6em" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">若某一部分功能不可替代且删掉之后项目无法解决对应的问题,则这一部分实现的功能就是项目的核心功能;比如设计了一台电子负载且设计了一款上位机软件监控功率变化,则电子负载为核心功能,上位机软件为辅助功能;比如电子负载中使用了一款隔离485模块与上位机通信,则此485模块实现的通讯功能为辅助功能;</span></li> <li class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-hanging-indent-1.6em" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">项目应选择适合自己的<span style="text-decoration: underline;"><a href="/posts/98fdb2accd754af7b51990790db3b47a" target="_blank">开源协议</a></span>,若项目引用其他开源项目,应注明来源并遵循原作者的开源协议规定;原创项目推荐使用GPL3.0开源协议;</span></li> <li class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-hanging-indent-1.6em" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">直接引用开源项目的原电路或原代码实现的功能不可作为自己项目的核心功能、使用市场上通用模块直接实现的功能不可作为自己项目的核心功能。</span></li> </ol> <p style="line-height: 1.8;"> </p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><strong><span style="color: #0093e6;">请在竞赛阶段填写 ↓</span></strong></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p> <h3 class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">*4、硬件部分</h3> <hr class="horizontal-splitline normal-bold-2"> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6;"><span style="font-size: 14px;">硬件部分采用了ESP32-WROVER模组内置 16Mb Flash +4Mb PSRAM</span></span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6;"><span style="font-size: 14px;">两个3528红外管</span></span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6;"><span style="font-size: 14px;">四个按键</span></span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6;"><span style="font-size: 14px;">一个数字麦克风 MSM261S4030H0高灵敏度数字硅麦芯片</span></span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6;"><span style="font-size: 14px;">一个显示屏 可用1.3寸ST7789 240*240或者1.54寸 ST7789 240*240</span></span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6;"><span style="font-size: 14px;">电源采用AP3410 可提供1.2A电流</span></span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6;"><span style="font-size: 14px;">24P FPC摄像头插座 可使用OV7725 OV2640 OV5640</span></span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6;"><span style="font-size: 14px;">串口转TTL 使用CP2104 </span></span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6;"><span style="font-size: 14px;">一个陀螺仪 MPU6050</span></span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6;"><span style="font-size: 14px;">原理图:</span></span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6;"><span style="font-size: 14px;"><img src="//image.lceda.cn/pullimage/QbKwUDAbnMJgRqfH4Bo0UxOBdgFuAB0UsZr1gf8h.png"></span></span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6;"><span style="font-size: 14px;">1.3寸PCB:</span></span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6;"><span style="font-size: 14px;"><img src="//image.lceda.cn/pullimage/BwYv7VNy31s0rjoV8aDnWgJdB09WLRI2461CdL3Z.png"><img src="//image.lceda.cn/pullimage/mQetWgWhykFw9nLuNi8flDdJt0BwNYhjj9PaQtl6.png"></span></span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6;"><span style="font-size: 14px;">1.5寸PCB:</span></span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6;"><span style="font-size: 14px;"><img src="//image.lceda.cn/pullimage/bwehIYIobfroxtckZdy8E9jqejVACETSUQo5NUFj.png"></span></span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6;"><span style="font-size: 14px;"><img src="//image.lceda.cn/pullimage/ez6kAk8sE5JctZkosuzzC1hzDoetu7GvK3Yx6PJ6.png"></span></span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">注:推荐使用<span style="text-decoration: underline;"><a href="https://lceda.cn/editor" target="_blank">立创EDA</a></span>。若选择其他EDA工具,请在附件上传PDF格式的原理图,PDF格式的PCB图纸,Gerber格式的PCB文件。这里可以详细说明您的项目实现原理和机制、注意事项、调试方法、测试方法等。推荐图文并茂的形式向别人介绍您的想法。</span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"> </p> <h3 class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">*5、软件部分</h3> <p>软件部分采用IDF 4.4开发</p> <p>主界面显示时间、天气、温度、日期、太空人小动画、B站粉丝和wifi连接情况,</p> <p>长按中键进入菜单选择按钮,菜单分别是</p> <p><img src="//image.lceda.cn/pullimage/QiVuiAZfvwSvi5lW5Sy9yGyTOhDEEbYLlw5xh9Yw.png"></p> <p>软件框图如下:</p> <p> </p> <p><img src="//image.lceda.cn/pullimage/4z6pwjEI8Ensl2ERBB0lCcpbpZDCxoepoDY8RRBx.png"></p> <p>语音识别和人脸识别采用乐鑫开源的库</p> <p>ESP32如何显示LVGL的外部flash字体</p> <p> </p> <p>生成字体文件<br>使用LvglFontTool 这个工具,生成类型勾选XBF字体,外部BIN文件</p> <p>会生成两个文件,一个myFont.c 和一个bin文件</p> <p>然后把bin文件放到spiffs分区 编译的时候会自动烧录到flash里面</p> <p>改动myFont.c以获取bin文件数据 第一次进入的时候初始化外部字体 读取spiffs文件到内存里</p> <p> </p> <p>#include "lvgl.h"<br>#include "stdio.h"<br>#include <stdlib.h><br>#include <string.h><br>#include "esp_system.h"</p> <p>#include "esp_vfs.h"<br>#include "esp_spiffs.h"</p> <p><br>typedef struct<br>{<br>    uint16_t min;<br>    uint16_t max;<br>    uint8_t bpp;<br>    uint8_t reserved[3];<br>} x_header_t;<br>typedef struct<br>{<br>    uint32_t pos;<br>} x_table_t;<br>typedef struct<br>{<br>    uint8_t adv_w;<br>    uint8_t box_w;<br>    uint8_t box_h;<br>    int8_t ofs_x;<br>    int8_t ofs_y;<br>    uint8_t r;<br>} glyph_dsc_t;</p> <p>static x_header_t __g_xbf_hd = {<br>    .min = 0x0020,<br>    .max = 0xff1a,<br>    .bpp = 4,<br>};<br>char *Font_buff = NULL;<br>// static uint8_t __g_font_buf[240]; //如bin文件存在SPI FLASH可使用此buff<br>static void init_font(void)<br>{<br>    FILE *ff = fopen("/spiffs/myFont.bin", "r");<br>    if (ff == NULL)<br>    {<br>        printf("Failed to open file for reading");<br>        return;<br>    }<br>    fseek(ff, 0, SEEK_END);<br>    long lSize = ftell(ff);<br>    rewind(ff);<br>    printf("Lsize %ld", lSize);<br>    static uint8_t first_in = 1;<br>    if (first_in == 1)<br>    {<br>        first_in = 0;<br>        Font_buff = (char *)malloc(sizeof(char) * lSize);<br>    }<br>    int br = fread(Font_buff, 1, lSize, ff);<br>    printf("Bytes read %d", br);<br>    fclose(ff);<br>}<br>static uint8_t *__user_font_getdata(int offset, int size)<br>{<br>    //如字模保存在SPI FLASH, SPIFLASH_Read(__g_font_buf,offset,size);<br>    //如字模已加载到SDRAM,直接返回偏移地址即可如:return (uint8_t*)(sdram_fontddr+offset);<br>    static uint8_t first_in = 1;<br>    if (first_in == 1)//第一次进入的时候初始化外部字体<br>    {<br>        first_in = 0;<br>        init_font();<br>    }<br>    return (uint8_t*)(Font_buff+offset);<br>    // return __g_font_buf;<br>}</p> <p>static const uint8_t *__user_font_get_bitmap(const lv_font_t *font, uint32_t unicode_letter)<br>{<br>    if (unicode_letter > __g_xbf_hd.max || unicode_letter < __g_xbf_hd.min)<br>    {<br>        return NULL;<br>    }<br>    uint32_t unicode_offset = sizeof(x_header_t) + (unicode_letter - __g_xbf_hd.min) * 4;<br>    uint32_t *p_pos = (uint32_t *)__user_font_getdata(unicode_offset, 4);<br>    if (p_pos[0] != 0)<br>    {<br>        uint32_t pos = p_pos[0];<br>        glyph_dsc_t *gdsc = (glyph_dsc_t *)__user_font_getdata(pos, sizeof(glyph_dsc_t));<br>        return __user_font_getdata(pos + sizeof(glyph_dsc_t), gdsc->box_w * gdsc->box_h * __g_xbf_hd.bpp / 8);<br>    }<br>    return NULL;<br>}</p> <p>static bool __user_font_get_glyph_dsc(const lv_font_t *font, lv_font_glyph_dsc_t *dsc_out, uint32_t unicode_letter, uint32_t unicode_letter_next)<br>{<br>    if (unicode_letter > __g_xbf_hd.max || unicode_letter < __g_xbf_hd.min)<br>    {<br>        return NULL;<br>    }<br>    uint32_t unicode_offset = sizeof(x_header_t) + (unicode_letter - __g_xbf_hd.min) * 4;<br>    uint32_t *p_pos = (uint32_t *)__user_font_getdata(unicode_offset, 4);<br>    if (p_pos[0] != 0)<br>    {<br>        glyph_dsc_t *gdsc = (glyph_dsc_t *)__user_font_getdata(p_pos[0], sizeof(glyph_dsc_t));<br>        dsc_out->adv_w = gdsc->adv_w;<br>        dsc_out->box_h = gdsc->box_h;<br>        dsc_out->box_w = gdsc->box_w;<br>        dsc_out->ofs_x = gdsc->ofs_x;<br>        dsc_out->ofs_y = gdsc->ofs_y;<br>        dsc_out->bpp = __g_xbf_hd.bpp;<br>        return true;<br>    }<br>    return false;<br>}</p> <p>//AliHYAiHei-Beta,,-1<br>//字模高度:24<br>//XBF字体,外部bin文件<br>lv_font_t myFont = {<br>    .get_glyph_bitmap = __user_font_get_bitmap,<br>    .get_glyph_dsc = __user_font_get_glyph_dsc,<br>    .line_height = 24,<br>    .base_line = 0,<br>};</p> <p><br>    LV_FONT_DECLARE(myFont);<br>    lv_obj_t *label = lv_label_create(obj, NULL);<br>    lv_obj_set_style_local_text_font(label, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, &myFont);</p> <p>对于物体和文字识别:</p> <p>首先要在百度智能云上获取token,然后把获取到的图像转为JPG格式,再通过base64编码和urlcode编码得到的数据以post的形式上传到百度进行识别,识别到结果后获取json数据进行解析和显示。</p> <p><img src="//image.lceda.cn/pullimage/AYDdaMdq8WWHGIe1P2yQ5jicLprAVRPhUFVpmoMm.png"></p> <p><img src="//image.lceda.cn/pullimage/TkBsz9FSP4KRJt1jeDeOQsPOKG3EGLnlmzoWMtvw.png"></p> <p><img src="//image.lceda.cn/pullimage/tRyeQjFy08pqVN2Z1kXc8IuJ80UOjvT4T0pztdNa.png"></p> <p>对于颜色识别:</p> <p><img src="//image.lceda.cn/pullimage/F4NutnlVeSWHJ6y3Gt3km3DdNfkgrcEwxsjkwF9g.png"></p> <p><img src="//image.lceda.cn/pullimage/can2tqvkU4mCCywTTmeA6ORahPVKvjf0EMSLrJad.png"></p> <p>将获取到的图像每一个像素点转换为HSL后腐蚀,搜索腐蚀中心,再从腐蚀中心向外腐蚀,得到新的腐蚀中心</p> <div> </div> <hr class="horizontal-splitline normal-bold-2"> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/kqnfwnwmRoYVHy32INsTO3lQYMu6T986TXtQLJDq.png"></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">注:若您的项目涉及软件开发,请在附件上传对应的工程源码。这里可以详细说明您的软件流程图、功能模块框图、相关算法的解释或科普、源码结构、编译环境的搭建和配置、源码编译方法、程序烧录方法等。推荐图文并茂的形式向别人介绍您的想法。</span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"> </p> <h3 class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">*6、BOM清单</h3> <hr class="horizontal-splitline normal-bold-2"> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/mlqPgdF6kpyxk3G8z1RXTm4yOY63IqOjQLIVK2Me.png"></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">注:项目涉及的BOM清单。这个位置请上传BOM的截图。清单详情请以PDF的格式上传到附件中。建议包括型号、品牌、名称、封装、采购渠道、用途等内容。具体内容和形式应以表达清楚项目构成为准。</span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p> <h3 class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">*7、大赛LOGO验证</h3> <hr class="horizontal-splitline normal-bold-2"> <p style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/n3VV6ueKq41JLpW3GBJ688pm8BYZBE50GwkYIxjD.png"></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">请上传包含大赛logo的项目图片,logo以丝印形式印刷在PCB上面。</span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">点击zip下载大赛logo标识! <span style="text-decoration: underline;"><a href="https://lceda.oss-cn-shenzhen.aliyuncs.com/diy/uploads/file/2019/05/29/0e4d93a463d7ceb5e7dc77d774b7a4ae.zip" target="_blank">(大赛标识).zip</a></span></span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p> <h3 class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">* 8、演示您的项目并录制成视频上传</h3> <hr class="horizontal-splitline normal-bold-2"> <p style="line-height: 1.8;"> </p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">视频要求:请横屏拍摄,分辨率不低于1280×720,格式Mp4/Mov,单个视频大小限100M内;</span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">视频标题:立创电赛:{项目名称}-{视频模块名称};如立创电赛:《自动驾驶》-团队介绍。</span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="font-size: 14px;">更多详情:<a href="/posts/06c94d90c2c447dfbd9ed7339ff4a5b1" target="_blank">https://diy.szlcsc.com/posts/06c94d90c2c447dfbd9ed7339ff4a5b1</a></span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p> </div>

文档

BOM

暂无

附件

附件名 下载
KS_ESP32_CAM.xlsx

评论(12)

  • 表情
    emoji
    小嘉工作篇
    小嘉日常篇
  • 图片
成功
工程所有者当前已关闭评论
zhangrupei 回复
<p>楼主有多余的硬件么,可以求购一套?终于遇到用ESP-IDF开发的了。</p>
tianqing 回复
<p>请问,如何帮你投票?</p><br/><p><br><br/><br></p>
Kevincoooool 回复
<p>@tianqing 我也不知道、、、</p>
Kevincoooool 回复
<p>@zhangrupei gerber文件在github</p>
Kevincoooool 回复
<p><br><br/><br><br/>B站视频:<a href="https://www.bilibili.com/video/BV1SM4y1V7Yb" target="_blank">https://www.bilibili.com/video/BV1SM4y1V7Yb</a><br><br/><br><br/><br><br/><br><br/>Github:<a href="https://github.com/Kevincoooool/ESP_MASTER" target="_blank">https://github.c</a><a href="https://github.com/Kevincoooool/ESP_MASTER" target="_blank">om/Kevincoooool/ESP_MASTER</a><br><br/><br><br/><br><br/><br><br/><br><br/><br><br/><br><br/><br><br/><br><br/><br><br/><br><br/><br></p>
Kevincoooool 回复
<p>@zhangrupei 过几天做一批</p>
Chai2008 回复
<p>这个项目开源吗?PCB文件在哪里呢?</p>
qingwa123 回复
<p>这个做的真好!</p>
立创电赛 回复
<p><span class="colour" style="color: rgb(83, 139, 215);">恭喜您在“航顺HK32MCU杯”第六届立创电子设计开源大赛获得优胜奖,更多详情见:</span><a href="https://diy.szlcsc.com/posts/2745c50726da4cbca856be6e52dd7383" target="_blank">https://diy.szlcsc.com/posts/2745c50726da4cbca856be6e52dd7383</a></p>
ElectrFan 回复
<p>666</p>
ElectrFan 回复
<p>666</p>
飞毛腿 回复
<p>666</p>
goToTop
svg-battery svg-battery-wifi svg-books svg-more svg-paste svg-pencil svg-plant svg-ruler svg-share svg-user svg-logo-cn svg-double-arrow