“左"是干什么的和“正确的"haar 级联 xml 文件中的值是什么意思? [英] What do the "left" and "right" values mean in the haar cascade xml files?
本文介绍了“左"是干什么的和“正确的"haar 级联 xml 文件中的值是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 OpenCV 的 haar 级联文件中,左"和右"值是什么,这如何引用阈值"值?谢谢!
In OpenCV's haar cascade files, what are the "left" and "right" values, and how does this refer to the "threshold" value? Thanks!
仅供参考,这里是文件的结构:
Just for reference, here's the structure of the files:
<haarcascade_frontalface_alt type_id="opencv-haar-classifier">
<size>20 20</size>
<stages>
<_>
<!-- stage 0 -->
<trees>
<_>
<!-- tree 0 -->
<_>
<!-- root node -->
<feature>
<rects>
<_>3 7 14 4 -1.</_>
<_>3 9 14 2 2.</_></rects>
<tilted>0</tilted></feature>
<threshold>4.0141958743333817e-003</threshold>
<left_val>0.0337941907346249</left_val>
<right_val>0.8378106951713562</right_val></_></_>
<_>
推荐答案
保罗,真的吗?
我认为,left_val/right_val 用作:
I think, that left_val/right_val used as:
sum_stage += (sum_feature < feature_threshold*stddev)?(left_val):(right_val)
这篇关于“左"是干什么的和“正确的"haar 级联 xml 文件中的值是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文