CN105608422A - Intelligent monitoring detection method for overloading of passenger car - Google Patents

Intelligent monitoring detection method for overloading of passenger car Download PDF

Info

Publication number
CN105608422A
CN105608422A CN201510955166.3A CN201510955166A CN105608422A CN 105608422 A CN105608422 A CN 105608422A CN 201510955166 A CN201510955166 A CN 201510955166A CN 105608422 A CN105608422 A CN 105608422A
Authority
CN
China
Prior art keywords
people
new
frame
represent
detected
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
CN201510955166.3A
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.)
ANHUI CREARO TECHNOLOGY Co Ltd
Original Assignee
ANHUI CREARO 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 ANHUI CREARO TECHNOLOGY Co Ltd filed Critical ANHUI CREARO TECHNOLOGY Co Ltd
Priority to CN201510955166.3A priority Critical patent/CN105608422A/en
Publication of CN105608422A publication Critical patent/CN105608422A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/59Context or environment of the image inside of a vehicle, e.g. relating to seat occupancy, driver state or inner lighting conditions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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

Abstract

The invention provides an intelligent monitoring detection method for the overloading of a passenger car, and the method comprises the steps: loading a human head detection classifier; enabling a central aisle of the passenger car to be divided into an AOI (area of interest) of human head detection, and obtaining a video image sequence of the AOI in real time; carrying out human head detection of a real-time obtained video image of the AOI through employing the human head detection classifier, recording the detected human head information, carrying out the matching of the human head information detected in a current frame with the recorded human head information, and updating the recorded human head information; carrying out the counting of the number of times that the same human head is detected in a time period: judging that the passenger car is in a state of overloading if the number exceeds a preset threshold value, and sending alarm prompt. The method employs the technology of image processing, can detect whether the passenger car is in the state of overloading or not under the condition of no parking, is high in monitoring accuracy, has little leaked and wrong detection, is high in speed, and is low in cost.

Description

A kind of passenger carriage overloading intelligent monitoring detection method
Technical field
The present invention relates to intelligent monitoring technology field, specifically a kind of passenger carriage overloading intelligent monitoring detectsMethod.
Background technology
Along with improving constantly of human living standard and developing rapidly of transportation industry, go out to beatWork, the number of being on home leave, travelling increase day by day, especially festivals or holidays, and highway visitor related to thisFortune (coach, sightseeing bus etc.) quantity is but relatively less, and therefore passenger traffic overload is very serious.
Passenger traffic overload not only causes harmful effect to highway facilities and passenger transport market, also to vehicle itselfImpact with driving, the control of vehicle, make it easily to occur traffic accident. Data card according to statisticsReal, overload is the first cause that causes major traffic accidents at present, has great traffic over halfAccident is caused by overload.
To passenger stock overload behavior in violation of rules and regulations, hand over rule to formulate corresponding punishment regulations, in recent yearsAlso strengthened management intensity. But current detection method mainly still adopts naked eyes to detect, not onlySpeed is slower, also there will be law-executor to supervise not tight phenomenon.
Summary of the invention
The object of the present invention is to provide a kind of passenger carriage overloading intelligent monitoring detection method, utilize videoImage processing techniques, to whether existing passenger to detect in passenger vehicle passageway, judges that with this passenger vehicle isNo existence overload.
Technical scheme of the present invention is:
A kind of passenger carriage overloading intelligent monitoring detection method, comprises the following steps:
(1) load the number of people and detect grader;
(2) area-of-interest detecting for the number of people, Real-time Obtaining sense delimited in passenger vehicle central gangwayThe sequence of video images of region-of-interest;
(3) adopt the number of people to detect grader, the video image of the area-of-interest to Real-time ObtainingCarry out number of people detection, and employing records with drag the people's header detecting:
Headi={xi,yi,scorei,framei}
Wherein, HeadiRepresent the information of the number of people i of record, (xi,yi) represent the center of mass point of number of people i,scoreiRepresent the number of times that number of people i is detected, frameiRepresent the moment that number of people i is detected;
(4) people's header present frame being detected mates with the people's header recording,Upgrade the people's header having recorded;
(5) number of times that in statistics a period of time, the same number of people is detected, if exceed predetermined threshold value,Judge that passenger vehicle exists overload, carries out alarm.
Described passenger carriage overloading intelligent monitoring detection method, in step (1), the described number of people detectsGrader is mainly trained and is obtained by following steps:
A, collect some positive and negative training sample image, and to training sample image normalized;
The HOG feature of b, extraction training sample image,
C, by the HOG feature input Cascade cascade classifier of training sample image, it is right to completeThe number of people detects the training of grader.
Described passenger carriage overloading intelligent monitoring detection method, in step (4), described by present frameThe people's header detecting mates with the people's header recording, and upgrades the number of people letter having recordedBreath, comprises the following steps:
A, adopt following formula, calculate successively the number of people that present frame detects and the number of people having recorded itBetween match index:
d j i = ( x j n o w - x i ) 2 + ( y j n o w - y i ) 2
Wherein, djiRepresent that mating between the present frame number of people j detecting and the number of people i recording refers toNumber, (xjnow,yjnow) represent the center of mass point of number of people j, (xi,yi) represent the center of mass point of number of people i;
If b is djiBe less than predetermined threshold value, judge the present frame number of people j detecting and the people who recordsI matches, and the two is the same number of people, adopts following formula to upgrade the information of the number of people i having recorded:
x i = x j n o w y i = y j n o w score i = score i + 1 frame i = frame n o w
Wherein, framenowRepresent the present frame moment;
If the number of people j that present frame detects does not all mate with all numbers of people that record, judge the number of peopleJ is a new number of people, adopts following formula to carry out record to it:
Headnew={xnew,ynew,scorenew,framenew}
x n e w = x j n o w y n e w = y j n o w score n e w = 1 fram n e w = frame n e w
Wherein, HeadnewRepresent the information of the new number of people of present frame record, (xnew,ynew) tableShow the center of mass point of the new number of people, scorenewRepresent the number of times that the new number of people is detected, initial valueBe 1, framenewRepresent the moment that the new number of people is detected;
If all numbers of people that certain number of people that c has recorded detects with present frame all do not mate, meterTime between the moment that this number of people of calculating the present frame moment and recorded is detected for the last timePoor, if reach predetermined threshold value, the information of this number of people having recorded is carried out to zero clearing processing.
Beneficial effect of the present invention is:
As shown from the above technical solution, the present invention utilizes image processing techniques, can not stopIn situation, whether passenger vehicle is overloaded and detected, there is high, the undetected flase drop of the monitoring degree of accuracy few, fastThe features such as degree is fast, cost is low.
Brief description of the drawings
Fig. 1 is method flow diagram of the present invention;
Fig. 2 is HOG feature extraction flow chart;
Fig. 3 is Cascade cascade classifier flow chart;
Fig. 4 is number of people coupling and renewal flow chart.
Detailed description of the invention
Further illustrate the present invention below in conjunction with the drawings and specific embodiments.
As shown in Figure 1, a kind of passenger carriage overloading intelligent monitoring detection method, comprises the following steps:
S1, the loading number of people detect grader:
It is the grader of having trained that the number of people loading detects grader, and the training number of people detects and dividesFirst class device needs to prepare training sample, then extracts the HOG feature of training sample, finally utilizesThe Cascade cascade classifier training number of people detects grader, and concrete steps are as follows:
S11, the collection training number of people detect the required some positive and negative training sample image of grader, justThe ratio of negative training sample image is roughly 1:2, and training sample image is normalized;Positive training sample be by be arranged on the vertical or oblique upper of the number of people to the number of people image taken of camera,Negative training sample is the arbitrary image that does not comprise number of people image.
The HOG feature of S12, extraction training sample image, flow chart as shown in Figure 2, specifically walksRapid as follows:
Gamma space and the color space of S121, standardized training sample image, gamma compressionFormula is as shown in formula (1):
I(x,y)=Ir(x,y)gamma(1)
Wherein, gamma is compression parameters, Ir(x, y) represents the front coordinate of processing in training sample imageThe grey scale pixel value that point (x, y) is located, I (x, y) represents to process the grey scale pixel value of rear corresponding points;
The gradient of S122, the each pixel of calculation training sample image, adopts following formula (2), (3)Ask gradient magnitude R (x, y) and gradient direction θ (x, y):
R ( x , y ) = ( I ( x + 1 , y ) - I ( x - 1 , y ) ) 2 + ( I ( x , y - 1 ) - I ( x , y + 1 ) ) 2 - - - ( 2 )
θ(x,y)=arccos(I(x+1,y)-I(x-1,y)/R(x,y))(3)
S123, training sample image is divided into several cells, to the gradient of each cellHistogram carries out the projection of regulation weight;
S124, cell is combined into large piece (block), normalized gradient histogram in piece,Normalization formula is as shown in formula (4):
v ← v / | | v | | 2 2 + ϵ 2 - - - ( 4 )
Wherein, ε is a very little constant, and avoiding denominator is 0;
S125, the histogram vectors in all is combined into a large HOG characteristic vector.
S13, by the HOG feature input Cascade cascade classifier of training sample image, completeThe number of people is detected to the training of grader, the flow chart of Cascade cascade classifier as shown in Figure 3.
S2, obtain real-time video sequence:
The video sequence that the number of people detects is by the camera Real-time Collection that is arranged on passenger vehicle middle front part, and rootGenerally be sitting in passenger vehicle aisle and there is trend from back to front according to passenger carriage overloading personnel, by passenger vehicleBetween passageway delimit as number of people surveyed area, i.e. area-of-interest.
S3, carry out number of people detection at area-of-interest:
Carry out at area-of-interest the headform that number of people detection record detect, headform retouchesState as formula (5):
Headi={xi,yi,scorei,framei}(5)
Wherein, HeadiRepresent the information of the number of people i of record, (xi,yi) represent the center of mass point of number of people i,scoreiRepresent the number of times that number of people i is detected, frameiRepresent the moment that number of people i is detected.
(xi,yi) calculating as formula (6):
(xi,yi)=(x+Rectw/2,y+Recth/2)(6)
Wherein, (x, y) represents the top left corner apex of number of people i head rectangle, Rectw、RecthTable respectivelyThe wide and high of an i head rectangle of leting others have a look at.
S4, number of people coupling and renewal, as shown in Figure 4:
Passenger is in passenger vehicle running, and run duration is shorter, and displacement is less, the present invention is based on thisThe number of people that feature detects present frame carries out associated, coupling with the number of people recording.
Center of mass point (the x of the number of people j that S41, present frame detectjnow,yjnow) with the number of people i having recordedCenter of mass point (xi,yi) match index djiCalculate as formula (7):
d j i = ( x j n o w - x i ) 2 + ( y j n o w - y i ) 2 - - - ( 7 )
If S42 is djiBe less than predetermined threshold value Thrd, think number of people j that present frame detects with rememberThe number of people i of record matches, and the two is the same number of people, upgrades the information of the number of people i having recorded, as public affairsShown in formula (8):
x i = x j n o w y i = y j n o w score i = score i + 1 frame i = frame n o w - - - ( 8 )
Wherein, framenowRepresent the present frame moment, the moment that number of people j is detected.
If the number of people j that present frame detects does not all mate with all numbers of people that record, think the number of peopleJ is a new number of people, and it is carried out to record, as shown in formula (9), (10):
Headnew={xnew,ynew,scorenew,framenew}(9)
x n e w = x j n o w y n e w = y j n o w score n e w = 1 fram n e w = frame n e w - - - ( 10 )
Wherein, HeadnewRepresent the information of the new number of people of present frame record, (xnew,ynew) tableShow the center of mass point of the new number of people, scorenewRepresent the number of times that the new number of people is detected, initial valueBe 1, framenewRepresent the moment that the new number of people is detected.
If all numbers of people that certain number of people that S43 has recorded detects with present frame all do not mate,The time in the moment that this number of people that calculates the present frame moment and recorded is detected for the last timePoor, if meet following formula (11), the information of this number of people having recorded is carried out to zero clearing processing:
framenow-framei≥Thrt(11)
Wherein, framenowRepresent the present frame moment, frameiRepresent that certain number of people of having recordedAfter moment of being once detected, ThrtRepresent predetermined threshold value.
S5, judge whether passenger vehicle overloads:
The number of times that in statistics a period of time, the same number of people is detected, judges whether overload, and judgement is publicFormula (12) is as follows:
frame i = frame n o w score i < T h r - - - ( 12 )
Wherein, framei=framenowRepresent present frame statistics, scoreiRepresent by present frameThe number of times that number of people i is detected, Thr represents predetermined threshold value.
If S6 passenger vehicle exists overloading, report to the police.
In the situation that passenger carriage overloading being detected, send this passenger vehicle in overload shape to remote serverThe information of state also sends a frame video image as checking. Administrative department receives the report for police service can be according to transmissionReal-time video processing, order passenger vehicle to stop overload behavior.
The above embodiment is only that the preferred embodiment of the present invention is described, notScope of the present invention is limited, design under the prerequisite of spirit this area not departing from the present inventionVarious distortion and improvement that those of ordinary skill is made technical scheme of the present invention, all should fall into thisIn the definite protection domain of claims of invention.

