2020-7-21 18:21:22 [显示全部楼层]
查看: 1381|回复: 14

[项目] 基于视觉识别的测温放聚集场馆控制系统

[复制链接]
视频演示:



【项目背景】
      2020年新冠疫情肆虐,为了防范疫情,有效控制疫情的传播,人们对一些场馆实行了封闭。但是对于有些没法封闭的场馆,也是提出了一些要求。例如戴口罩、测体温、不聚集等。于是我们设计了一款针对此区域的控制系统——基于视觉识别的测温防聚集场馆控制系统。
图片1.png

【项目展示】
图片2.png
图片3.png
【功能简介】
(1)人脸识别,测温预警:检测人脸是否已经登记且体温正常,打开大门放行。
2)放聚集提醒:根据防疫要求,当摄像头画面在指定的区域内出现的人数超过三个,进行提示。
3)语音播报:系统带有语音播报功能
【硬件材料】
序号名 名称 数量
1 Arduino Uno 2
2 IO 传感器扩展板 V7.1 2
3 HuskyLens AI 视觉传感器 2
4 非接触测温 2
5 语音合成模块 2
6 电磁锁 1
7 小喇叭 2
8 掌控板 1
9 铜柱、螺丝 若干
10 奥松板 若干
11 7.4V锂电池 2


【制作过程】
      1.系统设计:本场馆控制系统使用HuskyLens AI 视觉传感器识别人脸,通过非接触温度传感器检测人体体温,当两者都满足时放行;进入场馆内时,当在一定区域出现3个人脸的画面,系统认为此时出现了人员聚集,语音报备不要聚集。
      2.结构设计
图片4.png 图片5.png 图片6.png
3.电路连线:
图片7.png 图片8.png
       4.代码编写
代码编写如下所示分为人脸识别测温程序和信息反馈程序、防聚集程序。
1)人脸识别测温程序(主程序和子程序)
[C++] 纯文本查看 复制代码
/*!
 * MindPlus
 * uno
 *
 */
#include <UNO_Obloq.h>
#include <SoftwareSerial.h>
#include <DFRobot_SYN6288.h>
#include <DFRobot_MLX90614.h>
#include <DFRobot_HuskyLens.h>
// 静态常量
const String topics[5] = {"wsiSWUWMR","","","",""};
// 创建对象
UNO_Obloq         olq;
SoftwareSerial    softSerial(2, 3);
DFRobot_HuskyLens huskylens;
DFRobot_SYN6288   syn6288;
DFRobot_MLX90614  mlx90614;


// 主程序开始
void setup() {
        softSerial.begin(9600);
  olq.startConnect(&softSerial, "SRZX-WIFI", "20131209", "BJm0d8awUG", "HkVCuIaDUM", topics, "iot.dfrobot.com.cn", 1883);
        huskylens.beginI2CUntilSuccess();
        huskylens.writeAlgorithm(ALGORITHM_FACE_RECOGNITION);
        syn6288.begin(&Serial, 0, 1, 4);
        syn6288.setVolume(true, 16);
        syn6288.playText("系统初始化成功", 1);
}
void loop() {
        huskylens.request();
        if ((huskylens.isAppear(1,HUSKYLENSResultBlock) && (mlx90614.getObjectTempC()<37))) {
                syn6288.playText((String("NO1温度") + String(mlx90614.getObjectTempC())), 0);
                olq.publish(olq.topic_0, "NO1");
                digitalWrite(7, HIGH);
                delay(2000);
                digitalWrite(7, LOW);
        }
        if ((huskylens.isAppear(2,HUSKYLENSResultBlock) && (mlx90614.getObjectTempC()<37))) {
                syn6288.playText((String("NO2温度") + String(mlx90614.getObjectTempC())), 0);
                olq.publish(olq.topic_0, "NO2");
                digitalWrite(7, HIGH);
                delay(2000);
                digitalWrite(7, LOW);
        }
        if ((huskylens.isAppear(3,HUSKYLENSResultBlock) && (mlx90614.getObjectTempC()<37))) {
                syn6288.playText((String("NO3温度") + String(mlx90614.getObjectTempC())), 0);
                olq.publish(olq.topic_0, "NO3");
                digitalWrite(7, HIGH);
                delay(2000);
                digitalWrite(7, LOW);
        }
        if ((huskylens.isAppear(4,HUSKYLENSResultBlock) && (mlx90614.getObjectTempC()<37))) {
                syn6288.playText((String("NO4温度") + String(mlx90614.getObjectTempC())), 0);
                olq.publish(olq.topic_0, "NO4");
                digitalWrite(7, HIGH);
                delay(2000);
                digitalWrite(7, LOW);
        }
        if ((30<mlx90614.getObjectTempC())) {
                syn6288.playText((String("体温异常") + String(mlx90614.getObjectTempC())), 0);
                huskylens.takePhotoToSDCard();
                olq.publish(olq.topic_0, "X");
                digitalWrite(7, LOW);
                delay(2000);
        }
}

