gpt4 book ai didi

opencv - OpenCV HOG 描述符上的 SVMLight

转载 作者:太空宇宙 更新时间:2023-11-03 21:58:53 26 4
gpt4 key购买 nike

我正在尝试使用 SVM Light 学习 OpenCV2.2 HOG 描述符的分类器。我从 HOG 描述符中得到一个浮点矢量输出。

看了SVMLight的文档,还是没明白输入train和test data是什么格式

来自网站的 train.dat 中的一行示例:

1 6:0.0176472501759912 15:0.0151152682071138 26:0.0572866228831546 27:0.0128461400334668

在哪里,

The first char: 1, denote the positive class.    
The second and third char 6: <== I don't understand what does this means,
The third variable denote the feature vector.

有人愿意帮忙吗?谢谢!

最佳答案

The second and third char 6: <== I don't understand what does this means, The third variable denote the feature vector.

6:XXXX 表示此示例的第 6 个特征的值为 XXX

在您提供的示例中:

1 6:0.0176472501759912 15:0.0151152682071138 26:0.0572866228831546 27:0.0128461400334668

这意味着该示例的类标签为1。第6个特征值为0.0176472501759912,第15个特征值为0.0151152682071138等。

将其视为每个示例的特征向量的“稀疏编码”。这意味着对于您提供的示例,特征 1-5、7-14、16-25 的值是 0。

关于opencv - OpenCV HOG 描述符上的 SVMLight,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6006931/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com