Movatterモバイル変換


[0]ホーム

URL:


CN109145746A - A kind of signal lamp detection method based on image procossing - Google Patents

A kind of signal lamp detection method based on image procossing
Download PDF

Info

Publication number
CN109145746A
CN109145746ACN201810804266.XACN201810804266ACN109145746ACN 109145746 ACN109145746 ACN 109145746ACN 201810804266 ACN201810804266 ACN 201810804266ACN 109145746 ACN109145746 ACN 109145746A
Authority
CN
China
Prior art keywords
image
signal lamp
pixel
region
area
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
CN201810804266.XA
Other languages
Chinese (zh)
Other versions
CN109145746B (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.)
Zhejiang Haoteng Electronics Polytron Technologies Inc
Original Assignee
Zhejiang Haoteng Electronics Polytron Technologies Inc
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 Zhejiang Haoteng Electronics Polytron Technologies IncfiledCriticalZhejiang Haoteng Electronics Polytron Technologies Inc
Priority to CN201810804266.XApriorityCriticalpatent/CN109145746B/en
Publication of CN109145746ApublicationCriticalpatent/CN109145746A/en
Application grantedgrantedCritical
Publication of CN109145746BpublicationCriticalpatent/CN109145746B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明公开了一种基于图像处理的信号灯检测方法,包括如下步骤:步骤1:从前端相机读取图像文件F0;步骤2:读取系统配置文件中的感兴趣区域,并从F0中的拷贝感兴趣区域图像F1;步骤3:根据系统当前时间对图像F1进行图像增强;步骤4:对图像F2进行颜色区域分割,步骤5:对图像F4进行形态学的闭运算处理;步骤6:提取图像F4中的连通区域,步骤7:提取CL中区域的外接矩形,并根据外接矩形位置从图像F2中拷贝候选信号灯图像,得信号灯图像集合L;步骤8:提取L中所有图像的Hog特征,本发明的有益效果是,能实现复杂场景的信号灯检测,并同时满足系统的稳定性和实时性的需求。

The invention discloses a signal light detection method based on image processing, comprising the following steps: step 1: reading an image file F0 from a front-end camera; Copy the area of interest image F1; Step3 : Perform image enhancementon the image F1 according to the current time of the system; Step4 : Perform color area segmentation on the image F2, Step5 : Perform morphological closing operation processing on the image F4 ; Step 6: extract the connected area in the image F4 , step 7: extract the circumscribed rectangle of the area inCL , and copy the candidate signal light image from the image F2 according to the position of the circumscribed rectangle to obtain the signal light image set L; Step 8: extract Hog feature of all images in L, the beneficial effect of the present invention is that it can realize signal light detection of complex scene, and simultaneously meet the requirements of stability and real-time performance of the system.

Description

