CN100347728C - Method and apparatus for counting personnel in and out of public places - Google Patents
Method and apparatus for counting personnel in and out of public places Download PDFInfo
- Publication number
- CN100347728C CN100347728C CNB2005100969730A CN200510096973A CN100347728C CN 100347728 C CN100347728 C CN 100347728C CN B2005100969730 A CNB2005100969730 A CN B2005100969730A CN 200510096973 A CN200510096973 A CN 200510096973A CN 100347728 C CN100347728 C CN 100347728C
- Authority
- CN
- China
- Prior art keywords
- data
- pedal
- sensor
- row
- chip microcomputer
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 14
- XEEYBQQBJWHFJM-UHFFFAOYSA-N Iron Chemical compound [Fe] XEEYBQQBJWHFJM-UHFFFAOYSA-N 0.000 claims description 80
- 229920001971 elastomer Polymers 0.000 claims description 45
- 229910052742 iron Inorganic materials 0.000 claims description 40
- 229910000831 Steel Inorganic materials 0.000 claims description 12
- 239000010959 steel Substances 0.000 claims description 12
- 210000002966 serum Anatomy 0.000 claims 8
- 239000000806 elastomer Substances 0.000 claims 5
- 230000015572 biosynthetic process Effects 0.000 claims 2
- 238000009413 insulation Methods 0.000 claims 2
- 238000012163 sequencing technique Methods 0.000 claims 2
- 230000007306 turnover Effects 0.000 claims 1
- 238000005192 partition Methods 0.000 abstract description 38
- 238000002955 isolation Methods 0.000 abstract description 14
- 238000005070 sampling Methods 0.000 description 66
- 238000010586 diagram Methods 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 4
- 238000007405 data analysis Methods 0.000 description 4
- 239000000523 sample Substances 0.000 description 4
- 241000282414 Homo sapiens Species 0.000 description 3
- 210000002683 foot Anatomy 0.000 description 3
- 210000004744 fore-foot Anatomy 0.000 description 3
- 230000003712 anti-aging effect Effects 0.000 description 2
- 230000003139 buffering effect Effects 0.000 description 2
- 238000005260 corrosion Methods 0.000 description 2
- 230000007797 corrosion Effects 0.000 description 2
- 238000004512 die casting Methods 0.000 description 2
- 238000007789 sealing Methods 0.000 description 2
- 125000006850 spacer group Chemical group 0.000 description 2
- 230000000903 blocking effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
Images
Landscapes
- Geophysics And Detection Of Objects (AREA)
Abstract
一种涉及公共场所的人员进出计数方法及装置,用于有门的公共场所的人员进、出的流量计数,如客车、车站、码头及商场等场所。本发明的计数方法包括开机运行及初始化,判断是否开门,单片机接收踏板式传感器输入的高、低电平信号并存储,该次数据与上次数据对比,判断哪次数据中高电平数量多,有数量多的情况对踏板传感器结构分区,接收各分区内传感器输入的高、低电平数据,判断人员的进、出及人数并存储,判断各分区传感器输入的数据是否全为低电平,判断是否关门,传出数据;本发明的装置包括主控器和与主控器中的光电隔离电路连接的踏板式传感器。本发明能准确判断人员的进出情况及多人同时进出的数量,适用范围广。
The invention relates to a method and device for counting people entering and exiting public places, which is used for counting the flow of people entering and exiting public places with doors, such as passenger cars, stations, docks, shopping malls and other places. The counting method of the present invention comprises power-on operation and initialization, judging whether to open the door, the single-chip microcomputer receives and stores the high and low level signals input by the pedal sensor, and compares the data with the previous data to judge which data has more high levels, In the case of a large number, partition the structure of the pedal sensor, receive the high and low level data input by the sensors in each partition, judge the entry, exit and number of people and store them, and judge whether the data input by the sensors in each partition are all low level, Judging whether to close the door, transmitting data; the device of the present invention includes a main controller and a pedal sensor connected with the photoelectric isolation circuit in the main controller. The invention can accurately judge the entry and exit of personnel and the number of simultaneous entry and exit of multiple people, and has a wide application range.
Description
技术领域:Technical field:
本发明涉及到一种公共场所的人员进出计数方法及装置,用于人员进出有门的公共场所的流量计数,如客车、车站、码头及商场等需要计数的人员进出场所。The invention relates to a method and device for counting people entering and exiting public places, which is used for counting the flow of people entering and exiting public places with doors, such as passenger cars, stations, docks, shopping malls and other places that need to be counted.
背景技术:Background technique:
经检索,在人员的流量计数领域里,有申请号为03115817.X的中国发明专利申请,其发明名称为“乘客自动计数仪”,此计数仪采用的是在公交车门内两侧布置红外线探头的方法,利用人在上下过程中,依次遮挡红外线探头的逻辑顺序来判上、下车,并根据人体的宽度和厚度来判人的数量,但这种装置有明显的不足:计数不准、上下判断容易受到干扰、难以适应超过3人及以上的人员流量计数并且适用范围小,其原因是:当2人并行且靠近时容易将2个人记为1个人,当有人同时上下时特别是人多拥挤时,红外线探头检测信号容易相互干扰而不能正确区分上下,而两侧的红外线探头布置方式客观上决定了仅能判断2人情况,当超过2个人时,将只记两个人,所以不适应大流量人员进出计数。After searching, in the field of personnel flow counting, there is a Chinese invention patent application with application number 03115817.X, and its invention name is "passenger automatic counting instrument". This counter uses infrared rays arranged on both sides of the bus door. The method of the probe uses the logical sequence of people blocking the infrared probes in the process of going up and down to determine the number of people getting on and off the car, and judges the number of people according to the width and thickness of the human body. However, this device has obvious shortcomings: the counting is not accurate , the judgment of up and down is easily disturbed, it is difficult to adapt to the flow count of more than 3 people and the scope of application is small, the reason is: when 2 people are parallel and close to each other, it is easy to record 2 people as 1 person, especially when people go up and down at the same time When there are a lot of people, the detection signals of the infrared probes are likely to interfere with each other and cannot correctly distinguish between the upper and lower sides, and the arrangement of the infrared probes on both sides objectively determines that only 2 people can be judged. When there are more than 2 people, only two people will be recorded, so It is not suitable for the counting of large flow of people entering and leaving.
发明内容:Invention content:
本发明的目的在于针对上述现有技术存在的问题,提供一种公共场所的人员进出计数方法及装置来准确判断人员的进、出方向及多人同时进、出的数量,适用范围广。The object of the present invention is to solve the above-mentioned problems in the prior art, and provide a method and device for counting the entry and exit of people in public places to accurately determine the direction of entry and exit of persons and the number of people entering and exiting at the same time, and has a wide range of applications.
本发明的原理为:人在正常行走时,由于人体重心前移,使后脚跟首先提起,紧跟着前脚掌有一个蹬的动作,脚底按脚跟—脚掌—脚尖顺序脱离地面,这样就完成了一只脚起脚行走的过程,所以在起脚至脚脱离地面过程中,后脚跟、后脚掌、前脚掌及脚尖在离地时间上是有先后顺序的。我们针对人的这一生理运动特性利用自制踏板式传感器检测后脚跟、前脚掌及脚尖部位的离地时间并将其转换为电信号来判断人的进、出方向,并根据人脚所处的区域来记录通过踏板式传感器的人数。The principle of the present invention is: when a person walks normally, due to the forward movement of the center of gravity of the human body, the rear heel is lifted first, followed by a kicking action on the forefoot, and the sole of the foot is separated from the ground in the order of heel-sole-toe, and this is done. The process of walking with one foot up, so in the process from kicking up to when the foot leaves the ground, the rear heel, rear sole, forefoot and toe are in a sequence in terms of the time when they leave the ground. For this physiological movement characteristic of human beings, we use self-made pedal sensors to detect the ground-off time of the heel, forefoot and toe and convert them into electrical signals to judge the direction of people's entry and exit. zone to record the number of people passing the pedal sensor.
为了实现上述发明目的,本发明的计数方法的技术方案是:In order to realize the above-mentioned purpose of the invention, the technical scheme of counting method of the present invention is:
(1)、公共场所的人员进出计数装置开始运行及初始化;(1) The personnel entering and exiting counting device in public places starts to run and initialize;
(2)、判断是否开门:当单片机接收到开门信号为开门;(2), judge whether to open the door: when the single-chip microcomputer receives the door-opening signal, the door is opened;
(3)、单片机接收踏板式传感器输入的1、0数据并存储;(3), the single-chip microcomputer receives and stores the 1 and 0 data input by the pedal sensor;
(4)、将该次接收到的数据与上次接收到的数据比较,判断哪次数据中1的数量多,当该次多时,返回到第3步,否则继续向下执行;(4), compare the data received this time with the data received last time, and judge which data has more 1s, and when the number of 1s is more, return to
(5)、对踏板式传感器阵列分区:以相邻列传感器输入的数据全为0作为踏板式传感器阵列分区的分界线;(5), to pedal-type sensor array partition: the data input with adjacent column sensor is all 0 as the dividing line of pedal-type sensor array partition;
(6)、单片机接收各分区传感器输入的1、0数据并存储;(6), the single-chip microcomputer receives and stores the 1, 0 data input by each partition sensor;
(7)、判断人员进、出及数量并存储:利用各分区内传感器输入的非0数据排中最上排、最下排出现全0数据的时间顺序判断人的进、出,每一个分区代表一个人,所有进的人存入进的人数存储器,所有出的人存入出的人数存储器;(7), Judging the entry, exit and quantity of personnel and storing: use the time sequence of all 0 data in the top row and bottom row of the non-zero data input by sensors in each partition to judge the entry and exit of people, and each partition represents One person, all the people who come in are stored in the memory of the number of people who entered, and all the people who leave are stored in the memory of the number of people who went out;
(8)、判断各分区传感器输入的数据是否全为0:当不全为0时,则返回第6步,否则继续向下执行;(8), judge whether the data input by each partition sensor is all 0: when not all 0, then return to
(9)、判断是否关门:单片机接收到关门信号时关门,当关门时,继续执行,没有关门则返回第3步;(9), judge whether to close the door: close the door when the single-chip microcomputer receives the door closing signal, when the door is closed, continue to execute, and return to
(10)、将人员进、出的数量传输给计算机或无线数传终端,然后返回到第2步。(10), the number of personnel entering and exiting is transmitted to a computer or a wireless data transmission terminal, and then returns to
本发明的装置技术方案是:Device technical scheme of the present invention is:
本发明包括主控器和踏板式传感器,踏板式传感器输出接口与主控器中光电隔离电路的输入接口对应连接。其中主控器包括单片机、电源电路、门开关输入信号电路、串口电路、光电隔离电路。踏板式传感器包括底板和固定在该底板上的2-8排、1-64列相同的传感器构成的传感器阵列,弹性盖和固定在弹性盖内壁上且与传感器阵列中的每一传感器对应的踏板构成的踏板阵列,传感器阵列中的每一传感器包括印刷电路板、导电片、导电弹簧片,印刷电路板固定在底板上,导电片位于印刷电路板上,并与印刷电路板固定连接,导电弹簧片的一端固定在底板上,其另一端位于导电片的上方,传感器阵列位于弹性盖与底板固定连接后的空腔内,传感器的阵列布置要求为:随意踩上一只脚,均能保证脚踩在两排以上传感器上。当有人踏上弹性盖时,该人所踏弹性盖内壁上的踏板向所对的导电片方向运动,使位于踏板和导电片之间的导电弹簧片与导电片接触导通传感器,传感器通过光电隔离电路输入单片机的信号为高电平1,否则,传感器输入单片机的信号为低电平0。当开门信号到来时,单片机通过光电隔离电路接收开关门输入电路的开门信号后,单片机接收经光电隔离电路从踏板传感器输入的1、0数据并存储;将该次接收到的数据与上次接收到的数据比较,判断哪次数据中1的数量多,该次数据中1的数量多时,单片机继续接收经光电隔离电路从踏板传感器输入的1、0数据并存储,当上次数据中1的数量多时,以相邻传感器输入的数据全为0作为踏板传感器阵列分区的分界线,单片机接收各分区传感器输入的1、0数据并存储;利用各分区内传感器输入的非0数据排中最上排、最下排出现全0数据的时间顺序判断人的进、出,每一个分区代表一个人,所有进出的人分别存入进、出的人数存储器,当各分区传感器输入的数据不全为0时,单片机继续接受各分区传感器输入的1、0数据并存储;当各分区传感器输入的数据全为0时,单片机通过光电隔离电路接收到关门信号后,单片机将进、出的人数存储器中的数量经串口电路传输给计算机或无线数传终端。The invention includes a main controller and a pedal sensor, and the output interface of the pedal sensor is correspondingly connected with the input interface of the photoelectric isolation circuit in the main controller. The main controller includes a single-chip microcomputer, a power supply circuit, a door switch input signal circuit, a serial port circuit, and a photoelectric isolation circuit. The pedal sensor includes a base plate and a sensor array composed of 2-8 rows and 1-64 columns of identical sensors fixed on the base plate, an elastic cover and a pedal fixed on the inner wall of the elastic cover and corresponding to each sensor in the sensor array Each sensor in the sensor array includes a printed circuit board, a conductive sheet, and a conductive spring sheet, the printed circuit board is fixed on the bottom plate, the conductive sheet is located on the printed circuit board, and is fixedly connected to the printed circuit board, and the conductive spring One end of the sheet is fixed on the bottom plate, and the other end is located above the conductive sheet. The sensor array is located in the cavity after the elastic cover is fixedly connected to the bottom plate. Step on more than two rows of sensors. When someone steps on the elastic cover, the pedal on the inner wall of the elastic cover that the person steps on moves toward the direction of the opposite conductive sheet, so that the conductive spring sheet between the pedal and the conductive sheet contacts the conduction sensor, and the sensor passes through the photoelectric sensor. The signal input by the isolation circuit to the single-chip microcomputer is
本发明的优点是:利用人在正常行走时的生理特性,本发明采用主控器及踏板式传感器能准确的判断人员的进出方向并能准确的记录多人同时进出的数量,适用范围广。The advantages of the present invention are: utilizing the physiological characteristics of people when walking normally, the present invention adopts the main controller and the pedal sensor to accurately judge the direction of entry and exit of persons and accurately record the number of simultaneous entry and exit of multiple people, and has a wide range of applications.
附图说明:Description of drawings:
图1为主控器的信息流程图。Figure 1 is the information flow chart of the master controller.
图2为2排8列的踏板式传感器的结构示意图;Fig. 2 is the structural representation of the pedal sensor of 2 rows and 8 columns;
图3为2排8列的踏板式传感器的俯视图;Fig. 3 is the top view of the pedal sensor of 2 rows and 8 rows;
图4为图3沿A-A的剖面放大图;Fig. 4 is the sectional enlarged view along A-A of Fig. 3;
图5为2排8列的踏板式传感器的电路原理图;Fig. 5 is the circuit principle diagram of the pedal type sensor of 2 rows and 8 columns;
图6为3排8列的踏板式传感器的结构示意图;Fig. 6 is a structural schematic diagram of pedal sensors in 3 rows and 8 columns;
图7为3排8列的踏板式传感器的俯视图;Fig. 7 is the top view of the pedal sensor of 3 rows and 8 columns;
图8为图7沿B-B的剖面放大图;Fig. 8 is the sectional enlarged view along B-B of Fig. 7;
图9为3排8列的踏板式传感器的电路原理图;Fig. 9 is the circuit principle diagram of the pedal type sensor of 3 rows and 8 columns;
图10为程序流程框图。Figure 10 is a program flow diagram.
其中:in:
图2中的P1.0-P1.7和P2.0-P2.7经光电隔离电路与单片机89C51芯片的P1.0-P1.7和P2.0-P2.7相接。P1.0-P1.7 and P2.0-P2.7 in Fig. 2 are connected with P1.0-P1.7 and P2.0-P2.7 of the single-chip microcomputer 89C51 chip through the photoelectric isolation circuit.
图4中1为底板及传感器组合部分,2导电弹簧片,3为印刷电路板,其上布置有导电片7,4为用来固定踏板的螺丝,5为橡胶垫片,6为橡胶盖,8为踏板铁块。In Fig. 4, 1 is the combination part of the bottom plate and the sensor, 2 is the conductive spring piece, 3 is the printed circuit board, and the
图6中P1.0-P1.7、P2.0-P2.7和P0.0-P0.7经光电隔离电路与89C51的P1.0-P1.7、P2.0-P2.7和P0.0-P0.7相接。In Figure 6, P1.0-P1.7, P2.0-P2.7 and P0.0-P0.7 are connected to P1.0-P1.7, P2.0-P2.7 and P0 of 89C51 through the photoelectric isolation circuit .0-P0.7 are connected.
图8中1为底板及传感器组合部分,2导电弹簧片,3为印刷电路板,其上布置有导电片7,4为用来固定踏板的螺丝,5为橡胶垫片,6为橡胶盖,8为踏板铁块。In Fig. 8, 1 is the combination part of the bottom plate and the sensor, 2 is a conductive spring piece, 3 is a printed circuit board, and a
具体实施方式Detailed ways
本发明应用在城市公共交通车上,用来计数进、出车乘客流量。The invention is applied to urban public transport vehicles to count the flow of passengers entering and exiting the vehicle.
单片机程序设计如图10所示,设计思路为:The program design of the single-chip microcomputer is shown in Figure 10, and the design idea is as follows:
(1)、该装置开始运行及初始化;(1), the device starts running and initialization;
(2)、判断是否开门:当单片机接收到开门信号为高电平1时开门;(2), judge whether to open the door: open the door when the single-chip microcomputer receives the door-opening signal as
(3)、单片机接收踏板式传感器输入的1、0数据并存储;(3), the single-chip microcomputer receives and stores the 1 and 0 data input by the pedal sensor;
(4)、将该次接收到的数据与上次接收到的数据比较,判断哪次数据中1的数量多,当该次多时,返回到第3步,否则继续向下执行;(4), compare the data received this time with the data received last time, and judge which data has more 1s, and when the number of 1s is more, return to
(5)、对踏板式传感器阵列分区:以相邻列传感器输入的数据全为0作为踏板式传感器阵列分区的分界线;(5), to pedal-type sensor array partition: the data input with adjacent column sensor is all 0 as the dividing line of pedal-type sensor array partition;
(6)、单片机接收各分区传感器输入的1、0数据并存储;(6), the single-chip microcomputer receives and stores the 1, 0 data input by each partition sensor;
(7)、判断人员进、出及数量并存储:利用各分区内传感器输入的非0数据排中最上排、最下排出现全0数据的时间顺序判断人的进、出,每个分区代表一个人,所有进的人存入进的人数存储器,所以出的人存入出的人数存储器;(7), Judging the entry, exit and quantity of personnel and storing: use the time sequence of all 0 data in the top row and bottom row of the non-zero data input by the sensors in each partition to judge the entry and exit of people, and each partition represents One person, all the people who come in are stored in the memory of the number of people who entered, so the people who leave are stored in the memory of the number of people who went out;
(8)、判断各分区传感器输入的数据是否全为0:当不全为0时,则返回第6步,否则继续向下执行;(8), judge whether the data input by each partition sensor is all 0: when not all 0, then return to
(9)、判断是否关门:单片机接收到关门信号为高电平1时关门,当关门时,继续执行,没有关门则返回第3步;(9), judge whether to close the door: when the single-chip microcomputer receives the door-closing signal and is
(10)、将人员进、出的数量传输给无线数传终端,然后返回到第2步。(10), transmit the number of personnel entering and exiting to the wireless data transmission terminal, and then return to
发明装置踏板式传感器安装在车进出口的第二阶梯上,踏板式传感器的形状及结构如图3、4所示,踏板式传感器分三层结构,底层为钢板1,印刷电路板3固定在钢板上,导电片7位于印刷电路板3上并与印刷电路板固定连接,导电弹簧片2一端被固定在钢板1上,另一端位于导电片的上方,传感器阵列由2排8列相同的传感器构成。第二层为橡胶垫片5起到缓冲人对传感器压力及密封的作用,保护传感器。第三层是橡胶盖6和踏板铁块阵列的组合体,与该传感器阵列中的传感器对应的踏板铁块8构成踏板铁块阵列,每一踏板铁块8上有四个通孔,踏板铁块阵列上通过橡胶压铸成截面为等腰梯形的橡胶盖6,该橡胶盖的开口边缘向外有连接盘,橡胶通过每一踏板铁块8上的四个通孔,并在每一踏板铁块8的表面形成橡胶绝缘层,将每一踏板铁块8固定在橡胶盖的内壁上,钢板1通过橡胶垫片5与橡胶盖6上的连接盘固定连接。当有人踏上橡胶盖6时,该人所踏橡胶盖6内壁上的踏板铁块8和踏板铁块8表面上的弹性橡胶层同时向所对的导电片7方向运动,使位于踏板铁块8和导电片之间的导电弹簧片2与导电片7接触导通传感器,传感器通过光电隔离电路输入单片机的信号为高电平1,否则,传感器输入单片机的信号为低电平0。橡胶盖6具有良好的弹性、耐磨性、防老化及抗腐蚀性。电路原理图如图5所示,踏板式传感器的输入接口与主控器中的光电隔离电路的输入接口对接,工作原理为开关门输入电路向单片机提供开关门信号,单片机根据这一信号接受踏板式传感器传输来的数据,对数据处理分析并存储,在收到关门信号后通过串口电路将存储数据传送至无线数传终端GPRS。The pedal sensor of the inventive device is installed on the second step of the car entrance and exit. The shape and structure of the pedal sensor are shown in Figures 3 and 4. The pedal sensor is divided into three layers. The bottom layer is a
模拟控制程序判人员进出的数据分析Data Analysis of Simulated Control Program Judging Personnel Entry and Exit
一个人进入数据例:A person enters the data example:
有效采样1 (第一排数据)00000000Effective sampling 1 (the first row of data) 00000000
(第二排数据)00000000(Second row of data) 00000000
有效采样2 (第一排数据)00000110Effective sampling 2 (the first row of data) 00000110
(第二排数据)00000000(Second row of data) 00000000
有效采样3 (第一排数据)00000110Effective sampling 3 (the first row of data) 00000110
(第二排数据)00000011(Second row of data) 00000011
有效采样4 (第一排数据)00000000Effective sampling 4 (the first row of data) 00000000
(第二排数据)00000011(Second row of data) 00000011
有效采样5 (第一排数据)00000000Effective sampling 5 (the first row of data) 00000000
(第二排数据)00000000(Second row of data) 00000000
说明:以上数据演示了一个人从进入前到完全进入后踏板式传感器采集的全部数据,(相邻且相同的数据已自动合并),有效采样4数据中1的数量小于有效采样3的数据中1的数量则对效采样3分区,有效采样3将踏板确定为一个区即只有一个人通过,有效采样4中第一排最先出现全0数据确定为进入。Explanation: The above data demonstrates all the data collected by a person from before entering to after fully entering the pedal sensor, (adjacent and identical data have been automatically merged), and the number of 1s in the
一个人出去数据例:Example of a person going out data:
有效采样1 (第一排数据)00000000Effective sampling 1 (the first row of data) 00000000
(第二排数据)00000000(Second row of data) 00000000
有效采样2 (第一排数据)00000000Effective sampling 2 (the first row of data) 00000000
(第二排数据)00011100(Second row of data) 00011100
有效采样3 (第一排数据)00001100Effective sampling 3 (the first row of data) 00001100
(第二排数据)00011000(Second row of data) 00011000
有效采样4 (第一排数据)00011000Effective sampling 4 (the first row of data) 00011000
(第二排数据)00000000(Second row of data) 00000000
有效采样5 (第一排数据)00000000Effective sampling 5 (the first row of data) 00000000
(第二排数据)00000000(Second row of data) 00000000
说明:以上数据演示了一个人从出去前到完全出去后踏板采集的全部数据(相邻且相同的数据已自动合成),有效采样4数据中1的数量小于有效采样3的数据中1的数量则对效采样3分区,有效采样3将踏板确定为一个区即只有一个人通过,有效采样4中第二排最先出现全0数据确定为出去。Explanation: The above data demonstrates all the data collected by a person from before going out to after going out completely (adjacent and identical data have been automatically synthesized), the number of 1s in the
一个人进入和另二个人出去同时进行的数据分析:Data analysis of one person entering and two others going out at the same time:
有效采样1 (第一排数据)00000000Effective sampling 1 (the first row of data) 00000000
(第二排数据)00000000(Second row of data) 00000000
有效采样2 (第一排数据)00000011Effective sampling 2 (the first row of data) 00000011
(第二排数据)11011000(Second row of data) 11011000
有效采样3 (第一排数据)11011011Effective sampling 3 (the first row of data) 11011011
(第二排数据)10011011(Second row of data) 10011011
有效采样4 (第一排数据)11011000Effective sampling 4 (the first row of data) 11011000
(第二排数据)00000011(Second row of data) 00000011
有效采样5 (第一排数据)00000000Effective sampling 5 (the first row of data) 00000000
(第二排数据)00000000(Second row of data) 00000000
说明:以上数据演示了同一时刻一个人从进入前到完全进入及另二个人出去前到完全出去踏板采集的全部数据(相邻且相同的数据已自动合成),有效采样4数据中1的数量小于有效采样3的数据中1的数量则对效采样3分区,有效采样3将踏板确定为3个区即有3个人通过,有效采样4中一个分区第一排最先出现全0数据及另外二个分区第二排最先出现全0数据确定一个人进入二个人出去。Explanation: The above data demonstrates all the data collected by one person from before entering to fully entering and the other two persons before going out to completely go out at the same time (adjacent and identical data have been automatically synthesized), the number of 1 in the
本发明应用在商场,用来计数人员进出流量。The invention is applied in shopping malls to count the flow of people entering and leaving.
单片机程序设计如图10所示,设计思路为:The program design of the single-chip microcomputer is shown in Figure 10, and the design idea is as follows:
(1)、该装置开始运行及初始化;(1), the device starts running and initialization;
(2)、判断是否开门:当单片机接收到开门信号为高电平1时开门;(2), judge whether to open the door: open the door when the single-chip microcomputer receives the door-opening signal as
(3)、单片机接收踏板式传感器输入的1、0数据并存储;(3), the single-chip microcomputer receives and stores the 1 and 0 data input by the pedal sensor;
(4)、将该次接收到的数据与上次接收到的数据比较,判断哪次数据中1的数量多,当该次多时,返回到第3步,否则继续向下执行;(4), compare the data received this time with the data received last time, and judge which data has more 1s, and when the number of 1s is more, return to
(5)、对踏板式传感器阵列分区:以相邻列传感器输入的数据全为0作为踏板式传感器阵列分区的分界线;(5), to pedal-type sensor array partition: the data input with adjacent column sensor is all 0 as the dividing line of pedal-type sensor array partition;
(6)、单片机接收各分区传感器输入的1、0数据并存储;(6), the single-chip microcomputer receives and stores the 1, 0 data input by each partition sensor;
(7)、判断人员进、出及数量并存储:利用各分区内传感器输入的非0数据排中最上排、最下排出现全0数据的时间顺序判断人的进、出,每一个分区代表一个人,所有进的人存入进的人数存储器,所以出的人存入出的人数存储器;(7), Judging the entry, exit and quantity of personnel and storing: use the time sequence of all 0 data in the top row and bottom row of the non-zero data input by sensors in each partition to judge the entry and exit of people, and each partition represents One person, all the people who come in are stored in the memory of the number of people who entered, so the people who leave are stored in the memory of the number of people who went out;
(8)、判断各分区传感器输入的数据是否全为0:当不全为0时,则返回第6步,否则继续向下执行;(8), judge whether the data input by each partition sensor is all 0: when not all 0, then return to
(9)、判断是否关门: 单片机接收到关门信号为高电平1时关门,当关门时,继续执行,没有关门则返回第3步;(9) Determine whether to close the door: When the single-chip microcomputer receives the door-closing signal as
(10)、将人员进、出的数量传输至计算机,然后返回到第2步。(10), the number of personnel entering and exiting is transmitted to the computer, and then returns to step 2.
踏板式传感器安装在商场进、出口处踏板式传感器的形状及结构如图7、8所示,踏板式传感器分三层结构,底层为钢板1,印刷电路板3固定在钢板1上,导电片7位于印刷电路板3上并与印刷电路板固定连接,导电弹簧片2一端被固定在钢板1上,另一端位于导电片7的上方,采用3排8列的阵列结构。第二层为橡胶垫片5起到缓冲人对传感器压力及密封的作用,保护传感器。第三层是橡胶盖6和踏板铁块阵列的组合体,与该传感器阵列中的传感器对应的踏板铁块8构成踏板铁块阵列,每一踏板铁块8上有四个通孔,踏板铁块阵列上通过橡胶压铸成截面为等腰梯形的橡胶盖6,该橡胶盖的开口边缘向外有连接盘,橡胶通过每一踏板铁块8上的四个通孔,并在每一踏板铁块8的表面形成橡胶绝缘层,将每一踏板铁块8固定在橡胶盖的内壁上,钢板1通过橡胶垫片5与橡胶盖6上的连接盘固定连接。当有人踏上橡胶盖6时,该人所踏橡胶盖6内壁上的踏板铁块8和踏板铁块8表面上的弹性橡胶层同时向所对的导电片7方向运动,使位于踏板铁块8和导电片7之间的导电弹簧片2与导电片7接触导通传感器,传感器通过光电隔离电路输入单片机的信号为高电平1,否则,传感器输入单片机的信号为低电平0。橡胶盖6具有良好的弹性、耐磨性、防老化及抗腐蚀性。电路原理图如图9所示,踏板式传感器的输出接口与主控器中的光电隔离电路的输入接口对接,工作原理为开关门输入电路向单片机提供开关门信号,单片机根据这一信号接受踏板式传感器传输来的数据,对数据处理分析并存储,在收到关门信号后通过串口电路将存储数据传送至计算机。The pedal sensor is installed at the entrance and exit of the shopping mall. The shape and structure of the pedal sensor are shown in Figures 7 and 8. The pedal sensor is divided into three layers. The bottom layer is a
模拟控制程序判人员进出的数据分析:The data analysis of the simulation control program to judge the entry and exit of personnel:
判一个人进入数据例:Sentence a person into the data example:
有效采样1 (第一排数据)00000000Effective sampling 1 (the first row of data) 00000000
(第二排数据)00000000(Second row of data) 00000000
(第三排数据)00000000(The third row of data) 00000000
有效采样2 (第一排数据)00000110Effective sampling 2 (the first row of data) 00000110
(第二排数据)00000000(Second row of data) 00000000
(第三排数据)00000000(The third row of data) 00000000
有效采样3 (第一排数据)00000110Effective sampling 3 (the first row of data) 00000110
(第二排数据)00000011(Second row of data) 00000011
(第三排数据)00000000(The third row of data) 00000000
有效采样4 (第一排数据)00000110Effective sampling 4 (the first row of data) 00000110
(第二排数据)00000011(Second row of data) 00000011
(第三排数据)00000110(The third row of data) 00000110
有效采样5 (第一排数据)00000000Effective sampling 5 (the first row of data) 00000000
(第二排数据)00000011(Second row of data) 00000011
(第三排数据)00000110(The third row of data) 00000110
有效采样6 (第一排数据)00000000Effective sampling 6 (the first row of data) 00000000
(第二排数据)00000000(Second row of data) 00000000
(第三排数据)00000110(The third row of data) 00000110
有效采样7 (第一排数据)00000000Effective sampling 7 (the first row of data) 00000000
(第二排数据)00000000(Second row of data) 00000000
(第三排数据)00000000(The third row of data) 00000000
说明:以上数据演示了一个人从进入前到完全进入后踏板式传感器采集的全部数据(相邻且相同的数据已自动合并),有效采样5数据中1的数量小于有效采样4数据中1的数量则对效采样4分区,有效采样4将踏板确定为一个区即只有一个人通过,有效采样5中第一排最先出现全0数据确定为进入。Explanation: The above data demonstrates all the data collected by a pedal sensor from before entering to after fully entering (adjacent and identical data have been automatically merged), and the number of 1s in the
判一个人出去数据例:Sentence a person out Data example:
有效采样1 (第一排数据)00000000Effective sampling 1 (the first row of data) 00000000
(第二排数据)00000000(Second row of data) 00000000
(第三排数据)00000000(The third row of data) 00000000
有效采样2 (第一排数据)00000000Effective sampling 2 (the first row of data) 00000000
(第二排数据)00000000(Second row of data) 00000000
(第三排数据)00001100 (third row of data) 00001100
有效采样3 (第一排数据)00000000Effective sampling 3 (the first row of data) 00000000
(第二排数据)00001100(Second row of data) 00001100
(第三排数据)00001100 (third row of data) 00001100
有效采样4 (第一排数据)00001100Effective sampling 4 (the first row of data) 00001100
(第二排数据)00001100(Second row of data) 00001100
(第三排数据)00001100 (third row of data) 00001100
有效采样5 (第一排数据)00001100Effective sampling 5 (the first row of data) 00001100
(第二排数据)00001100(Second row of data) 00001100
(第三排数据)00000000(The third row of data) 00000000
有效采样6 (第一排数据)00001100Effective sampling 6 (the first row of data) 00001100
(第二排数据)00000000(Second row of data) 00000000
(第三排数据)00000000(The third row of data) 00000000
有效采样7 (第一排数据)00000000Effective sampling 7 (the first row of data) 00000000
(第二排数据)00000000(Second row of data) 00000000
(第三排数据)00000000(The third row of data) 00000000
说明:以上数据演示了一个人从出去前到完全出去后踏板采集的全部数据(相邻且相同的数据已自动合成),有效采样5数据中1的数量小于有效采样4数据中1的数量则对效采样4分区,有效采样4将踏板确定为一个区即只有一个人通过,有效采样5中第三排最先出现全0数据确定为出去。Explanation: The above data demonstrates all the data collected by a person from before going out to after going out completely (adjacent and identical data have been automatically synthesized), the number of 1s in the
判一个人进入和另二个人出去同时进行的数据分析:Sentence one person to enter and the other two to go out at the same time data analysis:
有效采样1 (第一排数据)00000000Effective sampling 1 (the first row of data) 00000000
(第二排数据)00000000(Second row of data) 00000000
(第三排数据)00000000(The third row of data) 00000000
有效采样2 (第一排数据)11000000Effective sampling 2 (the first row of data) 11000000
(第二排数据)00000000(Second row of data) 00000000
(第三排数据)00011011(The third row of data) 00011011
有效采样3 (第一排数据)11000000Effective sampling 3 (the first row of data) 11000000
(第二排数据)11001011(Second row of data) 11001011
(第三排数据)00011011(The third row of data) 00011011
有效采样4 (第一排数据)11011011Effective sampling 4 (the first row of data) 11011011
(第二排数据)11011011(Second row of data) 11011011
(第三排数据)11011011(The third row of data) 11011011
有效采样5 (第一排数据)00011011Effective sampling 5 (the first row of data) 00011011
(第二排数据)11011011(Second row of data) 11011011
(第三排数据)11000000(The third row of data) 11000000
有效采样6 (第一排数据)00011011Effective sampling 6 (the first row of data) 00011011
(第二排数据)00000000(Second row of data) 00000000
(第三排数据)11000000(The third row of data) 11000000
有效采样7 (第一排数据)00000000Effective sampling 7 (the first row of data) 00000000
(第二排数据)00000000(Second row of data) 00000000
(第三排数据)00000000(The third row of data) 00000000
说明:以上数据演示了同一时刻一个人从进入前到完全进入及另二个人出去前到完全出去踏板采集的全部数据(相邻且相同的数据已自动合成),有效采样5数据中1的数量小于有效采样4数据中1的数量则对效采样4分区,有效采样4将踏板确定为3个区即有3个人通过,有效采样4中一个分区第一排最先出现全0数据及另外二个分区第三排最先出现全0数据确定一个人进入二个人出去。Explanation: The above data demonstrates all the data collected by one person from before entering to fully entering and the other two persons before going out to completely go out at the same time (adjacent and identical data have been automatically synthesized), the number of 1 in the
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005100969730A CN100347728C (en) | 2005-04-04 | 2005-08-26 | Method and apparatus for counting personnel in and out of public places |
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200510020674 | 2005-04-04 | ||
CN200510020674.9 | 2005-04-04 | ||
CNB2005100969730A CN100347728C (en) | 2005-04-04 | 2005-08-26 | Method and apparatus for counting personnel in and out of public places |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1741045A CN1741045A (en) | 2006-03-01 |
CN100347728C true CN100347728C (en) | 2007-11-07 |
Family
ID=36093421
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2005100969730A Expired - Fee Related CN100347728C (en) | 2005-04-04 | 2005-08-26 | Method and apparatus for counting personnel in and out of public places |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100347728C (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102499430B (en) * | 2011-12-13 | 2013-10-23 | 卧龙电气集团股份有限公司 | Device and method for automatic modification of roast times for controller of intensive roasting room |
CN107341878A (en) * | 2017-06-09 | 2017-11-10 | 深圳市元征科技股份有限公司 | Pedestrian flow detection method and device |
CN113761548B (en) * | 2020-06-12 | 2024-03-08 | 北京沃东天骏信息技术有限公司 | Data transmission method and device for Shuffle process |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4127766A (en) * | 1976-04-05 | 1978-11-28 | Thayer Stephen C | Automatic and accurate passenger counter with storage and retrieval |
CN1205488A (en) * | 1997-07-11 | 1999-01-20 | 富士电机株式会社 | Via item counters and inventory counters |
US5866887A (en) * | 1996-09-04 | 1999-02-02 | Matsushita Electric Industrial Co., Ltd. | Apparatus for detecting the number of passers |
CN2394266Y (en) * | 1999-01-12 | 2000-08-30 | 王振兴 | Electromechanical Hybrid Counting Encoder |
CN2422689Y (en) * | 2000-04-23 | 2001-03-07 | 孙小唐 | Electronic digital reading mechanical runner counter |
US6712269B1 (en) * | 1999-09-29 | 2004-03-30 | Dine O Quick (Uk) Limited | Counting apparatus |
-
2005
- 2005-08-26 CN CNB2005100969730A patent/CN100347728C/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4127766A (en) * | 1976-04-05 | 1978-11-28 | Thayer Stephen C | Automatic and accurate passenger counter with storage and retrieval |
US5866887A (en) * | 1996-09-04 | 1999-02-02 | Matsushita Electric Industrial Co., Ltd. | Apparatus for detecting the number of passers |
CN1205488A (en) * | 1997-07-11 | 1999-01-20 | 富士电机株式会社 | Via item counters and inventory counters |
CN2394266Y (en) * | 1999-01-12 | 2000-08-30 | 王振兴 | Electromechanical Hybrid Counting Encoder |
US6712269B1 (en) * | 1999-09-29 | 2004-03-30 | Dine O Quick (Uk) Limited | Counting apparatus |
CN2422689Y (en) * | 2000-04-23 | 2001-03-07 | 孙小唐 | Electronic digital reading mechanical runner counter |
Also Published As
Publication number | Publication date |
---|---|
CN1741045A (en) | 2006-03-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1484765A (en) | A method for diagnosing atrophic gastritis | |
CN1309918C (en) | Stool flushing device | |
WO2008140463A3 (en) | Biomarker panels for assessing radiation injury and exposure | |
CN1559005A (en) | diagnostic analysis | |
Suzuki et al. | Clinical and immunological differences between early and late-onset myasthenia gravis in Japan | |
CN100347728C (en) | Method and apparatus for counting personnel in and out of public places | |
US20120190578A1 (en) | Plasma Complement Components as Expression Markers for Age-Related Macular Degeneration and Related Phenotypes | |
Paradiso et al. | Rapid serological assays and SARS-CoV-2 real-time polymerase chain reaction assays for the detection of SARS-CoV-2: comparative study | |
Crawford et al. | Serum hyaluronic acid with serum ferritin accurately predicts cirrhosis and reduces the need for liver biopsy in C282Y hemochromatosis | |
Hirai et al. | Influence of CYP4F2 polymorphisms and plasma vitamin K levels on warfarin sensitivity in Japanese pediatric patients | |
WO2017197252A1 (en) | Autism subsets | |
JP2020517935A (en) | Diagnostic method for Behcet's disease using metabolite analysis | |
WO2007056332A3 (en) | Molecular diagnosis of autoimmune diseases | |
CN114334142A (en) | A combination of SNP loci, risk prediction model and system for colorectal cancer risk prediction | |
KR20220075700A (en) | Type 2 diabetes mellitus prediction system using genome-wide Polygenic Risk Score | |
Manivannan et al. | Identification of cytokeratin 18 as a biomarker of mouse and human hepatosplenic schistosomiasis | |
CN118072956A (en) | A biomarker combination for predicting the risk of metabolic-related fatty liver disease in adulthood from childhood, its screening method and prediction system | |
Luo et al. | Convolutional neural network based on T-SPOT. TB assay promoting the discrimination between active tuberculosis and latent tuberculosis infection | |
Babinets et al. | Research of lipid exchange diffusion of medium-age patients with chronic pancreatitis with diabetes mellitus | |
CN116356014A (en) | Biological marker for noise susceptibility hearing impairment of workers and application thereof | |
MOCHIZUkI et al. | Plasma sE-selectin level is positively correlated with neutrophil count and diastolic blood pressure in Japanese men | |
Watson et al. | Quantitative mass spectrometry analysis of cerebrospinal fluid biomarker proteins reveals stage-specific changes in Alzheimer’s disease | |
CN1588061A (en) | Method for detecting four kinds of tumor serum proteins | |
CN108931641B (en) | Biomarkers for detection of idiopathic inflammatory myopathy and their uses | |
CN105112415A (en) | Genetic locus rs780092 for evaluating type 2 diabetes mellitus risk and detection kit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20071107 Termination date: 20110826 |