信息反馈程序
[C++] 纯文本查看 复制代码
/*!
* MindPlus
* mpython
*
*/
#include <MPython.h>
#include <DFRobot_Iot.h>
// 函数声明
void obloqMqttEventT0(String& message);
// 静态常量
const String topics[5] = {"wsiSWUWMR","","","",""};
const MsgHandleCb msgHandles[5] = {obloqMqttEventT0,NULL,NULL,NULL,NULL};
const uint8_t imageMatrix[][768] = {
        {0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0xff,0xf4,0xf,0xbf,0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0xff,0xc0,0x0,0x3,0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0xcf,0x81,0x0,0x0,0x3f,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0x1c,0x0,0x0,0x0,0x3,0xff,0xff,0xff,0xfe,0xff,0xff,0xfb,0x0,0x0,0x0,0x0,0x0,0x7f,0xff,0xff,0xfe,0xff,0xff,0xfc,0x4,0x0,0x0,0x0,0x0,0x1f,0xff,0xff,0xfe,0xff,0xff,0xfc,0x0,0x0,0x0,0x0,0x0,0x7,0xff,0xff,0xfe,0xff,0xff,0xfe,0x0,0x0,0x0,0x0,0x0,0x7,0xff,0xff,0xfe,0xff,0xff,0xfe,0x0,0x0,0x0,0x0,0x0,0x1,0xff,0xff,0xfe,0xff,0xff,0xfc,0x0,0x0,0x0,0x0,0x0,0x0,0x7f,0xff,0xfe,0xff,0xff,0xe0,0x0,0x0,0x0,0x0,0x0,0x0,0x3f,0xff,0xfe,0xff,0xff,0x0,0x0,0x0,0xb,0x80,0x0,0x0,0x3f,0xff,0xfe,0xff,0xfe,0x0,0x0,0x1f,0xff,0xfc,0x0,0x0,0x3f,0xff,0xfe,0xff,0xff,0x80,0x0,0xff,0xff,0xff,0xc0,0x0,0xf,0xff,0xfe,0xff,0xff,0x0,0x3,0xff,0xff,0xff,0xf8,0x0,0x7,0xff,0xfe,0xff,0xff,0x0,0x7,0xff,0xff,0xff,0xfc,0x0,0x3,0xff,0xfe,0xff,0xfe,0x0,0xf,0xff,0xff,0xff,0xff,0x0,0x3,0xff,0xfe,0xff,0xfe,0x0,0xf,0xff,0xff,0xff,0xff,0x0,0x1,0xff,0xfe,0xff,0xfe,0x0,0xf,0xff,0xff,0xff,0xff,0xc0,0x1,0xff,0xfe,0xff,0xfe,0x0,0x1f,0xff,0xff,0xff,0xff,0xe0,0x1,0xff,0xfe,0xff,0xfe,0x0,0x1f,0xff,0xff,0xff,0xff,0xe0,0x1,0xff,0xfe,0xff,0xff,0x0,0x1f,0xff,0xff,0xff,0xff,0xe0,0x1,0xff,0xfe,0xff,0xff,0x0,0x30,0x0,0xff,0xf0,0x0,0xf0,0x3,0xff,0xfe,0xff,0xff,0x80,0x40,0x3c,0xff,0xff,0xf8,0x30,0x3,0xff,0xfe,0xff,0xff,0x80,0x7,0xff,0xff,0xff,0xff,0x78,0x3,0xff,0xfe,0xff,0xff,0x80,0xff,0xff,0xff,0xfe,0x3f,0xf8,0x3,0xff,0xfe,0xff,0xff,0xc0,0xfc,0x1,0xff,0xf0,0x3,0xfc,0x7,0xff,0xfe,0xff,0xff,0xc1,0xf8,0x86,0xff,0xfe,0x3b,0xfc,0x7,0xff,0xfe,0xff,0xff,0xe1,0xff,0xff,0xff,0xff,0xff,0xfc,0xf,0xff,0xfe,0xff,0xff,0xe1,0xff,0xff,0xff,0xff,0xff,0xfe,0x3f,0xff,0xfe,0xff,0xff,0xe1,0xff,0xff,0xff,0xff,0xff,0xfe,0x3f,0xff,0xfe,0xff,0xff,0xf1,0xff,0xff,0xff,0xff,0xff,0xfe,0x3f,0xff,0xfe,0xff,0xff,0xf1,0xff,0xff,0xff,0xff,0xff,0xfe,0x7f,0xff,0xfe,0xff,0xff,0xf1,0xff,0xff,0xff,0xff,0xff,0xfe,0x7f,0xff,0xfe,0xff,0xff,0xf1,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xfd,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0xff,0xfe,0x87,0xbf,0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0xff,0xff,0xef,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0xff,0xfc,0x1f,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0xef,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0xef,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0xf7,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0xf3,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0xf1,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0xf0,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0xf8,0x3f,0xff,0xff,0xf8,0xbf,0xff,0xff,0xfe,0xff,0xff,0xff,0xf2,0xf,0xff,0xff,0xe3,0x3f,0xff,0xff,0xfe,0xff,0xff,0xff,0xf1,0xc0,0xff,0xfe,0x3f,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0xf0,0xf0,0x0,0x1,0xff,0xbf,0xff,0xff,0xfe,0xff,0xff,0xff,0xf0,0x7f,0xff,0xff,0xff,0x5f,0xff,0xff,0xfe,0xff,0xff,0xff,0xf0,0x7f,0xff,0xff,0xff,0x5f,0xff,0xff,0xfe,0xff,0xff,0xff,0xf0,0x3f,0xff,0xff,0xff,0x1f,0xff,0xff,0xfe,0xff,0xff,0xff,0xf0,0x3f,0xff,0xff,0xff,0x1f,0xff,0xff,0xfe,0xff,0xff,0xff,0xf0,0x3f,0xff,0xff,0xfe,0x3f,0xff,0xff,0xfe,0x7f,0xff,0xff,0xfc,0x3f,0xff,0xff,0xfe,0x7f,0xff,0xff,0xfe,0x3f,0xff,0xff,0xff,0xff,0xff,0xff,0xfc,0xff,0xff,0xff,0xfe},
        {0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf7,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0x0,0xf,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf0,0x0,0x7,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xe0,0x0,0x0,0x1f,0xff,0xff,0xff,0xff,0xff,0xff,0xc0,0x0,0x0,0x1f,0xff,0xff,0xff,0xff,0xff,0xff,0x0,0x0,0x0,0x7,0xff,0xff,0xff,0xff,0xff,0xfc,0x0,0x0,0x0,0x3,0xff,0xff,0xff,0xff,0xff,0xfe,0x0,0x0,0x0,0x1,0xff,0xff,0xff,0xff,0xff,0xf8,0x0,0x0,0x0,0x0,0x7f,0xff,0xff,0xff,0xff,0xf0,0x0,0x0,0x0,0x0,0x7f,0xff,0xff,0xff,0xff,0xc0,0x0,0x0,0x0,0x0,0x3f,0xff,0xff,0xff,0xff,0xc0,0x0,0x0,0x0,0x0,0x1f,0xff,0xff,0xff,0xff,0xc0,0x0,0x0,0x0,0x0,0x1f,0xff,0xff,0xff,0xff,0x80,0x0,0x0,0x0,0x0,0x1f,0xff,0xff,0xff,0xff,0x80,0x0,0x0,0x0,0x0,0x1f,0xff,0xff,0xff,0xff,0x80,0x7,0xfe,0x7f,0x0,0x1f,0xff,0xff,0xff,0xff,0x80,0x1f,0xff,0xff,0x80,0x1f,0xff,0xff,0xff,0xff,0x80,0x1f,0xff,0xff,0x98,0x1f,0xff,0xff,0xff,0xff,0x80,0x3f,0xff,0xff,0xdc,0x1f,0xff,0xff,0xff,0xff,0xc0,0x7f,0xff,0xff,0xce,0x1f,0xff,0xff,0xff,0xff,0xc0,0x7f,0xff,0xff,0xcf,0x1f,0xff,0xff,0xff,0xff,0xc0,0xff,0xff,0xff,0xcf,0x1f,0xff,0xff,0xff,0xff,0xc1,0xff,0xff,0xff,0xcf,0x9f,0xff,0xff,0xff,0xff,0xc1,0xff,0xff,0xff,0xff,0x83,0xff,0xff,0xff,0xff,0xc3,0xff,0xff,0xff,0x87,0x83,0xff,0xff,0xff,0xff,0xe3,0xff,0xff,0xfe,0x3,0xc3,0xff,0xff,0xff,0xff,0xe3,0xf8,0x1f,0xf8,0x3,0xc3,0xff,0xff,0xff,0xff,0xf3,0xf7,0x81,0xf8,0x77,0xc3,0xff,0xff,0xff,0xff,0xf3,0xff,0xf1,0xe0,0x0,0xc3,0xff,0xff,0xff,0xff,0xfb,0xfe,0x1,0xe0,0x0,0xe7,0xff,0xff,0xff,0xff,0xfb,0xf9,0x3,0xe3,0xf0,0xe7,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf3,0xe0,0xef,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf1,0xff,0xef,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf1,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf9,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf8,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf8,0x3e,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf8,0x18,0x3f,0xff,0xff,0xff,0xff,0xff,0xff,0xdf,0xf8,0x0,0x3f,0xff,0xff,0xff,0xff,0xff,0xff,0xbf,0xf0,0x0,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xc0,0x0,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf0,0x0,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf0,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf0,0x0,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf9,0xe0,0x1,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf8,0x0,0x7f,0xff,0xff,0xff,0xff,0xff,0xef,0xff,0xf0,0x0,0x7f,0xff,0xff,0xff,0xff,0xff,0xcf,0xff,0xfe,0x2,0x3f,0xff,0xff,0xff,0xff,0xff,0xcf,0xff,0xff,0x2,0x1f,0xff,0xff,0xff,0xff,0xff,0x8f,0xff,0xff,0x2,0xf,0xff,0xff,0xff,0xff,0xff,0x8f,0xff,0xfe,0x0,0x1,0xff,0xff,0xff,0xff,0xff,0xf,0xff,0xfc,0x0,0x0,0x7f,0xff,0xff,0xff,0xfe,0x7,0xfe,0x0,0x0,0x0,0x3,0xff,0xff,0xff,0xf8,0x7,0xff,0x80,0x10,0x0,0x0,0x7f,0xff,0xff,0xc0,0x3,0xff,0xf0,0x70,0x0,0x0,0xf,0xff,0xff,0x0,0x3,0xff,0xf9,0xf0,0x0,0x0,0x0,0xff,0xf8,0x0,0x3,0xff,0xff,0xe0,0x0,0x0,0x0,0xff,0xc0,0x0,0x1,0xff,0xff,0xe0,0x0,0x0,0x0,0xfe,0x0,0x0,0x1,0xff,0x9f,0xc0,0x0,0x0,0x0,0xe0,0x0,0x0,0x0,0xff,0xff,0xc0,0x0,0x0,0x0,0x80,0x0,0x0,0x0,0x7f,0xff,0x80,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0},
        {0x0,0x0,0x0,0x11,0xf0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0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0,0x1f,0x0,0x0,0x1f,0xf8,0x0,0x0,0x0,0x0,0x0,0xf,0xc0,0x0,0x7f,0xf8,0x0,0x0,0x0,0x0,0x0,0xf,0xfc,0x7,0xff,0xf8,0x0,0x0,0x0,0x0,0x0,0x7,0xff,0xff,0xff,0xf8,0x0,0x0,0x0,0x0,0x0,0x7,0xff,0xff,0xff,0xf8,0x0,0x0,0x0,0x0,0x0,0x3,0xff,0xff,0xff,0xf0,0x0,0x0,0x0,0x0,0x0,0x3,0xff,0xff,0xff,0xf0,0x0,0x0,0x0,0x0,0x0,0x3,0xff,0xff,0xff,0xf0,0x0,0x0,0x0,0x0,0x0,0x1,0xff,0xff,0xff,0xe0,0x0,0x0,0x0,0x0,0x0,0x1,0xff,0xff,0xff,0xf0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xff,0xf0,0x0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xff,0xe0,0x0,0x0,0x0,0x0,0x0,0x0,0x7f,0xff,0xff,0xe0,0x0,0x0,0x0,0x0,0x0,0x1,0xff,0xff,0xff,0xe0,0x0,0x0},
        {0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xe1,0x1f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xc0,0x0,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xfc,0x0,0x0,0x3,0xff,0xff,0xff,0xff,0xff,0xff,0x80,0x0,0x0,0x0,0x7f,0xff,0xff,0xff,0xff,0xfe,0x0,0x0,0x0,0x0,0x7f,0xff,0xff,0xff,0xff,0xfc,0x0,0x0,0x0,0x0,0x3f,0xff,0xff,0xff,0xff,0xf8,0x0,0x0,0x0,0x0,0xf,0xff,0xff,0xff,0xff,0xf0,0x0,0x0,0x0,0x0,0x7,0xff,0xff,0xff,0xff,0xe0,0x0,0x0,0x0,0x0,0x3,0xff,0xff,0xff,0xff,0xe0,0x0,0x0,0x0,0x0,0x1,0xff,0xff,0xff,0xff,0xe0,0x0,0x0,0x0,0x0,0x1,0xff,0xff,0xff,0xff,0xc0,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xff,0xff,0xc0,0x0,0x0,0x0,0x0,0x1,0xff,0xff,0xff,0xff,0x80,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xff,0xff,0x80,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xff,0xff,0x80,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xff,0xff,0x80,0x0,0x0,0x0,0x0,0x0,0xff,0xff,0xff,0xff,0x80,0x0,0x0,0xfe,0x0,0x0,0xff,0xff,0xff,0xff,0x80,0x0,0x3,0xff,0xff,0x0,0xff,0xff,0xff,0xff,0x80,0x0,0xff,0xff,0xff,0x80,0xff,0xff,0xff,0xff,0x80,0x3,0xff,0xff,0xff,0xc0,0xff,0xff,0xff,0xff,0x80,0x3,0xff,0xff,0xff,0xc0,0x7f,0xff,0xff,0xff,0x80,0x7,0xff,0xff,0xff,0xc0,0x7f,0xff,0xff,0xff,0x80,0xf,0xff,0xff,0xff,0xc0,0xff,0xff,0xff,0xff,0x0,0xf,0xff,0xff,0xff,0xc0,0xff,0xff,0xff,0xff,0x0,0xf,0xff,0xff,0xff,0xe0,0xff,0xff,0xff,0xfe,0x0,0x3f,0xff,0xff,0xff,0xe0,0xff,0xff,0xff,0xfe,0x0,0xf,0xff,0xff,0xff,0xf0,0xff,0xff,0xff,0xff,0x0,0x0,0x7f,0xff,0xff,0xf1,0xff,0xff,0xff,0xff,0x0,0x0,0x1f,0xe0,0x1,0xf1,0xff,0xff,0xff,0xff,0x0,0x0,0x7,0x83,0xe1,0xf3,0xff,0xff,0xff,0xff,0x0,0x0,0x3,0xc0,0x1f,0xf3,0xff,0xff,0xff,0xff,0x0,0x1,0x27,0xe0,0x47,0xf3,0xff,0xff,0xff,0xff,0x80,0xf,0xf7,0xff,0xff,0xf3,0xff,0xff,0xff,0xff,0x80,0xc3,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xc0,0xff,0xef,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xe0,0xff,0xcf,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf8,0xff,0x8f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf8,0x7f,0x8f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf8,0x7f,0xf,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf8,0x3e,0xf,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf8,0x1e,0xf,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf8,0xe,0xf,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf8,0xc,0x3,0x1f,0xff,0xff,0xff,0xff,0xff,0xff,0xfc,0x0,0x0,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xfc,0x0,0x1,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0x0,0x7,0xf8,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x0,0x0,0xcf,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x80,0xf,0xff,0xfd,0xff,0xff,0xff,0xff,0xff,0xff,0x80,0x0,0xff,0xf9,0xff,0xff,0xff,0xff,0xff,0xff,0x80,0x0,0x7f,0xe3,0xff,0xff,0xff,0xff,0xff,0xff,0xc0,0x7f,0xff,0xc7,0xff,0xff,0xff,0xff,0xff,0xff,0x80,0x7f,0xff,0x7,0xff,0xff,0xff,0xff,0xff,0xfe,0x0,0x3f,0xfe,0xf,0xff,0xff,0xff,0xff,0xff,0xf0,0x0,0x7,0xf0,0x1f,0xff,0xff,0xff,0xff,0xfe,0x0,0x0,0x0,0x0,0x3f,0xff,0xff,0xff,0xff,0xe0,0x0,0x0,0x0,0x0,0xff,0xff,0xff,0xff,0xfc,0x0,0x0,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0x0,0x0,0x3,0xff,0xf0,0x1f,0xff,0x80,0x0,0x0,0x0,0x0,0x7,0xff,0xf0,0x1f,0xff,0xc0,0x0,0x0,0x0,0x0,0xf,0xff,0xe0,0xf,0xff,0xe0,0x0,0x0,0x0,0x0,0xf,0xff,0xc0,0x7,0xff,0xe0,0x0,0x0,0x0,0x0,0x1f,0xff,0x80,0x3,0xff,0xf0,0x0,0x0,0x0,0x0,0x3f,0xff,0x0,0x3,0xff,0xf8,0x0,0x0,0x0,0x0,0x7f,0xff,0x0,0x1,0xff,0xfc,0x0,0x0,0x0,0x0,0x7f,0xfe,0x0,0x0,0xff,0xfe,0x0,0x0,0x0,0x0,0xff,0xfc,0x0,0x0,0x7f,0xfe,0x0,0x0,0x0,0x0,0xff,0xf8,0x0,0x0,0x3f,0xff,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x3f,0xff,0x80,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x3,0xff,0xff,0xc0,0x0,0x0,0x0}
};
// 创建对象
DFRobot_Iot myIot;


// 主程序开始
void setup() {
        mPython.begin();
        myIot.setMqttCallback(msgHandles);
        myIot.wifiConnect("SRZX-WIFI", "20131209");
        delay(myIot.wifiStatus() * 1000);
        display.fillScreen(1);
        display.setCursor(22, 22);
        display.print("连接成功");
        delay(1000);
        myIot.init("iot.dfrobot.com.cn","BJm0d8awUG","","HkVCuIaDUM",topics,1883);
        myIot.connect();
        display.fillScreen(1);
}
void loop() {

}

// 事件回调函数
void obloqMqttEventT0(String& message) {
        if ((message==String("NO1"))) {
                display.fillScreen(1);
                display.drawImage(15, 0, 95, 64, imageMatrix[0]);
                delay(2000);
                display.fillScreen(1);
        }
        if ((message==String("NO2"))) {
                display.fillScreen(1);
                display.drawImage(15, 0, 80, 64, imageMatrix[1]);
                delay(2000);
                display.fillScreen(1);
        }
        if ((message==String("NO3"))) {
                display.fillScreen(1);
                display.drawImage(15, 0, 80, 64, imageMatrix[2]);
                delay(2000);
                display.fillScreen(1);
        }
        if ((message==String("NO4"))) {
                display.fillScreen(1);
                display.drawImage(15, 0, 80, 64, imageMatrix[3]);
                delay(2000);
                display.fillScreen(1);
        }
        if ((message==String("X"))) {
                display.fillScreen(1);
                display.drawImage(15, 0, 80, 64, imageMatrix[4]);
                delay(2000);
                buzz.play(DADADADUM, Once);
                display.fillScreen(1);
        }
}


防聚集程序

[C++] 纯文本查看 复制代码
/*!
* MindPlus
* uno
*
*/
#include <UNO_Obloq.h>
#include <SoftwareSerial.h>
#include <DFRobot_SYN6288.h>
#include <DFRobot_HuskyLens.h>
// 静态常量
const String topics[5] = {"9POEJS_Zg","","","",""};
// 创建对象
UNO_Obloq         olq;
SoftwareSerial    softSerial(2, 3);
DFRobot_SYN6288   syn6288;
DFRobot_HuskyLens huskylens;


// 主程序开始
void setup() {
        softSerial.begin(9600);
  olq.startConnect(&softSerial, "SRZX-WIFI", "20131209", "BJm0d8awUG", "HkVCuIaDUM", topics, "iot.dfrobot.com.cn", 1883);
        syn6288.begin(&Serial, 0, 1, 4);
        syn6288.playText("系统初始化成功", 1);
        huskylens.beginI2CUntilSuccess();
        huskylens.writeAlgorithm(ALGORITHM_FACE_RECOGNITION);
}
void loop() {
        huskylens.request();
        if ((huskylens.readCount(HUSKYLENSResultBlock)>=3)) {
                olq.publish(olq.topic_0, "gather");
                delay(3000);
                syn6288.playText("请不要聚集!!", 15);
        }
}


      5.设备组装
1步:拿出激光切割好的结构件,及相关电子件器材。
图片9.png 图片10.png
2步:取出前面板,安装非接触测温传感器和HuskyLens AI 视觉传感器固定位螺丝。
图片11.png
3步:在上一步基础上安装非接触测温传感器和视觉识别传感器。
图片12.png
4步:安装前面板背面的门锁。
图片13.png
5步:拿出主控器及继电器安装在侧面板上
图片14.png
6步:将四个侧面板拼接与底板组合。
图片15.png
7步:拿出另外一只HuskyLens AI 视觉传感器固定在顶板对应孔位上。
图片16.png
8步:安装门及铰链。
图片17.png
7.测试与运行
分别使用四张照片作为测试的对象(因为此处可以用真正的人脸)但进入场馆后不好演示,所以使用了这种方式。
图片19.png 图片20.png 图片18.png 图片21.png 图片22.png
图片4.png

TuTu  初级技师

发表于 2020-7-24 13:06:33

wow好棒!支持支持!!!
回复

使用道具 举报

DFHJM_IpFmV  中级技师

发表于 2020-7-24 13:23:02

这个哈士奇犯了什么罪么……
202007242408..png
回复

使用道具 举报

hnyzcj  版主
 楼主|

发表于 2020-7-24 16:20:35