A kind of signal lamp detection method based on image procossing
Technical field
The present invention relates to technical field of image processing, and in particular to a kind of signal lamp detection method based on image procossing.
Background technique
With the rapid development of internet and hardware art, the artificial intelligence epoch have arrived.Researcher gradually startsThe problems in daily life is solved using various related advanced technologies, so that it is growing to quality of life to meet peopleIt pursues.Intelligent transportation system is exactly one of this product of the time, it together, mentions the technological incorporation of multiple fields for peopleFor safety and convenience.And key components of the detection of traffic lights as intelligent transportation system, there is huge researchValue and potentiality, but since signal lamp detection has higher requirement to method robustness, energy stable operation is in complicated road dayIn gas field scape, and requirement of real-time is higher, and most detection methods can not meet above-mentioned requirements simultaneously.Therefore it is based on imageThe signal lamp detection method of processing is a kind of preferable solution, has not only been able to satisfy the requirement of real-time of signal lamp detection, but also energyStable operation is in the weather scene of Various Complex.
For the accurate detection property and the problem of real-time of signal lamp, domestic and international academia, industry propose many schemes.The technical solution being wherein closer to the present invention includes: that (Wu Ying, Zhang little Ning, He Bin are believed Wu Ying based on the traffic of image procossingSignal lamp recognition methods [J] traffic information and safety, 2011,29 (3): 51-54.) using the good HSI of complex but stabilityColor space carries out the segmentation of image, by calculating circularity and traffic lights bottom plate length-width ratio, filters candidate region, finallyTraffic signals lamp type is confirmed by template matching.But algorithm accuracy in complex scene is not high, and needs to know in advance, there are many restrictions in practical applications in the placement direction of road traffic lights.Gu Mingqin (Gu Mingqin, Cai Zixing, Huang Zhenwei,Real-time recognizer [J] Central South University's journal (natural science edition) of arrowhead-shaped traffic lights in equal urban environment, 2013,44 (4): 1403-1408.) image under RGB color is transformed into YCbCr color space, recycle Gabor wavelet transformationThe feature of traffic lights candidate region is obtained with two-dimentional independent component analysis, finally with nearest neighbor classifier to traffic lightsType identified.Since the conversion of RGB color to YCbCr color space is linear, so the algorithm real-timeRelatively good, under the relatively good environment of light condition on daytime, recognition accuracy is relatively high, but is not suitable for night environment still.(Zhou Xuanru, Yuan Jiazheng, Liu Hongzhe wait based on real-time recognizer research [J] of the traffic lights of HOG feature to Zhou XuanruCalculation machine science, 2014,41 (7): 313-317.) algorithm that proposes carries out image segmentation also in YCbCr color space, thenObtain traffic lights candidate region by area, shape, density triple filter, then after extraction process image HOG feature,It is identified using SVM classifier.The method that algorithm uses machine learning, can carry out traffic in more complicated environmentThe detection of signal lamp, while round traffic lights can be detected but also detect arrow-shaped traffic lights, but for havingThe traffic lights recognition effect of number is bad.
In conclusion existing in current signal light detection scheme following insufficient: 1) algorithm accuracy is not high, may not apply toComplicated weather scene;2) traffic lights various shapes, algorithm cannot be suitable for a variety of traffic signals of different shapes simultaneouslyLamp inspection is surveyed;3) most of traffic lights detection algorithms are detected for the traffic scene on daytime, to the signal lamp inspection at nightIt is poor to survey effect.
Traffic lights identification is the base application of wisdom traffic system, determines the accurate of break in traffic rules and regulations and traffic schedulingProperty and real-time, but from the point of view of existing achievement, intelligent transportation system is also and not perfect, and the detection of traffic lights and identificationAlso there are many areas for improvement for key components as system.From the point of view of current many achievements, in traffic signalsLamp context of detection, for color and shape as most important two features of signal lamp, many algorithms are unfolded around them,But since the detection method is higher to real-time and stability requirement, most algorithm, which can not meet simultaneously the two, to be wantedIt asks, and by image enhancement, color segmentation, Morphological scale-space, geometrical characteristic filtering and to signal lamp area in image in the present inventionDomain extracts and passes through machine learning method marker lamp, is able to achieve the signal lamp detection of complex scene, and meets simultaneouslyThe stability of system and the demand of real-time.
Summary of the invention
In order to solve the problems in the existing technology, the present invention provides accurate, real-time a kind of based on image procossingSignal lamp detection method.
Technical scheme is as follows:
A kind of signal lamp detection method based on image procossing, which comprises the steps of:
Step 1: reading image file F from front end camera0
Step 2: reading the area-of-interest in system configuration file, and from F0In copy region of interest area image F1
Step 3: according to the current time in system to image F1Carry out image enhancement;6:00 between 18:00 be daytime, it is rightImage F1Histogram equalization is carried out, remaining time is night, to F1Carry out gamma correction, image F after must enhancing2
Step 4: to image F2Carry out color region segmentation, the specific steps are as follows:
Step 4.1 is by image F2It is transformed into hsv color space;
Step 4.2 is according to system time to F2Color threshold segmentation is carried out, Pixel Information in set red and green is retained,And the lightness of other pixels is set as 0, obtain Threshold segmentation image F3;Retain the pixel value for meeting the pixel of formula (1) daytime;Night retains the pixel value for meeting the pixel of formula (2);
In formula, p (x, y) indicates location of pixels as (x, y) pixel, and h, s, v respectively indicate the point in Color Channel HSVThe channel value in each channel, red indicate red pixel point set, and green indicates green pixel point set;
Step 4.3 is to image F3Gray processing is carried out, and binaryzation is carried out by OTSU, obtains binary image F4
Step 5: to image F4Carry out morphologic closed operation processing;
Step 6: extracting image F4In connected region, obtain connected region set C={ Ai| i=1,2,3 ..., n }, AiTableShow i-th of connected region, n indicates total connected region quantity;According to formula (3) (4) (5), to object in C, it carries out geometrical characteristic mistakeFilter, ungratified object is rejected from C, obtains candidate signal lamp regional ensemble CL
Smin< Ai.S < Smax (3)
rwhmin< Ai.rwh< rwhmax (4)
Kmin< Ai.K < Kmax (5)
Wherein, wherein SminAnd SmaxRespectively indicate minimum and maximum area threshold given in advance, Ai.S A is indicatediRegionArea;rwhminAnd rwhmaxRespectively indicate minimum and maximum the ratio of width to height given in advance, Ai.rwhIndicate AiRegion the ratio of width to height;KminAnd KmaxRespectively indicate minimum and maximum areal concentration given in advance, Ai.K A is indicatediAreal concentration, i.e. AiIn connected regionPixel quantity and the region minimum circumscribed rectangle area ratio;
Step 7: extracting CLThe boundary rectangle in middle region, and according to boundary rectangle position from image F2Middle copy candidate signalLamp image obtains signal lamp image collection L;
Step 8: the Hog feature of all images in L is extracted, and Feature Dimension Reduction is carried out to it by PCA method, finally byTrained SVM classifier identifies signal lamp according to characteristics of image after dimensionality reduction.
The beneficial effects of the present invention are: guaranteeing that traffic lights have good detection effect under complex environment;According to letterThe priori features such as signal lamp shape color carry out rapidly extracting to signal lamp region, and are dropped by PCA method to Hog featureDimension, improves the speed of algorithm, is able to satisfy the real-time demand of system;The image of day and night is handled respectively, it can be sameWhen meet day and night difference illumination scene signal lamp detection, have higher robustness;It being capable of real-time detection various shapesWith the traffic lights of state, and accuracy with higher.
Detailed description of the invention
Fig. 1 is that the present invention is based on the signal lamp detection method flow charts of image procossing;
Fig. 2 is histogram equalization on daytime front and back comparison diagram in step 3 in the present invention;
Fig. 3 is comparison diagram before and after night gamma correction in step 3 in the present invention;
Fig. 4 is closing operation of mathematical morphology comparison diagram before and after the processing in step 4 in the present invention;
Fig. 5 is the signal lamp result schematic diagram obtained after step 8 in the present invention.
Specific embodiment
Elaborate that the present invention is based on the specific implementations of the signal lamp detection method of image procossing below with reference to embodimentMode.
Specific step is as follows for a kind of signal lamp detection method based on image procossing:
Step 1: reading image file F from front end camera0
Step 2: reading the area-of-interest in system configuration file, and from F0In copy region of interest area image F1
Step 3: according to the current time in system to image F1Carry out image enhancement;6:00 between 18:00 be daytime, it is rightImage F1Histogram equalization is carried out, remaining time is night, to F1Carry out gamma correction, image F after must enhancing2
Step 4: to image F2Carry out color region segmentation, the specific steps are as follows:
Step 4.1 is by image F2It is transformed into hsv color space;
Step 4.2 is according to system time to F2Color threshold segmentation is carried out, Pixel Information in set red and green is retained,And the lightness of other pixels is set as 0, obtain Threshold segmentation image F3;Retain the pixel value for meeting the pixel of formula (1) daytime;Night retains the pixel value for meeting the pixel of formula (2);
In formula, p (x, y) indicates location of pixels as (x, y) pixel, and h, s, v respectively indicate the point in Color Channel HSVThe channel value in each channel, red indicate red pixel point set, and green indicates green pixel point set;
Step 4.3 is to image F3Gray processing is carried out, and binaryzation is carried out by OTSU, obtains binary image F4
Step 5: to image F4Carry out morphologic closed operation processing;
Step 6: extracting image F4In connected region, obtain connected region set C={ Ai| i=1,2,3 ..., n }, AiTableShow i-th of connected region, n indicates total connected region quantity;According to formula (3) (4) (5), to object in C, it carries out geometrical characteristic mistakeFilter, ungratified object is rejected from C, obtains candidate signal lamp regional ensemble CL
Smin< Ai.S < Smax (3)
rwhmin< Ai.rwh< rwhmax (4)
Kmin< Ai.K < Kmax (5)
Wherein, wherein SminAnd SmaxRespectively indicate minimum and maximum area threshold given in advance, Ai.S A is indicatediRegionArea;rwhminAnd rwhmaxRespectively indicate minimum and maximum the ratio of width to height given in advance, Ai.rwhIndicate AiRegion the ratio of width to height;KminAnd KmaxRespectively indicate minimum and maximum areal concentration given in advance, Ai.K A is indicatediAreal concentration, i.e. AiIn connected regionPixel quantity and the region minimum circumscribed rectangle area ratio;In this example, Smin=30, Smax=120;rwhmin=0.5, rwhmax=2.0;Kmin=0.5, Kmax=0.9;
Step 7: extracting CLThe boundary rectangle in middle region, and according to boundary rectangle position from image F2Middle copy candidate signalLamp image obtains signal lamp image collection L;
Step 8: the Hog feature of all images in L is extracted, and Feature Dimension Reduction is carried out to it by PCA method, finally byTrained SVM classifier identifies signal lamp according to characteristics of image after dimensionality reduction.
Content described in this specification embodiment is only enumerating to the way of realization of inventive concept, protection of the inventionRange should not be construed as being limited to the specific forms stated in the embodiments, and protection scope of the present invention is also and in this field skillArt personnel conceive according to the present invention it is conceivable that equivalent technologies mean.

Claims (1)

CN201810804266.XA2018-07-202018-07-20 A kind of signal light detection method based on image processingExpired - Fee RelatedCN109145746B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201810804266.XACN109145746B (en)2018-07-202018-07-20 A kind of signal light detection method based on image processing

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201810804266.XACN109145746B (en)2018-07-202018-07-20 A kind of signal light detection method based on image processing

Publications (2)

Publication NumberPublication Date
CN109145746Atrue CN109145746A (en)2019-01-04
CN109145746B CN109145746B (en)2021-07-06

Family

ID=64801348

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201810804266.XAExpired - Fee RelatedCN109145746B (en)2018-07-202018-07-20 A kind of signal light detection method based on image processing

Country Status (1)

CountryLink
CN (1)CN109145746B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111639656A (en)*2020-05-282020-09-08东软睿驰汽车技术(沈阳)有限公司Traffic signal lamp identification method and device
CN111784710A (en)*2020-07-072020-10-16北京字节跳动网络技术有限公司Image processing method, image processing apparatus, electronic device, and medium
CN111784709A (en)*2020-07-072020-10-16北京字节跳动网络技术有限公司Image processing method, image processing device, electronic equipment and computer readable medium
CN112215089A (en)*2020-09-212021-01-12卡斯柯信号有限公司Video identification method of subway color light signal machine

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103489324A (en)*2013-09-222014-01-01北京联合大学Real-time dynamic traffic light detection identification method based on unmanned driving
CN104021378A (en)*2014-06-072014-09-03北京联合大学Real-time traffic light recognition method based on space-time correlation and priori knowledge
CN104851288A (en)*2015-04-162015-08-19宁波中国科学院信息技术应用研究院Traffic light positioning method
CN106991707A (en)*2017-05-272017-07-28浙江宇视科技有限公司A kind of traffic lights image intensification method and device based on imaging features round the clock
CN107507142A (en)*2017-08-112017-12-22江苏航天大为科技股份有限公司Signal lamp image processing method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103489324A (en)*2013-09-222014-01-01北京联合大学Real-time dynamic traffic light detection identification method based on unmanned driving
CN104021378A (en)*2014-06-072014-09-03北京联合大学Real-time traffic light recognition method based on space-time correlation and priori knowledge
CN104851288A (en)*2015-04-162015-08-19宁波中国科学院信息技术应用研究院Traffic light positioning method
CN106991707A (en)*2017-05-272017-07-28浙江宇视科技有限公司A kind of traffic lights image intensification method and device based on imaging features round the clock
CN107507142A (en)*2017-08-112017-12-22江苏航天大为科技股份有限公司Signal lamp image processing method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
纪甫娟: "自然场景下交通标志检测算法的研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》*

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111639656A (en)*2020-05-282020-09-08东软睿驰汽车技术(沈阳)有限公司Traffic signal lamp identification method and device
CN111784710A (en)*2020-07-072020-10-16北京字节跳动网络技术有限公司Image processing method, image processing apparatus, electronic device, and medium
CN111784709A (en)*2020-07-072020-10-16北京字节跳动网络技术有限公司Image processing method, image processing device, electronic equipment and computer readable medium
CN111784709B (en)*2020-07-072023-02-17北京字节跳动网络技术有限公司Image processing method, image processing device, electronic equipment and computer readable medium
CN111784710B (en)*2020-07-072023-10-20抖音视界有限公司Image processing method, device, electronic equipment and medium
CN112215089A (en)*2020-09-212021-01-12卡斯柯信号有限公司Video identification method of subway color light signal machine

