Android Opencv: Save ORB features using Json

你说的曾经没有我的故事 提交于 2019-12-25 02:38:16

问题


i want to save orb features to database that i get from this code:

bmp=BitmapFactory.decodeResource(getResources(),R.drawable.t1);
Utils.bitmapToMat(bmp, mat);
FeatureDetector detector = FeatureDetector.create(FeatureDetector.ORB);
detector.detect(mat, keypoints);
DescriptorExtractor extractor = DescriptorExtractor.create(DescriptorExtractor.ORB);
extractor.compute(mat, keypoints, features);

i using json code to save the data from Mat of feature with the code i get from here: http://answers.opencv.org/question/8873/best-way-to-store-a-mat-object-in-android/?answer=28608#post-id-28608

but when i show the json string, that show like this:

i don't understand about that data, how can that be calculated by DescriptorMatcher.BRUTEFORCE_HAMMING ?

来源:https://stackoverflow.com/questions/22680807/android-opencv-save-orb-features-using-json

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!