zddhub / opensse Goto Github PK
View Code? Open in Web Editor NEWOpen Sketch Search Engine- 3D object retrieval based on sketch image as input
Home Page: https://opensse.com
License: Other
Open Sketch Search Engine- 3D object retrieval based on sketch image as input
Home Page: https://opensse.com
License: Other
.
Requires Nvidia?
I am using AMD
Hello,
First of all thank you very much for implementing the sketch-based method.
I have been trying to run this code in my laptop. However, I get two errors related to Boost library which I am not able to solve no matter what I do. I was wondering if you faced this problem before or know the solution to it. It would be really helpful if you can provide any directions to solve this.
I am using Qt5.5 in Ubuntu 14.04 and here is my opensse.pri
content.
unix:!macx {
#I use Ubuntu
INCLUDEPATH += $$PWD \
/usr/include
LIBS += -L/usr/lib/ \
-lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_features2d -lopencv_ml \
-lboost_thread-mt -lboost_system-mt -lboost_thread -lboost_system -lboost_filesystem
# opencv 2.4.7 - 2.4.9 can work well.
INCLUDEPATH += $$PWD \
/home/mycomputer/boost_1_57_0 \
/home/mycomputer/opencv-2.4.9/include \
}
And when I run opensse application, I get the following errors:
boost::thread::start_thread()
:boost::thread::start_thread_noexcept()
boost::thread::join()
:
boost::thread::join_noexcept()
Reported by @warmhug
Follow the doc of https://github.com/zddhub/opensse/wiki/How-to-train-data , when I run extract
command, it throws errors:
$ sse extract -d ~/Database/SHREC12/ -f ~/Database/SHREC12/2012_filelist -o ~/Database/SHREC12/2012_
dyld: Library not loaded: @rpath/libopencv_core.3.2.dylib
Referenced from: /usr/local/bin/extract
Reason: image not found
My installation directory are /usr/local/opt/opencv3/include
(actually in/usr/local/Cellar/opencv3/HEAD-c1007c7/include
) and /usr/local/Cellar/boost/1.63.0/include/boost
, they are homebrew's directory.
Is this error because my installation directory is not appropriate?
Hello zddhub! I am sorry to bother you again. I use your vocabulary to train the data and compile your Qt demo as you said in wiki. When I run sse
in command line, everything works well.
xyzdeMacBook-Pro:MacOS xyz$ sse search -i /Users/xyz/Desktop/opensse/index_file -v /Users/xyz/Desktop/opensse/data/vocabulary -f /Users/xyz/Desktop/opensse/filelist -n 10
read vocabulary 1000/1000.
>> sketch search :
>> input absolute path, like "/Users/zdd/zddhub.png"
>> type q exit
>> good luck!
>> /Users/xyz/Desktop/opensse/0.jpg
0.977542 /Users/xyz/Desktop/opensse/Database/SHREC12/D00400view/0.jpg
0.697008 /Users/xyz/Desktop/opensse/Database/SHREC12/D00400view/80.jpg
0.676193 /Users/xyz/Desktop/opensse/Database/SHREC12/D00391view/0.jpg
0.636707 /Users/xyz/Desktop/opensse/Database/SHREC12/D00390view/100.jpg
0.617532 /Users/xyz/Desktop/opensse/Database/SHREC12/D00384view/100.jpg
0.602837 /Users/xyz/Desktop/opensse/Database/SHREC12/D00382view/101.jpg
0.602616 /Users/xyz/Desktop/opensse/Database/SHREC12/D00400view/50.jpg
0.599047 /Users/xyz/Desktop/opensse/Database/SHREC12/D00400view/81.jpg
0.598671 /Users/xyz/Desktop/opensse/Database/SHREC12/D00389view/101.jpg
0.594396 /Users/xyz/Desktop/opensse/Database/SHREC12/D00385view/15.jpg
>> q
But if I run the demo and start to draw, the program crashed and I got an error:
xyzdeMacBook-Pro:MacOS xyz$ ./SketchSearchDemo
Segmentation fault: 11
I am so curious about your project and hope to run your app demo successfully. Could you please give me five?
it seems very slow when i set 1000 as the features number, how it works? if i choose another one what about the recall?
Follow this install opencv3, then run brew install boost
to install latest version of boost 1.63.0. Then run:
mkdir release && cd release
cmake ..
make
# begin throw error
fatal error: 'opencv2/core/core.hpp' file not found
#include <opencv2/core/core.hpp>
^
1 error generated.
make[2]: *** [sse/CMakeFiles/opensse.dir/io/filelist.cpp.o] Error 1
make[1]: *** [sse/CMakeFiles/opensse.dir/all] Error 2
make: *** [all] Error 2
Then I follow this add include_directories(/usr/local/opt/opencv3/include)
to CMakeLists.txt file, run cmake ..
and make
, it outputs the new error as follows
[ 3%] Building CXX object sse/CMakeFiles/opensse.dir/io/filelist.cpp.o
[ 6%] Building CXX object sse/CMakeFiles/opensse.dir/io/reader_writer.cpp.o
[ 10%] Building CXX object sse/CMakeFiles/opensse.dir/features/util.cpp.o
[ 13%] Building CXX object sse/CMakeFiles/opensse.dir/features/generator.cpp.o
[ 16%] Building CXX object sse/CMakeFiles/opensse.dir/features/detector.cpp.o
[ 20%] Building CXX object sse/CMakeFiles/opensse.dir/features/galif.cpp.o
[ 23%] Building CXX object sse/CMakeFiles/opensse.dir/quantize/quantizer.cpp.o
[ 26%] Building CXX object sse/CMakeFiles/opensse.dir/index/tfidf.cpp.o
[ 30%] Building CXX object sse/CMakeFiles/opensse.dir/index/invertedindex.cpp.o
[ 33%] Linking CXX shared library ../lib/libopensse.dylib
ld: library not found for -lopencv_core
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libopensse.dylib] Error 1
make[1]: *** [sse/CMakeFiles/opensse.dir/all] Error 2
make: *** [all] Error 2
What is the problem?
Hi i have compiled and done as mentioned with instructions applied on only one model Teddy. i receive this issue as soon as i let go of the pen tool on demo. (attached error report)
When tried with non gui tool, similar errors with a jpg format, but png format of the same file worked. Same error as the gui error report . I assume this is expected, but just included to show comparison of error with gui report.
"Assertion failed: (image.type() == CV_8UC3), function compute, file ../../../opensse-master/features/galif.cpp, line 201."
hello:when I try to intall this ,there is an error on progress 52% , can you help me?
[ ubuntu 16.04_x64 ]
[ openCV3.3.0 ]
root@ubuntu:~/programs/opensse-master/release# make
[ 47%] Built target opensse
[ 52%] Building CXX object tools/CMakeFiles/vocabulary.dir/vocabulary.cpp.o
/home/yingshi/programs/opensse-master/tools/vocabulary.cpp:21:29: fatal error: opensse/opensse.h: No such file or directory
compilation terminated.
tools/CMakeFiles/vocabulary.dir/build.make:62: recipe for target 'tools/CMakeFiles/vocabulary.dir/vocabulary.cpp.o' failed
make[2]: *** [tools/CMakeFiles/vocabulary.dir/vocabulary.cpp.o] Error 1
CMakeFiles/Makefile2:150: recipe for target 'tools/CMakeFiles/vocabulary.dir/all' failed
make[1]: *** [tools/CMakeFiles/vocabulary.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Why did u use ny & nx when you generate the Gabor filter.
I'm so confused with that.
Thanks
Dear zdd,
Hi,
I tried to setup your opensse in my virtualmachine, but after make install success, I don't know which port to access this server? I reviewed the dockerfile and see no port there. BTW, I tried via your web version: http://online.opensse.com/ and it also seemed not working now(Figure below).
Could you be kind enough to answer these two questions?
Cheers,
Wang
I unzip the package trianglemesh, and run below :
input:
./linedrawing_project.sh -d data/ -p teddy.off
there are some problems apper, how to fix it?
gives:
QXcbConnection: Failed to initialize XRandr
Qt: XKEYBOARD extension not present on the X server.
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
For building your project, I downloaded and compiled opencv&boost, but now I am in trouble with building GUIDemo when linking with opencv and booat libraries
there are development environment which I build:
I append following text in in my opensse.pri:
INCLUDEPATH += $$PWD \
F:\boost_1_55_0 \
F:\opencv\build\include
LIBS += -LF:\opencv \
-lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_features2d -lopencv_ml\
-LF:\boost_1_55_0\stage\lib \
-lboost_thread -lboost_system
But when I built it, the qt debug output
can not find -lthread-xx
can not find ...
what should I do:C , I haven't used opencv and boost before
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.