Claims (3)

1. a passenger carriage overloading intelligent monitoring detection method, is characterized in that, comprises the following steps:
(1) load the number of people and detect grader;
(2) area-of-interest detecting for the number of people, Real-time Obtaining sense delimited in passenger vehicle central gangwayThe sequence of video images of region-of-interest;
(3) adopt the number of people to detect grader, the video image of the area-of-interest to Real-time ObtainingCarry out number of people detection, and employing records with drag the people's header detecting:
Headi={xi,yi,scorei,framei}
Wherein, HeadiRepresent the information of the number of people i of record, (xi,yi) represent the center of mass point of number of people i,scoreiRepresent the number of times that number of people i is detected, frameiRepresent the moment that number of people i is detected;
(4) people's header present frame being detected mates with the people's header recording,Upgrade the people's header having recorded;
(5) number of times that in statistics a period of time, the same number of people is detected, if exceed predetermined threshold value,Judge that passenger vehicle exists overload, carries out alarm.
2. passenger carriage overloading intelligent monitoring detection method according to claim 1, its feature existsIn, in step (1), the described number of people detects grader and is mainly trained and obtained by following steps:
A, collect some positive and negative training sample image, and to training sample image normalized;
The HOG feature of b, extraction training sample image,
C, by the HOG feature input Cascade cascade classifier of training sample image, it is right to completeThe number of people detects the training of grader.
3. passenger carriage overloading intelligent monitoring detection method according to claim 1, its feature existsIn, in step (4), described people's header that present frame is detected and the number of people letter recordingBreath mates, and upgrades the people's header having recorded, and comprises the following steps:
A, adopt following formula, calculate successively the number of people that present frame detects and the number of people having recorded itBetween match index:
d j i = ( x j n o w - x i ) 2 + ( y j n o w - y i ) 2
Wherein, djiRepresent that mating between the present frame number of people j detecting and the number of people i recording refers toNumber, (xjnow,yjnow) represent the center of mass point of number of people j, (xi,yi) represent the center of mass point of number of people i;
If b is djiBe less than predetermined threshold value, judge the present frame number of people j detecting and the people who recordsI matches, and the two is the same number of people, adopts following formula to upgrade the information of the number of people i having recorded:
x i = x j n o w y i = y j n o w score i = score i + 1 frame i = frame n o w
Wherein, framenowRepresent the present frame moment;
If the number of people j that present frame detects does not all mate with all numbers of people that record, judge the number of peopleJ is a new number of people, adopts following formula to carry out record to it:
Headnew={xnew,ynew,scorenew,framenew}
x n e w = x j n o w y n e w = y j n o w score n e w = 1 frame n e w = frame n o w
Wherein, HeadnewRepresent the information of the new number of people of present frame record, (xnew,ynew) tableShow the center of mass point of the new number of people, scorenewRepresent the number of times that the new number of people is detected, initial valueBe 1, framenewRepresent the moment that the new number of people is detected;
If all numbers of people that certain number of people that c has recorded detects with present frame all do not mate, meterTime between the moment that this number of people of calculating the present frame moment and recorded is detected for the last timePoor, if reach predetermined threshold value, the information of this number of people having recorded is carried out to zero clearing processing.
CN201510955166.3A 2015-12-16 2015-12-16 Intelligent monitoring detection method for overloading of passenger car Pending CN105608422A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510955166.3A CN105608422A (en) 2015-12-16 2015-12-16 Intelligent monitoring detection method for overloading of passenger car

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510955166.3A CN105608422A (en) 2015-12-16 2015-12-16 Intelligent monitoring detection method for overloading of passenger car

Publications (1)

Publication Number Publication Date
CN105608422A true CN105608422A (en) 2016-05-25

Family

ID=55988348

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510955166.3A Pending CN105608422A (en) 2015-12-16 2015-12-16 Intelligent monitoring detection method for overloading of passenger car

Country Status (1)

Country Link
CN (1) CN105608422A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106228809A (en) * 2016-08-11 2016-12-14 安徽钰龙信息科技有限公司 A kind of novel on-vehicle unmanned plane overload control transfinites workstation system
CN106971150A (en) * 2017-03-15 2017-07-21 国网山东省电力公司威海供电公司 Queuing method for detecting abnormality and device that logic-based is returned
CN107766835A (en) * 2017-11-06 2018-03-06 贵阳宏益房地产开发有限公司 traffic safety detection method and device
CN108501803A (en) * 2018-03-17 2018-09-07 佛山市粤知中创科技有限公司 A kind of vehicle load limiting safety device
CN109859491A (en) * 2019-03-18 2019-06-07 深圳前海车米云图科技有限公司 A kind of overload of vehicle situation judging method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102496275A (en) * 2011-11-25 2012-06-13 大连海创高科信息技术有限公司 Method for detecting overload of coach or not
CN103646253A (en) * 2013-12-16 2014-03-19 重庆大学 Bus passenger flow statistics method based on multi-motion passenger behavior analysis

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102496275A (en) * 2011-11-25 2012-06-13 大连海创高科信息技术有限公司 Method for detecting overload of coach or not
CN103646253A (en) * 2013-12-16 2014-03-19 重庆大学 Bus passenger flow statistics method based on multi-motion passenger behavior analysis

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106228809A (en) * 2016-08-11 2016-12-14 安徽钰龙信息科技有限公司 A kind of novel on-vehicle unmanned plane overload control transfinites workstation system
CN106971150A (en) * 2017-03-15 2017-07-21 国网山东省电力公司威海供电公司 Queuing method for detecting abnormality and device that logic-based is returned
CN106971150B (en) * 2017-03-15 2020-09-08 国网山东省电力公司威海供电公司 Queuing abnormity detection method and device based on logistic regression
CN107766835A (en) * 2017-11-06 2018-03-06 贵阳宏益房地产开发有限公司 traffic safety detection method and device
CN108501803A (en) * 2018-03-17 2018-09-07 佛山市粤知中创科技有限公司 A kind of vehicle load limiting safety device
CN109859491A (en) * 2019-03-18 2019-06-07 深圳前海车米云图科技有限公司 A kind of overload of vehicle situation judging method

