Multi-sensor cooperation pedestrian flow detection statistical method and device

文档序号:1738301 发布日期:2019-12-20 浏览:25次 中文

阅读说明:本技术 一种多传感器协作的人流量检测统计方法与装置 (Multi-sensor cooperation pedestrian flow detection statistical method and device ) 是由 张文利 徐祺智 胡思晨 李乐洪 王梓新 李晖 于 2019-09-05 设计创作,主要内容包括:本发明公开了一种多传感器协作的人流量检测统计方法与装置,该装置包括传感器模块、微控制器模块、电源供电模块、无线传输模块和用户端显示模块。所述电源供电模块给传感器模块、微控制器模块、无线传输模块和用户端显示模块提供电能。所述无线传输模块与所述用户端显示模块之间的交互关系如下,从所述微控制器模块运算得出的人流量数据通过无线传输模块传输到用户端显示模块,用户通过用户端显示模块直接获取人流量数据,进行显示或进一步分析。本装置可以放置在图书馆、食堂、教室等公共场所,不仅可以检测复杂人流量进出方式,还能识别单人与并排通过的区别,能够准确的进行人流量的检测。(The invention discloses a people flow detection statistical method and device based on multi-sensor cooperation. The power supply module supplies electric energy to the sensor module, the microcontroller module, the wireless transmission module and the user side display module. The interactive relation between the wireless transmission module and the user side display module is as follows, the people flow data obtained by the operation of the microcontroller module is transmitted to the user side display module through the wireless transmission module, and a user directly obtains the people flow data through the user side display module to display or further analyze the people flow data. This device can be placed in public places such as library, dining room, classroom, not only can detect complicated people flow business turn over mode, can also discern single and the difference that passes through side by side, the detection of carrying on people flow that can be accurate.)

1. The utility model provides a people flow detection statistics device of multisensor cooperation which characterized in that: the device comprises a plurality of devices which are connected with each other,

the system comprises a sensor module (10), a microcontroller module (20), a power supply module (30), a wireless transmission module (40) and a user side display module (50); the power supply module (30) provides electric energy for the sensor module (10), the microcontroller module (20), the wireless transmission module (40) and the user side display module (50); the interactive relation between the wireless transmission module (40) and the user side display module (50) is as follows, the people flow data obtained by the operation of the microcontroller module (20) is transmitted to the user side display module (50) through the wireless transmission module (40), and a user directly obtains the people flow data through the user side display module (50) for display or further analysis;

the sensor module (10) comprises a first infrared diffuse reflection sensor (101), a second infrared diffuse reflection sensor (102), a third infrared diffuse reflection sensor (103), a fourth infrared ranging sensor (104) and a fifth infrared ranging sensor (105).

2. The device for people flow detection and statistics with cooperation of multiple sensors according to claim 1, is characterized in that: the placement position and the connection relation of each sensor in the sensor module (10) are realized by the following modes:

the first infrared diffuse reflection sensor (101), the second infrared diffuse reflection sensor (102) and the third infrared diffuse reflection sensor (103) in the sensor module (10) are connected in a rigid connection mode or are connected with each other in a telescopic hinge mode so as to adjust the distance between the sensors according to different site requirements;

the first infrared diffuse reflection sensor (101), the second infrared diffuse reflection sensor (102) and the third infrared diffuse reflection sensor (103) are arranged in a triangular structure, for example, the first infrared diffuse reflection sensor (101) and the third infrared diffuse reflection sensor (103) are arranged at the lower part, the second infrared diffuse reflection sensor (102) is arranged at the upper part, wherein the horizontal spacing between the first infrared diffuse reflectance sensor (101), the second infrared diffuse reflectance sensor (102) and the third infrared diffuse reflectance sensor (103) should be greater than the average shoulder width of a person, the large-distance arrangement mode aims at only shielding one infrared diffuse reflection sensor when a person passes through the infrared diffuse reflection sensor, so that a single infrared diffuse reflection sensor generates signal change, the other two infrared diffuse reflection sensors have no signal change, and the method is favorable for analyzing the condition that the complex pedestrian flow passes through the infrared diffuse reflection sensors in the subsequent specific implementation scheme;

a fourth infrared distance measuring sensor (104) in the sensor module (10) is arranged at a position right below a second infrared diffuse reflection sensor (102) which is arranged in a triangular shape, and the detection directions of the fourth infrared distance measuring sensor are the same as the detection directions of a first infrared diffuse reflection sensor (101) and a third infrared diffuse reflection sensor (103) at the bottom angle; the fifth infrared distance measuring sensor (105) is placed at a fixed position in the direction directly opposite to the fourth infrared distance measuring sensor (104), and the detection direction is opposite to the fourth infrared distance measuring sensor (104).

3. The device for people flow detection and statistics with cooperation of multiple sensors according to claim 2, is characterized in that: the microcontroller module (20) is placed at any position beside a first infrared diffuse reflection sensor (101), a second infrared diffuse reflection sensor (102) and a third infrared diffuse reflection sensor (103) which are placed in a triangular structure and do not interfere with detection, and signals output by the first infrared diffuse reflection sensor (101), the second infrared diffuse reflection sensor (102), the third infrared diffuse reflection sensor (103) and a fourth infrared distance measuring sensor (104) are connected with an I/O port of the microcontroller module (20) through a lead.

4. The device for people flow detection and statistics with cooperation of multiple sensors according to claim 2, is characterized in that: the power supply module (30) is arranged at any position beside the microcontroller module, which does not interfere with detection, and is connected with the first infrared diffuse reflection sensor (101), the second infrared diffuse reflection sensor (102), the third infrared diffuse reflection sensor (103), the fourth infrared ranging sensor (104) and the microcontroller module (20) by using a lead; the fifth infrared distance measuring sensor (105) is fixed at the other side, so the signal output by the fifth infrared distance measuring sensor is connected to the I/O port of the microcontroller module (20) and the power supply module (30) by using a wire, and meanwhile, an aluminum alloy ground wire groove is covered on the wire to prevent the tripping of a passing person.

5. The device for people flow detection and statistics with cooperation of multiple sensors according to claim 2, is characterized in that: the wireless transmission module (40) is a Wifi or 4G wireless transmission module; the receiving data serial port RX of the wireless transmission module, for example, the Wifi transmission module, is connected to the transmitting data serial port TX of the microcontroller 20.

6. The device for people flow detection and statistics with cooperation of multiple sensors according to claim 2, is characterized in that: the user side display module (50) is terminal equipment used by a user, and an LED screen, a server for storing data, a mobile phone or a computer for receiving data, which are connected with the whole device.

7. The device for people flow detection and statistics with cooperation of multiple sensors according to claim 1, is characterized in that: a first infrared diffuse reflection sensor (101), a second infrared diffuse reflection sensor (102) and a third infrared diffuse reflection sensor (103) in the sensor module (10) output low-level voltage signals when no person passes through the sensor module, and when a person passes through the sensor module and blocks the sensor module, high-level voltage jumping is generated sequentially.

A fourth infrared distance measuring sensor (104) and a fifth infrared distance measuring sensor (105) in the sensor module (10) are provided with a pair of infrared signal transmitting and receiving diodes, an infrared distance measuring sensor LDM301 is used for transmitting a beam of infrared light, a reflecting process is formed after the infrared distance measuring sensor LDM irradiates an object, the infrared distance measuring sensor LDM reflects the infrared light to the sensors and receives the signals, and then CCD image processing is used for receiving data of time difference between transmitting and receiving; calculating the distance of the object after being processed by the signal processor; when no person passes through the infrared distance measuring sensor, the fourth infrared distance measuring sensor (104) and the fifth infrared distance measuring sensor (105) do not output signals; when a single person passes through and blocks the fourth infrared distance measuring sensor (104) and the fifth infrared distance measuring sensor (105), the fourth infrared distance measuring sensor (104) and the fifth infrared distance measuring sensor (105) output a voltage signal; when people pass through the fourth infrared distance measuring sensor (104) and the fifth infrared distance measuring sensor (105) side by side and block the fourth infrared distance measuring sensor (104) and the fifth infrared distance measuring sensor (105), the fourth infrared distance measuring sensor (104) and the fifth infrared distance measuring sensor (105) output another voltage signal;

the microcontroller module (20): acquiring voltage signals from a first infrared diffuse reflection sensor (101), a second infrared diffuse reflection sensor (102), a third infrared diffuse reflection sensor (103), a fourth infrared distance measurement sensor (104) and a fifth infrared distance measurement sensor (105) in the sensor module (10), the AD is used for analog-to-digital conversion, high-level voltage signals and low-level voltage signals of a first infrared diffuse reflection sensor (101), a second infrared diffuse reflection sensor (102) and a third infrared diffuse reflection sensor (103) are respectively converted into digital signals 1 and 0, voltage signals measured by a fourth infrared distance measurement sensor (104) and a fifth infrared distance measurement sensor (105) when a single person passes through are converted into 0, and voltage signals measured by the fourth infrared distance measurement sensor (104) and the fifth infrared distance measurement sensor (105) when the person passes through side by side are converted into 1; judging the people entering and exiting mode through the infrared diffuse reflection sensor people flow detection judgment rule, judging whether people enter and exit side by side through the distance measurement judgment rule, and combining the two judgment rules to calculate people flow data; the microcontroller module (20) has partial storage capacity, stores the calculated data, but the microcontroller module (20) exceeds the storage capacity limit due to too long running time, and the microcontroller module (20) used by the device can automatically clear the data after shutdown, so that the data is manually cleared by using a switch clearing method;

meanwhile, a data zero clearing function is also arranged in the program, and the data zero clearing condition is properly modified according to the memory size of different microcontrollers.

8. The device for people flow detection and statistics with cooperation of multiple sensors according to claim 2, is characterized in that: this device is placed in library, dining room or classroom, can detect complicated flow of people business turn over mode, can also discern single and the difference that passes through side by side.

9. A statistical method for people flow detection with cooperation of multiple sensors by using the device of claim 1, which is characterized in that: the specific steps are as follows,

initializing an S1 device, and electrifying and starting a microcontroller module (20), a first infrared diffuse reflection sensor (101), a second infrared diffuse reflection sensor (102), a third infrared diffuse reflection sensor (103), a fourth infrared distance measurement sensor (104) and a fifth infrared distance measurement sensor (105);

s2, judging whether the data zero clearing condition is met, wherein the operation of the microcontroller is slowed down or jammed possibly due to excessive data; the data zero clearing condition is modified properly according to the memory size of different microcontrollers;

s3, if the data zero clearing condition is satisfied, the program data is cleared, and if the data zero clearing condition is not satisfied, the step is skipped;

s4, detecting jumping states of the first infrared diffuse reflection sensor (101), the second infrared diffuse reflection sensor (102) and the third infrared diffuse reflection sensor (103); when people flow through the device, various passing modes exist, and various jumping situations of the first infrared diffuse reflection sensor (101), the second infrared diffuse reflection sensor (102) and the third infrared diffuse reflection sensor (103) are continuously acquired; the output of the first infrared diffuse reflection sensor (101), the second infrared diffuse reflection sensor (102) and the third infrared diffuse reflection sensor (103) is 1 when being shielded, the output of the first infrared diffuse reflection sensor (101), the second infrared diffuse reflection sensor (102) and the third infrared diffuse reflection sensor (103) is 0 when no shielding object is detected, and the outputs of the first infrared diffuse reflection sensor (101), the second infrared diffuse reflection sensor (102) and the third infrared diffuse reflection sensor (103) are arranged in a line from left to right;

s5, if the microcontroller 20 does not detect the jump of the first infrared diffuse reflection sensor (101), the second infrared diffuse reflection sensor (102) and the third infrared diffuse reflection sensor (103), the program enters a loop and the detection is carried out again;

s6, if the microcontroller 20 detects the jump of the infrared diffuse reflection sensor, detecting the outputs of a fourth infrared distance measurement sensor (104) and a fifth infrared distance measurement sensor (105), judging whether the outputs are parallel, and arranging output signals obtained by processing the output results of the fourth infrared distance measurement sensor (104) and the fifth infrared distance measurement sensor (105) by the microcontroller module (20) according to a distance measurement judgment rule and the detected jump signal of the infrared diffuse reflection sensor together to form a final people flow detection judgment rule;

s7, judging whether the arrangement situation of multiple jumps is in the people flow detection judgment rule;

if not, re-detecting the state of each sensor;

s8, if the actual situation is in the people flow rate detection judgment rule, the people flow rate is added or reduced or unchanged according to the situation corresponding to the judgment rule;