Also Published As

Publication numberPublication date
CN109145746B (en)2021-07-06

Similar Documents

PublicationPublication DateTitle
CN108108761B (en)Rapid traffic signal lamp detection method based on deep feature learning
CN105373794B (en)A kind of licence plate recognition method
CN107230202B (en) Method and system for automatic identification of pavement disease images
CN105809138B (en)A kind of road warning markers detection and recognition methods based on piecemeal identification
CN104050471B (en)Natural scene character detection method and system
CN100565559C (en)Image text location method and device based on connected component and support vector machine
CN106934386B (en)A kind of natural scene character detecting method and system based on from heuristic strategies
CN103824081B (en)Method for detecting rapid robustness traffic signs on outdoor bad illumination condition
CN106651872A (en)Prewitt operator-based pavement crack recognition method and system
CN109145746A (en)A kind of signal lamp detection method based on image procossing
CN112464731B (en) A traffic sign detection and recognition method based on image processing
CN105447503B (en)Pedestrian detection method based on rarefaction representation LBP and HOG fusion
Cai et al.Real-time recognition system of traffic light in urban environment
Yang et al.Real-time traffic sign detection via color probability model and integral channel features
Turki et al.Text detection based on MSER and CNN features
CN109446984A (en) Recognition method of road traffic signs in natural scenes
CN108256467B (en) A traffic sign detection method based on visual attention mechanism and geometric features
CN108664969B (en) A Conditional Random Field Based Road Sign Recognition Method
CN107346413A (en)Traffic sign recognition method and system in a kind of streetscape image
CN113989771A (en) A Traffic Signal Recognition Method Based on Digital Image Processing
CN104715252A (en)License plate character segmentation method with combination of dynamic template and pixel points
CN103971367B (en)Hydrologic data image segmenting method
Huang et al.Text detection and recognition in natural scene images
CN106709412A (en)Traffic sign detection method and apparatus
Meng et al.Text detection in natural scenes with salient region

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
CB03Change of inventor or designer information

