CN104376578A - Moving object detection processing method and device applied to direct recording and broadcasting system - Google Patents

Moving object detection processing method and device applied to direct recording and broadcasting system Download PDF

Info

Publication number
CN104376578A
CN104376578A CN201410619269.8A CN201410619269A CN104376578A CN 104376578 A CN104376578 A CN 104376578A CN 201410619269 A CN201410619269 A CN 201410619269A CN 104376578 A CN104376578 A CN 104376578A
Authority
CN
China
Prior art keywords
object detection
moving object
detected
pixel
image
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.)
Pending
Application number
CN201410619269.8A
Other languages
Chinese (zh)
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.)
Suzhou Codyy Network Technology Co Ltd
Original Assignee
Suzhou Codyy Network Technology Co Ltd
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 Suzhou Codyy Network Technology Co Ltd filed Critical Suzhou Codyy Network Technology Co Ltd
Priority to CN201410619269.8A priority Critical patent/CN104376578A/en
Publication of CN104376578A publication Critical patent/CN104376578A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/20Processor architectures; Processor configuration, e.g. pipelining

Abstract

The invention provides a moving object detection processing method and device applied to a direct recording and broadcasting system. The method comprises the steps that a graphic processor acquires an image to be detected; the graphic processor executes n sets of moving object detection processes through n parallel threads respectively, wherein each set of moving object detection processes comprises t moving object detection processes, and execution results of the n parallel threads are detected moving objects. The graphic processor distributes the multiple parallel threads in the graphic processor to the moving object detection processes according to a special distribution rule, reasonable two-dimensional distribution of the threads is achieved, the characteristic that the threads in the graphic processor can achieve parallel execution is fully utilized, and therefore the processing efficiency is improved.

Description

A kind ofly be applied to moving object detection disposal route in straight recording and broadcasting system and equipment
Technical field
The invention belongs to image processing field, particularly relate to and be a kind ofly applied to moving object detection disposal route in straight recording and broadcasting system and equipment.
Background technology
Along with the development of Detection for Moving Target, numerous researcher has done a large amount of correlative study work to target detection technique field, but there is the problem such as noise and other cyclical movements in the process of moving object detection, cause and be difficult to accurately detect moving target.
Simultaneously, the research of existing Detection for Moving Target is often based on CPU serial processing, CPU puts at one time and can only perform an instruction, due in the process detected, have a large amount of data cached generations and be stored in CPU, and CPU needs to issue data cached the graphic process unit performing and detect continually, thus reduces the speed of target detection, is difficult to carry out moving object detection fast and effectively.
Summary of the invention
The invention provides and be a kind ofly applied to moving object detection disposal route in straight recording and broadcasting system and equipment, to solve the problem.
The invention provides a kind of moving object detection disposal route be applied in straight recording and broadcasting system.Said method comprises the following steps: graphic process unit obtains image to be detected; Described graphic process unit adopts n parallel thread to perform n group moving object detection flow process respectively, wherein, often organize moving object detection flow process and comprise t moving object detection flow process, t, n be greater than 1 integer, a described moving object detection flow process is the moving object detection processing procedure of carrying out for a pixel in described image to be detected; The execution result of a described n parallel thread is the moving target detected.
The present invention also provides a kind of moving object detection treatment facility be applied in straight recording and broadcasting system, the said equipment comprises: graphic process unit, wherein, described graphic process unit comprises: acquiring unit, storage unit and processing unit, and described acquiring unit is connected with described storage unit respectively with described processing unit; Described image to be detected, for obtaining image to be detected, is sent to described storage unit by described acquiring unit; The image to be detected that described storage unit sends for receiving described image to be detected, described storage unit is also for storing the image described to be detected received; Described processing unit performs n group moving object detection flow process respectively for adopting n parallel thread, wherein, often organize moving object detection flow process and comprise t moving object detection flow process, t, n be greater than 1 integer, described processing unit also for exporting the execution result of a described n parallel thread, obtains the moving target detected.
Compared to prior art, moving object detection disposal route in straight recording and broadcasting system and equipment is applied to according to provided by the invention, described graphic process unit adopts special allocation rule that the thread multiple arranged side by side in graphic process unit is distributed to moving object detection flow process, achieve the two-dimentional reasonable distribution process of thread, taking full advantage of graphic process unit thread can the characteristic of executed in parallel, improve treatment effeciency, and be data cachedly stored in graphic process unit by a large amount of in moving object detection, which reduce the exchanges data between graphic process unit and CPU, thus improve the treatment effeciency of moving object detection.In addition, graphic process unit GPU is high relative to CPU integrated level, and price is low, further reduces cost and the volume of equipment.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, and form a application's part, schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Figure 1 shows that the process flow diagram being applied to the moving object detection disposal route in straight recording and broadcasting system that preferred embodiment according to the present invention provides;
Figure 2 shows that the schematic diagram of the image slices vegetarian refreshments to be detected that preferred embodiment according to the present invention provides;
Figure 3 shows that the moving object detection treatment facility be applied in straight recording and broadcasting system that preferred embodiment according to the present invention provides.
Embodiment
Hereinafter also describe the present invention in detail with reference to accompanying drawing in conjunction with the embodiments.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
Be illustrated in figure 1 the process flow diagram being applied to the moving object detection disposal route in straight recording and broadcasting system that preferred embodiment according to the present invention provides.As shown in Figure 1, what preferred embodiment of the present invention provided the moving object detection disposal route be applied in straight recording and broadcasting system comprises step 101-103.
Step 101: graphic process unit obtains image to be detected;
Step 102: described graphic process unit adopts n parallel thread to perform n group moving object detection flow process respectively, wherein, often organize moving object detection flow process and comprise t moving object detection flow process, t, n be greater than 1 integer, a described moving object detection flow process is the moving object detection processing procedure of carrying out for a pixel in described image to be detected;
Described graphic process unit adopts n parallel thread to perform the process of n group moving object detection flow process respectively, comprising: the size obtaining required thread block according to total pixel number of described image to be detected; Total pixel is divided using t pixel as a pixel group; Described thread block is divided into multiple parallel thread, and make each parallel thread corresponding with each pixel group (i.e. the corresponding t of a parallel thread pixel), obtain the corresponding relation (i.e. pixel group sequence number and parallel thread sequence number one_to_one corresponding) of parallel thread sequence number and pixel group sequence number; According to described corresponding relation, each parallel thread is made to perform the moving object detection flow process of corresponding pixel points group.
The detailed process obtaining the size of required thread block according to total pixel number of described image to be detected is: the total pixel number object 1/t size of described required thread block being set to described image to be detected.
The corresponding relation of described parallel thread sequence number and pixel group sequence number is determined: index=y × width+4x according to following formula;
Wherein, x is the parallel thread sequence number of described parallel thread in x dimension, y is the parallel thread sequence number of described parallel thread in y dimension, and index is the sequence number of pixel group on described image to be detected, and width is the pixel total number in the x dimension of described image to be detected.
Described t is 4.
Described moving object detection flow process be following any one: background difference detecting flow, inter-frame difference testing process, light stream testing process.
Described image to be detected is stored in described graphic process unit.
Step 103: the execution result of a described n parallel thread is the moving target detected.
Technical scheme of the present invention is described in detail hereinafter for background difference detecting flow:
Graphic process unit carries out initialization procedure, carries out contextual establishment, the establishment of command queue and the establishment of buffer memory.
Current frame image is sent to graphic process unit by processor (CPU), this current frame image and previous frame image are preserved in the buffer by graphic process unit respectively, (supposing that the picture size when pre-treatment is the image of 1920 × 1080), the schematic diagram of image slices vegetarian refreshments to be detected, specifically as shown in Figure 2.
In order to improve the treatment effeciency of image processor, in the present embodiment, in x dimension, total pixel is divided using 4 pixels as a pixel group, obtain 480 × 1080 groups of pixel groups, graphic process unit is by the corresponding parallel thread of each group pixel group, the size of thread block required is like this (x, y)=(480, 1080), if 480 × 1080 groups of pixel groups namely will be processed, then need 480 × 1080 parallel threads, each parallel thread performs one group of moving object detection flow process, and one group of moving object detection flow process comprises 4 moving object detection flow processs (namely processing the moving object detection flow process of 4 pixels), make pixel group sequence number and parallel thread sequence number one_to_one corresponding in image to be detected, corresponding relation according to following formula: index=y × width+4x, with parallel thread (0,0) be example, its parallel thread sequence number in x dimension is 0, parallel thread sequence number in y dimension is 0, width is for 1920 the number of the pixel that the transverse direction of image to be detected has (be appreciated that be), therefore the sequence number of pixel group that this parallel thread (0,0) is assigned to is index=0 × 1920+4 × 0=0, and the numbering of its 4 pixels comprised of the pixel group that sequence number is 0 is respectively 0,1,2,3.Continue with parallel thread (0,2) for example below, the sequence number of the pixel group that parallel thread (0,2) is assigned to is index=2 × 1920+4 × 0=3840.Sequence number be the pixel corresponding to pixel group of 3840 be numbered 3840,3841,3842,3843.
This moving object detection flow process is performed below for background difference detecting flow, the check processing of background difference is by the absolute value of the pixel value of the pixel of the pixel value subtracting background two field picture of the pixel of current frame image, obtain background subtraction, i.e. the pixel value ︱ of the pixel of the pixel value-former frame of the pixel of background subtraction=︱ present frame.The preset value of background subtraction is set to 30, if described background subtraction is more than or equal to preset value, then the gray-scale value of current handled pixel is set to 255, if described background subtraction is less than preset value, then the gray-scale value of current handled pixel is set to 0.Parallel thread (0,0) performs the moving object detection flow process that sequence number is the pixel group (being numbered 0,1,2,3 of corresponding pixel) of 0.In former frame (the 3rd frame) image that graphic process unit detects pixel be numbered 0,1,2,3 pixel value and present frame (the 4th frame) image in be numbered the pixel value of the pixel of 0,1,2,3, shown in concrete following table:
The pixel value of present frame The pixel value of former frame Background subtraction
Pixel be numbered 0 156 129 27
Pixel be numbered 1 146 138 8
Pixel be numbered 2 87 135 48
Pixel be numbered 3 144 192 48
The background subtraction being numbered 0 of pixel is less than preset value, output gray level value is the pixel of 0, the background subtraction being numbered 1 of pixel is less than preset value, output gray level value is the pixel of 0, the background subtraction being numbered 2 of pixel is greater than preset value, output gray level value is the pixel of 255, and the background subtraction being numbered 3 of pixel is greater than preset value, output gray level value be 255 pixel (in Output rusults gray-scale value be 255 pixel be moving target).By the pixel of output stored in buffer memory, read by CPU, complete the moving object detection flow process of a two field picture.
Figure 3 shows that the schematic diagram being applied to the moving object detection treatment facility in straight recording and broadcasting system that preferred embodiment according to the present invention provides.As shown in Figure 3, the moving object detection treatment facility that what preferred embodiment of the present invention provided be applied in straight recording and broadcasting system, comprise graphic process unit 300, wherein, described graphic process unit 300 comprises: acquiring unit 302, storage unit 304 and processing unit 306, and described acquiring unit 302 is connected with described storage unit 304 respectively with described processing unit 306; Described image to be detected, for obtaining image to be detected, is sent to described storage unit 304 by described acquiring unit 302; The image to be detected that described storage unit 304 sends for receiving described image to be detected, described storage unit 304 is also for storing the image described to be detected received; Described processing unit performs n group moving object detection flow process respectively for adopting n parallel thread, wherein, often organize moving object detection flow process and comprise t moving object detection flow process, t, n be greater than 1 integer, described processing unit also for exporting the execution result of a described n parallel thread, obtains the moving target detected.
In addition, about the specific operation process of the said equipment with described in said method, therefore repeat no more in this.
In sum, moving object detection disposal route in straight recording and broadcasting system and equipment is applied to according to provided by the invention, described graphic process unit adopts special allocation rule that the thread multiple arranged side by side in graphic process unit is distributed to moving object detection flow process, achieve the two-dimentional reasonable distribution process of thread, taking full advantage of graphic process unit thread can the characteristic of executed in parallel, data cachedly be stored in graphic process unit by a large amount of in moving object detection, which reduce the exchanges data between graphic process unit and CPU, thus improve the treatment effeciency of moving object detection.In addition, graphic process unit GPU is high relative to CPU integrated level, and price is low, further reduces cost and the volume of equipment.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. be applied to the moving object detection disposal route in straight recording and broadcasting system, it is characterized in that, comprise the following steps:
Graphic process unit obtains image to be detected;
Described graphic process unit adopts n parallel thread to perform n group moving object detection flow process respectively,
Wherein, often organize moving object detection flow process and comprise t moving object detection flow process, t, n be greater than 1 integer, a described moving object detection flow process is the moving object detection processing procedure of carrying out for a pixel in described image to be detected;
The execution result of a described n parallel thread is the moving target detected.
2. method according to claim 1, is characterized in that, described graphic process unit adopts n parallel thread to perform the process of n group moving object detection flow process respectively, comprising:
The size of required thread block is obtained according to total pixel number of described image to be detected;
Total pixel is divided using t pixel as a pixel group;
Described thread block is divided into multiple parallel thread, and makes each parallel thread corresponding with each pixel group, obtain the corresponding relation of parallel thread sequence number and pixel group sequence number;
According to described corresponding relation, each parallel thread is made to perform the moving object detection flow process of corresponding pixel points group.
3. method according to claim 2, is characterized in that, determines the corresponding relation of described parallel thread sequence number and pixel group sequence number according to following formula:
index=y×width+4x;
Wherein, x is the parallel thread sequence number of described parallel thread in x dimension, and y is the parallel thread sequence number of described parallel thread in y dimension, and index is the sequence number of pixel groups on described image to be detected, and width is the pixel total number in the x dimension of described image to be detected.
4. method according to claim 2, it is characterized in that, the detailed process obtaining the size of required thread block according to total pixel number of described image to be detected is: the total pixel number object 1/t size of described required thread block being set to described image to be detected.
5. method according to claim 1, is characterized in that, described t is 4.
6. method according to claim 1, is characterized in that, described moving object detection flow process be following any one: background difference detecting flow, inter-frame difference testing process, light stream testing process.
7. method according to claim 1, is characterized in that, described image to be detected is stored in described graphic process unit.
8. one kind is applied to the moving object detection treatment facility in straight recording and broadcasting system, it is characterized in that, comprising: graphic process unit, wherein, described graphic process unit comprises: acquiring unit, storage unit and processing unit, and described acquiring unit is connected with described storage unit respectively with described processing unit;
Described image to be detected, for obtaining image to be detected, is sent to described storage unit by described acquiring unit;
The image to be detected that described storage unit sends for receiving described image to be detected, described storage unit is also for storing the image described to be detected received;
Described processing unit performs n group moving object detection flow process respectively for adopting n parallel thread, wherein, often organize moving object detection flow process and comprise t moving object detection flow process, t, n be greater than 1 integer, described processing unit also for exporting the execution result of a described n parallel thread, obtains the moving target detected.
CN201410619269.8A 2014-11-06 2014-11-06 Moving object detection processing method and device applied to direct recording and broadcasting system Pending CN104376578A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410619269.8A CN104376578A (en) 2014-11-06 2014-11-06 Moving object detection processing method and device applied to direct recording and broadcasting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410619269.8A CN104376578A (en) 2014-11-06 2014-11-06 Moving object detection processing method and device applied to direct recording and broadcasting system

Publications (1)

Publication Number Publication Date
CN104376578A true CN104376578A (en) 2015-02-25

Family

ID=52555468

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410619269.8A Pending CN104376578A (en) 2014-11-06 2014-11-06 Moving object detection processing method and device applied to direct recording and broadcasting system

Country Status (1)

Country Link
CN (1) CN104376578A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104933731A (en) * 2015-04-17 2015-09-23 阔地教育科技有限公司 Moving target detection method based on graphics processor and moving target detection device based on graphics processor
CN107992366A (en) * 2017-12-26 2018-05-04 网易(杭州)网络有限公司 Method, system and the electronic equipment that multiple destination objects are detected and tracked
CN108289177A (en) * 2018-02-13 2018-07-17 北京旷视科技有限公司 Information interacting method, apparatus and system
CN111885770A (en) * 2020-07-02 2020-11-03 普瑞达建设有限公司 Remote intelligent control system for urban LED street lamps

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882311A (en) * 2010-06-08 2010-11-10 中国科学院自动化研究所 Background modeling acceleration method based on CUDA (Compute Unified Device Architecture) technology
CN103020990A (en) * 2012-12-06 2013-04-03 华中科技大学 Moving object detecting method based on graphics processing unit (GPU)
CN103997609A (en) * 2014-06-12 2014-08-20 四川川大智胜软件股份有限公司 Multi-video real-time panoramic fusion splicing method based on CUDA

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882311A (en) * 2010-06-08 2010-11-10 中国科学院自动化研究所 Background modeling acceleration method based on CUDA (Compute Unified Device Architecture) technology
CN103020990A (en) * 2012-12-06 2013-04-03 华中科技大学 Moving object detecting method based on graphics processing unit (GPU)
CN103997609A (en) * 2014-06-12 2014-08-20 四川川大智胜软件股份有限公司 Multi-video real-time panoramic fusion splicing method based on CUDA

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104933731A (en) * 2015-04-17 2015-09-23 阔地教育科技有限公司 Moving target detection method based on graphics processor and moving target detection device based on graphics processor
CN107992366A (en) * 2017-12-26 2018-05-04 网易(杭州)网络有限公司 Method, system and the electronic equipment that multiple destination objects are detected and tracked
CN108289177A (en) * 2018-02-13 2018-07-17 北京旷视科技有限公司 Information interacting method, apparatus and system
CN108289177B (en) * 2018-02-13 2020-10-16 北京旷视科技有限公司 Information interaction method, device and system
CN111885770A (en) * 2020-07-02 2020-11-03 普瑞达建设有限公司 Remote intelligent control system for urban LED street lamps

