資源簡介
matlab下實(shí)現(xiàn),準(zhǔn)確度和實(shí)時(shí)性都很好,需要matlab的機(jī)器視覺工具箱
代碼片段和文件信息
%%%%%%%%%%%%%Initialization%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Use?these?next?sections?of?code?to?initialize?the?required?variables?and?System?objects.
DrawPoly?=?0;??%?Set?to?0?to?draw?only?lines??只標(biāo)記車道線或是另外加入車道藍(lán)色區(qū)域
NumRows?=?120;?%?Number?of?rows?in?the?image?region?to?process.底部所取像素條數(shù)
MaxLaneNum?=?20;?%?Maximum?number?of?lanes?to?store?in?the?tracking?repository.
ExpLaneNum?=?2;??%?Maximum?number?of?lanes?to?find?in?the?current?frame.單幀內(nèi)最多找車道條數(shù)
Rep_ref???=?zeros(ExpLaneNum?MaxLaneNum);?%?Stored?lines
Count_ref?=?zeros(1?MaxLaneNum);????????%?Count?of?each?stored?line
TrackThreshold?=?75;?%?Maximum?allowable?change?of?lane?distance
?????????????????????%?metric?between?two?frames.閾值
LaneColors?=?single([0?0?0;1?1?0;?1?1?0;?1?1?1;1?1?1]);
%?Minimum?number?of?
評論
共有 條評論