Giter Club home page Giter Club logo

opensse's Introduction

你好 👋

  • 📙 Focusing on Swift & iOS
  • ✍️ Blogger
  • 🔨 Creator of OpenSSE
  • 🍎 Fruit lover

Download my App:

opensse's People

Contributors

gitter-badger avatar zddhub avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

opensse's Issues

There is problem when I run “./linedrawing_project.sh -d data/ -p teddy.off”.

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

via which port should access this server?

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).
QQ截图20190708171802
Could you be kind enough to answer these two questions?

Cheers,
Wang

Linking with Boost library

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:

  • In function boost::thread::start_thread():
  • Undefined reference to boost::thread::start_thread_noexcept()
  • In function boost::thread::join():
    • Undefined reference to boost::thread::join_noexcept()
  • collect2: error: ld returned 1 exit status

error occurring with compiling

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:

  • windows10
  • qtcreator5.0.0
  • opencv 2.4.9
  • boost_1_55_0

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

fatal error ,when excute make

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

Some installation errors

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?

SketchSearchDemo causes segmentation fault: 11

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?

crashing on mac (reports included)

issue.txt

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."

screen shot 2017-02-12 at 17 48 49

Runtime error

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?

.

.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.