[go: up one dir, main page]

CN112070942B - An intelligent management system for park gates during the epidemic - Google Patents

An intelligent management system for park gates during the epidemic Download PDF

Info

Publication number
CN112070942B
CN112070942B CN202010828150.7A CN202010828150A CN112070942B CN 112070942 B CN112070942 B CN 112070942B CN 202010828150 A CN202010828150 A CN 202010828150A CN 112070942 B CN112070942 B CN 112070942B
Authority
CN
China
Prior art keywords
module
detection
information
image
personnel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010828150.7A
Other languages
Chinese (zh)
Other versions
CN112070942A (en
Inventor
朱旭芳
袁成人
周杨威
唐晨琪
唐宇思
黎奥丰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Naval University of Engineering PLA
Original Assignee
Naval University of Engineering PLA
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Naval University of Engineering PLA filed Critical Naval University of Engineering PLA
Priority to CN202010828150.7A priority Critical patent/CN112070942B/en
Publication of CN112070942A publication Critical patent/CN112070942A/en
Application granted granted Critical
Publication of CN112070942B publication Critical patent/CN112070942B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/20Individual registration on entry or exit involving the use of a pass
    • G07C9/22Individual registration on entry or exit involving the use of a pass in combination with an identity check of the pass holder
    • G07C9/25Individual registration on entry or exit involving the use of a pass in combination with an identity check of the pass holder using biometric data, e.g. fingerprints, iris scans or voice recognition
    • EFIXED CONSTRUCTIONS
    • E01CONSTRUCTION OF ROADS, RAILWAYS, OR BRIDGES
    • E01FADDITIONAL WORK, SUCH AS EQUIPPING ROADS OR THE CONSTRUCTION OF PLATFORMS, HELICOPTER LANDING STAGES, SIGNS, SNOW FENCES, OR THE LIKE
    • E01F13/00Arrangements for obstructing or restricting traffic, e.g. gates, barricades ; Preventing passage of vehicles of selected category or dimensions
    • E01F13/04Arrangements for obstructing or restricting traffic, e.g. gates, barricades ; Preventing passage of vehicles of selected category or dimensions movable to allow or prevent passage

Landscapes

  • Engineering & Computer Science (AREA)
  • Architecture (AREA)
  • Civil Engineering (AREA)
  • Structural Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Image Analysis (AREA)

Abstract

The invention belongs to the field of epidemic situation monitoring equipment systems, and particularly relates to an intelligent management system for a park gate during an epidemic situation. The device comprises an identification detection component, a motion and control component and an information interconnection component; the identification detection component comprises an image database module, an acquisition module, a detection module and an identification module; the motion and control assembly comprises a mechanical arm module and a steering engine driving module; the intelligent monitoring system and the intelligent monitoring method can realize all-weather non-contact intelligent identification and detection by carrying out regional arrangement in a monitored park. The system is mainly suitable for body temperature detection and face recognition of people in a driving car, realizes real-time monitoring of population mobility, reduces the working strength of detection personnel, reduces the protection cost of the detection personnel, is suitable for being widely popularized and used in colleges and universities and living communities, and has high market value. The system needs fewer workers, has low requirements on the working strength of station workers and medical protection, has short detection time, and can conveniently record passengers.

Description

一种疫情期间园区道闸智能执管系统An intelligent management system for park gates during the epidemic

技术领域technical field

本发明属于疫情监控设备系统领域,尤其涉及一种用于疫情期间园区道闸智能执管系统。The invention belongs to the field of epidemic monitoring equipment systems, and in particular relates to an intelligent management system for park gates during epidemics.

背景技术Background technique

如今,国内疫情虽得到了有效的控制,各地区各部门在政策的支持下开始积极的复工复产复学工作,但防疫态势依然很严峻。伴随夏季的到来,气温逐渐升高,穿着厚重防护服的医护人员因供氧不足导致中暑晕倒的情况时有发生。Today, although the domestic epidemic has been effectively controlled, and various regions and departments have begun to actively resume work, production and school with the support of policies, the epidemic prevention situation is still very serious. With the arrival of summer, the temperature gradually rises, and medical staff wearing heavy protective clothing often suffer from heat stroke and faint due to insufficient oxygen supply.

为应对疫情,机器人广泛投入到各领域,如配送机器人,温机器人和医疗机器人,其基本原理是利用机器人代替简单的人力操作从而降低传染接触的风险和面对高强度工作负荷的不稳定性。然而,在高速公路、封闭园区等密集型场所或交通枢纽地区,对于车辆内人员的检测通常以人力检测为主,这就会带来了人力投入大、检测效率慢、信息更新慢、感染风险高等问题等诸多不利的影响,因为疫情的车辆检测,导致高速公路,重要街道,办公园区排起了长队。In response to the epidemic, robots have been widely used in various fields, such as distribution robots, warm robots and medical robots. The basic principle is to use robots to replace simple human operations to reduce the risk of infectious contact and instability in the face of high-intensity workloads. However, in dense places such as highways and closed parks or in transportation hub areas, the detection of people in vehicles is usually dominated by human detection, which will bring about large human input, slow detection efficiency, slow information update, and infection risks. High-level problems and many other adverse effects, due to the vehicle detection of the epidemic, resulting in long queues on highways, important streets, and office parks.

发明内容SUMMARY OF THE INVENTION

本发明创造的目的在于,通过在所监控需园区进行区域化布置,实现全天候无接触智能识别和检测,主要用于驾驶车内人员的体温检测和人脸识别,实现人口流动的实时监控。The purpose of the invention is to realize the all-weather non-contact intelligent identification and detection through regionalized arrangement in the park to be monitored, and is mainly used for the body temperature detection and face recognition of the people in the driving vehicle, so as to realize the real-time monitoring of population flow.

为实现上述目的,本发明创造采用如下技术方案。To achieve the above purpose, the present invention adopts the following technical solutions.

一种用于疫情期间园区道闸智能执管系统,包括识别检测组件、运动及控制组件、信息互联组件;An intelligent management system for park gates during the epidemic, including identification and detection components, motion and control components, and information interconnection components;

识别检测组件包括影像数据库模块、采集模块、检测模块、识别模块;The identification and detection component includes an image database module, a collection module, a detection module, and an identification module;

数据库模块针对固有人群和临时人群采取建立固有数据库和临时数据库进行上传,数据库模块采用如下方式建立:The database module establishes an inherent database and a temporary database for uploading for the inherent and temporary crowds. The database module is established in the following ways:

01在现有人脸数据集的基础上,利用开源库dlib中的深度学习模型结合人脸特征对残差网络进行训练,得到网络模型;01 On the basis of the existing face data set, the deep learning model in the open source library dlib is used to train the residual network combined with the face features, and the network model is obtained;

02内设固有人员数据表和临时人员数据表两部分,数据库模块基于识别模块采集所有进入园区的人员信息,当所有数据检测完毕时,将数据打包按照固定的数据格式向服务器发送及存储,并定时清除临时人员信息;所述数据表至少包括设备运行状态表、非固有人员信息表和固有人员信息表;02 There are two parts: the inherent personnel data table and the temporary personnel data table. The database module collects the information of all personnel entering the park based on the identification module. When all data detection is completed, the data is packaged and sent to the server according to a fixed data format and stored. Clear temporary personnel information regularly; the data table at least includes equipment operation status table, non-inherent personnel information table and inherent personnel information table;

采集模块包括用于进行影像采集的摄像头,较优的,采用红外夜视摄像头,采集模块将采集到的图像数据传送至树莓派3b+,支持远程登陆操作和离线操作两种方式,经过python语言程序对图像处理以识别测温对象;The acquisition module includes a camera for image acquisition, preferably an infrared night vision camera. The acquisition module transmits the collected image data to the Raspberry Pi 3b+, and supports remote login operation and offline operation. Through the python language The program processes the image to identify the temperature measurement object;

所述识别模块用于完成如下步骤:The identification module is used to complete the following steps:

S1、特征提取:计算和统计图像局部区域的梯度方向直方图来构成特征;所述梯度方向采用如下方式获取:将检测图像转换为黑白,对于图片中的每一个像素,将其与周围的其他像素进行对比,找出并比较当前像素与直接围绕它的像素的深度,使用箭头来指向图像变暗的方向,重复这个过程,直至每个像素均被箭头取代;这些箭头即为梯度,它们显示出图像上从明亮到黑暗的流动过程;S1. Feature extraction: Calculate and count the gradient direction histogram of the local area of the image to form a feature; the gradient direction is obtained in the following way: convert the detected image into black and white, and for each pixel in the image, compare it with other surrounding Pixels are compared, find and compare the depth of the current pixel to the pixel directly surrounding it, use the arrows to point in the direction of the darkening of the image, repeat this process until every pixel is replaced by an arrow; these arrows are the gradients, they show out the flow from light to dark on the image;

S2、距离测算,通过人脸识别的API得到相对位置,并返回给通讯控制板以控制滑轨的运行,引导下一步的温度检测:S2, distance measurement, obtain the relative position through the face recognition API, and return it to the communication control board to control the operation of the slide rail, and guide the next temperature detection:

具体而言,在进行人脸识别的同时,返回第一次识别后人脸的位置信息用于运动模块的移动,同时要对摄像头进行标定,基于图像中人脸相对于图片中心的偏移量与实际中人脸相对于检测终端的偏移量在固定的xoz平面内是呈线性,根据公式得到固定的比例系数a=θ/px,经过API中人脸方框的解析得到滑轨需要移动的距离Δx,以达到检测终端与车内检测人员位置一致;

Figure GDA0002764827810000021
Specifically, while performing face recognition, the position information of the face after the first recognition is returned for the movement of the motion module, and the camera is calibrated at the same time, based on the offset of the face in the image relative to the center of the image The offset of the actual face relative to the detection terminal is linear in the fixed xoz plane. According to the formula, the fixed proportional coefficient a=θ/p x is obtained. After the analysis of the face box in the API, the slide rail needs are obtained. The moving distance Δx to achieve the same position of the detection terminal and the detection personnel in the vehicle;
Figure GDA0002764827810000021

其中px是相机横向采集像素,x0、x1、x2和x3是人脸位置坐标,x是图像中人脸相对于图片中心的偏移量;where p x is the horizontal acquisition pixel of the camera, x 0 , x 1 , x 2 and x 3 are the position coordinates of the face, and x is the offset of the face in the image relative to the center of the image;

运动及控制组件包括机械臂模块、舵机驱动模块;The motion and control components include the robotic arm module and the steering gear drive module;

机械臂模块包括五自由度机械臂,搭载检测终端以实现对车内人员的必要检测;机械臂作为重要的运动模块,帮助检测人员采取进入园区的必要信息;该机械臂由通讯控制板转发坐标,由舵机驱动板转换信号,由各舵机驱动,当检测终端通过距离传感器判断与车体之间的位置,驱动板能够通过逆运动学解算出各电机需转动的角度,最终达到方便车内人员检测地位置;The robotic arm module includes a five-degree-of-freedom robotic arm, which is equipped with a detection terminal to realize the necessary detection of people in the vehicle; the robotic arm, as an important motion module, helps the detection personnel to obtain the necessary information for entering the park; the robotic arm is forwarded by the communication control board. , the signal is converted by the steering gear drive board and driven by each steering gear. When the detection terminal judges the position between the vehicle body and the vehicle body through the distance sensor, the drive board can calculate the angle that each motor needs to rotate through inverse kinematics, and finally achieve a convenient car. The location of the personnel detection location;

舵机驱动模块使用运动学方程的逆解来实现机械臂的运动控制,其基本步骤包括:The steering gear drive module uses the inverse solution of the kinematic equation to realize the motion control of the manipulator. The basic steps include:

步骤一、建立基于关节空间和笛卡儿空间的运动学关系;Step 1. Establish the kinematic relationship based on joint space and Cartesian space;

釆用齐次变换矩阵建立机械臂末端的位姿表达式,描述由关节空间到笛卡儿空间的正运动学解或笛卡尔空间到关节空间的逆运动学解,具体而言;利用DH参数表达两对关节连杆之间位置角度关系的机械臂数学模型和坐标系确定系统,根据机械臂的结构参数和与舵机运动范围得到关节和连杆参数,并将这些参数代入

Figure GDA0002764827810000022
变换矩阵中;The homogeneous transformation matrix is used to establish the pose expression of the end of the manipulator, describing the forward kinematics solution from joint space to Cartesian space or the inverse kinematics solution from Cartesian space to joint space, specifically; using the DH parameter The mathematical model and coordinate system determination system of the manipulator expressing the position and angle relationship between the two pairs of joint links. According to the structural parameters of the manipulator and the motion range of the steering gear, the parameters of the joints and links are obtained, and these parameters are substituted into
Figure GDA0002764827810000022
in the transformation matrix;

根据公式:

Figure GDA0002764827810000023
According to the formula:
Figure GDA0002764827810000023

依次计算每个关节,最后得到机械臂的正运动学公式,代入DH参数得到各关节的旋转矩阵:Calculate each joint in turn, and finally get the positive kinematics formula of the manipulator, and substitute the DH parameters to get the rotation matrix of each joint:

Figure GDA0002764827810000031
Figure GDA0002764827810000031

Figure GDA0002764827810000032
Figure GDA0002764827810000032

得到各关节的旋转矩阵后即可根据下面公式得到末端的坐标:After obtaining the rotation matrix of each joint, the coordinates of the end can be obtained according to the following formula:

Figure GDA0002764827810000033
Figure GDA0002764827810000033

步骤二、运动学方程逆解Step 2. Inverse solution of kinematic equation

利用人脸识别返回的坐标指导机械臂运动从而实现检测终端能够与检测人员的位置合适;并基于步骤一中获得的齐次变换矩阵

Figure GDA0002764827810000034
求解各转动关节的角度θi;机械臂的端点P的坐标(x,y)由三个部分(x1+x2+x3,y1+y2+y3)组成;其中上式的θ1、θ2和θ3是求解的舵机的角度,a是爪子与水平面的夹角,且a=θ123,且:The coordinates returned by face recognition are used to guide the movement of the robotic arm so that the detection terminal can be positioned appropriately with the detection personnel; and based on the homogeneous transformation matrix obtained in step 1
Figure GDA0002764827810000034
Solve the angle θ i of each rotating joint; the coordinates (x, y) of the end point P of the mechanical arm consist of three parts (x 1 +x 2 +x 3 , y 1 +y 2 +y 3 ); θ 1 , θ 2 and θ 3 are the angles of the solved steering gear, a is the angle between the claw and the horizontal plane, and a=θ 123 , and:

x=l1cosθ1+l2cos(θ12)+l3cos(θ123)x=l 1 cosθ 1 +l 2 cos(θ 12 )+l 3 cos(θ 123 )

y=l1sinθ1+l2sin(θ12)+l3sin(θ123)y=l 1 sinθ 1 +l 2 sin(θ 12 )+l 3 sin(θ 123 )

m=l3cosa-x n=l3sina-ym=l 3 cosa-x n=l 3 sina-y

x和y由使用者给出;l1、l2和l3为机械臂的机械结构固有属性,将m和n代入已有方程,再化简可得:l2=(l1cosθ1+m)2+(l1sinθ1+n)2 x and y are given by the user; l 1 , l 2 and l 3 are the inherent properties of the mechanical structure of the manipulator. Substitute m and n into the existing equations, and then simplify to get: l 2 =(l 1 cosθ 1 + m) 2 +(l 1 sinθ 1 +n) 2

通过计算可得:

Figure GDA0002764827810000035
It can be obtained by calculation:
Figure GDA0002764827810000035

上式是一元二次方程的求根公式的形式,其中a=m2+n2 The above formula is the form of the root-finding formula of the quadratic equation in one variable, where a=m 2 +n 2

Figure GDA0002764827810000036
Figure GDA0002764827810000036

据此我们可以求出θ1、θ2的角度;基于上述步骤求解三个舵机的角度,根据角度控制舵机即实现坐标位置的控制。According to this, we can obtain the angles of θ 1 and θ 2 ; solve the angles of the three steering gears based on the above steps, and control the steering gears according to the angles to realize the control of the coordinate position.

对前述用于疫情期间园区道闸智能执管系统的进一步改进,还包括信息互联组件;包括基于STM32F103C8T6为核心的计通讯控制板,KEIL编程实现读取传感器信息上传485总线、步进电机控制、拓展GPIO外设;包括两个TTL串口,用于连接传感器;一个485串口接口,连接485控制总线;5路GPIO,GPIO包括通用定时器TIMER3通道1、2;采用74LS244进行3.3V-5V升压,进行四线步进电机控制。The further improvement of the above-mentioned intelligent management system for park gates during the epidemic also includes information interconnection components; including a communication control board based on STM32F103C8T6 as the core, KEIL programming to read sensor information and upload 485 bus, stepper motor control, Expand GPIO peripherals; include two TTL serial ports for connecting sensors; one 485 serial port interface, connecting 485 control bus; 5 GPIOs, GPIO includes general timer TIMER3 channels 1 and 2; 74LS244 is used for 3.3V-5V boost , for four-wire stepper motor control.

对前述用于疫情期间园区道闸智能执管系统的进一步改进,信息互联组件使用KEIL对于STM32F103进行编程控,UART2与上位机通信,接收中断对下发指令校验并解析,控制UART1、3对相应外设通讯控制。UART1及其中断与温度传感器通讯,UART3根据上位机指令对机械臂下发坐标信息。由PB0引脚下降沿触发外部中断,启动距离传感器。To further improve the above-mentioned intelligent management system for gates in the park during the epidemic, the information interconnection component uses KEIL to program and control the STM32F103, UART2 communicates with the upper computer, receives interrupts, verifies and parses the issued instructions, and controls the UART1 and 3 pairs. Corresponding peripheral communication control. UART1 and its interrupt communicate with the temperature sensor, and UART3 sends coordinate information to the robotic arm according to the instructions of the host computer. The external interrupt is triggered by the falling edge of the PB0 pin to start the distance sensor.

对前述用于疫情期间园区道闸智能执管系统的进一步改进,识别模块包括身份识别模块、车牌识别模块;所述身份识别模块采用TY-801T嵌入式模组,通过RFID技术对身份证信息的读取,并将读取后的信息传输至数据库中,身份识别模块需要实现对进出园区非库内人员的身份进行记录,以及将识别地信息实时上传至数据库;车牌识别模块使用的是Http Post,使相机通过ssl与Http服务器进行连接,当有车辆时触发,识别系统会自动识别显示车辆信息。A further improvement of the above-mentioned intelligent management system for gates in the park during the epidemic, the identification module includes an identification module and a license plate identification module; the identification module adopts the TY-801T embedded module, and uses RFID technology to identify the ID card information. Read and transmit the read information to the database. The identity recognition module needs to record the identities of people entering and leaving the park and not in the warehouse, and upload the identification information to the database in real time; the license plate recognition module uses Http Post , so that the camera is connected to the Http server through ssl, when there is a vehicle, the recognition system will automatically recognize and display the vehicle information.

其有益效果在于:Its beneficial effects are:

本申请通过在所监控需园区进行区域化布置,可实现全天候无接触智能识别和检测。该系统主要适用于驾驶车内人员的体温检测和人脸识别,实现人口流动的实时监控。此外,还增设车牌、人脸和身份识别的功能,对所有进出园区人员进行全天候无接触检测,以保证工作人员和园区内部的安全,该系统可以有效地保障检测人员的安全,减少检测人员的工作强度,同时降低检测人员的防护成本,适合在高校和生活小区大量推广使用,具有较高的市场价值。本申请需要的工作人员的较少,对站点工作人员的工作强度较小和医疗防护要求低,检测时间较少,可以很方便地记录乘车人员。This application can realize all-weather non-contact intelligent identification and detection by regionalized arrangement in the park to be monitored. The system is mainly suitable for body temperature detection and face recognition of people in driving vehicles, and realizes real-time monitoring of population flow. In addition, the functions of license plate, face and identity recognition are also added to conduct all-weather non-contact detection of all personnel entering and leaving the park to ensure the safety of staff and the interior of the park. It is suitable for large-scale promotion and use in colleges and universities and living quarters, and has high market value. This application requires less staff, less work intensity for site staff, low requirements for medical protection, less testing time, and can easily record passengers.

附图说明Description of drawings

图1是身份识别模块结构框图;Fig. 1 is the structural block diagram of the identity recognition module;

图2是射频卡与读写器的通讯流程示意图;Figure 2 is a schematic diagram of the communication flow between the radio frequency card and the reader;

图3是摄像头标定示意图;3 is a schematic diagram of camera calibration;

图4是被测物体覆盖视场准确度示意图;Figure 4 is a schematic diagram of the accuracy of the measured object covering the field of view;

图5是测温计与红外温度传感器温度补偿曲线实验数据示意图。FIG. 5 is a schematic diagram of the experimental data of the temperature compensation curve of the thermometer and the infrared temperature sensor.

具体实施方式Detailed ways

以下结合具体实施例对本发明创造作详细说明。The present invention will be described in detail below with reference to specific embodiments.

本申请的一种用于疫情期间园区道闸智能执管系统,主要包括识别检测组件包括影像数据库模块、采集模块、识别模块、检测模块;An intelligent management system for park gates in the present application mainly includes identification and detection components including an image database module, a collection module, an identification module, and a detection module;

数据库模块针对固有人群和临时人群采取建立固有数据库和临时数据库进行上传。所述数据库采用如下方式建立:在现有人脸数据集的基础上,利用开源库dlib中的深度学习模型结合人脸特征对残差网络进行训练,得到网络模型;内设有固有人员数据表和临时人员数据表两部分,数据库模块基于识别模块采集所有进入园区的人员信息,当所有数据检测完毕时,将数据打包按照固定的数据格式向服务器发送及存储,并定时清除临时人员信息;所述数据表至少包括设备运行状态表、非固有人员信息表和固有人员信息表三部分构成,见表1、2和3。The database module establishes an inherent database and a temporary database for uploading for the inherent crowd and the temporary crowd. The database is established in the following manner: on the basis of the existing face data set, the deep learning model in the open source library dlib is used to train the residual network combined with the face features to obtain a network model; there are inherent personnel data tables and There are two parts of the temporary personnel data table. The database module collects the information of all personnel entering the park based on the identification module. When all data detection is completed, the data is packaged and sent to the server according to a fixed data format and stored, and the temporary personnel information is cleared regularly; The data sheet consists of at least three parts: equipment operating status table, non-inherent personnel information table and inherent personnel information table, see Tables 1, 2 and 3.

表1设备运行状态表Table 1 Equipment operating status table

name 类型type 长度length 设备总系统编号Equipment total system number varcharvarchar 2020 设备总系统位置Overall system location of equipment varcharvarchar 2020 树莓派CPU温度Raspberry Pi CPU temperature varcharvarchar 2020 树莓派CPU使用率Raspberry Pi CPU usage varcharvarchar 2020 树莓派RAM_totalRaspberry Pi RAM_total varcharvarchar 2020 树莓派RAM_usedRaspberry Pi RAM_used varcharvarchar 2020 树莓派RAM_freeRaspberry Pi RAM_free varcharvarchar 2020 硬盘容量totalHard disk capacity total varcharvarchar 2020 硬盘容量usedHard disk capacity used varcharvarchar 2020 硬盘容量freefree hard disk capacity varcharvarchar 2020 温度传感器状态temperature sensor status varcharvarchar 2020 摄像头传感器状态camera sensor status varcharvarchar 2020 身份证传感器状态ID sensor status varcharvarchar 2020 机械臂状态Robot arm status varcharvarchar 2020 滑轨状态Rail status varcharvarchar 2020

表2非固有人员信息表Table 2 Non-inherent personnel information table

name 类型type 长度length 临时二代证idTemporary second-generation certificate id varcharvarchar 2020 体温body temperature varcharvarchar 1010 人脸特征点数据facial feature point data varcharvarchar 16001600 车牌号number plate varcharvarchar 2020 时刻time varcharvarchar 100100 大门位置gate location varcharvarchar 2020

表3固有人员信息表Table 3 Inherent Personnel Information Table

name 类型type 长度length 二代证idSecond generation certificate id varcharvarchar 2020 姓名Name varcharvarchar 2020 地址address varcharvarchar 200200 身份证号码identification number varcharvarchar 2020 体温body temperature varcharvarchar 1010 人脸特征点数据facial feature point data varcharvarchar 16001600 车牌号number plate varcharvarchar 2020 时刻time varcharvarchar 100100 大门位置gate location varcharvarchar 2020

采集模块包括用于进行影像采集的摄像头,较优的,采用红外夜视摄像头,采集模块将采集到的图像数据传送至树莓派3b+,支持远程登陆操作和离线操作两种方式,经过python语言程序对图像处理以识别测温对象,The acquisition module includes a camera for image acquisition, preferably an infrared night vision camera. The acquisition module transmits the collected image data to the Raspberry Pi 3b+, and supports remote login operation and offline operation. Through the python language The program processes the image to identify the temperature measurement object,

所述识别模块用于完成:特征提取:计算和统计图像局部区域的梯度方向直方图来构成特征;所述梯度方向采用如下方式获取:将检测图像转换为黑白,对于图片中的每一个像素,将其与周围的其他像素进行对比,找出并比较当前像素与直接围绕它的像素的深度,使用箭头来指向图像变暗的方向,重复这个过程,直至每个像素均被箭头取代;这些箭头即为梯度,它们显示出图像上从明亮到黑暗的流动过程;距离测算,本申请通过人脸识别的API得到相对位置,并返回给通讯控制板以控制滑轨的运行,有效的引导下一步的温度检测,方便人员进行体温检测。The recognition module is used to complete: feature extraction: calculate and count the gradient direction histogram of the local area of the image to form a feature; the gradient direction is obtained in the following way: convert the detected image into black and white, and for each pixel in the picture, Compare it to other pixels around it, find and compare the depth of the current pixel to the pixel directly surrounding it, use arrows to point in the direction the image is darkened, repeat this process until every pixel is replaced by an arrow; these arrows That is, gradients, they show the flow process from bright to dark on the image; distance measurement, this application obtains the relative position through the API of face recognition, and returns it to the communication control board to control the operation of the slide rail, effectively guiding the next step The temperature detection is convenient for personnel to carry out temperature detection.

具体而言,在进行人脸识别的同时,返回第一次识别后人脸的位置信息用于运动模块的移动,同时要对摄像头进行标定,其方法:基于图像中人脸相对于图片中心的偏移量与实际中人脸相对于检测终端的偏移量在固定的xoz平面内是呈线性,根据公式得到固定的比例系数a=θ/px,经过API中人脸方框的解析得到滑轨需要移动的距离Δx,以达到检测终端与车内检测人员位置一致;且

Figure GDA0002764827810000061
Specifically, while performing face recognition, the position information of the face after the first recognition is returned for the movement of the motion module, and the camera is to be calibrated at the same time. The offset and the actual offset of the face relative to the detection terminal are linear in the fixed xoz plane. According to the formula, the fixed proportional coefficient a=θ/p x is obtained, which is obtained through the analysis of the face box in the API. The distance Δx that the slide rail needs to move to achieve the same position of the detection terminal and the detection personnel in the vehicle; and
Figure GDA0002764827810000061

其中px是相机横向采集像素,x0、x1、x2和x3是人脸位置坐标,x是图像中人脸相对于图片中心的偏移量。Where p x is the horizontal acquisition pixel of the camera, x 0 , x 1 , x 2 and x 3 are the coordinates of the face position, and x is the offset of the face in the image relative to the center of the picture.

距离测算通过人脸识别的API得到相对位置,并返回给通讯控制板以控制滑轨的运行,有效的引导下一步的温度检测,方便人员进行体温检测。The distance measurement obtains the relative position through the face recognition API, and returns it to the communication control board to control the operation of the slide rail, which effectively guides the next temperature detection and facilitates the personnel to perform body temperature detection.

人脸识别的同时,返回第一次识别后人脸的位置信息用于运动模块的移动。这里需要对摄像头进行标定,其方法:假设图像中人脸相对于图片中心的偏移量与实际中人脸相对于检测终端的偏移量,在固定的xoz平面内是呈线性的。并根据公式得到固定的比例系数a=θ/px。最后,经过API中人脸方框的解析得到滑轨需要移动的距离Δx,以达到检测终端与车内检测人员位置一致,其原理如图3所示;At the same time of face recognition, the position information of the face after the first recognition is returned for the movement of the motion module. The camera needs to be calibrated here. The method is as follows: Assume that the offset of the face in the image relative to the center of the picture and the actual offset of the face relative to the detection terminal are linear in the fixed xoz plane. And a fixed proportional coefficient a=θ/p x is obtained according to the formula. Finally, through the analysis of the face box in the API, the distance Δx that the slide rail needs to move is obtained to achieve the same position of the detection terminal and the detection personnel in the vehicle. The principle is shown in Figure 3;

其中px是相机横向采集像素,x0、x1、x2和x3是人脸位置坐标,x是图像中人脸相对于图片中心的偏移量。Where p x is the horizontal acquisition pixel of the camera, x 0 , x 1 , x 2 and x 3 are the coordinates of the face position, and x is the offset of the face in the image relative to the center of the picture.

身份识别模块采用TY-801T嵌入式模块通过RFID对身份证信息的读取,并将读取后的信息传输至数据库中。身份识别模块需要实现对进出园区非库内人员的身份进行记录,以及将识别地信息实时上传至数据库,整体结构框图见图1;当识别到身份证时,读写器向射频卡发一组固定频率的电磁波,卡片内有一个LC串联谐振电路,其频率与读写器发射的频率相同,在电磁波的激励下,LC谐振电路产生共振,从而使电容内有了电荷,在这个电容的另一端,接有一个单向导通的电子泵,将电容内的电荷送到另一个电容内储存,当所积累的电荷达到2V时,此电容可作为电源为其它电路提供工作电压,将卡内数据发射出去或接取读写器的数据,见图2。The identity recognition module uses the TY-801T embedded module to read the ID card information through RFID, and transmit the read information to the database. The identity recognition module needs to record the identities of people entering and leaving the park and not in the warehouse, and upload the identification information to the database in real time. The overall structure diagram is shown in Figure 1; when the ID card is recognized, the reader sends a set of For electromagnetic waves with a fixed frequency, there is an LC series resonant circuit in the card, and its frequency is the same as the frequency emitted by the reader. Under the excitation of electromagnetic waves, the LC resonant circuit resonates, so that there is charge in the capacitor. One end is connected with a unidirectional electronic pump, which sends the charge in the capacitor to another capacitor for storage. When the accumulated charge reaches 2V, this capacitor can be used as a power supply to provide working voltage for other circuits, and transmit the data in the card. To send or receive data from the reader, see Figure 2.

车牌识别模块使用的是Http Post,使相机通过ssl与Http服务器进行连接。当有车辆时触发,识别系统会自动识别显示车辆信息。在配合其他模块检测完毕无异常情况后,相机通过IO输出,使道闸升起,从而控制车辆进出。The license plate recognition module uses Http Post to connect the camera with the Http server through ssl. Triggered when there is a vehicle, the identification system will automatically identify and display vehicle information. After cooperating with other modules to detect that there is no abnormal situation, the camera will raise the barrier through IO output, so as to control the entry and exit of vehicles.

识别模块针对固有人群和非固有人群有两者不同的数据校验方式,用于完成深度学习、影像采集、人脸图像预处理、人脸图像特征提取以及匹配与识别;人脸识别是指,获取影像采集模块获取的人脸信息,把人脸通过ResNet生成一个多维向量,生成向量之后计算与数据库中的向量欧氏距离,判定人脸的相似程度。第二阶段通过视频流的采集,对每一张图片先进行人脸检测,在对其进行人脸识别,将识别后所的信息在图片上进行标注;The recognition module has two different data verification methods for the inherent population and the non-inherent population, and is used to complete deep learning, image acquisition, face image preprocessing, face image feature extraction, and matching and recognition; face recognition refers to, Obtain the face information obtained by the image acquisition module, generate a multi-dimensional vector of the face through ResNet, and calculate the Euclidean distance from the vector in the database after the generated vector to determine the similarity of the face. In the second stage, through the collection of video streams, face detection is performed on each picture first, and then face recognition is performed on it, and the recognized information is marked on the picture;

体温检测模块采用非接触式红外温度传感器,型号为MLX90614ESF-BCC。该传感器能根据被测物体的红外辐射能量大小和波长分布来检测物体的表面温度。对于非接触式红外测温模块,很重要的一个概念是“视场(FOV)”。视场是由温差电堆接收到50%的辐射信号来确定的,并且和传感器的主轴线相关。测得的温度是视场内被测物体的温度加权平均值,所以当被测物体完全覆盖FOV视场时的准确度是最高的,见图4。The body temperature detection module adopts a non-contact infrared temperature sensor, the model is MLX90614ESF-BCC. The sensor can detect the surface temperature of the object according to the infrared radiation energy size and wavelength distribution of the measured object. For non-contact infrared temperature measurement modules, a very important concept is "field of view (FOV)." The field of view is determined by the thermopile receiving 50% of the radiation signal and is related to the main axis of the sensor. The measured temperature is a weighted average of the temperature of the measured object within the field of view, so the accuracy is highest when the measured object completely covers the FOV field of view, see Figure 4.

为了得到准确的检测体温,利用高精度测温计与红外温度传感器分别测量,结合距离传感器,绘制温度补偿曲线,经过补偿曲线得到的检测温度值更接近于实际温度。对MLX90614ESF-BCC进行测试,用MLX90614ESF-BCC检测距离不同,体温恒为35.5℃的物体,并将实验数据绘制成图5In order to obtain an accurate detection of body temperature, a high-precision thermometer and an infrared temperature sensor are used to measure separately, and a temperature compensation curve is drawn in combination with the distance sensor. The detected temperature value obtained through the compensation curve is closer to the actual temperature. Test the MLX90614ESF-BCC, use the MLX90614ESF-BCC to detect objects with different distances and a constant body temperature of 35.5 ℃, and draw the experimental data as Figure 5

该模块通过单片机对温度信息进行采样,随即经过串口转换IC将数据通过TTL电平通信传输,技术参数如下表4:The module samples the temperature information through the single-chip microcomputer, and then transmits the data through the serial port conversion IC through TTL level communication. The technical parameters are as follows in Table 4:

表4数据参数Table 4 Data Parameters

名称name 参数parameter 目标温度范围target temperature range -70°~330°-70°~330° 传感器环境范围Sensor environment range -40°~125°-40°~125° 测量精度measurement accuracy 0.5℃(0-50℃时候)0.5°C (0-50°C) 分辨率Resolution 0.02℃0.02℃ 响应频率response frequency 2HZ2Hz 工作电压Operating Voltage 3~5V3~5V 工作电流Working current 15mA15mA 尺寸size 21.5mm×23mm21.5mm×23mm

运动及控制组件包括机械臂模块、舵机驱动模块、通讯控制模块;The motion and control components include a robotic arm module, a steering gear drive module, and a communication control module;

机械臂模块包括五自由度机械臂,搭载检测终端以实现对车内人员的必要检测。机械臂作为重要的运动模块,帮助检测人员采取进入园区的必要信息。该机械臂由通讯控制板转发坐标,由舵机驱动板转换信号,由各舵机驱动,当检测终端通过距离传感器判断与车体之间的位置,驱动板能够通过逆运动学解算出各电机需转动的角度,最终达到方便车内人员检测地位置。The robotic arm module includes a five-degree-of-freedom robotic arm equipped with a detection terminal to realize the necessary detection of people in the vehicle. As an important motion module, the robotic arm helps inspectors take necessary information to enter the park. The mechanical arm is forwarded by the communication control board, and the signal is converted by the steering gear drive board, which is driven by each steering gear. When the detection terminal judges the position between the vehicle body and the vehicle body through the distance sensor, the driving board can calculate each motor through inverse kinematics. The angle that needs to be rotated will eventually reach a position that is convenient for people in the car to detect.

舵机驱动模块使用运动学方程的逆解来实现机械臂的运动控制,其基本步骤包括:The servo drive module uses the inverse solution of the kinematic equation to realize the motion control of the manipulator. The basic steps include:

步骤一、建立基于关节空间和笛卡儿空间的运动学关系Step 1. Establish the kinematic relationship based on joint space and Cartesian space

釆用齐次变换矩阵建立机械臂末端的位姿表达式,描述由关节空间到笛卡儿空间的正运动学解或笛卡尔空间到关节空间的逆运动学解,具体而言;利用DH参数表达两对关节连杆之间位置角度关系的机械臂数学模型和坐标系确定系统,根据机械臂的结构参数和与舵机运动范围得到关节和连杆参数,并将这些参数代入

Figure GDA0002764827810000081
变换矩阵中。The homogeneous transformation matrix is used to establish the pose expression of the end of the manipulator, describing the forward kinematics solution from joint space to Cartesian space or the inverse kinematics solution from Cartesian space to joint space, specifically; using the DH parameter The mathematical model and coordinate system determination system of the manipulator expressing the position and angle relationship between the two pairs of joint links. According to the structural parameters of the manipulator and the motion range of the steering gear, the parameters of the joints and links are obtained, and these parameters are substituted into
Figure GDA0002764827810000081
in the transformation matrix.

根据公式:According to the formula:

Figure GDA0002764827810000082
Figure GDA0002764827810000082

依次计算每个关节,最后得到机械臂的正运动学公式,代入DH参数得到各关节的旋转矩阵:Calculate each joint in turn, and finally get the positive kinematics formula of the manipulator, and substitute the DH parameters to get the rotation matrix of each joint:

Figure GDA0002764827810000083
Figure GDA0002764827810000083

Figure GDA0002764827810000091
Figure GDA0002764827810000091

得到各关节的旋转矩阵后即可根据下面公式得到末端的坐标:After obtaining the rotation matrix of each joint, the coordinates of the end can be obtained according to the following formula:

Figure GDA0002764827810000092
Figure GDA0002764827810000092

步骤二、运动学方程逆解Step 2. Inverse solution of kinematic equation

利用人脸识别返回的坐标指导机械臂运动从而实现检测终端能够与检测人员的位置合适;The coordinates returned by face recognition are used to guide the movement of the robotic arm, so that the detection terminal can be properly positioned with the detection personnel;

并基于步骤一中获得的齐次变换矩阵

Figure GDA0002764827810000093
求解各转动关节的角度θi;机械臂的端点P的坐标(x,y)由三个部分(x1+x2+x3,y1+y2+y3)组成。其中上式的θ1、θ2和θ3是求解的舵机的角度,a是爪子与水平面的夹角,且a=θ123,且:and based on the homogeneous transformation matrix obtained in step one
Figure GDA0002764827810000093
Solve the angle θ i of each rotating joint; the coordinate (x, y) of the end point P of the manipulator consists of three parts (x 1 +x 2 +x 3 , y 1 +y 2 +y 3 ). where θ 1 , θ 2 and θ 3 in the above formula are the angles of the steering gear to be solved, a is the angle between the claw and the horizontal plane, and a=θ 123 , and:

x=l1cosθ1+l2cos(θ12)+l3cos(θ123)x=l 1 cosθ 1 +l 2 cos(θ 12 )+l 3 cos(θ 123 )

y=l1sinθ1+l2sin(θ12)+l3sin(θ123)y=l 1 sinθ 1 +l 2 sin(θ 12 )+l 3 sin(θ 123 )

m=l3cosa-x n=l3sina-ym=l 3 cosa-x n=l 3 sina-y

x和y由使用者给出。l1、l2和l3为机械臂的机械结构固有属性,将m和n代入已有方程,再化简可得:l2=(l1cosθ1+m)2+(l1sinθ1+n)2 x and y are given by the user. l 1 , l 2 and l 3 are the inherent properties of the mechanical structure of the manipulator. Substitute m and n into the existing equations, and then simplify to get: l 2 =(l 1 cosθ 1 +m) 2 +(l 1 sinθ 1 +n) 2

通过计算可得:

Figure GDA0002764827810000094
It can be obtained by calculation:
Figure GDA0002764827810000094

上式是一元二次方程的求根公式的形式,其中a=m2+n2 The above formula is the form of the root-finding formula of the quadratic equation in one variable, where a=m 2 +n 2

Figure GDA0002764827810000095
Figure GDA0002764827810000095

据此我们可以求出θ1、θ2的角度;基于上述步骤求解三个舵机的角度,根据角度控制舵机即实现坐标位置的控制。According to this, we can obtain the angles of θ 1 and θ 2 ; solve the angles of the three steering gears based on the above steps, and control the steering gears according to the angles to realize the control of the coordinate position.

还包括信息互联组件,包括基于STM32F103C8T6为核心的计通讯控制板,KEIL编程实现读取传感器信息上传485总线、步进电机控制、拓展GPIO外设;包括两个TTL串口,用于连接传感器;一个485串口接口,连接485控制总线;5路GPIO,GPIO包括通用定时器TIMER3通道1、2;采用74LS244进行3.3V-5V升压,进行四线步进电机控制;UART2与上位机通信,接收中断对下发指令校验并解析,控制UART1、3对相应外设通讯控制。UART1及其中断与温度传感器通讯,UART3根据上位机指令对机械臂下发坐标信息。由PB0引脚下降沿触发外部中断,启动距离传感器。It also includes information interconnection components, including a design communication control board based on STM32F103C8T6, KEIL programming to read sensor information and upload 485 bus, stepper motor control, and expand GPIO peripherals; including two TTL serial ports for connecting sensors; one 485 serial port interface, connected to 485 control bus; 5-way GPIO, GPIO includes general timer TIMER3 channel 1, 2; 74LS244 is used for 3.3V-5V boost, and four-wire stepper motor control; UART2 communicates with the host computer, receiving interruption Verifies and parses the issued instructions, and controls UART1 and 3 to control the communication of corresponding peripherals. UART1 and its interrupt communicate with the temperature sensor, and UART3 sends coordinate information to the robotic arm according to the instructions of the host computer. The external interrupt is triggered by the falling edge of the PB0 pin to start the distance sensor.

其具体实施方式是:Its specific implementation is:

当车辆驶来,地感线圈触发高清摄像头首先对车型和牌照进行识别处理,同时控制室遥控语音提示车内人员降下车窗。根据摄像头反馈车型,首先将机械臂移动到对应高度,并对滑轨进行定位。终端搭载的树莓派通过人脸捕捉判断座位是否有乘客,若有则计算终端与待测人员位置偏差将坐标发送给连接终端的通讯控制板,进而精确控制滑轨位置,通过逆运动学计算调整机械臂姿态,流程中同步将被测人员人脸特征与数据库比对,以判断是否需要额外刷证登记信息。检测终端按照流程识别采集完成乘客待测信息后,通过通讯控制板汇总,将信息上发至控制室的上位机,并由其上传至云端。各个节点可随时调用数据库内信息,实现园区管理互联互通。When the vehicle is approaching, the ground-sensing coil triggers the high-definition camera to first identify the model and license plate, and at the same time, the remote control voice in the control room prompts the occupants to lower the windows. According to the camera feedback model, first move the robotic arm to the corresponding height and position the slide rail. The Raspberry Pi carried by the terminal judges whether there is a passenger in the seat through face capture, and if so, calculates the position deviation between the terminal and the person to be tested, and sends the coordinates to the communication control board connected to the terminal, so as to precisely control the position of the slide rail, and calculate through inverse kinematics. Adjust the posture of the robotic arm, and compare the facial features of the tested person with the database synchronously in the process to determine whether additional registration information is required. After the detection terminal recognizes and collects the passenger information to be tested according to the process, it will be aggregated through the communication control panel, and the information will be sent to the upper computer in the control room, which will then upload it to the cloud. Each node can call the information in the database at any time to realize the interconnection of park management.

将手持式测温仪、站点式热成像检测仪和本作品等三种检测方式进行对比。对比3种不同方式的功能。根据一般车内乘坐分布情况,对比各检测方式耗时。通过对比分析发现,本作品需要的工作人员的较少,对站点工作人员的工作强度较小和医疗防护要求低,检测时间较少,可以很方便地记录乘车人员,具体参数对比见表5和表6。Compare the three detection methods of hand-held thermometer, site-based thermal imaging detector and this work. Compare the functions of 3 different ways. According to the general distribution of passengers in the car, it is time-consuming to compare the detection methods. Through comparative analysis, it is found that this work requires less staff, less work intensity for site staff, low medical protection requirements, and less detection time, which can easily record the passengers. The specific parameters are shown in Table 5. and Table 6.

表5各检测方式功能对比Table 5 Function comparison of each detection method

Figure GDA0002764827810000101
Figure GDA0002764827810000101

表6各检测方式平均耗时对比Table 6 Comparison of the average time consumption of each detection method

Figure GDA0002764827810000102
Figure GDA0002764827810000102

在复工复产复学过程中,控制好新冠疫情二次爆发尤为重要。尤其在类似于高校、生活小区等人群较为密集的场所,预防和及时发现新冠病毒感染者对疫情防控具有极其重要的作用。纵观原因,是缺乏强有力的识别检测监察系统,市场为高危密集型场,人口密度相对较大,一旦出现病例容易发生聚集性的大爆发。随着温度的升高,全身防护手持测温枪的测温模式也显得不合时宜。而人工智能的发展为改变这种测温方式,建立一套智能检测监察系统提供了先决条件。In the process of resuming work, production and school, it is particularly important to control the second outbreak of the new crown epidemic. Especially in crowded places such as colleges and living quarters, prevention and timely detection of people infected with the new coronavirus plays an extremely important role in epidemic prevention and control. Looking at the reasons, it is the lack of a strong identification, detection and monitoring system. The market is a high-risk intensive field with a relatively large population density. Once a case occurs, a large outbreak of clusters is likely to occur. As the temperature rises, the temperature measurement mode of the whole body protection handheld thermometer also seems out of date. The development of artificial intelligence provides a prerequisite for changing this temperature measurement method and establishing an intelligent detection and monitoring system.

为解决疫情防控态势下无接触测温检测、智能防控等问题,,还增设车牌、人脸和身份识别的功能,对所有进出园区人员进行全天候无接触检测,以保证工作人员和园区内部的安全。该系统可以有效地保障检测人员的安全,减少检测人员的工作强度,同时降低检测人员的防护成本,适合在高校和生活小区大量推广使用,具有较高的市场价值。In order to solve the problems of non-contact temperature measurement and intelligent prevention and control under the situation of epidemic prevention and control, the functions of license plate, face and identity recognition are also added, and all personnel entering and leaving the park are subject to all-weather non-contact detection to ensure that staff and the inside of the park security. The system can effectively ensure the safety of the inspectors, reduce the work intensity of the inspectors, and at the same time reduce the protection costs of the inspectors.

最后应当说明的是,以上实施例仅用以说明本发明创造的技术方案,而非对本发明创造保护范围的限制,尽管参照较佳实施例对本发明创造作了详细地说明,本领域的普通技术人员应当理解,可以对本发明创造的技术方案进行修改或者等同替换,而不脱离本发明创造技术方案的实质和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit the protection scope of the present invention. Persons should understand that the technical solutions of the present invention may be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of the present invention.

Claims (4)

1.一种用于疫情期间园区道闸智能执管系统,其特征在于,包括识别检测组件、运动及控制组件、信息互联组件;1. an intelligent management system for park gates during an epidemic, characterized in that it comprises identification and detection components, motion and control components, and information interconnection components; 识别检测组件包括影像数据库模块、采集模块、检测模块、识别模块;The identification and detection component includes an image database module, a collection module, a detection module, and an identification module; 数据库模块针对固有人群和临时人群采取建立固有数据库和临时数据库进行上传,数据库模块采用如下方式建立:The database module establishes an inherent database and a temporary database for uploading for the inherent and temporary crowds. The database module is established in the following ways: S01、在现有人脸数据集的基础上,利用开源库dlib中的深度学习模型结合人脸特征对残差网络进行训练,得到网络模型;S01. On the basis of the existing face data set, use the deep learning model in the open source library dlib to combine the face features to train the residual network to obtain a network model; S02、内设固有人员数据表和临时人员数据表两部分,数据库模块基于识别模块采集所有进入园区的人员信息,当所有数据检测完毕时,将数据打包按照固定的数据格式向服务器发送及存储,并定时清除临时人员信息;所述数据表至少包括设备运行状态表、非固有人员信息表和固有人员信息表;S02. There are two parts: the inherent personnel data table and the temporary personnel data table. The database module collects the information of all personnel entering the park based on the identification module. When all data detection is completed, the data is packaged and sent to the server according to a fixed data format and stored. And periodically clear temporary personnel information; the data table at least includes equipment operation status table, non-inherent personnel information table and inherent personnel information table; 采集模块包括用于进行影像采集的摄像头,较优的,采用红外夜视摄像头,采集模块将采集到的图像数据传送至树莓派3b+,支持远程登陆操作和离线操作两种方式,经过python语言程序对图像处理以识别测温对象,The acquisition module includes a camera for image acquisition, preferably an infrared night vision camera. The acquisition module transmits the collected image data to the Raspberry Pi 3b+, and supports remote login operation and offline operation. Through the python language The program processes the image to identify the temperature measurement object, 所述识别模块用于完成如下步骤:The identification module is used to complete the following steps: S1、特征提取:计算和统计图像局部区域的梯度方向直方图来构成特征;所述梯度方向采用如下方式获取:将检测图像转换为黑白,对于图片中的每一个像素,将其与周围的其他像素进行对比,找出并比较当前像素与直接围绕它的像素的深度,使用箭头来指向图像变暗的方向,重复这个过程,直至每个像素均被箭头取代;这些箭头即为梯度,它们显示出图像上从明亮到黑暗的流动过程;S1. Feature extraction: Calculate and count the gradient direction histogram of the local area of the image to form a feature; the gradient direction is obtained in the following way: convert the detected image into black and white, and for each pixel in the image, compare it with other surrounding Pixels are compared, find and compare the depth of the current pixel to the pixel directly surrounding it, use the arrows to point in the direction of the darkening of the image, repeat this process until every pixel is replaced by an arrow; these arrows are the gradients, they show out the flow from light to dark on the image; S2、距离测算,通过人脸识别的API得到相对位置,并返回给通讯控制板以控制滑轨的运行,引导下一步的温度检测:S2, distance measurement, obtain the relative position through the face recognition API, and return it to the communication control board to control the operation of the slide rail, and guide the next temperature detection: 具体而言,在进行人脸识别的同时,返回第一次识别后人脸的位置信息用于运动模块的移动,同时要对摄像头进行标定,基于图像中人脸相对于图片中心的偏移量与实际中人脸相对于检测终端的偏移量在固定的xoz平面内是呈线性,根据公式得到固定的比例系数α=θ/px,经过API中人脸方框的解析得到滑轨需要移动的距离Δx,以达到检测终端与车内检测人员位置一致;Specifically, while performing face recognition, the position information of the face after the first recognition is returned for the movement of the motion module, and the camera is calibrated at the same time, based on the offset of the face in the image relative to the center of the image The offset of the actual face relative to the detection terminal is linear in the fixed xoz plane. According to the formula, the fixed proportional coefficient α=θ/p x is obtained. After the analysis of the face box in the API, the slide rail needs are obtained. The moving distance Δx to achieve the same position of the detection terminal and the detection personnel in the vehicle;
Figure FDA0003546511900000011
Figure FDA0003546511900000011
其中px是相机横向采集像素,x0、x1、x2和x3是人脸位置坐标,x是图像中人脸相对于图片中心的偏移量;where p x is the horizontal acquisition pixel of the camera, x 0 , x 1 , x 2 and x 3 are the position coordinates of the face, and x is the offset of the face in the image relative to the center of the image; 运动及控制组件包括机械臂模块、舵机驱动模块;The motion and control components include the robotic arm module and the steering gear drive module; 机械臂模块包括五自由度机械臂,搭载检测终端以实现对车内人员的必要检测;机械臂作为重要的运动模块,帮助检测人员采取进入园区的必要信息;该机械臂由通讯控制板转发坐标,由舵机驱动板转换信号,由各舵机驱动,当检测终端通过距离传感器判断与车体之间的位置,驱动板能够通过逆运动学解算出各电机需转动的角度,最终达到方便车内人员检测地位置;The robotic arm module includes a five-degree-of-freedom robotic arm, which is equipped with a detection terminal to realize the necessary detection of people in the vehicle; the robotic arm, as an important motion module, helps the detection personnel to obtain the necessary information for entering the park; the robotic arm is forwarded by the communication control board. , the signal is converted by the steering gear drive board and driven by each steering gear. When the detection terminal judges the position between the vehicle body and the vehicle body through the distance sensor, the drive board can calculate the angle that each motor needs to rotate through inverse kinematics, and finally achieve a convenient car. The location of the personnel detection location; 舵机驱动模块使用运动学方程的逆解来实现机械臂的运动控制,其基本步骤包括:The servo drive module uses the inverse solution of the kinematic equation to realize the motion control of the manipulator. The basic steps include: 步骤一、建立基于关节空间和笛卡儿空间的运动学关系Step 1. Establish the kinematic relationship based on joint space and Cartesian space 釆用齐次变换矩阵建立机械臂末端的位姿表达式,描述由关节空间到笛卡儿空间的正运动学解或笛卡尔空间到关节空间的逆运动学解,具体而言;利用DH参数表达两对关节连杆之间位置角度关系的机械臂数学模型和坐标系确定系统,根据机械臂的结构参数和与舵机运动范围得到关节和连杆参数,并将这些参数代入
Figure FDA0003546511900000021
变换矩阵中;
The homogeneous transformation matrix is used to establish the pose expression of the end of the manipulator, describing the forward kinematics solution from joint space to Cartesian space or the inverse kinematics solution from Cartesian space to joint space, specifically; using the DH parameter The mathematical model and coordinate system determination system of the manipulator expressing the position and angle relationship between the two pairs of joint links. According to the structural parameters of the manipulator and the motion range of the steering gear, the parameters of the joints and links are obtained, and these parameters are substituted into
Figure FDA0003546511900000021
in the transformation matrix;
根据公式:
Figure FDA0003546511900000022
According to the formula:
Figure FDA0003546511900000022
依次计算每个关节,最后得到机械臂的正运动学公式,代入DH参数得到各关节的旋转矩阵:Calculate each joint in turn, and finally get the positive kinematics formula of the manipulator, and substitute the DH parameters to get the rotation matrix of each joint:
Figure FDA0003546511900000023
Figure FDA0003546511900000023
Figure FDA0003546511900000024
Figure FDA0003546511900000024
Figure FDA0003546511900000025
Figure FDA0003546511900000025
Figure FDA0003546511900000031
Figure FDA0003546511900000031
Figure FDA0003546511900000032
Figure FDA0003546511900000032
得到各关节的旋转矩阵后即可根据下面公式得到末端的坐标:After obtaining the rotation matrix of each joint, the coordinates of the end can be obtained according to the following formula:
Figure FDA0003546511900000033
Figure FDA0003546511900000033
步骤二、运动学方程逆解Step 2. Inverse solution of kinematic equation 利用人脸识别返回的坐标指导机械臂运动从而实现检测终端能够与检测人员的位置合适;The coordinates returned by face recognition are used to guide the movement of the robotic arm, so that the detection terminal can be properly positioned with the detection personnel; 并基于步骤一中获得的齐次变换矩阵
Figure FDA0003546511900000037
求解各转动关节的角度θi;机械臂的端点P的坐标(x,y)由三个部分(x1+x2+x3,y1+y2+y3)组成;其中上图的θ1、θ2和θ3是求解的舵机的角度,α是爪子与水平面的夹角,且α=θ123,且:
and based on the homogeneous transformation matrix obtained in step one
Figure FDA0003546511900000037
Solve the angle θ i of each rotating joint; the coordinates (x, y) of the endpoint P of the robotic arm consist of three parts (x 1 +x 2 +x 3 , y 1 +y 2 +y 3 ); θ 1 , θ 2 and θ 3 are the angles of the solved steering gear, α is the angle between the claw and the horizontal plane, and α=θ 123 , and:
x=l1cosθ1+l2cos(θ12)+l3cos(θ123)x=l 1 cosθ 1 +l 2 cos(θ 12 )+l 3 cos(θ 123 ) y=l1sinθ1+l2sin(θ12)+l3sin(θ123)y=l 1 sinθ 1 +l 2 sin(θ 12 )+l 3 sin(θ 123 ) m=l3cosα-xm=l 3 cosα-x n=l3sinα-yn=l 3 sinα-y x和y由使用者给出;l1、l2和l3为机械臂的机械结构固有属性,将m和n代入已有方程,再化简可得:
Figure FDA0003546511900000034
x and y are given by the user; l 1 , l 2 and l 3 are the inherent properties of the mechanical structure of the manipulator. Substitute m and n into the existing equations, and then simplify to get:
Figure FDA0003546511900000034
通过计算可得:
Figure FDA0003546511900000035
It can be obtained by calculation:
Figure FDA0003546511900000035
上式是一元二次方程的求根公式的形式,其中a=m2+n2 The above formula is the form of the root-finding formula of the quadratic equation in one variable, where a=m 2 +n 2
Figure FDA0003546511900000036
Figure FDA0003546511900000036
据此可以求出θ1、θ2的角度;基于上述步骤求解三个舵机的角度,根据角度控制舵机即实现坐标位置的控制。According to this, the angles of θ 1 and θ 2 can be obtained; the angles of the three steering gears can be obtained based on the above steps, and the control of the coordinate positions can be realized by controlling the steering gears according to the angles.
2.根据权利要求1所述一种用于疫情期间园区道闸智能执管系统,其特征在于,还包括信息互联组件;包括基于STM32F103C8T6为核心的计通讯控制板,KEIL编程实现读取传感器信息上传485总线、步进电机控制、拓展GPIO外设;包括两个TTL串口,用于连接传感器;一个485串口接口,连接485控制总线;5路GPIO,GPIO包括通用定时器TIMER3通道1、2;采用74LS244进行3.3V-5V升压,进行四线步进电机控制。2. A kind of intelligent management system for park gates during the epidemic period according to claim 1, it is characterized in that, also comprises information interconnection components; Comprises the communication control board based on STM32F103C8T6 as the core, KEIL programming realizes reading sensor information Upload 485 bus, stepper motor control, expand GPIO peripherals; include two TTL serial ports for connecting sensors; one 485 serial port interface for connecting 485 control bus; 5 GPIOs, GPIO includes general timer TIMER3 channel 1, 2; The 74LS244 is used for 3.3V-5V boost and four-wire stepper motor control. 3.根据权利要求1所述一种用于疫情期间园区道闸智能执管系统,其特征在于,信息互联组件使用KEIL对于STM32F103进行编程控,UART2与上位机通信,接收中断对下发指令校验并解析,控制UART1、3对相应外设通讯控制;UART1及其中断与温度传感器通讯,UART3根据上位机指令对机械臂下发坐标信息;由PB0引脚下降沿触发外部中断,启动距离传感器。3. A kind of intelligent management system for park gates during the epidemic period according to claim 1, it is characterized in that, the information interconnection component uses KEIL to carry out programming control for STM32F103, UART2 communicates with the host computer, and the receiving interrupt corrects the issued instruction. Check and analyze, control the communication control of UART1 and 3 to the corresponding peripherals; UART1 and its interrupt communicate with the temperature sensor, and UART3 sends coordinate information to the robotic arm according to the command of the host computer; the external interrupt is triggered by the falling edge of the PB0 pin to start the distance sensor . 4.根据权利要求1所述一种用于疫情期间园区道闸智能执管系统,其特征在于,识别模块包括身份识别模块、车牌识别模块;所述身份识别模块采用TY-801T嵌入式模组,通过RFID技术对身份证信息的读取,并将读取后的信息传输至数据库中,身份识别模块需要实现对进出园区非库内人员的身份进行记录,以及将识别地信息实时上传至数据库;车牌识别模块使用的是Http Post,使相机通过ssl与Http服务器进行连接,当有车辆时触发,识别系统会自动识别显示车辆信息。4. a kind of intelligent management system for park gates during epidemic situation according to claim 1, is characterized in that, identification module comprises identification module, license plate identification module; Described identification module adopts TY-801T embedded module , Read the ID card information through RFID technology, and transmit the read information to the database. The identity recognition module needs to record the identities of people entering and leaving the park and not in the warehouse, and upload the identification information to the database in real time. ;The license plate recognition module uses Http Post, so that the camera is connected to the Http server through ssl. When there is a vehicle, the recognition system will automatically recognize and display the vehicle information.
CN202010828150.7A 2020-08-17 2020-08-17 An intelligent management system for park gates during the epidemic Active CN112070942B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010828150.7A CN112070942B (en) 2020-08-17 2020-08-17 An intelligent management system for park gates during the epidemic

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010828150.7A CN112070942B (en) 2020-08-17 2020-08-17 An intelligent management system for park gates during the epidemic

Publications (2)

Publication Number Publication Date
CN112070942A CN112070942A (en) 2020-12-11
CN112070942B true CN112070942B (en) 2022-04-22

Family

ID=73661368

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010828150.7A Active CN112070942B (en) 2020-08-17 2020-08-17 An intelligent management system for park gates during the epidemic

Country Status (1)

Country Link
CN (1) CN112070942B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112695674A (en) * 2020-12-16 2021-04-23 深圳市创智安防设备有限公司 Face identification banister with monitoring function just has temperature measurement function
CN115966043A (en) * 2022-10-31 2023-04-14 山西工程职业学院 A high-speed port intelligent scanning system and method
CN116758515A (en) * 2023-06-19 2023-09-15 一汽解放汽车有限公司 A vehicle-mounted outdoor pedestrian location recognition system and method

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102663846A (en) * 2012-05-11 2012-09-12 尤敦朋 Intelligent visitor management system based on android operating platform and control method thereof
JP2015062541A (en) * 2013-09-25 2015-04-09 株式会社東芝 X-ray photographing device
JP2016151734A (en) * 2015-02-19 2016-08-22 株式会社ニコン Imaging device
CN107481359A (en) * 2017-07-14 2017-12-15 昆明理工大学 Intelligent door lock system and its control method based on P300 and Mental imagery
CN109087285A (en) * 2018-07-13 2018-12-25 中国人民解放军海军工程大学 Surgery wound detects debridement robot
CN209690995U (en) * 2019-01-01 2019-11-26 广东顺安万城物联技术有限公司 A visitor vehicle management linkage access control system
CN111397015A (en) * 2020-03-25 2020-07-10 哈尔滨工业大学 Modularization epidemic prevention device

Also Published As

Publication number Publication date
CN112070942A (en) 2020-12-11

Similar Documents

Publication Publication Date Title
CN112070942B (en) An intelligent management system for park gates during the epidemic
CN110110629B (en) Personnel information detection method and system for indoor environment control
CN110614638A (en) Transformer substation inspection robot autonomous acquisition method and system
CN107720552A (en) A kind of assembled architecture intelligence hanging method based on computer machine vision
CN208044361U (en) A kind of multifunctional intellectual building site face identification system
CN102103663A (en) Ward visit service robot system and target searching method thereof
CN112232139A (en) Obstacle avoidance method based on combination of Yolo v4 and Tof algorithm
WO2023277812A2 (en) Body temperature measurement method and body temperature measurement system
Wang et al. Design of temperature measurement identification instrument based on OpenMV and MLX90614
CN112785564B (en) Pedestrian detection tracking system and method based on mechanical arm
CN112543272B (en) Transformer substation inspection camera device with light regulation function and method
CN104660973A (en) Remote equipment control and management modular system based on visual information recognition
CN114961381A (en) Parking robot and wheel positioning method thereof
CN109974853A (en) A bionic vision target detection and tracking method based on multispectral composite
Sun et al. A systematic evaluation of different indoor localization methods in robotic autonomous luggage trolley collection at airports
Li et al. A vision-based end pose estimation method for excavator manipulator
CN209785022U (en) Multi-person scene concentration recognition device based on face recognition
CN113084776A (en) Intelligent epidemic prevention robot and system based on vision and multi-sensor fusion
CN115861849B (en) Climbing protection method and system for a steel cast tower
CN115454138B (en) Construction violation determination method and system based on unmanned aerial vehicle image recognition technology
CN104656596B (en) Equipment management system based on wireless remote communication and fingerprint information extraction and control
CN116012787A (en) A safety monitoring method and system based on high-altitude balloon and UAV bee colony
CN106056686A (en) Indoor patrol estimation and analysis method based on three-dimensional profile
CN212208397U (en) Security system
Chaari et al. A Prototype of a Robot Capable of Tracking Anyone with a High Body Temperature in Crowded Areas.

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant