[go: up one dir, main page]

CN110175562A - A kind of gpu acceleration pedestrian detection algorithm based on parallel computation - Google Patents

A kind of gpu acceleration pedestrian detection algorithm based on parallel computation Download PDF

Info

Publication number
CN110175562A
CN110175562A CN201910440898.7A CN201910440898A CN110175562A CN 110175562 A CN110175562 A CN 110175562A CN 201910440898 A CN201910440898 A CN 201910440898A CN 110175562 A CN110175562 A CN 110175562A
Authority
CN
China
Prior art keywords
data
pedestrian
flow
people
gpu
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.)
Granted
Application number
CN201910440898.7A
Other languages
Chinese (zh)
Other versions
CN110175562B (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.)
Shenzhen Polytechnic
Original Assignee
Shenzhen Polytechnic
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 Shenzhen Polytechnic filed Critical Shenzhen Polytechnic
Priority to CN201910440898.7A priority Critical patent/CN110175562B/en
Publication of CN110175562A publication Critical patent/CN110175562A/en
Application granted granted Critical
Publication of CN110175562B publication Critical patent/CN110175562B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/52Surveillance or monitoring of activities, e.g. for recognising suspicious objects
    • G06V20/53Recognition of crowd images, e.g. recognition of crowd congestion
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/20Movements or behaviour, e.g. gesture recognition
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Social Psychology (AREA)
  • Psychiatry (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Traffic Control Systems (AREA)
  • Image Analysis (AREA)

Abstract

本发明公开了一种基于并行计算的gpu加速行人检测算法,包括数据处理模块、数据计算模块与数据输出模块,所述数据处理前需要进行收集采集,所述数据采集包括行人数据采集装置,所述数据处理模块包括中央处理器,所述中央处理器的数据输出端连接有图形处理器,所述图形处理器的数据输出端与中央处理器的数据输入端双向连接,所述数据计算模块内包括累计人流量DA内核计算与总人流量统计SA,所述人流量DA内核计算的数据输出端与总人流量统计SA的数据输入端单向连接。该基于并行计算的gpu加速行人检测算法通过gpu处理大量的类型统一的数据,以图形类数值计算为核心,将行人检测数据并行数值计算,提高了处理效率,便于快速检测。

The invention discloses a gpu-accelerated pedestrian detection algorithm based on parallel computing, which includes a data processing module, a data calculation module and a data output module. The data collection needs to be collected before the data processing, and the data collection includes a pedestrian data collection device. The data processing module includes a central processing unit, the data output end of the central processing unit is connected with a graphics processor, the data output end of the graphics processor is bidirectionally connected with the data input end of the central processing unit, and the data calculation module is Including the cumulative people flow DA core calculation and the total people flow statistics SA, the data output end of the people flow DA core calculation is connected to the data input end of the total people flow statistics SA in one direction. The GPU-accelerated pedestrian detection algorithm based on parallel computing processes a large amount of unified data through the GPU, and uses graphics-based numerical calculations as the core to perform parallel numerical calculations on pedestrian detection data, which improves processing efficiency and facilitates rapid detection.

Description

一种基于并行计算的gpu加速行人检测算法A GPU-accelerated pedestrian detection algorithm based on parallel computing

技术领域technical field

本发明涉及计算机视觉领域以及图像处理技术领域,尤其涉及一种基于并行计算的gpu加速行人检测算法。The invention relates to the field of computer vision and image processing technology, in particular to a GPU-accelerated pedestrian detection algorithm based on parallel computing.

背景技术Background technique

经过近些年的探索和发展,计算机视觉已经在金融、机械加工、交通运输、娱乐、医疗、安防、军事等很多领域具有应用场景,创造出无可替代的价值。在计算机视觉领域中,目标检测是个极其重要的研究分支,本发明着眼于目标检测中一个很重要且极具应用价值的课题——行人检测,行人检测是姿态估计、行为分析、行人识别、行人跟踪等课题的研究基础和前提,一个优秀的行人检测算法能为以上诸多研究课题提供强有力的支持和保障,行人检测算法,顾名思义,就是对于给定的图片或视频,使用预先训练好的模型对其进行检测,标注出图片或视频中行人所在的位置。这在现实生活中是非常具有应用价值的,如把行人检测算法用于辅助驾驶上,车辆能自动识别前方的行人,并获得与目标之间的精确距离,对行人及时进行避让,在发生紧急情况时发出警报,可以主动参与制动,让驾驶变得更轻松,让出行变得更安全、更放心;在监控系统集成行人检测等算法,能及时检测出行人的所在位置,对其行为进行分析,如果发现逗留过久等异常行为及时给安全人员以报警,可以防患于未然,等等。After years of exploration and development, computer vision has been applied in finance, machining, transportation, entertainment, medical care, security, military and many other fields, creating irreplaceable value. In the field of computer vision, target detection is an extremely important research branch. The present invention focuses on a very important and extremely valuable topic in target detection—pedestrian detection. The research basis and premise of tracking and other topics, an excellent pedestrian detection algorithm can provide strong support and guarantee for many of the above research topics, pedestrian detection algorithm, as the name suggests, is to use a pre-trained model for a given picture or video Detect it and mark the location of the pedestrian in the picture or video. This is very valuable in real life. For example, if the pedestrian detection algorithm is used in assisted driving, the vehicle can automatically identify the pedestrians in front, obtain the precise distance from the target, and avoid pedestrians in time. In case of an alarm, it can actively participate in braking, making driving easier and making travel safer and more at ease; the monitoring system integrates algorithms such as pedestrian detection, which can detect the location of pedestrians in time and monitor their behavior. Analysis, if abnormal behaviors such as staying too long are found, the security personnel can be alerted in time to prevent problems before they happen, and so on.

现有的行人检测算法不是以图形类数值为计算核心,只是简单对行人数据进行计算,不能进行处理类型高度统一,相互无依赖的大规模数据,对于图形类的或者是非图形类的高度并行数值计算无法处理。Existing pedestrian detection algorithms do not use graphic values as the calculation core, but simply calculate pedestrian data, and cannot process large-scale data with a highly unified type and no dependence on each other. For graphic or non-graphic highly parallel values Computation could not be processed.

发明内容Contents of the invention

1.要解决的技术问题1. Technical problems to be solved

本发明的目的是为了解决现有的行人检测算法不是以图形类数值为计算核心,只是简单对行人数据进行计算,不能进行处理类型高度统一,相互无依赖的大规模数据,对于图形类的或者是非图形类的高度并行数值计算无法处理的问题,而提出的一种基于并行计算的gpu加速行人检测算法。The purpose of the present invention is to solve the problem that the existing pedestrian detection algorithm does not take the numerical value of graphics as the calculation core, but simply calculates the pedestrian data, and cannot process large-scale data with a highly unified type and no dependence on each other. For graphics or It is a problem that non-graphics highly parallel numerical calculations cannot handle, and a GPU-accelerated pedestrian detection algorithm based on parallel computing is proposed.

2.技术方案2. Technical solution

为了实现上述目的,本发明采用了如下技术方案:In order to achieve the above object, the present invention adopts the following technical solutions:

一种基于并行计算的gpu加速行人检测算法,包括数据处理模块、数据计算模块与数据输出模块,所述数据处理前需要进行收集采集,所述数据采集包括行人数据采集装置,通过摄像机采集,采集的数据通过图片检测器进行检测,筛选出采集到的行人图片数据,所述数据处理模块包括中央处理器,数据处理模块对采集到的行人图片进行初始化处理,将初始化完成的行人图片数据输出,所述中央处理器的数据输出端连接有图形处理器,所述图形处理器的数据输出端与中央处理器的数据输入端双向连接,所述数据计算模块内包括累计人流量DA内核计算与总人流量统计SA,所述人流量DA内核计算的数据输出端与总人流量统计SA的数据输入端单向连接,所述数据输出模块包括接收器与传输设备,所述接收器的数据输出端与传输设备的数据输入端单向连接。A gpu-accelerated pedestrian detection algorithm based on parallel computing, including a data processing module, a data calculation module and a data output module, before the data processing needs to be collected and collected, and the data collected includes a pedestrian data collection device, collected by a camera, collected The data is detected by the picture detector, and the collected pedestrian picture data is screened out. The data processing module includes a central processing unit, and the data processing module initializes the collected pedestrian picture, and outputs the initialized pedestrian picture data. The data output end of the central processing unit is connected with a graphics processor, and the data output end of the graphics processing unit is bidirectionally connected with the data input end of the central processing unit. People flow statistics SA, the data output end calculated by the people flow DA core is connected unidirectionally with the data input end of the total people flow statistics SA, and the data output module includes a receiver and a transmission device, and the data output end of the receiver One-way connection with the data input terminal of the transmission device.

优选地,所述行人数据采集装置包括图片采集器与图片检测器,所述图片采集器可通过摄像机采集,采集的数据通过图片检测器进行检测,筛选出采集到的行人图片数据。Preferably, the pedestrian data collection device includes a picture collector and a picture detector, the picture collector can collect through a camera, the collected data is detected by the picture detector, and the collected pedestrian picture data is screened out.

优选地,所述数据处理模块对采集到的行人图片进行初始化处理,将初始化完成的行人图片数据数据,设置人流量阈值DT,并通过检测设定检测阈值NT,同时通过数据处理模块设定总人流量SA为极大值。Preferably, the data processing module initializes the collected pedestrian pictures, sets the pedestrian flow threshold DT for the initialized pedestrian picture data, and sets the detection threshold NT through detection, and sets the total threshold through the data processing module at the same time. The flow of people SA is the maximum value.

优选地,所述数据计算模块接受到数据处理模块处理后的数据,通过累计人流量DA内核计算,将数据输出进行统计,得出行人总流量。Preferably, the data calculation module receives the data processed by the data processing module, calculates the cumulative pedestrian flow DA kernel, and makes statistics on the data output to obtain the total pedestrian flow.

优选地,所述数据输出模块将累计人流量DA数值小于设置的人流量阈值DT时,通过数据输出设备将行人流量数据输出。Preferably, the data output module outputs the pedestrian flow data through the data output device when the accumulated pedestrian flow DA value is less than the set pedestrian flow threshold DT.

优选地,所述检测后的数据通过比较总人流量SA与设置的人流量阈值DT进行对比,当总人流量SA小于人流量阈值DT时,数据输出置数据输出模块。Preferably, the detected data is compared with the set people flow threshold DT by comparing the total people flow SA, and when the total people flow SA is less than the people flow threshold DT, the data output is set to the data output module.

优选地,所述行人流量数据输出时将检测出的位置进行标记,便于计算处理。Preferably, when the pedestrian flow data is output, the detected positions are marked to facilitate calculation and processing.

优选地,所述在设置总人流量的同时需要设定最小储存与处理单位,对检测的数据进行并行处理。Preferably, while setting the total flow of people, it is necessary to set a minimum storage and processing unit, and process the detected data in parallel.

优选地,所述传输设备包含行式打印机和数控绘图仪及其它扫描装置。Preferably, said transport equipment includes line matrix printers and numerically controlled plotters and other scanning devices.

3.有益效果3. Beneficial effect

相比于现有技术,本发明的优点在于:Compared with the prior art, the present invention has the advantages of:

(1)本发明中,通过摄像机采集,采集的数据通过图片检测器进行检测,筛选出采集到的行人图片数据,数据处理模块对采集到的行人图片进行初始化处理,将初始化完成的行人图片数据输出,设置人流量阈值DT,并通过检测设定检测阈值NT,同时通过数据处理模块设定总人流量SA为极大值,设置总人流量的同时需要设定最小储存与处理单位,对检测的数据进行并行处理,数据计算模块接受到数据处理模块处理后的数据,通过累计人流量DA内核计算,将数据输出进行统计,得出行人总流量,数据输出模块将累计人流量DA数值小于设置的人流量阈值DT时,通过数据输出设备将行人流量数据输出,检测后的数据通过比较总人流量SA与设置的人流量阈值DT进行对比,当总人流量SA小于人流量阈值DT时,数据输出置数据输出模块。(1) In the present invention, through camera collection, the data of collection is detected by picture detector, screens out the pedestrian picture data that gathers, and data processing module carries out initialization process to the pedestrian picture that gathers, and the pedestrian picture data that initialization completes Output, set the threshold of people flow DT, and set the detection threshold NT through detection, and set the total flow of people SA as the maximum value through the data processing module. When setting the total flow of people, it is necessary to set the minimum storage and processing unit. The data is processed in parallel, the data calculation module receives the data processed by the data processing module, calculates through the DA kernel of the cumulative pedestrian flow, and counts the data output to obtain the total pedestrian flow, and the data output module will reduce the cumulative DA value of the pedestrian flow to less than the set value When the pedestrian flow threshold DT is set, the pedestrian flow data is output through the data output device, and the detected data is compared with the set pedestrian flow threshold DT by comparing the total pedestrian flow SA. When the total pedestrian flow SA is less than the pedestrian flow threshold DT, the data The output is located in the data output module.

(2)计算线程号接收数据,设置C值为边界,通过C值与像元数进行对比,C值大于像元数时,计算结算,C值小于像元数进行下一步计算zw(c)值,计算后的值通过计算最大坡降像元zw(n)值,通过对zw(c)与zw(n)做对比,zw(c)大于zw(n)值时,直接输出,结束计算,当zw(c)小于zw(n)值时,计算转移人流量MV,增加累计人流量与zw(n)的,输出数据,结束计算,当C值不为边界时,增加累计人流量,将C值重置为零,输出数据结束计算。(2) Calculate the thread number to receive data, set the C value as the boundary, and compare the C value with the number of pixels. When the C value is greater than the number of pixels, calculate the settlement. If the C value is less than the number of pixels, proceed to the next step to calculate zw(c) value, the calculated value is calculated by calculating the maximum slope pixel zw(n) value, and by comparing zw(c) with zw(n), when zw(c) is greater than zw(n), it is directly output and the calculation ends , when zw(c) is less than the value of zw(n), calculate the transfer flow of people MV, increase the cumulative flow of people and zw(n), output data, end the calculation, when the value of C is not the boundary, increase the cumulative flow of people, Resets the C value to zero and outputs the data to end the calculation.

附图说明Description of drawings

图1为本发明提出的一种基于并行计算的gpu加速行人检测算法的结构示意图;Fig. 1 is the structural representation of a kind of gpu accelerated pedestrian detection algorithm based on parallel computing that the present invention proposes;

图2为本发明提出的一种基于并行计算的gpu加速行人检测算法的算法结构示意图。FIG. 2 is a schematic diagram of the algorithm structure of a GPU-accelerated pedestrian detection algorithm based on parallel computing proposed by the present invention.

图3为本发明提出的一种基于并行计算的gpu加速行人检测算法的模块结构示意图。FIG. 3 is a block diagram of a GPU-accelerated pedestrian detection algorithm based on parallel computing proposed by the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention.

在本发明的描述中,需要理解的是,术语“上”、“下”、“前”、“后”、“左”、“右”、“顶”、“底”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。In describing the present invention, it should be understood that the terms "upper", "lower", "front", "rear", "left", "right", "top", "bottom", "inner", " The orientation or positional relationship indicated by "outside", etc. is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the referred device or element must have a specific orientation, so as to Specific orientation configurations and operations, therefore, are not to be construed as limitations on the invention.

实施例1:Example 1:

参照图1-3,一种基于并行计算的gpu加速行人检测算法,包括数据处理模块、数据计算模块与数据输出模块,数据处理前需要进行收集采集,数据采集包括行人数据采集装置,数据处理模块包括中央处理器,中央处理器的数据输出端连接有图形处理器,图形处理器的数据输出端与中央处理器的数据输入端双向连接,数据计算模块内包括累计人流量DA内核计算与总人流量统计SA,人流量DA内核计算的数据输出端与总人流量统计SA的数据输入端单向连接,数据输出模块包括接收器与传输设备,接收器的数据输出端与传输设备的数据输入端单向连接。Referring to Figure 1-3, a gpu-accelerated pedestrian detection algorithm based on parallel computing includes a data processing module, a data calculation module and a data output module. Data collection needs to be performed before data processing. The data collection includes a pedestrian data collection device and a data processing module. Including a central processing unit, the data output end of the central processing unit is connected to a graphics processor, and the data output end of the graphics processor is bidirectionally connected with the data input end of the central processing unit. Traffic statistics SA, the data output terminal calculated by the people flow DA core is connected to the data input terminal of the total people flow statistics SA in one direction. The data output module includes the receiver and the transmission device, the data output terminal of the receiver and the data input terminal of the transmission device One-way connection.

本发明中,行人数据采集装置包括图片采集器与图片检测器,图片采集器可通过摄像机采集,采集的数据通过图片检测器进行检测,筛选出采集到的行人图片数据,行人数据采集装置包括图片采集器与图片检测器,图片采集器可通过摄像机采集,采集的数据通过图片检测器进行检测,筛选出采集到的行人图片数据,数据计算模块接受到数据处理模块处理后的数据,通过累计人流量DA内核计算,将数据输出进行统计,得出行人总流量,数据输出模块将累计人流量DA数值小于设置的人流量阈值DT时,通过数据输出设备将行人流量数据输出,检测后的数据通过比较总人流量SA与设置的人流量阈值DT进行对比,当总人流量SA小于人流量阈值DT时,数据输出置数据输出模块,检测后的数据通过比较总人流量SA与设置的人流量阈值DT进行对比,当总人流量SA小于人流量阈值DT时,数据输出置数据输出模块,行人流量数据输出时将检测出的位置进行标记,便于计算处理,在设置总人流量的同时需要设定最小储存与处理单位,对检测的数据进行并行处理,传输设备包含行式打印机和数控绘图仪及其它扫描装置。In the present invention, the pedestrian data acquisition device includes a picture collector and a picture detector. The picture collector can be collected by a camera, and the collected data is detected by the picture detector, and the collected pedestrian picture data is screened out. Collector and picture detector, the picture collector can be collected by the camera, the collected data is detected by the picture detector, and the collected pedestrian picture data is screened out, the data calculation module receives the data processed by the data processing module, and accumulates the pedestrian The flow DA kernel calculates and counts the data output to obtain the total pedestrian flow. The data output module outputs the pedestrian flow data through the data output device when the accumulated pedestrian flow DA value is less than the set pedestrian flow threshold DT. The detected data passes through Compare the total people flow SA with the set people flow threshold DT, when the total people flow SA is less than the people flow threshold DT, the data output is set to the data output module, and the detected data is compared with the total people flow SA and the set people flow threshold DT for comparison, when the total pedestrian flow SA is less than the human flow threshold DT, the data output is set to the data output module, and the detected position will be marked when the pedestrian flow data is output, which is convenient for calculation and processing. When setting the total pedestrian flow, it is necessary to set The smallest storage and processing unit, parallel processing of detected data, transmission equipment includes line printers, numerical control plotters and other scanning devices.

本发明中,通过摄像机采集,采集的数据通过图片检测器进行检测,筛选出采集到的行人图片数据,数据处理模块对采集到的行人图片进行初始化处理,将初始化完成的行人图片数据输出,设置人流量阈值DT,并通过检测设定检测阈值NT,同时通过数据处理模块设定总人流量SA为极大值,设置总人流量的同时需要设定最小储存与处理单位,对检测的数据进行并行处理,数据计算模块接受到数据处理模块处理后的数据,通过累计人流量DA内核计算,将数据输出进行统计,得出行人总流量,数据输出模块将累计人流量DA数值小于设置的人流量阈值DT时,通过数据输出设备将行人流量数据输出,检测后的数据通过比较总人流量SA与设置的人流量阈值DT进行对比,当总人流量SA小于人流量阈值DT时,数据输出置数据输出模块,计算线程号接收数据,设置C值为边界,通过C值与像元数进行对比,C值大于像元数时,计算结算,C值小于像元数进行下一步计算zw(c)值,计算后的值通过计算最大坡降像元zw(n)值,通过对zw(c)与zw(n)做对比,zw(c)大于zw(n)值时,直接输出,结束计算,当zw(c)小于zw(n)值时,计算转移人流量MV,增加累计人流量与zw(n)的,输出数据,结束计算,当C值不为边界时,增加累计人流量,将C值重置为零,输出数据结束计算。该基于并行计算的gpu加速行人检测算法通过gpu处理大量的类型统一的数据,以图形类数值计算为核心,将行人检测数据并行数值计算,提高了处理效率,便于快速检测。In the present invention, through camera collection, the collected data is detected by a picture detector, and the collected pedestrian picture data is screened out. The data processing module initializes the collected pedestrian picture, outputs the initialized pedestrian picture data, and sets People flow threshold DT, and set the detection threshold NT through detection, and set the total people flow SA as the maximum value through the data processing module. When setting the total people flow, it is necessary to set the minimum storage and processing unit, and carry out the detection data Parallel processing, the data calculation module receives the data processed by the data processing module, calculates through the DA core of the accumulated people flow, and counts the data output to obtain the total pedestrian flow, and the data output module will make the DA value of the accumulated people flow less than the set people flow When the threshold is DT, the pedestrian flow data is output through the data output device, and the detected data is compared with the set people flow threshold DT by comparing the total people flow SA. When the total people flow SA is less than the people flow threshold DT, the data output is set to data The output module calculates the thread number to receive data, sets the C value as the boundary, and compares the C value with the number of pixels. When the C value is greater than the number of pixels, the calculation is settled, and the C value is smaller than the number of pixels for the next step of calculating zw(c) value, the calculated value is calculated by calculating the maximum slope pixel zw(n) value, and by comparing zw(c) with zw(n), when zw(c) is greater than zw(n), it is directly output and the calculation ends , when zw(c) is less than the value of zw(n), calculate the transfer flow of people MV, increase the cumulative flow of people and zw(n), output data, end the calculation, when the value of C is not the boundary, increase the cumulative flow of people, Resets the C value to zero and outputs the data to end the calculation. The GPU-accelerated pedestrian detection algorithm based on parallel computing processes a large amount of unified data through the GPU, and uses graphics-based numerical calculations as the core to perform parallel numerical calculations on pedestrian detection data, which improves processing efficiency and facilitates rapid detection.

以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,根据本发明的技术方案及其发明构思加以等同替换或改变,都应涵盖在本发明的保护范围之内。The above is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto, any person familiar with the technical field within the technical scope disclosed in the present invention, according to the technical solution of the present invention Any equivalent replacement or change of the inventive concepts thereof shall fall within the protection scope of the present invention.

Claims (9)

1.一种基于并行计算的gpu加速行人检测算法,包括数据处理模块、数据计算模块与数据输出模块,其特征在于,所述数据处理前需要进行收集采集,所述数据采集包括行人数据采集装置,所述数据处理模块包括中央处理器,所述中央处理器的数据输出端连接有图形处理器,所述图形处理器的数据输出端与中央处理器的数据输入端双向连接,所述数据计算模块内包括累计人流量DA内核计算与总人流量统计SA,所述人流量DA内核计算的数据输出端与总人流量统计SA的数据输入端单向连接,所述数据输出模块包括接收器与传输设备,所述接收器的数据输出端与传输设备的数据输入端单向连接。1. a kind of gpu based on parallel computing accelerates the pedestrian detection algorithm, comprises data processing module, data calculation module and data output module, is characterized in that, needs to collect before described data processing, and described data acquisition comprises pedestrian data acquisition device , the data processing module includes a central processing unit, the data output end of the central processing unit is connected with a graphics processor, the data output end of the graphics processor is bidirectionally connected with the data input end of the central processing unit, and the data calculation Comprise cumulative people flow DA kernel calculation and total people flow statistics SA in the module, the data output terminal of described people flow DA kernel calculation is connected with the data input end of total people flow statistics SA one-way, and described data output module includes receiver and The transmission device, the data output end of the receiver is unidirectionally connected with the data input end of the transmission device. 2.根据权利要求1所述的一种基于并行计算的gpu加速行人检测算法,其特征在于,所述行人数据采集装置包括图片采集器与图片检测器,所述图片采集器可通过摄像机采集,采集的数据通过图片检测器进行检测,筛选出采集到的行人图片数据。2. a kind of gpu acceleration pedestrian detection algorithm based on parallel computing according to claim 1, is characterized in that, described pedestrian data collection device comprises picture collector and picture detector, and described picture collector can be collected by video camera, The collected data is detected by a picture detector, and the collected pedestrian picture data is screened out. 3.根据权利要求1所述的一种基于并行计算的gpu加速行人检测算法,其特征在于,所述数据处理模块对采集到的行人图片进行初始化处理,将初始化完成的行人图片数据数据,设置人流量阈值DT,并通过检测设定检测阈值NT,同时通过数据处理模块设定总人流量SA为极大值。3. a kind of gpu-accelerated pedestrian detection algorithm based on parallel computing according to claim 1, is characterized in that, described data processing module carries out initialization processing to the pedestrian picture that gathers, and the pedestrian picture data data that initialization completes, sets Threshold DT of the flow of people, and set the detection threshold NT through detection, and set the total flow of people SA as the maximum value through the data processing module. 4.根据权利要求1所述的一种基于并行计算的gpu加速行人检测算法,其特征在于,所述数据计算模块接受到数据处理模块处理后的数据,通过累计人流量DA内核计算,将数据输出进行统计,得出行人总流量。4. a kind of gpu acceleration pedestrian detection algorithm based on parallel computing according to claim 1, is characterized in that, described data calculation module receives the data after data processing module processing, calculates by accumulative flow of people DA kernel, data The output is counted to obtain the total flow of pedestrians. 5.根据权利要求1所述的一种基于并行计算的gpu加速行人检测算法,其特征在于,所述数据输出模块将累计人流量DA数值小于设置的人流量阈值DT时,通过数据输出设备将行人流量数据输出。5. a kind of gpu acceleration pedestrian detection algorithm based on parallel computing according to claim 1, is characterized in that, when described data output module is less than the people flow threshold value DT of setting when cumulative flow of people DA numerical value, by data output device will Pedestrian flow data output. 6.根据权利要求1所述的一种基于并行计算的gpu加速行人检测算法,其特征在于,所述检测后的数据通过比较总人流量SA与设置的人流量阈值DT进行对比,当总人流量SA小于人流量阈值DT时,数据输出置数据输出模块。6. a kind of gpu-accelerated pedestrian detection algorithm based on parallel computing according to claim 1, is characterized in that, the data after described detection is compared with the people flow threshold value DT of setting by comparing total people flow SA, when total people When the flow rate SA is less than the people flow threshold DT, the data output is set to the data output module. 7.根据权利要求1所述的一种基于并行计算的gpu加速行人检测算法,其特征在于,。7. a kind of gpu accelerated pedestrian detection algorithm based on parallel computing according to claim 1, is characterized in that. 8.根据权利要求1所述的一种基于并行计算的gpu加速行人检测算法,其特征在于,所述在设置总人流量的同时需要设定最小储存与处理单位,对检测的数据进行并行处理。8. a kind of gpu-accelerated pedestrian detection algorithm based on parallel computing according to claim 1, is characterized in that, said minimum storage and processing unit needs to be set when total flow of people is set, and the data detected is processed in parallel . 9.根据权利要求1所述的一种基于并行计算的gpu加速行人检测算法,其特征在于,所述传输设备包含行式打印机和数控绘图仪及其它扫描装置。9. a kind of gpu accelerated pedestrian detection algorithm based on parallel computing according to claim 1, is characterized in that, described transmission equipment comprises line matrix printer and numerical control plotter and other scanning devices.
CN201910440898.7A 2019-05-24 2019-05-24 Parallel computing-based gpu acceleration pedestrian detection algorithm Active CN110175562B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910440898.7A CN110175562B (en) 2019-05-24 2019-05-24 Parallel computing-based gpu acceleration pedestrian detection algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910440898.7A CN110175562B (en) 2019-05-24 2019-05-24 Parallel computing-based gpu acceleration pedestrian detection algorithm

Publications (2)

Publication Number Publication Date
CN110175562A true CN110175562A (en) 2019-08-27
CN110175562B CN110175562B (en) 2024-01-16

Family

ID=67695629

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910440898.7A Active CN110175562B (en) 2019-05-24 2019-05-24 Parallel computing-based gpu acceleration pedestrian detection algorithm

Country Status (1)

Country Link
CN (1) CN110175562B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622589A (en) * 2012-03-13 2012-08-01 辉路科技(北京)有限公司 Multispectral face detection method based on graphics processing unit (GPU)
FR3015093A1 (en) * 2013-12-12 2015-06-19 Rizze SYSTEM AND METHOD FOR CONTROLLING INPUT AND OUTPUT FLOW OF PEOPLE IN CLOSED AREAS
CN106372570A (en) * 2016-08-19 2017-02-01 云赛智联股份有限公司 Visitor flowrate statistic method
CN107871127A (en) * 2017-11-30 2018-04-03 成都市深国科半导体有限公司 A kind of intelligent pedestrian flow statistical system
CN108229452A (en) * 2018-03-20 2018-06-29 东北大学 People counting device and method based on deep neural network and dsp chip
WO2018121127A1 (en) * 2016-12-30 2018-07-05 苏州万店掌网络科技有限公司 System for collecting statistics on pedestrian traffic by means of tracking based on video analysis technique
CN108665096A (en) * 2018-04-28 2018-10-16 新华三大数据技术有限公司 Flow of the people alarm method and device
CN108764203A (en) * 2018-06-06 2018-11-06 四川大学 A kind of pedestrian's quantitative analysis and display systems towards urban planning

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622589A (en) * 2012-03-13 2012-08-01 辉路科技(北京)有限公司 Multispectral face detection method based on graphics processing unit (GPU)
FR3015093A1 (en) * 2013-12-12 2015-06-19 Rizze SYSTEM AND METHOD FOR CONTROLLING INPUT AND OUTPUT FLOW OF PEOPLE IN CLOSED AREAS
CN106372570A (en) * 2016-08-19 2017-02-01 云赛智联股份有限公司 Visitor flowrate statistic method
WO2018121127A1 (en) * 2016-12-30 2018-07-05 苏州万店掌网络科技有限公司 System for collecting statistics on pedestrian traffic by means of tracking based on video analysis technique
CN107871127A (en) * 2017-11-30 2018-04-03 成都市深国科半导体有限公司 A kind of intelligent pedestrian flow statistical system
CN108229452A (en) * 2018-03-20 2018-06-29 东北大学 People counting device and method based on deep neural network and dsp chip
CN108665096A (en) * 2018-04-28 2018-10-16 新华三大数据技术有限公司 Flow of the people alarm method and device
CN108764203A (en) * 2018-06-06 2018-11-06 四川大学 A kind of pedestrian's quantitative analysis and display systems towards urban planning

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
WEIDONG MIN, MENGDAN FAN, XIAOGUANG GUO, ETC: ""A New Approach to Track Multiple Vehicles With the Combination of Robust Detection and Two Classifiers"", 《IEEE TRANSACTIONS ON INTELLIGENT TRANSPORTATION SYSTEMS》, vol. 19, no. 1, pages 174 - 186, XP055932919, DOI: 10.1109/TITS.2017.2756989 *
刘应东, 牛惠民, 王建强等: ""无信号人行横道交通流特性的研究"", 《计算机工程与应用》, vol. 51, no. 6, pages 16 - 21 *

Also Published As

Publication number Publication date
CN110175562B (en) 2024-01-16

Similar Documents

Publication Publication Date Title
US10261574B2 (en) Real-time detection system for parked vehicles
JP6309558B2 (en) Method and system for detecting an object using a block-based histogram of orientation gradients
CN109145696B (en) Old people falling detection method and system based on deep learning
CN111091023B (en) A vehicle detection method, device and electronic equipment
CN111597879A (en) Gesture detection method, device and system based on monitoring video
CN109360362A (en) A railway video surveillance identification method, system and computer readable medium
CN107679471A (en) Indoor occupant sky hilllock detection method based on video monitoring platform
CN107657244A (en) A kind of human body tumble behavioral value system and its detection method based on multiple-camera
CN103456168A (en) System and method for monitoring behaviors of pedestrians at traffic intersection
CN110806581B (en) Medical cart anti-collision detection method, device and system
CN104869316A (en) Multi-target shooting method and device
Pramerdorfer et al. Fall detection based on depth-data in practice
CN106127163A (en) A kind of monocular ranging localization detecting system and detection method thereof
CN118779720A (en) A large model-based accident detection method and device
CN116883870A (en) Unmanned aerial vehicle falling stone target detection method and device based on deep learning
CN104506809A (en) Intelligent video based monitoring system of critically ill patients
CN110837760A (en) Target detection method, training method and device for target detection
CN118918519B (en) Bridge health state detection and early warning method, device and medium based on object imaging
Yang et al. Eye-SCAN: Eye-Movement-Attention-based Spatial Channel Adaptive Network for traffic accident prediction
CN110837810A (en) Face attention judging method, device, equipment and storage medium
CN110175562A (en) A kind of gpu acceleration pedestrian detection algorithm based on parallel computation
Bhoyar et al. Implementation on visual analysis of eye state using image processing for driver fatigue detection
CN117557930A (en) Fire disaster identification method and fire disaster identification device based on aerial image
CN117635695A (en) A walking trajectory center of gravity analysis method and system suitable for home care scenarios
CN117115894A (en) Non-contact driver fatigue state analysis method, device and equipment

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
CB02 Change of applicant information

Address after: No.7098 Liuxian Avenue, Xili street, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen Vocational and Technical University

Address before: 518000 Xili street xilihu town xilihu bank, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: SHENZHEN POLYTECHNIC

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant