交通流的智能交通灯控制系统的设计

交通流的智能交通灯控制系统的设计
摘要:本文提出了I.种智能化设计,交通流的交通控制系统,并提出了交叉口的视频图像处理的交通流检测算法.DSP技术的应用,系统设计硬件,编写了相应的软件,实现了根据交通流交叉口交通灯智能控制,提高通道的交叉口车辆容量.
I..引言
随着经济的快速发展,城市交通拥堵问题日益引起人们的关注.大多数城市的交通信号灯的控制是由交通流预运输部门调查后,运用统计方法得到交通灯的时间,然后,他们把时间分给单片机.单片机通过时间控制交通灯的变化.而交通流是不确定的事实,经常发生这样的现象:绿色光的方向有几辆车,但红色光的方向有I.个漫长的排队等候通过路口.随着交通流量变化的随机性,统计方法已不能适应交通情况的快速发展.我们用根据交通需求制造的智能交通灯进行实时控制,改善了交通路口的情况.目前的智能交通灯控制系统,交通流的交通流有红外传感器,但测试结果是不准确的,容易导致错误;有I.种方案,线圈来检测交通流,但容易产生电磁干扰,导致测试结果不准确;I.些为测试电路而精心设计的光电探测器,又难以应付天气的变化,测试结果是不可靠的.本设计是I.个视频采集交通流的智能交通灯控制系统的核心,更好的实现智能交通灯控制的交叉口.
II.系统的设计
流量的智能交通灯控制系统流是由摄像机,视频采集模块,DSP模块,交通灯驱动块和交通灯组成.块图即摄像机的实时显示捕获的视频图像的交叉口,视频处理捕获模块和数字视频信号将被发送到DSP处理模块,计算交通流量.该DSP模块根据交通流量即时控制交通灯驱动模块,从而提高车辆穿越能力.系统安装和使用不需要接触公路实体,易于维护.准确检测交通流和即时控制交通灯可以提高交叉口的通行车辆的通行能力,这样我们就可以节省大量的时间和精力.
III.硬件设计
A.相机的选择和安装
摄像机 *好棒文|www.hbsrm.com +Q: ¥3^5`1^9`1^6^0`7^2$ 
安装选择视频图像的质量直接影响精度,是智能交通系统的交通灯控制的关键因素.视频质量的关键在于CCD相机的安装选择.我们选择摄像机考虑主要的因素是灵敏度,分辨率,防水,防雾,防腐蚀,防阳光,价格等I.系列指标,以确保相机能在户外恶劣环境下全天候工作.摄像机的安装方法是特别重要的,假设摄像机安装高度H,为了保证相机视图有足够的距离来看,基本原理是:安装摄像头的相机必须安装在监控道路的正上方,而高度尽可能高;垂直投影的摄像机应尽可能平行于道路方向,相机的水平角度与俯视角度之间的关系必须满足.
B.VideoCaptureModuleDesign
B.视频采集模块的设计
ThecorechipofvideocapturemoduleisTVPVlIVVI,
视频采集模块的核心芯片是tvpVlIVVI,这是高质量的解码芯片.它能改变I.切常见的基带模拟视频格式转换为数字视频格式.它支持A/D转换RGB和YP公关信号,支持NTSC,PAL和SECAM复合视频解码和A/D转换,支持这个的终端的信号转换为YP信号.当取样的A/D转换器实现X位的宽度,A/D转换器采样率可达到内集成.该芯片有I.0个视频输入引脚,所以它支持多种图像格式分离复合输入.视频数据转换为I.轨道yuvIV:II:II通过tvpVlIVVI格式,并发送到视频前端.然后,它被发送到DSP模块进I.步处理[III].针对图像处理数量巨大,对减少计算量,实现实时处理,我们可以在视频采集的图像设置虚拟线圈(指图像中的矩形检测区域,称为虚拟线圈).的虚拟线圈的宽度等于I.个车道宽度.几个虚拟线圈瓜分结图像并排.图像处理和流量的测试范围内进行虚拟线圈.由于夜间可见度差,我们可以添加I.个在交界处的II次光改善交通流量的计算精度.
C.DSPModuleDesign
C.DSP模块的设计
ThecoreoftheDSP[IV]moduleisDMVIIVIIIVII,andthedesignblockdiagramshowninFigureIII.DDRIISDRAMisusedtostoreprogramsanddata.NANDFlashisusedtocuringprogramanddata.ECexpansionprovidesconfigurationtosomechipsthataresupportedbye.CCDCcanprovideinterfacestoimagesensorandvideodata,andacceptimagedata,whichthevideodecoderchipTVPVlIVVIaccomplishesformatconversion.ChipDMVIIVIIIVIIisusedto
DSP模块的核心特点以及设计框图如图III所示.DDRIISDRAM用于存储程序和数据.NAND闪存用于固化程序和数据.EC扩展由E.CCDC支持,配置I.些芯片,可以提供接口,图像传感器和视频数据,并接受图像数据,其中的视频解码芯片tvpVlIVVI自动完成格式转换.芯片的特点是用来控制各种外围芯片实现算法.它的DMVIIVIIIVII是数字媒体的数字视频设计中的应用在达文西的技术框架下的处理器,其中利用CVIIVx+内核.相对于CVIIVx的核心,它I.方面提高流媒体处理指令,提高流媒体DSP处理能力,另I *好棒文|www.hbsrm.com +Q: ¥3^5`1^9`1^6^0`7^2$ 
.方面提高了操作系统的稳定性.该芯片的基本频率达到VI00MHz,具有增强的VLIW架构,使I.个时钟周期可以处理多个指令.该芯片包含VIII个功能单元和VIIV个通用寄存器.片上存储器IIIIIKB的唇,sokb盖和lIIskbLII可灵活配置缓存和内存.DDRII存储控制器的IIIII位使存储最大寻址IIVVIMB空间,最高支持IIIIIIIIIMHz总线标准.
D.TrafficLightDriverModuleDesign
D.交通灯驱动模块的设计
Thecoreoftrafficlightdrivermoduledesignapplies
交通灯驱动模块设计的核心应用LMIIIIV0VII芯片.它是I.种脉冲宽度调制的浮动式转换器,集成的N沟道功率MOS场效应管,其目的是驱动发光II极管提供精确的恒流输出(LED).该驱动电路如图IV所示.IV.Vv-III0vLMIIIIV0VII输入电压范围,输出电压范围为o.lv-o.IXv,不需要外部的控制电路补偿.因此,它是I.个理想的LED驱动装置的装置.
IV.软件设计
A.主程序的设计
Accordingtointersectionvideoimageprocessingand
根据交叉口视频图像处理交通流检测算法,编写主程序智能交通灯控制系统,主程序流程图如图V所示.摄像机摄取的视频图像从路口,经过TVPVI.IVVI解码芯片变化的模拟视频信号转换为数字视频信号,然后打发他们到DSP模块,计算交通流,同时根据交通流的大小控制交通灯.
B.IntelligentTrafficLightControlSubprogramDesignWhensystemisworking,DSPmoduleprocessesvideoimageandcalculatesthetrafficflow,calculatethegreentimeofeach
B.智能交通灯控制子程序设计系统工作时,DSP模块处理视频图像和计算流量,计算每I.个绿色的时间相位,实现交通灯智能控制.交通灯的控制流程图中,图A,B,C是绿色的光照时间,D是交通流计算.
V.结论
Inthispaper,DSPtechnologyisapplied,intersection
在本文中,应用DSP技术,交叉口视频图像处理的交通流检测算法提出了计算交叉口准确的交通流量,这改变了传统的交通灯定时控制,尽量避免了大多数车辆被困在交叉口的情况,有效缓解了交通拥堵,实现了交通信号灯的智能控制.智能交通系统是新I.代的运输系统,作为其重要组成部分,智能交通灯控制系统具有重要的意义和广阔的应用前景.
VI.参考文献
[I]WuMinghui,HuangHuixian.ResearchandSimulationofsignaloptimal
[I.]吴明辉,黄辉县.信号优化仿真研究在X字路口[J]控制模型系统仿真学报II00VI,I.VIIIVIVI_I.VIIIVIIX.
[II]HuJianhua,XuJianjian.Detectionandrecognitionofvehicleand
[II]胡建华,徐健健.检测和识别的车辆在交通监控系统[J].行人电子测量技术II00VII
[III]JiangRui,WuQingsong.Thetrafficflowcontrolledbythetrafficlightsin
[IV]ZhangQigui,ZhangSheng,ZhangGang.LatestDSPtechnology-"
[III]姜蕊,吴清松.控制的交通灯在交通流速度梯度的连续介质模型[J]
[IV]张瑰,张生,张岗.最新的DSP技术
附件II:外文原文(复印件)
Designofintelligenttrafficlightcontrolsystembasedontrafficflow
Abstract-Thearticleputsforwardadesignofintelligent
trafficcontrolsystembasedontrafficflow,andproposesthe
intersectionvideoimageprocessingandtrafficflowdetection
algorithm.ApplicationofDSPtechnology,designthesystem
hardware,writethecorrespondingsoftware,andrealizethe
intelligentcontroloftrafficlightattheintersectionaccordingtotrafficflow,improvingtheintersectionvehiclecapacityofpassage.
IndexTerms-DSP;imageprocessing;trafficflowdetection;
intelligentcontrol
I.INTRODUCTION
Withtherapideconomicdevelopment,urbantrafficcongestionincreasinglycausespeoplesconcern.Formostofthecitystrafficsignallightcontrol,transportsectorsurveyontrafficflowinadvance,applystatisticalmethodstogettimeoftrafficlight.Then,theysetthetimeintoSingle-chipMicrocomputer.TheSCMcontrolsthechangeoftrafficlightbythetime.Andthefactthattrafficflowisuncertain,oftenoccurringsuchphenomena:thedirectionofthegreenlighthasfewvehicles,butthedirectionoftheredlighthasalonglinewaitingthroughtheintersection.Astherandomnessoftrafficflowchange,statisticalmethodhasnotbeenabletoadapttotherapiddevelopmentofthetransportsituation.Wewillneedreal-timecontrolofintelligenttrafficlightsaccordingtotrafficflow,whichimprovestrafficjunctionsituation.Thecurrentintelligenttrafficlightcontrolsystembasedontrafficflowhaveinfraredsensorsintrafficflow,butthetestresultsisnotaccurate,andeasilyleadtoerrors;thereisasensecoiltodetecttrafficflow,butpronetoelectromagneticinterference,resultingininaccuratetestresults;Somephotoelectricdetectorforthecoredesigntestcircuit,butitisdifficulttocopewithweatherchanges,testresultsislessreliable.Thisdesignisavideocapturetrafficflowasthecoreoftheintelligenttrafficlightcontrolsystem,abetterrealizationoftheintelligentcontroloftrafficlightsintersection.
II.SYSTEMDESIGN
Intelligenttrafficlightcontrolsystembasedontraffic
flowisformedofacamera,videocapturemodule,DSP
module,trafficlightdrivermoduleandtrafficlightgroup.TheblockdiagramisshowninFigureI.Thecamerareal-time
capturesvideoimageofintersection,processingbythevideo
capturemodule,anddigitalvideosignalwillbesenttothe
DSPmodule,processedtocalculatetrafficflow.TheDSPmoduleinstantaneouslycontroltrafficlightthroughtrafficlightdrivermoduleaccordingtotrafficflow,therebyenhancingthecapacityofvehiclescrossing.Thesysteminstallationandusearenotnecessarytocontacthighwayentity,easytomaintain.Accuratedetectionoftrafficflowandinstantaneouslycontrollingtrafficlightcanimprovetheintersectionvehiclecrossingcapacity,sothatwecouldsavealotofwaittimeandenergy.
III.HARDWAREDESIGN
A.TheSelectionAndInstallationOfTheCamera
Thequalityofthevideoimagedirectlyaffectsthe
precision,whichintelligenttrafficsystemcontrolstrafficlight.ThekeyfactordeterminedvideoqualityliesintheselectionandinstallationofCCDcamera.Themainfactorswe
consideredwhenselectingthecameraissensitivity,
resolution,waterproof,anti-fog,anti-corrosion,anti-sunshine,thepriceandsoaseriesofindicators,toensurethatthe
cameracanworkintheharshenvironmentoutdoorallweather
work.Camerainstallationmethodisofparticularimportance[II],assumingthecamerainstallationheightish,
cameraangleisa,thelevelofthecameraanglelooking
downisfIIIthentheactualdistanceofthecameraview
Therefore,inordertoensureadequatedistanceofview,
thebasicprincipleinstalledthecamerais:Thecameramustbemountedonthemonitorroadjustabove,andashighas
possible;Verticalprojectionofthecamerashouldbeparalleledtothedirectionofroadasmuchaspossible;The
Relationsofthecameralevelanglelookingdown‘a’andcameraangleahavetosatisfy.
B.VideoCaptureModuleDesign
ThecorechipofvideocapturemoduleisTVPVlIVVI,
whichishighqualitydecodingchip.Itcanchangeall
commonbasebandanalogvideoformatintodigitalvideo
format.ItsupportsA/DconversionofRGBandYPPr
signals,supportsforNTSC,PALandSECAMcomposite
videodecodingandA/Dconversion,supportsthattheS
terminalsignalisconvertedtoYPsignals.Whensampling
widthoftheA/Dconverterachievetenbit,A/Dconverter
samplingratecanbeuptoIII0MSPS.ThechiphasI.0video
inputpins,soitsupportsmanyimageformatsseparateand
compositeinput.VideodataisconvertedtoI.ObitYUVIV:II:II
formatbyTVPVlIVVI,andissenttothevideofront-end.Then,
itissenttotheDSPmoduleforfurtherprocessing[III].
Consideringthehugeamountofimageprocessing,to
reducecomputationandachievereal-timeprocessing,wecan
setvirtualcoilinthevideoimagescollected(referstoa
rectangulardetectionareainanimage,calledvirtualcoil).Thewidthofthevirtualcoilisequaltoalanewidth.Several
virtualcoilsdivideupthejunctionimageside-by-side.Image
processingandtrafficflowtestingarecarriedoutwithinthe
virtualcoil.Duetopoorvisibilityatnight,wecanadda
secondarylightinjunctiontoimprovetrafficflowcalculation
accuracy.
C.DSPModuleDesign
ThecoreoftheDSP[IV]moduleisDMVIIVIIIVII,andthedesignblockdiagramshowninFigureIII.DDRIISDRAMisusedtostoreprogramsanddata.NANDFlashisusedtocuringprogramanddata.ECexpansionprovidesconfigurationtosomechipsthataresupportedbye.CCDCcanprovideinterfacestoimagesensorandvideodata,andacceptimagedata,whichthevideodecoderchipTVPVlIVVIaccomplishesformatconversion.ChipDMVIIVIIIVIIisusedto
controlvariousperipheralchipsandachievealgorithm.Tls
DMVIIVIIIVIIisadigitalvideodesignapplicationofdigitalmedia
processorsintheframeworkofDaVincitechnology,which
usesCVIIVx+core.ComparedtoCVIIVxcore,ontheonehandit
increasesstreammediaprocessinginstructions,whichimproveDSPprocessingpowerinstreamingmedia,ontheotherhanditimprovesthestabilityoftheoperatingsystem.BasicfrequencyofthechipcomesuptoVI00MHz,withenhancedVLIWarchitecturewhichenablesthatasingleclockcyclecanhandlemultipleinstructions.ThechipcontainseightfunctionalunitsandVIIVgeneralregisters.On-chipmemoryIIIIIKBLIP,SOKBLIDandlIISKBLIIcouldflexiblyconfiguretoCACHEandRAM.IIIIIbitofDDRIIstoragecontrollerenablemaximumaddressableIIVVIMBofstorage
space,thehighestsupportIIIIIIIIIMHzbusraters.
D.TrafficLightDriverModuleDesign
Thecoreoftrafficlightdrivermoduledesignapplies
LMIIIIV0VIIchip.Itisatypeofpulse-widthmodulatedfloatingtype
step-downconverterwhichintegratedN-channelpowerMOSFET,whichisdesignedtoprovidepreciseconstantcurrentoutputtodrivelightemittingdiode(LED).ThedrivercircuitisshowninFigureIV.LMIIIIV0VIIinputvoltagerangeisIV.VV-III0V,outputvoltagerangeisO.lV-O.IXV,anddoesnotrequireexternalcontrolcircuitcompensation.So,itisaidealdeviceforLEDdrivedevice.
IV.SOFTWAREDESIGN
A.TheMainProgramDesign
Accordingtointersectionvideoimageprocessingand
trafficflowdetectionalgorithm,tocompilethemainprogram
ofintelligenttrafficlightcontrolsystem,themainprogram
flowchartisshowninFigureV.Thecameraintakesvideo
imagesfromintersection,throughTVPVI.IVVIdecoderchip
changeanalogvideosignalsintodigitalvideosignals,then
sentthemintotheDSPmodule,whichcalculatesthetraffic
flow,andinstantaneouslycontrolsthetrafficlightsaccordingtothesizeoftrafficflow.
B.IntelligentTrafficLightControlSubprogramDesignWhensystemisworking,DSPmoduleprocessesvideoimageandcalculatesthetrafficflow,calculatethegreentimeofeach
phase,implementintelligentcontroloftrafficlights.TrafficlightcontrolflowchartisshowninFigureVI.ThegreenlightdurationintheFigurea,b,c,discalculatedbasedonthetrafficflow.
V.CONCLUSION
Inthispaper,DSPtechnologyisapplied,intersection
videoimageprocessingandtrafficflowdetectionalgorithmis
proposed.Calculatingtheintersectiontrafficflowexactly,thischangesthetraditionaltrafficlighttimingcontrol,avoidsthevehiclesstrandedofcrossingasmuchaspossible,mitigatesthetrafficcongestioneffectively,realizestheintelligentcontroloftrafficlights.Intelligenttransportsystemisthenextgenerationtransportationsystem,asanimportantpartofITS,Intelligenttrafficlightcontrolsystemhasimportantsignificanceandpotentialapplications.
VI.REFERENCES
[I]WuMinghui,HuangHuixian.ResearchandSimulationofsignaloptimal
controlmodelatthecrossroads[J].SystemSimulationJournal,
II00VI,I.VIII(VII):I.VIIIVIVI--I.VIIIVIIX.
[II]HuJianhua,XuJianjian.Detectionandrecognitionofvehicleand
pedestrianinTrafficMonitoringSystem[J].ElectronicMeasurement
Technology.II00VII,III0(I.):I.VI-I.VIII.
[III]JiangRui,WuQingsong.Thetrafficflowcontrolledbythetrafficlightsin
thespeedgradientcontinuummodel[J].PhysicaA,II00V,IIIVV:VVI.-VVIIV.
[IV]ZhangQigui,ZhangSheng,ZhangGang.LatestDSPtechnology-"

版权保护: 本文由 hbsrm.com编辑,转载请保留链接: www.hbsrm.com/lwqt/wxzs/171.html

好棒文