bytedeco/javacv

BowExtractor use?

Open

#1,571 opened on Jan 19, 2021

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Java (1,583 forks)batch import
help wantedquestion

Repository metrics

Stars
 (6,985 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

hey i m struggling with Bag Of Visual Words in java bytedeco ..i cant find any good example of using bag of visual words in java .i know how it works theoritically but dont know how to implement it currently using this but confused:

org.bytedeco.opencv.opencv_core.TermCriteria criteria = new  org.bytedeco.opencv.opencv_core.TermCriteria(TermCriteria.EPS +  TermCriteria.MAX_ITER,100,0.1);
           FastFeatureDetector features = FastFeatureDetector.create();
           BriefDescriptorExtractor ext = BriefDescriptorExtractor.create();
           DescriptorMatcher matcher = DescriptorMatcher.create(DescriptorMatcher.FLANNBASED);
           BOWKMeansTrainer bowTrainer = new BOWKMeansTrainer(dictionarySize, criteria, 1, Core.KMEANS_PP_CENTERS);
           BOWImgDescriptorExtractor de = new BOWImgDescriptorExtractor(matcher);

how to implement it properly ..steps by step. some provide me some guidance ?

Contributor guide