简体   繁体   English

训练数据和词汇之间的差异-单词袋

[英]Differences between Training Data and Vocabulary - Bag Of Words

When creating a Bag Of Words, you need to create a Vocabulary to give to the BOWImgDescriptorExtractor to which you use on the images you wish to input. 创建单词袋时,您需要创建一个Vocabulary以提供给BOWImgDescriptorExtractor ,以供您在要输入的图像上使用。 This creates the Testing Data . 这将创建Testing Data

So where does the Training Data come from, and where do you use it? 那么Training Data来自何处,又在哪里使用呢?

Whats the difference between Vocabulary and Training Data ? VocabularyTraining Data什么区别?

Isn't the Vocabulary the same thing as the Training Data ? VocabularyTraining Data吗?

Training data is a set of images you collected for your application as the input of BOWTrainer , and vocabulary is the output of the BOWTrainer . 训练数据是您为应用程序收集的一组图像,作为BOWTrainer的输入,而词汇表BOWTrainer的输出。 Once you have the vocabulary , you can extract features of images using BOWImgDescriptorExtractor with the words defined in the vocabulary . 一旦掌握了词汇表 ,就可以使用BOWImgDescriptorExtractor以及词汇表中定义的单词来提取图像的特征。

An image can be described by tons of features ( words ), however only some of them are important. 图像可以用大量的特征( 单词 )来描述,但是其中只有一些很重要。 The first job to do is to find those important words , that is, to train a vocabulary . 首先要做的是找到那些重要的单词 ,即训练词汇 After the vocabulary is obtained, images can be described more precisely. 获取词汇后,可以更精确地描述图像。

So where does the Training Data come from, and where do you use it? 那么Training Data来自何处,又在哪里使用呢?

You should provide the Training data , and use it to train the vocabulary with BOWTrainer . 您应该提供Training数据 ,并使用它与BOWTrainer一起训练词汇 The Training data is a set of images (descriptors), depends on your application domain. 培训数据是一组图像(描述符),取决于您的应用程序域。

What's the difference between Vocabulary and Training Data ? VocabularyTraining Data什么区别?

Vocabulary is cooked, while training data is raw, unorganized. 词汇是煮熟的,而训练数据是原始的,无组织的。

Isn't the Vocabulary the same thing as the Training Data ? VocabularyTraining Data吗?

No. 没有。

There is an add function that is used to specify training data. 有一个用于指定训练数据的添加功能。 docs on opencv bow module opencv弓模块的文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM