【二哈识图人工智能视觉传感器】测评之六: 与ARM单片机TFT展示人脸识别结果
<p> 二哈试图的串口通信协议;</p><p>人脸识别之串口测试 。识别成功收到数据</p>
<pre>
<code>55 AA 11 0A 29 01 00 01 00 9B 03 00 00 00 00 E3
55 AA 11 0A 2A D9 00 71 00 30 00 40 00 01 00 FF
55 AA 11 0A 29 01 00 01 00 B5 03 00 00 00 00 FD
55 AA 11 0A 2A D9 00 64 00 30 00 40 00 01 00 F2
55 AA 11 0A 29 01 00 01 00 C5 03 00 00 00 00 0D
55 AA 11 0A 2A D8 00 63 00 30 00 40 00 01 00 F0 </code></pre>
<p>未识别记忆人脸收到数据</p>
<pre>
<code>55 AA 11 0A 29 00 00 01 00 29 0E 00 00 00 00 7B
55 AA 11 0A 29 00 00 01 00 38 0E 00 00 00 00 8A
55 AA 11 0A 29 00 00 01 00 44 0E 00 00 00 00 96
55 AA 11 0A 29 00 00 01 00 4F 0E 00 00 00 00 A1
</code></pre>
<p>可以判断55 AA 11 0A 29后面不为零即代表检测出记忆人脸、</p>
<p> </p>
<p>上次申请的到复旦微32位单片机开发板,驱动中景园TFT,与二哈试图串口通讯,关于屏的驱动,可以看我之前测评。</p>
<p><br />
</p>
<p></p>
<p>串口初始化;.用串口中断状态机判定,判断55 AA 11 0A 29后面不为零即代表检测出记忆人脸</p>
<pre>
<code>void DebugUartInit(void)
{
FL_GPIO_InitTypeDef GPIO_InitStruct = {0};
FL_UART_InitTypeDef UART_InitStruct = {0};
//PA13:UART0-RX PA14:UART0-TX
GPIO_InitStruct.pin = FL_GPIO_PIN_13|FL_GPIO_PIN_14;
GPIO_InitStruct.mode = FL_GPIO_MODE_DIGITAL;
GPIO_InitStruct.outputType = FL_GPIO_OUTPUT_PUSHPULL;
GPIO_InitStruct.pull = FL_ENABLE;
GPIO_InitStruct.remapPin = FL_DISABLE;
FL_GPIO_Init(GPIOA, &GPIO_InitStruct);
UART_InitStruct.clockSrc = FL_CMU_UART0_CLK_SOURCE_APBCLK;
UART_InitStruct.baudRate = 9600; //波特率
UART_InitStruct.dataWidth = FL_UART_DATA_WIDTH_8B; //数据位数
UART_InitStruct.stopBits = FL_UART_STOP_BIT_WIDTH_1B; //停止位
UART_InitStruct.parity = FL_UART_PARITY_EVEN; //奇偶校验
UART_InitStruct.transferDirection = FL_UART_DIRECTION_TX_RX; //接收-发送使能
FL_UART_Init(UART0, &UART_InitStruct);
}</code></pre>
<p>测试视频:</p>
<p><iframe allowfullscreen="true" frameborder="0" height="350" src="//player.bilibili.com/player.html?bvid=1Ub4y1H7vs&page=1" style="background:#eee;margin-bottom:10px;" width="550"></iframe><br />
</p>
<p>识别速度还行</p>
<p> </p>
页:
[1]