Similar Documents

Publication Publication Date Title
CN105608422A (en) Intelligent monitoring detection method for overloading of passenger car
CN106652468B (en) The detection and from vehicle violation early warning alarm set and method in violation of rules and regulations of road vehicle front truck
CN105405321B (en) Safe early warning method and system in vehicle on expressway traveling
CN107886722A (en) Driving information handling method and system, terminal and computer-readable recording medium
WO2020052436A1 (en) Vehicle overload alarming method and apparatus, electronic device, and storage medium
CN109670404A (en) A kind of road ponding image detection method for early warning based on mixed model
CN105303191A (en) Method and apparatus for counting pedestrians in foresight monitoring scene
CN103324955A (en) Pedestrian detection method based on video processing
CN111680613B (en) Method for detecting falling behavior of escalator passengers in real time
CN105788269A (en) Unmanned aerial vehicle-based abnormal traffic identification method
CN107004353B (en) Traffic violation management system and traffic violation management method
CN104537840B (en) System for detecting illegally operated taxis
CN104966059B (en) Driver based on intelligent monitor system drives detection method of making a phone call
CN107316006A (en) A kind of method and system of road barricade analyte detection
CN102496275B (en) Method for detecting overload of coach or not
CN103632427B (en) A kind of gate cracking protection method and gate control system
CN106056968A (en) Parking space detection method based on optical image
CN105957352B (en) Parking offense detection method and device
Ki et al. A traffic accident detection model using metadata registry
CN110288823A (en) A kind of break in traffic rules and regulations erroneous judgement recognition methods based on naive Bayesian network
CN112614102A (en) Vehicle detection method, terminal and computer readable storage medium thereof
CN105279968B (en) Vehicle in express way illegally occupies the judgement system and method for Emergency Vehicle Lane behavior
CN106448223A (en) Haze-auto-adaptive expressway traveling speed early-warning device and method
Ki Accident detection system using image processing and MDR
CN110674887A (en) End-to-end road congestion detection algorithm based on video classification

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 230088, 12 Dream Garden Road, hi tech Zone, Anhui, Hefei

Applicant after: ANHUI CREARO TECHNOLOGY CO., LTD.

Address before: 230088, 12 Dream Garden Road, hi tech Zone, Anhui, Hefei

Applicant before: Anhui Crearo Technology Co., Ltd.

COR Change of bibliographic data
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160525