Similar Documents

Publication Publication Date Title
US9584824B2 (en) Method for motion vector estimation
CN103235948B (en) A kind of adaptive threshold binarization method of two-dimensional bar code
US20160035124A1 (en) Segmenting objects in multimedia data
CN108780507A (en) System and method for providing Image Classifier
CN104376578A (en) Moving object detection processing method and device applied to direct recording and broadcasting system
CN109074497B (en) Identifying activity in a sequence of video images using depth information
US10922785B2 (en) Processor and method for scaling image
JP2011070326A5 (en)
CN113436100B (en) Method, apparatus, device, medium, and article for repairing video
US10521918B2 (en) Method and device for filtering texture, using patch shift
CN102542267A (en) Salient region detecting method combining spatial distribution and global contrast
Oberhofer et al. Natural feature tracking in javascript
CN108875547B (en) Target tracking method and device for resource-constrained environment
CN115439375B (en) Training method and device of image deblurring model and application method and device
MY192394A (en) Image processing method and device
Tian et al. A fractional-order Laplacian operator for image edge detection
Reina Molina et al. Image segmentation using tissue-like P systems with multiple auxiliary cells
Okarma et al. A fast image analysis technique for the line tracking robots
KR20110009761A (en) Real-time moving object detection for intelligent visual surveillance
Soh et al. A hybrid approach to parallel connected component labeling using CUDA
JP5911122B2 (en) Straight line detection apparatus and straight line detection method
CN104616332A (en) Fast display method
WO2015009294A3 (en) System and method for histogram computation using a graphics processing unit
Ustukov et al. Analysis of the efficiency of dense stereovision algorithm implementation on different computer architectures
CN109492553A (en) A kind of the motion target area rapid extracting method and system of video sequence image

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: Suzhou City, Jiangsu province 215121 Suzhou Industrial Park Road No. 8 only Weiting Technology Venture Building 7 floor

Applicant after: Kuo Di education and science company limited

Address before: Suzhou City, Jiangsu province 215121 Suzhou Industrial Park Road No. 8 only Weiting Technology Venture Building 7 floor

Applicant before: Suzhou Kuodi Network Technology Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: SUZHOU KUODI NETWORK TECHNOLOGY CO., LTD. TO: CODYY EDUCATION TECHNOLOGY CO., LTD.

RJ01 Rejection of invention patent application after publication

Application publication date: 20150225

RJ01 Rejection of invention patent application after publication