This is another opensse demo, supported by opensse.
See more search results, click demo videos.
Sketch database comes from Mathias Eitz's paper How Do Humans Sketch Objects? ACM Transactions on Graphics (Proc. SIGGRAPH 2012).
First, you need config opensse, and include you opensse path to SketchRecognizeDemo.pro
file.
include(/Users/zdd/Projects/opensse/opensse.pri)
And then, You need config params.json
file depend on you path. All data are shared on my Dropbox.
{
"searcher":
{
"indexfile": "/Users/zdd/Projects/opensr/data/sketchs_index_file",
"filelist": "/Users/zdd/Projects/opensr/data/sketchs_filelist",
"vocabulary": "/Users/zdd/Projects/opensr/data/vocabulary",
"rootdir": "",
"results_num": "1",
"views_num": "1"
}
}
Last, read your json file:
boost::property_tree::read_json("/Users/zdd/Projects/opensr/data/params.json", params);
Code is under the Apache License, Version 2.0.
I accept tips through Alipay. Scan below qr code to donate:
If you have any question or idea, please email to me.