使用Haar训练检测猫 [英] Cat Detection Using Haar Training

查看:79
本文介绍了使用Haar训练检测猫的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用HAAR级联来检测可变形物体(在我的情况下为CAT).我对多达20个阶段的2000个正片和3000个负片进行了测试.我没有看到任何预期的事情. 我确信这可能是我的训练数据集的问题.我的积极数据集中有猫的照片.同一只猫以不同的形状和姿势.我想知道Haar是否能够识别阳性数据集中的差异,并且仍然将它们识别为猫.

I would like to detect deformable objects (a CAT in my case) , using HAAR- cascades . I ran the test on 2000 positives and 3000 negative images upto 20 stages . I don't see anything expected happening. I am sure it might be the problem of my training data set. My positive data set has the cat images in it . In different shapes and postures of the same cat . I wonder if Haar would be able to recognize the differences in the positive data set , and still recognize them as cats.

需要帮助,我还有其他可以使用的替代方法吗?

Need help , Is there any other alternative method that I could use ??

推荐答案

首先,您没有列出用于训练haar分类器的内容.如果您不使用opencv_traincascades,那么这是开始的地方.

First off, you haven't listed what you are using to train your haar classifiers. If you are not using opencv_traincascades this is the place to start.

第二次检测猫是一项非常困难的工作,存在许多不确定的边缘,旋转和空间变化.使用这种思路,对自己回答以下问题:

Secondly detecting a cat is a very difficult job, there are a lot of undefiend edges, rotational and spatial variances. using this train of thought, answer these questions to yourself:

  • 您的正面数据集是什么样的?
  • 这类似于您通过输入供稿显示的内容
  • 训练后分类器的误报率是多少?
  • 您在背景设置中包含了什么(看起来像猫的图像更多,而猫则更好)等

我建议您在分类阶段将您的输出发布到问题中,以便我们更好地了解正在发生的事情.请查看这些链接以获取更多帮助.

I would suggest posting your output into the question from the classifying stages in order for us to get a better view of what is happening. Take a look at these links for more help.

也许先尝试使用笔或徽标,然后遵循openCV教程并了解基本知识? (很抱歉,如果我假设您不了解基础知识的话)

Maybe try with pens, or logos first, follow the openCV tutorials and understand the basics? (sorry if I have assumed you don't know the basics if you do)

G ./

这篇关于使用Haar训练检测猫的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