Giter Site home page Giter Site logo

cardio's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cardio's Issues

make warning!

when I execute "make ", it shows:

cardio.cpp:1780:38: warning: implicit conversion loses integer precision: 'Scalar' (aka 'long') to 'int' [-Wshorten-64-to-32]
__pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_scan_result.predictions(__pyx_v_x)); if (unlikely(!__pyx_t_2)) __PYX_ER...

It seems that your Cython wrap convert 'Scalar' (aka 'long') to 'int', and output wrong card numbers.

Unable to compile under Linux (Debian)

Python 2.7.13

c++ -DCYTHON_DMZ -DSCAN_EXPIRY -Idmz -I/usr/include/python2.7/ pkg-config --libs --cflags opencv-shared dmz/dmz_all.cpp -o libdmz.so In file included from dmz/dmz_all.cpp:30:0: dmz/./scan/n_hseg.cpp: In function ‘NHorizontalSegmentation best_n_hseg_constrained(float*, NVerticalSegmentation, NHorizontalSegmentation, SliceF32, SliceU16)’: dmz/./scan/n_hseg.cpp:50:30: error: ‘UINT16_MAX’ was not declared in this scope dmz/./scan/n_hseg.cpp: In function ‘NHorizontalSegmentation best_n_hseg(IplImage*, NVerticalSegmentation)’: dmz/./scan/n_hseg.cpp:114:22: error: ‘UINT16_MAX’ was not declared in this scope In file included from dmz/dmz_all.cpp:39:0: dmz/./scan/expiry_seg.cpp: In function ‘void regrid_group(IplImage*, GroupedRects&)’: dmz/./scan/expiry_seg.cpp:182:22: error: ‘MAXFLOAT’ was not declared in this scope dmz/./scan/expiry_seg.cpp: In function ‘void best_expiry_seg(IplImage*, uint16_t, GroupedRectsList&, GroupedRectsList&)’: dmz/./scan/expiry_seg.cpp:804:10: warning: name lookup of ‘row’ changed [enabled by default] dmz/./scan/expiry_seg.cpp:794:7: warning: matches this ‘row’ under ISO standard rules [enabled by default] dmz/./scan/expiry_seg.cpp:798:14: warning: matches this ‘row’ under old rules [enabled by default] make: *** [libdmz.so] Error 1

segmentation fault

when I execute " python run.py ", it shows:

Image size: (640, 480)
Focus score: 16.8508834839
Card detected: True
Found all edges: True
[1] 16942 segmentation fault python run.py

os x10.11 python 2.7.11

Undefined symbols for architecture x86_64: "cv::Exception::Exception ...

Hi!
I have been trying to compile this project and run the python script on macOS Sierra (macOS 10.12.6) with a Darwin 16.7.0 Kernel, with the latest opencv version installed by brew, but I got this error

MacBook-Air-de-Leandro:cardio leandro$ make
g++ -v -DCYTHON_DMZ -DSCAN_EXPIRY -Idmz -I/usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7/include/python2.7/ pkg-config --cflags --libs --static /usr/local/Cellar/opencv/3.4.1_4/lib/pkgconfig/opencv.pc -shared dmz/dmz_all.cpp -o libdmz.so
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
"/Library/Developer/CommandLineTools/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.12.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name dmz_all.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu penryn -target-linker-version 278.4 -v -dwarf-column-info -debugger-tuning=lldb -resource-dir /Library/Developer/CommandLineTools/usr/bin/../lib/clang/8.1.0 -D CYTHON_DMZ -D SCAN_EXPIRY -I dmz -I /usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7/include/python2.7/ -I /usr/local/Cellar/opencv/3.4.1_4/include/opencv -I /usr/local/Cellar/opencv/3.4.1_4/include -c-isystem /System/Library/Frameworks/Python.framework/Headers -cxx-isystem /System/Library/Frameworks/Python.framework/Headers -stdlib=libc++ -fdeprecated-macro -fdebug-compilation-dir /Users/leandro/Desarrollos/cardio -ferror-limit 19 -fmessage-length 141 -stack-protector 1 -fblocks -fobjc-runtime=macosx-10.12.0 -fencode-extended-block-signature -fcxx-exceptions -fexceptions -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/jn/9cg7b7l91jb480gvfhys1sfm0000gn/T/dmz_all-3d7a90.o -x c++ dmz/dmz_all.cpp
clang -cc1 version 8.1.0 (clang-802.0.42) default target x86_64-apple-darwin16.7.0
ignoring nonexistent directory "/usr/include/c++/v1"
#include "..." search starts here:
#include <...> search starts here:
dmz
/usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7/include/python2.7
/usr/local/Cellar/opencv/3.4.1_4/include/opencv
/usr/local/Cellar/opencv/3.4.1_4/include
/System/Library/Frameworks/Python.framework/Headers
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1
/usr/local/include
/Library/Developer/CommandLineTools/usr/bin/../lib/clang/8.1.0/include
/Library/Developer/CommandLineTools/usr/include
/usr/include
/System/Library/Frameworks (framework directory)
/Library/Frameworks (framework directory)
End of search list.
"/Library/Developer/CommandLineTools/usr/bin/ld" -demangle -lto_library /Library/Developer/CommandLineTools/usr/lib/libLTO.dylib -no_deduplicate -dynamic -dylib -arch x86_64 -macosx_version_min 10.12.0 -o libdmz.so -L/usr/local/Cellar/opencv/3.4.1_4/lib -L/usr/local/lib -lopencv_stitching -lopencv_superres -lopencv_videostab -lopencv_aruco -lopencv_bgsegm -lopencv_bioinspired -lopencv_ccalib -lopencv_dnn_objdetect -lopencv_dpm -lopencv_face -lopencv_photo -lopencv_fuzzy -lopencv_hfs -lopencv_img_hash -lopencv_line_descriptor -lopencv_optflow -lopencv_reg -lopencv_rgbd -lopencv_saliency -lopencv_stereo -lopencv_structured_light -lopencv_phase_unwrapping -lopencv_surface_matching -lopencv_tracking -lopencv_datasets -lopencv_dnn -lopencv_plot -lopencv_xfeatures2d -lopencv_shape -lopencv_video -lopencv_ml -lopencv_ximgproc -lopencv_calib3d -lopencv_features2d -lopencv_highgui -lopencv_videoio -lopencv_flann -lopencv_xobjdetect -lopencv_imgcodecs -lopencv_objdetect -lopencv_xphoto -lopencv_imgproc -lopencv_core -ltbb /var/folders/jn/9cg7b7l91jb480gvfhys1sfm0000gn/T/dmz_all-3d7a90.o -lc++ -lSystem /Library/Developer/CommandLineTools/usr/bin/../lib/clang/8.1.0/lib/darwin/libclang_rt.osx.a
Undefined symbols for architecture x86_64:
"cv::Exception::Exception(int, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, int)", referenced from:
llcv_hough(void const*, _IplImage*, _IplImage*, float, float, int, float, float, bool, float) in dmz_all-3d7a90.o
llcv_canny7_precomputed_sobel(_IplImage*, _IplImage*, _IplImage*, _IplImage*, double, double) in dmz_all-3d7a90.o
llcv_equalize_hist(_IplImage const*, _IplImage*) in dmz_all-3d7a90.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [libdmz.so] Error 1

I would like to know how to complile the project to use cardio in my Mac

Thanks!

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.