DFHJM_IpFmV 发表于 2020-7-24 13:23
这个哈士奇犯了什么罪么……

咋了,这么玩不香吗
回复

使用道具 举报

gray6666  初级技神

发表于 2020-7-24 17:57:58

二哈改造有风险,为领导捏把汗。。。。。。。
回复

使用道具 举报

hnyzcj  版主
 楼主|

发表于 2020-7-24 21:36:37

gray6666 发表于 2020-7-24 17:57
二哈改造有风险,为领导捏把汗。。。。。。。

没问题
回复

使用道具 举报

曾轩轩  学徒

发表于 2020-7-26 21:44:00

二哈承受了这个年纪不应该承受的风险和压力。
回复

使用道具 举报

20060606  高级技匠

发表于 2020-7-27 10:06:05

二哈这么改造不怕排线折了?
回复

使用道具 举报

20060606  高级技匠

发表于 2020-7-27 10:09:28

1.为什么要用两块锂电池?两套系统可以用一块电池供电啊
2.这个项目投资有些大啊~两块二哈。。。。。。
3.希望这个系统能投入实际使用
4.以上是我的几点小小建议,欢迎指正
回复

使用道具 举报

hnyzcj  版主
 楼主|

发表于 2020-7-27 17:18:54

20060606 发表于 2020-7-27 10:09
1.为什么要用两块锂电池?两套系统可以用一块电池供电啊
2.这个项目投资有些大啊~两块二哈。。。。。。
3. ...

回复

使用道具 举报

DFS1w2cb8o8  中级技师

发表于 2020-7-27 17:28:03

厉害厉害
回复

使用道具 举报

DFHJM_IpFmV  中级技师

发表于 2020-7-27 21:59:51

hnyzcj 发表于 2020-7-24 16:20
咋了,这么玩不香吗

但是铁熊说不可以掰
回复

使用道具 举报

佛系唐法官  中级技师

发表于 2020-8-9 19:18:21

二哈在哪里?我眼睛坏了吗???
回复

使用道具 举报

hnyzcj  版主
 楼主|

发表于 2020-8-10 00:01:46

佛系唐法官 发表于 2020-8-9 19:18
二哈在哪里?我眼睛坏了吗???

二哈翻盖玩
回复

使用道具 举报

佛系唐法官  中级技师

发表于 2020-8-11 20:14:16


哦哦哦,看见了,眼睛之前聋了。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

为本项目制作心愿单
购买心愿单
心愿单 编辑
[[wsData.name]]

硬件清单

  • [[d.name]]
btnicon
我也要做!
点击进入购买页面
上海智位机器人股份有限公司 沪ICP备09038501号-4

© 2013-2020 Comsenz Inc. Powered by Discuz! X3.4 Licensed

mail