s9, uploading the data to a user side display module (50) through a wireless transmission module (40), then continuously detecting the states of the sensors and continuously detecting the pedestrian flow;

and S10 is finished.

10. The statistical method for people flow detection based on cooperation of multiple sensors in claim 9, wherein: and (3) a ranging judgment rule: the measuring distance and the placing distance of a fourth infrared distance measuring sensor (104) and a fifth infrared distance measuring sensor (105) are S, the distance from the fourth infrared distance measuring sensor (104) to the stream of people is S1, the distance from the fifth infrared distance measuring sensor (105) to the stream of people is S2, the average width of reference people is x-0.6 m, the device is properly adjusted in practical application, and if the people flow width D-S- (S1+ S2) is that the distance between two people is larger than x-0.6 m, the two people pass side by side; if the width of one person is less than or equal to x, the person is a single person if x is 0.6 m; and outputting 0 in the case of single person, outputting 1 in the case of double persons, and not outputting in the case of no person.

Technical Field

The invention belongs to the technical field of people flow detection statistics, and relates to a method and a device for detecting people flow data.

Background

In colleges and universities in China, public places of schools such as dining halls, libraries and the like are particularly important for students, and the demand of seats in the libraries is insufficient when people take a habit at night and have a high meal peak; the problems that the shoulder charging can occur when a dining hall is queued, no local seat is available when a user has a meal and the like are urgently needed to be solved. Set up flow of people statistics device, can let the student obtain flow of people information in advance, avoid the many circumstances of people to reach the effect of reposition of redundant personnel.

(1) The patent name: people flow rate detection device and people flow rate detection method (application number: 201610827128.4)

The patent relates to a people flow rate detection device and a people flow rate detection method, as shown in fig. 4, wherein 101, 102 and 103 are infrared detection module groups, a controller is respectively connected with each infrared detection module in a plurality of infrared detection module groups, and the controller acquires output signals of each infrared detection module connected with the controller. The controller determines that 1 is subtracted from the number of people in the area to be detected when the output signals of the infrared detection module groups change one by one in the direction from the inside to the outside of the doorway.

The device can detect the signal change when a single person passes through in a mode of sequentially detecting by three infrared detection modules.

(2) And (3) journal name: people flow monitoring system for multi-sensor data processing

[ journal articles ] Qian Cheng Hui, Wan super, Cao Yuan, Ling Shao Bao, Wan Yun Xia, QIAN Cheng-hui, WANG Chao, Cao Xi-yuan, LING Zhen-bao, WAN Yun-xia- "laboratory research and exploration" 2 years 2013).

The journal is a people flow rate monitoring system with multi-sensor data processing, as shown in fig. 5, wherein infrared emission a, infrared emission a ', infrared emission C, and infrared emission C' are correlation infrared sensors, and the ultrasonic module B and the ultrasonic module D are reflection ultrasonic sensors. The two pairs of opposite infrared sensors can judge the in-out state of the object. Two pairs of opposite infrared sensors A, A 'and C, C' are arranged in parallel at the inner side and the outer side of a person exit of a place, and when A, A 'detects a shielding signal before C, C', the detected object is indicated to be away; an object is an entry when C, C 'detects a masking signal before A, A'. Meanwhile, the number of people entering or leaving the same row can be detected through the reflection type ultrasonic sensor.

The device can detect the signal when people pass side by side and the signal when the simple human flow passes through in a multi-sensor cooperation mode.

The above conventional solutions have the following disadvantages:

(1) the detection precision when utilizing three infrared detection module can improve single order to pass through, but many people can have the problem that the sensor detects the erroneous judgement when passing through simultaneously side by side.

(2) The two opposite-type infrared sensors are difficult to detect the mode of complex people flow entering and exiting, and for example, the conditions that two people enter and exit simultaneously, one person enters the other person and enters the other person immediately can cause errors in results.

Disclosure of Invention

The invention aims to overcome the defects of the prior art and provides a people flow detection statistical device with cooperation of multiple sensors.

A multi-sensor cooperative people flow detection statistical apparatus, the apparatus comprising:

the system comprises a sensor module 10, a microcontroller module 20, a power supply module 30, a wireless transmission module 40 and a client display module 50. The power supply module 30 supplies power to the sensor module 10, the microcontroller module 20, the wireless transmission module 40, and the client display module 50. The interactive relationship between the wireless transmission module 40 and the user side display module 50 is as follows, the people flow data obtained by the operation of the microcontroller module 20 is transmitted to the user side display module 50 through the wireless transmission module 40, and the user directly obtains the people flow data through the user side display module 50 for display or further analysis.

The sensor module 10 includes a first infrared diffuse reflection sensor 101, a second infrared diffuse reflection sensor 102, a third infrared diffuse reflection sensor 103, a fourth infrared ranging sensor 104, and a fifth infrared ranging sensor 105.

The placement and connection of the sensors in the sensor module 10 are realized by the following means:

the first infrared diffuse reflection sensor 101, the second infrared diffuse reflection sensor 102 and the third infrared diffuse reflection sensor 103 in the sensor module 10 are connected rigidly, or connected with each other in a telescopic hinge manner so as to adjust the distance between the sensors according to different site requirements.

The first infrared diffuse reflection sensor 101, the second infrared diffuse reflection sensor 102 and the third infrared diffuse reflection sensor 103 are arranged in a triangular structure, for example, the first infrared diffuse reflection sensor 101 and the third infrared diffuse reflection sensor 103 are arranged at the lower part, the second infrared diffuse reflection sensor 102 is arranged at the upper part, wherein the horizontal spacing between the first infrared diffuse reflection sensor 101, the second infrared diffuse reflection sensor 102 and the third infrared diffuse reflection sensor 103 should be greater than an average shoulder width of a person, the large-distance arrangement mode aims at only shielding one infrared diffuse reflection sensor when a person passes through the infrared diffuse reflection sensor, so that a single infrared diffuse reflection sensor generates signal change, the other two infrared diffuse reflection sensors have no signal change, and the method is favorable for analyzing the condition that the complex human flow passes through the infrared diffuse reflection sensors in the subsequent specific implementation scheme.

A fourth infrared ranging sensor 104 in the sensor module 10 is placed right below the second infrared diffuse reflection sensor 102 placed in a triangle, and has the same detection direction as the first infrared diffuse reflection sensor 101 and the third infrared diffuse reflection sensor 103 at the bottom angle. The fifth infrared ranging sensor 105 is placed at a fixed position in the directly opposite direction to the fourth infrared ranging sensor 104, and the detection direction is opposite to the fourth infrared ranging sensor 104.

The microcontroller module 20 is placed on a first infrared diffuse reflection sensor 101 arranged in a triangular structure,

Any position beside the second infrared diffuse reflection sensor 102 and the third infrared diffuse reflection sensor 103 which does not obstruct detection is connected with the I/O port of the microcontroller module 20 through signals output by the first infrared diffuse reflection sensor 101, the second infrared diffuse reflection sensor 102, the third infrared diffuse reflection sensor 103 and the fourth infrared distance measuring sensor 104 through wires.

The power supply module 30 is placed at any position which is beside the microcontroller module and does not interfere with detection, and is connected with the first infrared diffuse reflection sensor 101, the second infrared diffuse reflection sensor 102, the third infrared diffuse reflection sensor 103, the fourth infrared ranging sensor 104 and the microcontroller module 20 by using conducting wires. The fifth infrared distance measuring sensor 105 is fixed at the other side, so that the signal outputted therefrom is connected to the I/O port of the micro controller module 20 and the power supply module 30 using a wire, and simultaneously, the wire is covered with an aluminum alloy ground wire groove to prevent a trip situation of a passing person.

The wireless transmission module 40 is a Wifi or 4G technology, and uses different wireless transmission technologies according to different requirements of users. The receiving data serial port RX of the wireless transmission module, for example, the Wifi transmission module, is connected to the transmitting data serial port TX of the microcontroller 20.

The user side display module 50 is a terminal device used by a user, and a device for receiving data, such as an LED screen, a server for storing data, a mobile phone or a computer, connected to the whole device.

The function and operation mode among the modules of the device are as follows:

the first infrared diffuse reflection sensor 101, the second infrared diffuse reflection sensor 102 and the third infrared diffuse reflection sensor 103 in the sensor module 10 output low-level voltage signals when no person passes through the sensors, and when a person passes through the sensors and blocks the sensors, high-level voltage jumps sequentially.

The fourth infrared ranging sensor 104 and the fifth infrared ranging sensor 105 in the sensor module 10 have a pair of infrared signal emitting and receiving diodes, and the infrared ranging sensor LDM301 emits a beam of infrared light, which forms a reflection process after irradiating an object, reflects the infrared light to the sensors to receive the infrared signal, and then receives data of a time difference between emission and reception by CCD image processing. The distance of the object is calculated after being processed by the signal processor. When no person passes through the range hood, no signal is output by the fourth infrared ranging sensor 104 and the fifth infrared ranging sensor 105; when a single person passes through and blocks the fourth infrared ranging sensor 104 and the fifth infrared ranging sensor 105, the fourth infrared ranging sensor 104 and the fifth infrared ranging sensor 105 output a voltage signal; when a person passes through and blocks the fourth infrared ranging sensor 104 and the fifth infrared ranging sensor 105 side by side, the fourth infrared ranging sensor 104 and the fifth infrared ranging sensor 105 output another voltage signal.

The microcontroller module 20: voltage signals are obtained from a first infrared diffuse reflection sensor 101, a second infrared diffuse reflection sensor 102, a third infrared diffuse reflection sensor 103, a fourth infrared ranging sensor 104 and a fifth infrared ranging sensor 105 in the sensor module 10, AD is used for analog-to-digital conversion, high-level voltage signals and low-level voltage signals of the first infrared diffuse reflection sensor 101, the second infrared diffuse reflection sensor 102 and the third infrared diffuse reflection sensor 103 are respectively converted into digital signals 1 and 0, voltage signals when a single person passes and measured by the fourth infrared ranging sensor 104 and the fifth infrared ranging sensor 105 are converted into 0, and voltage signals when a person passes and measured by the fourth infrared ranging sensor 104 and the fifth infrared ranging sensor 105 are converted into 1. People's business turn over mode is judged through infrared diffuse reflection sensor flow of people detection decision rule, judges whether people pass in and out side by side through range finding decision rule, combines two kinds of decision rule and works out flow of people data. The microcontroller module 20 has partial storage capacity, stores the calculated data, but the microcontroller module 20 exceeds the storage capacity limit due to too long running time, and the microcontroller module 20 used by the device can automatically clear the data after shutdown, so that the data is manually cleared by using a method of clearing the data by using a switch (manually closed).

Meanwhile, a data zero clearing function is also arranged in the program, and the data zero clearing condition can be modified appropriately according to different microcontroller memory sizes, such as: 1. set daily 0:00 fixed clear all data. 2. And clearing all data when the data size reaches 80% of the memory.

The device can be placed in public places such as libraries, dining halls, classrooms and the like, can detect the access mode of complicated people flow, can identify the difference between single people and the parallel passing people, and can accurately detect the people flow.

Drawings

FIG. 1 is a schematic structural diagram of a people flow rate detecting device according to the present invention;

FIG. 2 is a top view of the connection of the sensors in the sensor module;

FIG. 3 is a flow chart of a people flow detection method of the present invention;

FIG. 4 is a schematic structural diagram of a pedestrian flow rate detecting device of the prior art;

FIG. 5 is a block diagram of a system for detecting pedestrian flow comparing multi-sensor data processing of existing journals;

Detailed Description

The function and operation mode among the modules of the device are as follows:

three infrared diffuse reflection sensors (101, 102, 103) in the sensor module 10 output low-level voltage signals when no person passes through the sensor module, and high-level voltage jumps are generated in sequence when people pass through the sensor module and block the sensors.

The fourth infrared ranging sensor 104 and the fifth infrared ranging sensor 105 in the sensor module 10 have a pair of infrared signal emitting and receiving diodes, and the infrared ranging sensor LDM301 emits a beam of infrared light, which forms a reflection process after irradiating an object, reflects the infrared light to the sensors to receive the infrared signal, and then receives data of a time difference between emission and reception by CCD image processing. The distance of the object is calculated after being processed by the signal processor. When no person passes through the range hood, no signal is output by the fourth infrared ranging sensor 104 and the fifth infrared ranging sensor 105; when a single person passes through and blocks the fourth infrared ranging sensor 104 and the fifth infrared ranging sensor 105, the fourth infrared ranging sensor 104 and the fifth infrared ranging sensor 105 output a voltage signal; when a person passes through and blocks the fourth infrared ranging sensor 104 and the fifth infrared ranging sensor 105 side by side, the fourth infrared ranging sensor 104 and the fifth infrared ranging sensor 105 output another voltage signal.

The microcontroller module 20: voltage signals are obtained from a first infrared diffuse reflection sensor 101, a second infrared diffuse reflection sensor 102, a third infrared diffuse reflection sensor 103, a fourth infrared ranging sensor 104 and a fifth infrared ranging sensor 105 in the sensor module 10, AD is used for analog-to-digital conversion, high-level voltage signals and low-level voltage signals of the first infrared diffuse reflection sensor 101, the second infrared diffuse reflection sensor 102 and the third infrared diffuse reflection sensor 103 are respectively converted into digital signals 1 and 0, voltage signals when a single person passes and measured by the fourth infrared ranging sensor 104 and the fifth infrared ranging sensor 105 are converted into 0, and voltage signals when a person passes and measured by the fourth infrared ranging sensor 104 and the fifth infrared ranging sensor 105 are converted into 1. People's business turn over mode is judged through infrared diffuse reflection sensor flow of people detection decision rule, judges whether people pass in and out side by side through range finding decision rule, combines two kinds of decision rule and works out flow of people data. The microcontroller module 20 has partial storage capacity and can store the calculated data, but the microcontroller module 20 exceeds the storage capacity limit due to too long running time, and the microcontroller module 20 used in the device can automatically clear the data after shutdown, so that the data is manually cleared by using a method of clearing the data by using a switch (manually closing).

Meanwhile, a data zero clearing function is also arranged in the program, and the data zero clearing condition can be modified appropriately according to different microcontroller memory sizes, such as: 1. set daily 0:00 fixed clear all data. 2. And clearing all data when the data size reaches 80% of the memory.

The specific steps of the human flow detection are as shown in fig. 3:

the S1 device is initialized, and the microcontroller 20, the first infrared diffuse reflection sensor 101, the second infrared diffuse reflection sensor 102, the third infrared diffuse reflection sensor 103, the fourth infrared ranging sensor 104, and the fifth infrared ranging sensor 105 are powered on and started.

S2 judges whether the data clearing condition is satisfied, the data is too much, which may cause the microcontroller to slow down or jam. The data clearing condition may be modified appropriately according to different microcontroller memory sizes, which is only an example: 1. set daily 0:00 fixed clear all data. 2. And clearing all data when the data size reaches 80% of the memory.

S3 clears the program data if the data clear condition is satisfied, and skips the step if the data clear condition is not satisfied.

S4 detects transition states of the first infrared diffuse reflection sensor 101, the second infrared diffuse reflection sensor 102, and the infrared diffuse reflection sensor 103. When people flow through the sensor, various passing forms exist, and various jumping situations of the first infrared diffuse reflection sensor 101, the second infrared diffuse reflection sensor 102 and the third infrared diffuse reflection sensor 103 are continuously acquired at the moment. The first infrared diffuse reflection sensor 101, the second infrared diffuse reflection sensor 102 and the third infrared diffuse reflection sensor 103 are output as 1 when being shielded, the output is 0 when no shielding object is detected, the outputs of the first infrared diffuse reflection sensor 101, the second infrared diffuse reflection sensor 102 and the third infrared diffuse reflection sensor 103 are arranged in a line from left to right, arrows represent the change of the first infrared diffuse reflection sensor 101, the second infrared diffuse reflection sensor 102 and the third infrared diffuse reflection sensor 103 after being arranged in a line, for example, a person walks from left to right, the first infrared diffuse reflection sensor 101, the second infrared diffuse reflection sensor 102 and the third infrared diffuse reflection sensor 103 are triggered to jump in sequence, the output of the sensors is initially 000, and the outputs of the first infrared diffuse reflection sensor 101, the second infrared diffuse reflection sensor 102 and the third infrared diffuse reflection sensor 103 are triggered one by one another and then become 100, 010. 001, the first infrared diffuse reflection sensor 101, the second infrared diffuse reflection sensor 102, and the third infrared diffuse reflection sensor 103 are reset to 000 after the person walks out of the sensor area. The following pedestrian flow detection judgment rules of the sensor under different scenes:

[01] if one person travels alone or in the same direction and at substantially the same location, then:

000→100→010→001→000

[02] if one person goes forward, turns back in the middle, or two persons turn back at the same time, then:

000→100→010→100→000

[03] if two persons travel simultaneously and one person turns back in the midway, the following steps are performed:

000→100→010→101→000

[04] if the vehicle travels from right to left, the above is reversed:

000→001→010→100→000

[05]000→001→010→001→000

[06]000→001→010→101→000

[07] if A and B travel in the same direction and one side leads one position, then:

000→100→110→011→001→000

[08] if the former is folded halfway, it is:

000→100→110→001→000

[09] if the latter is folded halfway, it is:

000→100→110→011→100→000

[10] if the vehicle travels from right to left, the above three situations are reversed:

000→001→011→110→100→000

[11]000→001→011→100→000

[12]000→001→011→110→001→000

[13] if A and B travel in the same direction and one side leads two positions, the following results are obtained:

000→100→010→101→010→001→000

[14] if the former is folded halfway, it is:

000→100→010→100→010→001→000

[15] if the latter is folded halfway, it is:

000→100→010→101→010→100→000

[16] if the vehicle travels from right to left, the above three are reversed:

000→001→010→101→010→100→000

[17]000→001→010→001→010→100→000

[18]000→001→010→101→010→001→000

[19] if the A phase and the B phase move in the same direction and simultaneously trigger the peripheral sensors, the following steps are performed:

000→101→010→101→000

[20] if the first phase and the second phase run in the same direction, the triggering sequence of the peripheral sensors is as follows:

000→100→101→010→101→100→000

[21] the sequence is reversed, and then:

000→001→101→010→101→001→000

[22] if the A and B travel in the same direction, the peripheral sensors are triggered at the same time, and the back side is turned back, then:

000→101→010→001→000

[23] if the direction is reversed, the following steps are performed:

000→101→010→100→000

[24] if the first and the second paths move in the same direction, the peripheral sensors are triggered to have a sequence, and the second half path is folded back:

000→100→101→010→100→000

[25] if the direction is reversed, the following steps are performed:

000→001→101→010→001→000

s5, if the microcontroller 20 does not detect the jump of the first infrared diffuse reflection sensor 101, the second infrared diffuse reflection sensor 102, and the third infrared diffuse reflection sensor 103, the program enters a loop and re-detects.

S6, if the microcontroller 20 detects the jump of the infrared diffuse reflection sensor, it detects the outputs of the fourth infrared ranging sensor 104 and the fifth infrared ranging sensor 105, determines whether they are parallel to each other, and arranges the output signal obtained by the microcontroller 20 processing the output results of the fourth infrared ranging sensor 104 and the fifth infrared ranging sensor 105 according to the following ranging determination rule and the detected jump signal of the infrared diffuse reflection sensor together to form the final people flow rate detection determination rule.

And (3) a ranging judgment rule: the measurement distance and the placement distance between the fourth infrared distance measuring sensor 104 and the fifth infrared distance measuring sensor 105 are S, the distance from the fourth infrared distance measuring sensor 104 to the stream of people is S1, the distance from the fifth infrared distance measuring sensor 105 to the stream of people is S2, the average people width in this embodiment is x ═ 0.6m, and the distance can be adjusted appropriately in practical application, and if the people flow width D ═ S- (S1+ S2) is that the distance between two people is greater than x ═ 0.6m, the two people pass through side by side. If the width of one person is not more than 0.6m, the person is a single person. And outputting 0 in the case of single person, outputting 1 in the case of double persons, and not outputting in the case of no person.

S7 judges whether or not the arrangement of the multiple hops is within the traffic detection decision rule.

If not, the states of the sensors are re-detected.

And S8, if the actual situation is in the people flow rate detection judgment rule, the people flow rate is added or reduced or unchanged according to the situation corresponding to the judgment rule.

S9 uploads the data to the client display module 50 through the wireless transmission module 40, and then continues to detect the status of each sensor, and continues to detect the flow rate of people.

And S10 is finished.

The power supply module 30 provides power to the modules.

The wireless transmission module 40 and the client display module 50: the people flow data calculated by the microcontroller module 20 is transmitted to the user side display module 50 through the wireless transmission module 40, and the user can directly obtain the people flow data through the user side display module 50.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:纸张数量检测方法及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!