Comments (2)
Hi,
This is because OpenCV requries -std=c++11
compiler flag. To fix, try the following:
At the line 33 of setup.py file, add the following two lines:
extra_compile_args += ["-std=c++11"]
extra_link_args += ["-std=c++11"]
Let me know if this works.
from yolo3-4-py.
hey @madhawav similar error.
#31 2.855 /usr/lib/python3/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#31 2.855 #warning "Using deprecated NumPy API, disable it by "
#31 2.855 ^
#31 2.855 pydarknet.cpp: In function 'int pyx_pf_9pydarknet_5Image___cinit(__pyx_obj_9pydarknet_Image*, PyArrayObject*)':
#31 2.855 pydarknet.cpp:2307:3: error: 'Mat' was not declared in this scope
#31 2.855 Mat __pyx_v_m;
#31 2.855 ^
#31 2.855 pydarknet.cpp:2307:3: note: suggested alternative:
#31 2.855 In file included from /usr/local/include/opencv2/core.hpp:59:0,
#31 2.855 from /usr/local/include/opencv2/opencv.hpp:52,
#31 2.855 from bridge.h:59,
#31 2.855 from pydarknet.cpp:640:
#31 2.855 /usr/local/include/opencv2/core/mat.hpp:779:18: note: 'cv::Mat'
#31 2.855 class CV_EXPORTS Mat
#31 2.855 ^
#31 2.855 pydarknet.cpp:2433:3: error: '__pyx_v_m' was not declared in this scope
#31 2.855 __pyx_v_m.create(__pyx_v_r, __pyx_v_c, CV_8UC3);
#31 2.855 ^
#31 2.855 error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
#31 2.855
#31 2.855 ------
from yolo3-4-py.
Related Issues (20)
- get error when i install yolo34py in Windows 8 pro HOT 1
- running yolov4 HOT 1
- Error installing from both pip and source HOT 5
- Disable architecture printing HOT 1
- batch inference HOT 1
- ModuleNotFoundError: No module named 'numpy' HOT 1
- does it work with yolov4? HOT 2
- Ubuntu 20.4 installation error HOT 1
- FileNotFoundError: pkg-config, pkg-config HOT 1
- ImportError: No module named pydarknet HOT 5
- Proxy issue in downloading https://github.com/madhawav/darknet while installing YOLO34PY using PIP HOT 1
- crashes on colab using custom weights/config HOT 2
- Trouble installing pip install yolo34py-gpu HOT 1
- Errors in "pip3 install yolo34py-gpu" HOT 1
- Segmentation Fault when running custom model HOT 1
- Error when pip installing
- Installation with newer GCC not working HOT 1
- Error pip installing yolo34py on windows
- Google Colab crashed when I was running the Detector HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yolo3-4-py.