資源簡介
QR二維碼識別中在對圖像預處理后最重要的一步就是要進行定位,QR二維碼中有三個位置探測圖形,通過掃描其特征便可以進行精細定位,提出了一種新的算法用于篩選候選點。
代碼片段和文件信息
function?[booltotalFinderSize]?=?checkRatio(stateCount)
totalFinderSize?=?0;????
for?i?=?1:5
????count?=?stateCount(i);
????totalFinderSize?=?totalFinderSize?+??count;
????if(count?==?0)
????????bool?=?false;
????end
end
if(totalFinderSize<7)
????bool?=?false;
end
moduleSize?=?ceil(totalFinderSize?/?7);?%?單個模塊平均寬度
????
%計算比例?1:1:3:1:1
tol_factor?=?0.5;?%用于判斷比例的誤差系數
maxVariance?=?moduleSize*tol_factor;
retVal?=?((abs(moduleSize?-?(stateCount(1)))????(abs(moduleSize?-?(stateCount(2)))????(abs(3*moduleSize?-?(stateCount(3)))3*maxVariance)?&&...
????(abs(moduleSize?-?(stateCount(4)))????(abs(moduleSize?-?(stateCount(5)))
bool?=?retVal;
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-03-25?15:58??detection\
?????文件?????????772??2019-02-13?11:39??detection\checkRatio.m
?????文件????????1147??2019-02-13?16:34??detection\dectectAgain1.m
?????文件????????1147??2019-02-13?16:34??detection\dectectAgain2.m
?????文件????????2172??2019-03-25?15:57??detection\detect.m
?????文件????????1105??2019-03-25?15:50??detection\detect1.m
?????文件????????1431??2019-03-25?16:23??detection\detectFeedback.m
?????文件????????5688??2019-03-11?13:28??detection\findInRowAndCol.m
?????文件????????4323??2019-01-09?16:36??detection\group_points.m
?????文件?????????474??2019-01-09?19:26??detection\issort.m
?????文件?????????602??2019-02-13?13:24??detection\para.m
?????文件????????2732??2019-01-09?19:52??detection\Points_merge.m
?????文件?????????577??2019-02-13?15:41??detection\verify.m
評論
共有 條評論