से ओपनसीवी चलाना मैं अपने उबंटू सर्वर 12.04 पर वर्चुअलएन्व के अंदर ओपनसीवी स्थापित करने की कोशिश कर रहा हूं। मुझे a thread discussing this मिला लेकिन इससे कोई जानकारी निकालने में कामयाब रहा।एक पायथन वर्चुअलनेव
मैंने pip install pyopencv
का उपयोग करने की कोशिश की लेकिन यह असफल रहा।
...
package/extras/core/ndarray.cpp:598:1: instantiated from here
package/extras/core/ndarray.cpp:546:9: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘Py_intptr_t {aka long int}’ [-Wformat]
package/extras/core/ndarray.cpp: In function ‘boost::python::api::object sdcpp::from_ndarray_impl(const sdcpp::ndarray&) [with T = cv::Scalar_<double>]’:
package/extras/core/ndarray.cpp:601:1: instantiated from here
package/extras/core/ndarray.cpp:546:9: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘Py_intptr_t {aka long int}’ [-Wformat]
package/extras/core/ndarray.cpp: In function ‘boost::python::api::object sdcpp::from_ndarray_impl(const sdcpp::ndarray&) [with T = cv::Range]’:
package/extras/core/ndarray.cpp:604:1: instantiated from here
package/extras/core/ndarray.cpp:546:9: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘Py_intptr_t {aka long int}’ [-Wformat]
error: command 'gcc' failed with exit status 1
यह त्रुटि केवल दूसरी बार मैं pip install
चलाने होता है। अगर मैं remainging build/
फ़ोल्डर को हटा देता हूं तो मुझे यह त्रुटि मिलती है।
-- Configuring incomplete, errors occurred!
Configuring PyOpenCV via CMake...
Error: error occurred while running CMake to configure PyOpenCV.
You may want to manually configure PyOpenCV by running cmake's tools:
mkdir build
cd build
cmake-gui .. OR cmake ..
cd ..
----------------------------------------
Command python setup.py egg_info failed with error code 255
मेरे पास कम से कम निम्नलिखित एपीटी पैकेज स्थापित हैं।
build-essential
uuid-dev
python-dev
python-pip
libpq-dev
cmake
libboost-dev
libcv-dev
libcvaux-dev
libboost-python-dev
libboost1.48-dev
मैं अपने वर्चुअलएव के अंदर ओपनसीवी कैसे स्थापित कर सकता हूं?
मैं इस एक ही समस्या का सामना कर रहा हूँ। मैंने देखा, हालांकि, 'pyopencv' इस प्रोजेक्ट से मेल खाता है http://code.google.com/p/pyopencv/ और ओपनसीवी 2.X –