-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SIGSEGV when creating a Detector #21
Comments
Hi, pkg-config --cflags opencv pkg-config --libs opencv If they say that they cannot find opencv, then there is an issue with your OpenCV installation. Maybe you did not follow the |
Thank you for your answer. The problem seems to be concerning the way python is accessing the libraries. The main problem remains, the segfault when trying to create a Detector |
Ok it is truly my fault. I used 3 parameters instead of 4, forgetting that the third is a 0. Thus with 3 bytes as parameters it was logically crashing. went from net = Detector(bytes("cfg/yolov3.cfg", encoding="utf-8"), bytes("weights/yolov3.weights", encoding="utf-8"), bytes("cfg/coco.data",encoding="utf-8")) to net = Detector(bytes("cfg/yolov3.cfg", encoding="utf-8"), bytes("weights/yolov3.weights", encoding="utf-8"), 0, bytes("cfg/coco.data",encoding="utf-8")) Thank you for your time, |
Hi !
First, thank you for your work !
I was first using the darknet python script, but with really poor performances. As yours seems better I am trying to use it but get a segfault each time I try to instantiate a Detector.
I have first installed your lib through PyPi, but it did not work. Then building it from source with my own build of Darknet, was successful when installing, but not working on execution, with always a segfault error. Apparently after running valgrind it may concern memory allocation ...
Do you have any idea ...?
Also, when building I always have the error (no matter the way I build, seems logical) from ld :
/usr/bin/ld: cannot find -lopencv_stitching -lopencv_superres -lopencv_videostab -lopencv_aruco -lopencv_bgsegm -lopencv_bioinspired -lopencv_ccalib -lopencv_dnn_objdetect -lopencv_dpm -lopencv_face -lopencv_photo -lopencv_freetype -lopencv_fuzzy -lopencv_hdf -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_text -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
while all of my opencv libs are correct and accessible (just compiled darknet manually with it). However, when I enter myself the command line to compile it works. Do you know if python has any problems with rights or paths in order to link C libs ?
Thank you ...
The text was updated successfully, but these errors were encountered: