// 初始化串口通信 Serial.begin(baudRate); // 将舵机移动到初始位置 servo.write(initialAngle); //Initialize serial and wait for port to open: Serial.begin(9600); while (!Serial) { ; // wait for serial port to connect. Needed for native USB port only }
// attempt to connect to WiFi network: Serial.print("Attempting to connect to WPA SSID: "); Serial.println(ssid); while (WiFi.begin(ssid, pass) != WL_CONNECTED) { // failed, retry Serial.print("."); delay(5000); }
Serial.println("You're connected to the network"); Serial.println();
voidonMqttMessage(int messageSize) { // we received a message, print out the topic and contents Serial.print("Received a message with topic '"); Serial.print(mqttClient.messageTopic()); Serial.print("', duplicate = "); Serial.print(mqttClient.messageDup() ? "true" : "false"); Serial.print(", QoS = "); Serial.print(mqttClient.messageQoS()); Serial.print(", retained = "); Serial.print(mqttClient.messageRetain() ? "true" : "false"); Serial.print("', length "); Serial.print(messageSize); Serial.println(" bytes:");
// use the Stream interface to print the contents while (mqttClient.available()) { Serial.print((char)mqttClient.read()); } Serial.println();
Serial.println(); }
6.总结
项目难点:在特征提取网络的选择上,有两个选择,可以选择resnet和MobileNet,但是因为resnet的参数多,所以选择MobileNet,但是运行速度快,就意味着一定的精度损失,所以引入了例如SSH这样的特征提取模块,提高精确度。
在PC端能跑起来,但是在开发板不能运行,或者运行卡顿,找到原因是因为算力不足,所以需要引入tensorrt加速。
linux配置环境很复杂,需要重新编译几个库,在运行软件的时候,使用strace跟踪程序运行进程,检查在哪里卡住了。
# 7.参考文献 [1]
李浩轩.手背静脉身份识别方法门锁系统研究[J].冶金设备,2023(S1):14-17+117.
[2]
贺云飞,甘雨,肖国锐.基于ZigBee的智能门锁系统设计[J].电子设计工程,2023,31(16):6-10.
[3] 谷月. 虹膜识别“解锁”智能门锁[N]. 中国电子报,2023-04-21(006). [4] J.
B. Jin, H. K. Hee, S. S. Soo. Door-Lock System to Detect and Transmit in
Real Time according to External Shock Sensitivity[J]. Journal of the
Korea Convergence Society, 2018, 9(7): 9-16.
[5] P.Jayasri ,C.Pradeepthi,B.Madhavi, et al.SMART DOOR LOCK SYSTEM
INTEGRATED WITH RASPBERRY PI USING IoT[J].Journal of Critical
Reviews,2020,7(16):2244-2250. [6] M. Shanthini, G. Vidya and R. Arun,
"IoT Enhanced Smart Door Locking System," 2020 Third International
Conference on Smart Systems and Inventive Technology (ICSSIT),
Tirunelveli, India, 2020, pp. 92-96. [7] Y. Sun, X. Wang and X. Tang,
"Deep Learning Face Representation from Predicting 10,000 Classes," 2014
IEEE Conference on Computer Vision and Pattern Recognition, Columbus,
OH, USA, 2014, pp. 1891-1898. [8] X. Deng and P. L. Dragotti, "Deep
Convolutional Neural Network for Multi-Modal Image Restoration and
Fusion," in IEEE Transactions on Pattern Analysis and Machine
Intelligence, vol. 43, no. 10, pp. 3333 3348, 1 Oct. 2021. [9] Liu, W.,
Anguelov, D., Erhan, D., Szegedy, C., Reed, S.E., Fu, C., & Berg,
A.C. (2015). SSD: Single Shot MultiBox Detector. European Conference on
Computer Vision. [10] J. Deng, J. Guo, N. Xue and S. Zafeiriou,
"ArcFace: Additive Angular Margin Loss for Deep Face Recognition," 2019
IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR),
Long Beach, CA, USA, 2019, pp. 4685-4694. [11]Bubbliiiing.
聪明的人脸识别3——Pytorch 搭建自己的Facenet人脸识别平台[EB/OL].
(2020-11-24)[2024-04-13].
https://blog.csdn.net/weixin_44791964/article/details/108220265.
[12]Bubbliiiing. 聪明的人脸识别4——Pytorch
利用Retinaface+Facenet搭建人脸识别平台[EB/OL]. (2020-12-13)[2024-11-12].
https://blog.csdn.net/weixin_44791964/article/details/111130326.