Inventor after:Wu Zonglin

Inventor after:He Weirong

Inventor after:Liu Yuanchao

Inventor after:Xia Lu

Inventor after:Gao Fei

Inventor before:Wu Zonglin

Inventor before:Xia Lu

Inventor before:He Weirong

Inventor before:Gao Fei

CB03Change of inventor or designer information
GR01Patent grant
GR01Patent grant
CP02Change in the address of a patent holder

Address after:323000 block B, building 2, No. 268, Shiniu Road, nanmingshan street, Liandu District, Lishui City, Zhejiang Province

Patentee after:ZHEJIANG HAOTENG ELECTRON TECHNOLOGY Co.,Ltd.

Address before:323000 Room 201, building 12, Tianning incubation base, Lvgu Information Industrial Park, Lishui City, Zhejiang Province

Patentee before:ZHEJIANG HAOTENG ELECTRON TECHNOLOGY Co.,Ltd.

CP02Change in the address of a patent holder
PE01Entry into force of the registration of the contract for pledge of patent right

Denomination of invention:A Signal Light Detection Method Based on Image Processing

Effective date of registration:20231127

Granted publication date:20210706

Pledgee:Zhejiang Lishui Liandu Rural Commercial Bank Co.,Ltd.

Pledgor:ZHEJIANG HAOTENG ELECTRON TECHNOLOGY CO.,LTD.

Registration number:Y2023980067610

PE01Entry into force of the registration of the contract for pledge of patent right
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20210706

CF01Termination of patent right due to non-payment of annual fee

[8]ページ先頭

©2009-2025 Movatter.jp