graingert / pyopencv Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/pyopencv
Automatically exported from code.google.com/p/pyopencv
Hello!
When I download revisions up to 253 and try to import pyopencv from
'win32_dist_py2.6' it works normally. But since rev254 import fails.
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
File "D:\system\Desktop\py_354\win32_dist_py2.6\pyopencv\__init__.py",
line 26, in <module>
from pyopencvext import *
ImportError: DLL load failed: The specified module could not be found.
Operating system & environment: WinVista, python 2.6.
Original issue reported on code.google.com by [email protected]
on 20 Jan 2010 at 9:52
Hi,
When i run "python setup.py build" on ubuntu 8.04 , build fails
Steps followed;
1. Downloaded OpenCV2.1.0 performed make and make install--> no issues
2. Download Boost.Python version 1.41.0
3. Manually downloaded bjam from sourceforge
3. Downloaded pyopencv via svn checkout
http://pyopencv.googlecode.com/svn/trunk/ pyopencv-read-only
4. created config.py as per example ie
"
import os
from glob import glob
# OpenCV 2.x library, to be linked against using bjam+gcc
opencv_dir = "/usr/local"
opencv_include_dirs = [opencv_dir+"/include/opencv"]
opencv_library_dirs = [opencv_dir+"/lib"]
opencv_libraries = ["highgui", "ml", "cvaux", "cv", "cxcore"]
opencv_runtime_library_dirs = []
opencv_runtime_libraries_to_be_bundled = []
# Boost library's source distribution, to be linked against using bjam+gcc
and bundled with
boost_include_dirs = ["/home/paul/boost_1_41_0"]
boost_library_dirs = []
boost_libraries = []
boost_runtime_library_dirs = []
boost_runtime_libraries_to_be_bundled = []
"
5. ran python setup.py install but got build error. Part of the errors
follow below :
running build_py
copying pyopencv/config.py -> build/lib.linux-i686-2.6/pyopencv
running build_ext
building 'pyopencv.pyopencvext' extension
bjam release test link=static
notice: no Python configured in user-config.jam
notice: will use default configuration
...patience...
...patience...
...found 2665 targets...
...updating 252 targets...
gcc.compile.c++ bin/gcc-4.3.3/release/link-
static/pyopencv/pyopencvext/lsh_hash.pypp.o
In file included from
/home/paul/boost_1_41_0/boost/python/detail/prefix.hpp:13,
from /home/paul/boost_1_41_0/boost/python/args.hpp:8,
from /home/paul/boost_1_41_0/boost/python.hpp:11,
from pyopencv/pyopencvext/lsh_hash.pypp.cpp:3:
/home/paul/boost_1_41_0/boost/python/detail/wrap_python.hpp:75:24: error:
patchlevel.h: No such file or directory
/home/paul/boost_1_41_0/boost/python/detail/wrap_python.hpp:78:2: error:
#error Python 2.2 or higher is required for this version of Boost.Python.
/home/paul/boost_1_41_0/boost/python/detail/wrap_python.hpp:142:21: error:
Python.h: No such file or directory
/home/paul/boost_1_41_0/boost/python/detail/wrap_python.hpp:203:4: error:
#error "HAVE_LONG_LONG defined but not PY_LONG_LONG or LONG_LONG"
In file included from /home/paul/boost_1_41_0/boost/python/cast.hpp:13,
from /home/paul/boost_1_41_0/boost/python/handle.hpp:10,
from /home/paul/boost_1_41_0/boost/python/args_fwd.hpp:10,
from /home/paul/boost_1_41_0/boost/python/args.hpp:10,
from /home/paul/boost_1_41_0/boost/python.hpp:11,
from pyopencv/pyopencvext/lsh_hash.pypp.cpp:3:
/home/paul/boost_1_41_0/boost/python/base_type_traits.hpp:24: error:
‘PyObject’ was not declared in this scope
/home/paul/boost_1_41_0/boost/python/base_type_traits.hpp:24: error:
template argument 1 is invalid
/home/paul/boost_1_41_0/boost/python/base_type_traits.hpp:30: error:
‘PyTypeObject’ was not declared in this scope
/home/paul/boost_1_41_0/boost/python/base_type_traits.hpp:30: error:
template argument 1 is invalid
/home/paul/boost_1_41_0/boost/python/base_type_traits.hpp:36: error:
‘PyMethodObject’ was not declared in this scope
/home/paul/boost_1_41_0/boost/python/base_type_traits.hpp:36: error:
template argument 1 is invalid
In file included from /home/paul/boost_1_41_0/boost/python/handle.hpp:11,
from /home/paul/boost_1_41_0/boost/python/args_fwd.hpp:10,
from /home/paul/boost_1_41_0/boost/python/args.hpp:10,
from /home/paul/boost_1_41_0/boost/python.hpp:11,
from pyopencv/pyopencvext/lsh_hash.pypp.cpp:3:
/home/paul/boost_1_41_0/boost/python/errors.hpp:51: error: expected
constructor, destructor, or type conversion before ‘*’ token
In file included from /home/paul/boost_1_41_0/boost/python/handle.hpp:13,
from /home/paul/boost_1_41_0/boost/python/args_fwd.hpp:10,
from /home/paul/boost_1_41_0/boost/python/args.hpp:10,
from /home/paul/boost_1_41_0/boost/python.hpp:11,
from pyopencv/pyopencvext/lsh_hash.pypp.cpp:3:
/home/paul/boost_1_41_0/boost/python/handle_fwd.hpp:12: error: expected
type-specifier before ‘PyObject’
/home/paul/boost_1_41_0/boost/python/handle_fwd.hpp:12: error: expected ‘>’
before ‘PyObject’
In file included from /home/paul/boost_1_41_0/boost/python/handle.hpp:14,
from /home/paul/boost_1_41_0/boost/python/args_fwd.hpp:10,
from /home/paul/boost_1_41_0/boost/python/args.hpp:10,
from /home/paul/boost_1_41_0/boost/python.hpp:11,
from pyopencv/pyopencvext/lsh_hash.pypp.cpp:3:
/home/paul/boost_1_41_0/boost/python/refcount.hpp: In function ‘T*
boost::python::incref(T*)’:
/home/paul/boost_1_41_0/boost/python/refcount.hpp:16: error: ‘PyObject’ was
not declared in this scope
/home/paul/boost_1_41_0/boost/python/refcount.hpp: In function ‘T*
boost::python::xincref(T*)’:
/home/paul/boost_1_41_0/boost/python/refcount.hpp:23: error: ‘PyObject’ was
not declared in this scope
/home/paul/boost_1_41_0/boost/python/refcount.hpp: In function ‘void
boost::python::decref(T*)’:
/home/paul/boost_1_41_0/boost/python/refcount.hpp:30: error: ‘PyObject’ was
not declared in this scope
/home/paul/boost_1_41_0/boost/python/refcount.hpp: In function ‘void
boost::python::xdecref(T*)’:
/home/paul/boost_1_41_0/boost/python/refcount.hpp:36: error: ‘PyObject’ was
not declared in this scope
In file included from /home/paul/boost_1_41_0/boost/python/args_fwd.hpp:10,
from /home/paul/boost_1_41_0/boost/python/args.hpp:10,
from /home/paul/boost_1_41_0/boost/python.hpp:11,
from pyopencv/pyopencvext/lsh_hash.pypp.cpp:3:
/home/paul/boost_1_41_0/boost/python/handle.hpp: In constructor
‘boost::python::handle<T>::handle(boost::python::detail::borrowed_reference
_t*)’:
/home/paul/boost_1_41_0/boost/python/handle.hpp:130: error: ‘PyObject’ was
not declared in this scope
/home/paul/boost_1_41_0/boost/python/handle.hpp:130: error: expected
primary-expression before ‘)’ token
/home/paul/boost_1_41_0/boost/python/handle.hpp: At global scope:
/home/paul/boost_1_41_0/boost/python/handle.hpp:157: error: ‘PyTypeObject’
was not declared in this scope
/home/paul/boost_1_41_0/boost/python/handle.hpp:157: error: template
argument 1 is invalid
/home/paul/boost_1_41_0/boost/python/handle.hpp:157: error: invalid type in
declaration before ‘;’ token
/home/paul/boost_1_41_0/boost/python/handle.hpp:256: error: expected
initializer before ‘*’ token
In file included from /home/paul/boost_1_41_0/boost/python/args.hpp:10,
from /home/paul/boost_1_41_0/boost/python.hpp:11,
from pyopencv/pyopencvext/lsh_hash.pypp.cpp:3:
/home/paul/boost_1_41_0/boost/python/args_fwd.hpp:26: error: template
argument 1 is invalid
In file included from
/home/paul/boost_1_41_0/boost/python/object/pointer_holder.hpp:14,
from
/home/paul/boost_1_41_0/boost/python/to_python_indirect.hpp:10,
from
/home/paul/boost_1_41_0/boost/python/converter/arg_to_python.hpp:10,
from /home/paul/boost_1_41_0/boost/python/call.hpp:15,
from
/home/paul/boost_1_41_0/boost/python/object_core.hpp:12,
from /home/paul/boost_1_41_0/boost/python/args.hpp:25,
from /home/paul/boost_1_41_0/boost/python.hpp:11,
from pyopencv/pyopencvext/lsh_hash.pypp.cpp:3:
/home/paul/boost_1_41_0/boost/python/instance_holder.hpp:34: error:
‘PyObject’ has not been declared
/home/paul/boost_1_41_0/boost/python/instance_holder.hpp:41: error:
expected ‘;’ before ‘(’ token
/home/paul/boost_1_41_0/boost/python/instance_holder.hpp:45: error:
‘PyObject’ has not been declared
In file included from
/home/paul/boost_1_41_0/boost/python/object/pointer_holder.hpp:21,
from
/home/paul/boost_1_41_0/boost/python/to_python_indirect.hpp:10,
from
/home/paul/boost_1_41_0/boost/python/converter/arg_to_python.hpp:10,
from /home/paul/boost_1_41_0/boost/python/call.hpp:15,
from
/home/paul/boost_1_41_0/boost/python/object_core.hpp:12,
from /home/paul/boost_1_41_0/boost/python/args.hpp:25,
from /home/paul/boost_1_41_0/boost/python.hpp:11,
from pyopencv/pyopencvext/lsh_hash.pypp.cpp:3:
/home/paul/boost_1_41_0/boost/python/detail/wrapper_base.hpp:21: error:
expected initializer before ‘*’ token
/home/paul/boost_1_41_0/boost/python/detail/wrapper_base.hpp:23: error:
expected initializer before ‘*’ token
/home/paul/boost_1_41_0/boost/python/detail/wrapper_base.hpp:30: error:
expected initializer before ‘*’ token
/home/paul/boost_1_41_0/boost/python/detail/wrapper_base.hpp:34: error:
expected initializer before ‘*’ token
/home/paul/boost_1_41_0/boost/python/detail/wrapper_base.hpp:43: error:
‘PyObject’ has not been declared
/home/paul/boost_1_41_0/boost/python/detail/wrapper_base.hpp:44: error: ISO
C++ forbids declaration of ‘PyObject’ with no type
/home/paul/boost_1_41_0/boost/python/detail/wrapper_base.hpp:44: error:
‘PyObject’ is neither function nor member function; cannot be declared
friend
/home/paul/boost_1_41_0/boost/python/detail/wrapper_base.hpp:44: error:
expected ‘;’ before ‘*’ token
/home/paul/boost_1_41_0/boost/python/detail/wrapper_base.hpp:49: error:
‘PyTypeObject’ has not been declared
/home/paul/boost_1_41_0/boost/python/detail/wrapper_base.hpp:55: error: ISO
C++ forbids declaration of ‘PyObject’ with no type
/home/paul/boost_1_41_0/boost/python/detail/wrapper_base.hpp:55: error:
expected ‘;’ before ‘*’ token
/home/paul/boost_1_41_0/boost/python/detail/wrapper_base.hpp: In
constructor ‘boost::python::detail::wrapper_base::wrapper_base()’:
/home/paul/boost_1_41_0/boost/python/detail/wrapper_base.hpp:46: error:
class ‘boost::python::detail::wrapper_base’ does not have any field named
‘m_self’
/home/paul/boost_1_41_0/boost/python/detail/wrapper_base.hpp: At global
scope:
/home/paul/boost_1_41_0/boost/python/detail/wrapper_base.hpp:61: error:
expected initializer before ‘*’ token
/home/paul/boost_1_41_0/boost/python/detail/wrapper_base.hpp:71: error:
expected initializer before ‘*’ token
/home/paul/boost_1_41_0/boost/python/detail/wrapper_base.hpp:77: error:
variable or field ‘initialize_wrapper’ declared void
/home/paul/boost_1_41_0/boost/python/detail/wrapper_base.hpp:77: error:
‘PyObject’ was not declared in this scope
/home/paul/boost_1_41_0/boost/python/detail/wrapper_base.hpp:77: error:
‘self’ was not declared in this scope
/home/paul/boost_1_41_0/boost/python/detail/wrapper_base.hpp:77: error:
expected primary-expression before ‘*’ token
/home/paul/boost_1_41_0/boost/python/detail/wrapper_base.hpp:77: error: ‘w’
was not declared in this scope
/home/paul/boost_1_41_0/boost/python/detail/wrapper_base.hpp:82: error:
variable or field ‘initialize_wrapper’ declared void
/home/paul/boost_1_41_0/boost/python/detail/wrapper_base.hpp:82: error:
‘PyObject’ was not declared in this scope
/home/paul/boost_1_41_0/boost/python/detail/wrapper_base.hpp:82: error:
expected primary-expression before ‘,’ token
/home/paul/boost_1_41_0/boost/python/detail/wrapper_base.hpp:82: error:
expected primary-expression before ‘...’ token
In file included from
/home/paul/boost_1_41_0/boost/preprocessor/iteration/detail/iter/forward1.h
pp:47,
from
/home/paul/boost_1_41_0/boost/python/object/pointer_holder.hpp:63,
from
/home/paul/boost_1_41_0/boost/python/to_python_indirect.hpp:10,
from
/home/paul/boost_1_41_0/boost/python/converter/arg_to_python.hpp:10,
from /home/paul/boost_1_41_0/boost/python/call.hpp:15,
from
/home/paul/boost_1_41_0/boost/python/object_core.hpp:12,
from /home/paul/boost_1_41_0/boost/python/args.hpp:25,
from /home/paul/boost_1_41_0/boost/python.hpp:11,
from pyopencv/pyopencvext/lsh_hash.pypp.cpp:3:
/home/paul/boost_1_41_0/boost/python/object/pointer_holder.hpp:186: error:
expected `)' before ‘*’ token
In file included from
/home/paul/boost_1_41_0/boost/preprocessor/iteration/detail/iter/forward1.h
pp:52,
from
/home/paul/boost_1_41_0/boost/python/object/pointer_holder.hpp:63,
from
/home/paul/boost_1_41_0/boost/python/to_python_indirect.hpp:10,
from
/home/paul/boost_1_41_0/boost/python/converter/arg_to_python.hpp:10,
from /home/paul/boost_1_41_0/boost/python/call.hpp:15,
from
/home/paul/boost_1_41_0/boost/python/object_core.hpp:12,
from /home/paul/boost_1_41_0/boost/python/args.hpp:25,
from /home/paul/boost_1_41_0/boost/python.hpp:11,
from pyopencv/pyopencvext/lsh_hash.pypp.cpp:3:
/home/paul/boost_1_41_0/boost/python/object/pointer_holder.hpp:186: error:
expected `)' before ‘*’ token
In file included from
/home/paul/boost_1_41_0/boost/preprocessor/iteration/detail/iter/forward1.h
pp:57,
from
/home/paul/boost_1_41_0/boost/python/object/pointer_holder.hpp:63,
from
/home/paul/boost_1_41_0/boost/python/to_python_indirect.hpp:10,
from
/home/paul/boost_1_41_0/boost/python/converter/arg_to_python.hpp:10,
from /home/paul/boost_1_41_0/boost/python/call.hpp:15,
from
/home/paul/boost_1_41_0/boost/python/object_core.hpp:12,
from /home/paul/boost_1_41_0/boost/python/args.hpp:25,
from /home/paul/boost_1_41_0/boost/python.hpp:11,
from pyopencv/pyopencvext/lsh_hash.pypp.cpp:3:
/home/paul/boost_1_41_0/boost/python/object/pointer_holder.hpp:186: error:
expected `)' before ‘*’ token
In file included from
/home/paul/boost_1_41_0/boost/preprocessor/iteration/detail/iter/forward1.h
pp:62,
from
/home/paul/boost_1_41_0/boost/python/object/pointer_holder.hpp:63,
from
/home/paul/boost_1_41_0/boost/python/to_python_indirect.hpp:10,
from
/home/paul/boost_1_41_0/boost/python/converter/arg_to_python.hpp:10,
from /home/paul/boost_1_41_0/boost/python/call.hpp:15,
from
/home/paul/boost_1_41_0/boost/python/object_core.hpp:12,
from /home/paul/boost_1_41_0/boost/python/args.hpp:25,
from /home/paul/boost_1_41_0/boost/python.hpp:11,
from pyopencv/pyopencvext/lsh_hash.pypp.cpp:3:
/home/paul/boost_1_41_0/boost/python/object/pointer_holder.hpp:186: error:
expected `)' before ‘*’ token
In file included from
/home/paul/boost_1_41_0/boost/preprocessor/iteration/detail/iter/forward1.h
pp:67,
from
/home/paul/boost_1_41_0/boost/python/object/pointer_holder.hpp:63,
from
/home/paul/boost_1_41_0/boost/python/to_python_indirect.hpp:10,
from
/home/paul/boost_1_41_0/boost/python/converter/arg_to_python.hpp:10,
from /home/paul/boost_1_41_0/boost/python/call.hpp:15,
from
/home/paul/boost_1_41_0/boost/python/object_core.hpp:12,
from /home/paul/boost_1_41_0/boost/python/args.hpp:25,
from /home/paul/boost_1_41_0/boost/python.hpp:11,
from pyopencv/pyopencvext/lsh_hash.pypp.cpp:3:
/home/paul/boost_1_41_0/boost/python/object/pointer_holder.hpp:186: error:
expected `)' before ‘*’ token
In file included from
/home/paul/boost_1_41_0/boost/preprocessor/iteration/detail/iter/forward1.h
pp:72,
from
/home/paul/boost_1_41_0/boost/python/object/pointer_holder.hpp:63,
from
/home/paul/boost_1_41_0/boost/python/to_python_indirect.hpp:10,
from
/home/paul/boost_1_41_0/boost/python/converter/arg_to_python.hpp:10,
from /home/paul/boost_1_41_0/boost/python/call.hpp:15,
from
/home/paul/boost_1_41_0/boost/python/object_core.hpp:12,
from /home/paul/boost_1_41_0/boost/python/args.hpp:25,
from /home/paul/boost_1_41_0/boost/python.hpp:11,
from pyopencv/pyopencvext/lsh_hash.pypp.cpp:3:
/home/paul/boost_1_41_0/boost/python/object/pointer_holder.hpp:186: error:
expected `)' before ‘*’ token
In file included from
/home/paul/boost_1_41_0/boost/preprocessor/iteration/detail/iter/forward1.h
pp:77,
from
/home/paul/boost_1_41_0/boost/python/object/pointer_holder.hpp:63,
from
/home/paul/boost_1_41_0/boost/python/to_python_indirect.hpp:10,
from
/home/paul/boost_1_41_0/boost/python/converter/arg_to_python.hpp:10,
from /home/paul/boost_1_41_0/boost/python/call.hpp:15,
from
/home/paul/boost_1_41_0/boost/python/object_core.hpp:12,
from /home/paul/boost_1_41_0/boost/python/args.hpp:25,
from /home/paul/boost_1_41_0/boost/python.hpp:11,
from pyopencv/pyopencvext/lsh_hash.pypp.cpp:3:
/home/paul/boost_1_41_0/boost/python/object/pointer_holder.hpp:186: error:
expected `)' before ‘*’ token
In file included from
/home/paul/boost_1_41_0/boost/preprocessor/iteration/detail/iter/forward1.h
pp:82,
from
/home/paul/boost_1_41_0/boost/python/object/pointer_holder.hpp:63,
from
/home/paul/boost_1_41_0/boost/python/to_python_indirect.hpp:10,
from
Original issue reported on code.google.com by [email protected]
on 13 Apr 2010 at 1:26
What steps will reproduce the problem?
1. use HOGDescriptor in pyopencv to computeGradient
2. python throws the exception:"HOGDescriptor.computeGradient(hog, img,
gradmat, angmat)
Boost.Python.ArgumentError: Python argument types in
HOGDescriptor.computeGradient(HOGDescriptor, Mat, function, function)
did not match C++ signature:
computeGradient(HOGDescriptor_wrapper {lvalue}, cv::Mat img, cv::Mat {lvalue} grad, cv::Mat {lvalue} angleOfs, cv::Size_<int> paddingTL=Size2i(width=0, height=0), cv::Size_<int> paddingBR=Size2i(width=0, height=0))
computeGradient(cv::HOGDescriptor {lvalue}, cv::Mat img, cv::Mat {lvalue} grad, cv::Mat {lvalue} angleOfs, cv::Size_<int> paddingTL=Size2i(width=0, height=0), cv::Size_<int> paddingBR=Size2i(width=0, height=0))
"
3. I think the problem will be use Mat in argument...so how to use Mat in
python as argument in response with cv:Mat reference in c++?
What is the expected output? What do you see instead?
get the gradient of the input image
What version of the product are you using? On what operating system?
python 2.6.5
opencv 2.0
win 7 32 bit
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 2 Sep 2010 at 8:31
What steps will reproduce the problem?
1. Trying to build latest pyopencv from svn (rev 864)
2.
3.
What is the expected output? What do you see instead?
Compilation is failing for a few files with errors such as:
pyopencv/pyopencvext/Vec4w.pypp.cpp: In function ‘void
register_Vec4w_class()’:
pyopencv/pyopencvext/Vec4w.pypp.cpp:85: error: address of overloaded
function with no contextual type information
What version of the product are you using? On what operating system?
Revision 864 from trunk, in Ubuntu 10.04.
Please provide any additional information below.
Still searching for solutions to this problem. Will post if I find
anything.
Original issue reported on code.google.com by n13m3y3r
on 5 May 2010 at 6:27
What steps will reproduce the problem?
1. Install on Windows with Python26
2. Copy the "pedestrians" image from the home page.
3. Run the pedestrian detector example
What is the expected output? What do you see instead?
It should show and mark the image.
It crashes. Windows dialog says "pythonw has encountered a problem". The
error report fingers libcvaux210.dll.
What version of the product are you using? On what operating system?
pyopencv-2.1.0.wr1.2.0.win32-py2.6.exe (September 25, 2010)
Windows XP 32bit, fresh install of MinGW, reinstall of Python2.6.
Please provide any additional information below.
New to OpenCV. Trying pyopencv because I have been unable to get OpenCV to
compile well enough to run examples. (Tests yes, examples no.)
Original issue reported on code.google.com by [email protected]
on 29 Sep 2010 at 9:50
What steps will reproduce the problem?
1.svn checkout http://pyopencv.googlecode.com/svn/trunk/src/ pyopencv
2.python setup.py config
3.python setup.py build
What is the expected output? What do you see instead?
running build
running build_py
creating build/lib.linux-i686-2.5
creating build/lib.linux-i686-2.5/pyopencv
copying package/pyopencv/cxcore_hpp.py -> build/lib.linux-i686-2.5/pyopencv
copying package/pyopencv/common.py -> build/lib.linux-i686-2.5/pyopencv
copying package/pyopencv/cxcore_h.py -> build/lib.linux-i686-2.5/pyopencv
copying package/pyopencv/interfaces.py -> build/lib.linux-i686-2.5/pyopencv
copying package/pyopencv/cxerror_h.py -> build/lib.linux-i686-2.5/pyopencv
copying package/pyopencv/info.py -> build/lib.linux-i686-2.5/pyopencv
copying package/pyopencv/cvver_h.py -> build/lib.linux-i686-2.5/pyopencv
copying package/pyopencv/__init__.py -> build/lib.linux-i686-2.5/pyopencv
copying package/pyopencv/cvtypes_h.py -> build/lib.linux-i686-2.5/pyopencv
copying package/pyopencv/cxcore_hpp_point.py ->
build/lib.linux-i686-2.5/pyopencv
copying package/pyopencv/cxtypes_h.py -> build/lib.linux-i686-2.5/pyopencv
copying package/pyopencv/ml.py -> build/lib.linux-i686-2.5/pyopencv
copying package/pyopencv/cv_hpp.py -> build/lib.linux-i686-2.5/pyopencv
copying package/pyopencv/cv_h.py -> build/lib.linux-i686-2.5/pyopencv
copying package/pyopencv/sdopencv.py -> build/lib.linux-i686-2.5/pyopencv
copying package/pyopencv/config.py -> build/lib.linux-i686-2.5/pyopencv
copying package/pyopencv/highgui.py -> build/lib.linux-i686-2.5/pyopencv
copying package/pyopencv/cvaux.py -> build/lib.linux-i686-2.5/pyopencv
copying package/pyopencv/cxcore_hpp_vec.py -> build/lib.linux-i686-2.5/pyopencv
running egg_info
creating package/pyopencv.egg-info
writing requirements to package/pyopencv.egg-info/requires.txt
writing package/pyopencv.egg-info/PKG-INFO
writing top-level names to package/pyopencv.egg-info/top_level.txt
writing dependency_links to package/pyopencv.egg-info/dependency_links.txt
writing manifest file 'package/pyopencv.egg-info/SOURCES.txt'
writing manifest file 'package/pyopencv.egg-info/SOURCES.txt'
running build_ext
building 'pyopencv.pyopencv_extras' extension
creating build/temp.linux-i686-2.5
creating build/temp.linux-i686-2.5/package
creating build/temp.linux-i686-2.5/package/extras
creating build/temp.linux-i686-2.5/package/extras/core
creating build/temp.linux-i686-2.5/package/extras/sdopencv
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I/usr/include/python2.5 -I/usr/include
-I/usr/local/include/opencv -I/home/user/pyopencv/package
-I/home/user/pyopencv/package/extras -I/home/user/pyopencv/package/extras/core
-I/home/user/pyopencv/package/extras/sdopencv
-I/usr/lib/python2.5/site-packages/numpy/core/include/numpy
-I/usr/include/python2.5 -c package/extras/core/ndarray.cpp -o
build/temp.linux-i686-2.5/package/extras/core/ndarray.o -O3 -DNDEBUG -O3
-ffast-math -mfpmath=387 -DNDEBUG
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I/usr/include/python2.5 -I/usr/include
-I/usr/local/include/opencv -I/home/user/pyopencv/package
-I/home/user/pyopencv/package/extras -I/home/user/pyopencv/package/extras/core
-I/home/user/pyopencv/package/extras/sdopencv
-I/usr/lib/python2.5/site-packages/numpy/core/include/numpy
-I/usr/include/python2.5 -c package/extras/core/opencv_converters.cpp -o
build/temp.linux-i686-2.5/package/extras/core/opencv_converters.o -O3 -DNDEBUG
-O3 -ffast-math -mfpmath=387 -DNDEBUG
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
package/extras/core/opencv_converters.cpp:485:3: warning: no newline at end of
file
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I/usr/include/python2.5 -I/usr/include
-I/usr/local/include/opencv -I/home/user/pyopencv/package
-I/home/user/pyopencv/package/extras -I/home/user/pyopencv/package/extras/core
-I/home/user/pyopencv/package/extras/sdopencv
-I/usr/lib/python2.5/site-packages/numpy/core/include/numpy
-I/usr/include/python2.5 -c package/extras/core/opencv_extra.cpp -o
build/temp.linux-i686-2.5/package/extras/core/opencv_extra.o -O3 -DNDEBUG -O3
-ffast-math -mfpmath=387 -DNDEBUG
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I/usr/include/python2.5 -I/usr/include
-I/usr/local/include/opencv -I/home/user/pyopencv/package
-I/home/user/pyopencv/package/extras -I/home/user/pyopencv/package/extras/core
-I/home/user/pyopencv/package/extras/sdopencv
-I/usr/lib/python2.5/site-packages/numpy/core/include/numpy
-I/usr/include/python2.5 -c package/extras/core/sequence.cpp -o
build/temp.linux-i686-2.5/package/extras/core/sequence.o -O3 -DNDEBUG -O3
-ffast-math -mfpmath=387 -DNDEBUG
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I/usr/include/python2.5 -I/usr/include
-I/usr/local/include/opencv -I/home/user/pyopencv/package
-I/home/user/pyopencv/package/extras -I/home/user/pyopencv/package/extras/core
-I/home/user/pyopencv/package/extras/sdopencv
-I/usr/lib/python2.5/site-packages/numpy/core/include/numpy
-I/usr/include/python2.5 -c package/extras/sdopencv/int_hist_2d.cpp -o
build/temp.linux-i686-2.5/package/extras/sdopencv/int_hist_2d.o -O3 -DNDEBUG
-O3 -ffast-math -mfpmath=387 -DNDEBUG
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I/usr/include/python2.5 -I/usr/include
-I/usr/local/include/opencv -I/home/user/pyopencv/package
-I/home/user/pyopencv/package/extras -I/home/user/pyopencv/package/extras/core
-I/home/user/pyopencv/package/extras/sdopencv
-I/usr/lib/python2.5/site-packages/numpy/core/include/numpy
-I/usr/include/python2.5 -c package/extras/sdopencv/integral_2d.cpp -o
build/temp.linux-i686-2.5/package/extras/sdopencv/integral_2d.o -O3 -DNDEBUG
-O3 -ffast-math -mfpmath=387 -DNDEBUG
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I/usr/include/python2.5 -I/usr/include
-I/usr/local/include/opencv -I/home/user/pyopencv/package
-I/home/user/pyopencv/package/extras -I/home/user/pyopencv/package/extras/core
-I/home/user/pyopencv/package/extras/sdopencv
-I/usr/lib/python2.5/site-packages/numpy/core/include/numpy
-I/usr/include/python2.5 -c package/extras/sdopencv/diffchar_2d.cpp -o
build/temp.linux-i686-2.5/package/extras/sdopencv/diffchar_2d.o -O3 -DNDEBUG
-O3 -ffast-math -mfpmath=387 -DNDEBUG
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I/usr/include/python2.5 -I/usr/include
-I/usr/local/include/opencv -I/home/user/pyopencv/package
-I/home/user/pyopencv/package/extras -I/home/user/pyopencv/package/extras/core
-I/home/user/pyopencv/package/extras/sdopencv
-I/usr/lib/python2.5/site-packages/numpy/core/include/numpy
-I/usr/include/python2.5 -c package/extras/sdopencv/iterators.cpp -o
build/temp.linux-i686-2.5/package/extras/sdopencv/iterators.o -O3 -DNDEBUG -O3
-ffast-math -mfpmath=387 -DNDEBUG
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
build/temp.linux-i686-2.5/package/extras/core/ndarray.o
build/temp.linux-i686-2.5/package/extras/core/opencv_converters.o
build/temp.linux-i686-2.5/package/extras/core/opencv_extra.o
build/temp.linux-i686-2.5/package/extras/core/sequence.o
build/temp.linux-i686-2.5/package/extras/sdopencv/int_hist_2d.o
build/temp.linux-i686-2.5/package/extras/sdopencv/integral_2d.o
build/temp.linux-i686-2.5/package/extras/sdopencv/diffchar_2d.o
build/temp.linux-i686-2.5/package/extras/sdopencv/iterators.o -L/usr/local/lib
-Lbuild/lib.linux-i686-2.5/pyopencv -lcvaux -lhighgui -lml -lcv -lcxcore
-lboost_python-gcc42-mt-1_34_1 -o
build/lib.linux-i686-2.5/pyopencv/libpyopencv_extras.so
building 'pyopencv.cxtypes_h_ext' extension
creating build/temp.linux-i686-2.5/package/cxtypes_h_ext
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I/usr/include/python2.5 -I/usr/include
-I/usr/local/include/opencv -I/home/user/pyopencv/package
-I/home/user/pyopencv/package/extras -I/home/user/pyopencv/package/extras/core
-I/home/user/pyopencv/package/extras/sdopencv
-I/usr/lib/python2.5/site-packages/numpy/core/include/numpy
-Ipackage/cxtypes_h_ext -I/usr/include/python2.5 -c
package/cxtypes_h_ext/cxtypes_h_ext_enumerations.pypp.cpp -o
build/temp.linux-i686-2.5/package/cxtypes_h_ext/cxtypes_h_ext_enumerations.pypp.
o -O3 -DNDEBUG -O3 -ffast-math -mfpmath=387 -DNDEBUG
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I/usr/include/python2.5 -I/usr/include
-I/usr/local/include/opencv -I/home/user/pyopencv/package
-I/home/user/pyopencv/package/extras -I/home/user/pyopencv/package/extras/core
-I/home/user/pyopencv/package/extras/sdopencv
-I/usr/lib/python2.5/site-packages/numpy/core/include/numpy
-Ipackage/cxtypes_h_ext -I/usr/include/python2.5 -c
package/cxtypes_h_ext/cxtypes_h_ext_free_functions.pypp.cpp -o
build/temp.linux-i686-2.5/package/cxtypes_h_ext/cxtypes_h_ext_free_functions.pyp
p.o -O3 -DNDEBUG -O3 -ffast-math -mfpmath=387 -DNDEBUG
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I/usr/include/python2.5 -I/usr/include
-I/usr/local/include/opencv -I/home/user/pyopencv/package
-I/home/user/pyopencv/package/extras -I/home/user/pyopencv/package/extras/core
-I/home/user/pyopencv/package/extras/sdopencv
-I/usr/lib/python2.5/site-packages/numpy/core/include/numpy
-Ipackage/cxtypes_h_ext -I/usr/include/python2.5 -c
package/cxtypes_h_ext/cxtypes_h_ext.main.cpp -o
build/temp.linux-i686-2.5/package/cxtypes_h_ext/cxtypes_h_ext.main.o -O3
-DNDEBUG -O3 -ffast-math -mfpmath=387 -DNDEBUG
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
package/cxtypes_h_ext/cxtypes_h_ext.main.cpp: In function ‘void
init_module_cxtypes_h_ext()’:
package/cxtypes_h_ext/cxtypes_h_ext.main.cpp:38: error: wrong number of
template arguments (3, should be 2)
/usr/include/boost/python/to_python_converter.hpp:17: error: provided for
‘template<class T, class Conversion> struct
boost::python::to_python_converter’
error: command 'gcc' failed with exit status 1
What version of the product are you using? On what operating system?
Ubuntu 8.04, Hardy Heron
Linux 2.6.24-16-rtai i686 GNU/Linux
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 9 May 2011 at 9:44
It is not a defect but IMHO it would be great if some modifications could be
made.
Compilation of pyopencvext_free_functions.pypp.cpp failed due to out of memory
error. Error
description is attached.
Tested on Linux and Mac OS X boxes. Both boxes have 2GB RAM and no other
intensive
processes. Managed to compile it by a naive solution of splitting the file into
three.
"g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -
I/opt/local/include/opencv -I/Users/zhuj/Temp/boost_1_41_0 -Ipyopencv -
Ipyopencv/pyopencvext -Ipyopencv/pyopencvext/numpy_include -
DBOOST_PYTHON_STATIC_LIB -DNDEBUG -
I"/Library/Frameworks/Python.framework/Versions/5.1.0/include/python2.5" -
I"/Users/zhuj/Temp/boost_1_41_0" -c -o "bin/gcc-4.2.1/release/link-
static/pyopencv/pyopencvext/pyopencvext_free_functions.pypp.o"
"pyopencv/pyopencvext/pyopencvext_free_functions.pypp.cpp"
cc1plus(633) malloc: *** mmap(size=16777216) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
cc1plus: out of memory allocating 4072 bytes after a total of 0 bytes
Original issue reported on code.google.com by [email protected]
on 10 Feb 2010 at 3:25
What steps will reproduce the problem?
New release of library backend.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Opencv 2.2 has been released with a big reorganization, do you know when
pyopencv might transition to the new library?
Original issue reported on code.google.com by [email protected]
on 6 Dec 2010 at 3:13
What steps will reproduce the problem?
1. Download pyopencv and change to source directory
2. run "mkdir build && cd build && cmake .."
3. build and install pyopencv
What is the expected output? What do you see instead?
boost library is not found (I attached a fix for this). Once that is fixed
when I import pyopencv I get the following error:
>>> import pyopencv
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pyopencv/__init__.py", line 1, in <module>
from info import __doc__
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pyopencv/info.py", line 42, in <module>
import config as _cfg
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pyopencv/config.py", line 7, in <module>
from cxtypes_h import *
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pyopencv/cxtypes_h.py", line 19, in <module>
import cxtypes_h_ext as _ext
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pyopencv/cxtypes_h_ext.py", line 17, in <module>
__bootstrap__()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pyopencv/cxtypes_h_ext.py", line 13, in __bootstrap__
imp.load_dynamic(__name__,__file__)
ImportError:
dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
/site-packages/pyopencv/dl-cxtypes_h_ext.so, 2): Library not loaded:
build/lib.macosx-10.6-x86_64-2.6/pyopencv/libpyopencv_extras.dylib
Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pyopencv/dl-cxtypes_h_ext.so
Reason: image not found
What version of the product are you using? On what operating system?
I am using the svn version on mac os x.
Please provide any additional information below.
The first issue is fixed by the small patch to CMakeLists.txt (attached) - it's
a problem with the lib prefix not being dropped from library names in the
revise_libs function.
The second issue appears to be a linking one: during the build process,
pyopencv links to the absolute location of libpyopencv_extras.dylib (and I
think others as well) instead of the relative one. Thus, once the package is
installed the linkages are broken.
Original issue reported on code.google.com by [email protected]
on 17 Aug 2010 at 9:28
Attachments:
What steps will reproduce the problem?
1. Windows 7 64 bit Enterprise. Python 2.7 64 bit. CMake 2.8.2
2. Using CMake gui, hit the configure button once
3.
What is the expected output? What do you see instead?
"Error in configuration process, project files may be invalid"
CMake Error at C:/Program Files (x86)/CMake
2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:70 (MESSAGE):
Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
Call Stack (most recent call first):
C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPythonLibs.cmake:102 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:31 (find_package)
Configuring incomplete, errors occurred!
What version of the product are you using? On what operating system?
Windows 7 64 bit Enterprise. Python 2.7 64 bit. CMake 2.8.2.
pyopencv-2.1.0.wr.1.1.0
Please provide any additional information below.
CMake fails on first configuration attempt. Don't know what level of
completeness this is supposed to be at yet
Original issue reported on code.google.com by [email protected]
on 13 Sep 2010 at 12:36
running "python setup.py build" encounters the following problem:
pyopencv/pyopencvext/StereoBM.pypp.cpp:17: error: ‘NORMALIZED_RESPONSE’ is
not a member of ‘cv::StereoBM’
commented out StereoBM.pypp.cpp line 17 then everything works.
I am using SUSE Linux 11.2, with the newest opencv from the svn repository.
Original issue reported on code.google.com by [email protected]
on 5 Mar 2010 at 3:27
>>> What steps will reproduce the problem?
import pyopencv as cv
a = [cv.Point(0,0),cv.Point(1,0),cv.Point(0,1)]
b = [cv.Point(0,0),cv.Point(1,0),cv.Point(0,1)]
m = cv.getAffineTransform(a,b)
print m
When run the program, I got following error:
Traceback (most recent call last):
File "xxx.py", line 4, in <module>
m = cv.getAffineTransform(a,b)
TypeError: No registered converter was able to extract a C++ reference to
type cv::Mat from this Python object of type list
>>> What is the expected output? What do you see instead?
output a Mat object.
>>> What version of the product are you using? On what operating system?
Windows XP, Version: 2.1.0.wr1.0.2
>>> Please provide any additional information below.
the document string shows that getAffineTransform() will get two list of
Point2f object, and return a object.
>>> cv.getAffineTransform?
Type: function
Base Class: <type 'builtin_function_or_method'>
String Form: <Boost.Python.function object at 0x00CEB500>
Namespace: Interactive
Docstring:
getAffineTransform( (list)src, (list)dst) -> object :
Argument 'src':
C/C++ type: ::cv::Point2f const *.
Python type: Python sequence with elements of C++ type
'::cv::Point_<
float >'.
Argument 'dst':
C/C++ type: ::cv::Point2f const *.
Python type: Python sequence with elements of C++ type
'::cv::Point_<
float >'.
C++ signature :
boost::python::api::object
getAffineTransform(boost::python::list,boost::python::list)
Original issue reported on code.google.com by [email protected]
on 28 May 2010 at 2:28
What steps will reproduce the problem?
1. Load video with grab() and retrieve()
2. Convert CV image to QImage (using QImage constructor)
3. Convert QImage to QPixmap
4. Display QPixmap on a QLabel
5. Add QLabel to QWidget (or whatever)
6. Execute application, then close the window
What is the expected output? What do you see instead?
Should close properly, but instead there is a memory error message.
What version of the product are you using? On what operating system?
pyopencv-2.1.0.wr1.1.0-py2.6 on Windows XP 32bits
Please provide any additional information below.
The only way I found to avoid this bug was to overload closeEvent() on my
custom Widget to put a release(), which is un-pythonic.
Original issue reported on code.google.com by [email protected]
on 21 Oct 2010 at 2:22
What steps will reproduce the problem?
1.run cmake in my build folder
2.run make
What is the expected output? What do you see instead?
It is expected to see the make success information in the command line.But I
got the error message which showed as fatal error:too many errors
emitted,stoping now.[-ferror-limit=]
What version of the product are you using? On what operating system?
PyOpenCV 2.1.0.wr.1.2.0 with Opencv 2.4.3
My OS is Mac OSX 10.8 Mountain lion
Please provide any additional information below.
here is the entire error message:
[ 1%] Building CXX object
CMakeFiles/pyopencv_extras.dir/package/extras/core/ndarray.o
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:58:13: error:
redefinition of 'Mat'
inline Mat::Mat()
^
/usr/local/include/opencv2/core/mat.hpp:67:13: note: previous definition is here
inline Mat::Mat() : size(&rows)
^
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:58:13: error:
constructor for 'cv::Mat' must explicitly initialize the member 'size'
which does not have a default constructor
inline Mat::Mat()
^
/usr/local/include/opencv2/core/core.hpp:1976:11: note: member is declared here
MSize size;
^
/usr/local/include/opencv2/core/core.hpp:1948:23: note: 'cv::Mat::MSize'
declared here
struct CV_EXPORTS MSize
^
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:61:13: error:
redefinition of 'Mat'
inline Mat::Mat(int _rows, int _cols, int _type)
^
/usr/local/include/opencv2/core/mat.hpp:72:13: note: previous definition is here
inline Mat::Mat(int _rows, int _cols, int _type) : size(&rows)
^
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:61:13: error:
constructor for 'cv::Mat' must explicitly initialize the member 'size'
which does not have a default constructor
inline Mat::Mat(int _rows, int _cols, int _type)
^
/usr/local/include/opencv2/core/core.hpp:1976:11: note: member is declared here
MSize size;
^
/usr/local/include/opencv2/core/core.hpp:1948:23: note: 'cv::Mat::MSize'
declared here
struct CV_EXPORTS MSize
^
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:68:13: error:
redefinition of 'Mat'
inline Mat::Mat(int _rows, int _cols, int _type, const Scalar& _s)
^
/usr/local/include/opencv2/core/mat.hpp:78:13: note: previous definition is here
inline Mat::Mat(int _rows, int _cols, int _type, const Scalar& _s) : size(&rows)
^
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:68:13: error:
constructor for 'cv::Mat' must explicitly initialize the member 'size'
which does not have a default constructor
inline Mat::Mat(int _rows, int _cols, int _type, const Scalar& _s)
^
/usr/local/include/opencv2/core/core.hpp:1976:11: note: member is declared here
MSize size;
^
/usr/local/include/opencv2/core/core.hpp:1948:23: note: 'cv::Mat::MSize'
declared here
struct CV_EXPORTS MSize
^
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:79:13: error:
redefinition of 'Mat'
inline Mat::Mat(Size _size, int _type)
^
/usr/local/include/opencv2/core/mat.hpp:85:13: note: previous definition is here
inline Mat::Mat(Size _sz, int _type) : size(&rows)
^
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:79:13: error:
constructor for 'cv::Mat' must explicitly initialize the member 'size'
which does not have a default constructor
inline Mat::Mat(Size _size, int _type)
^
/usr/local/include/opencv2/core/core.hpp:1976:11: note: member is declared here
MSize size;
^
/usr/local/include/opencv2/core/core.hpp:1948:23: note: 'cv::Mat::MSize'
declared here
struct CV_EXPORTS MSize
^
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:87:13: error:
redefinition of 'Mat'
inline Mat::Mat(Size _size, int _type, const Scalar& _s)
^
/usr/local/include/opencv2/core/mat.hpp:91:13: note: previous definition is here
inline Mat::Mat(Size _sz, int _type, const Scalar& _s) : size(&rows)
^
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:87:13: error:
constructor for 'cv::Mat' must explicitly initialize the member 'size'
which does not have a default constructor
inline Mat::Mat(Size _size, int _type, const Scalar& _s)
^
/usr/local/include/opencv2/core/core.hpp:1976:11: note: member is declared here
MSize size;
^
/usr/local/include/opencv2/core/core.hpp:1948:23: note: 'cv::Mat::MSize'
declared here
struct CV_EXPORTS MSize
^
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:98:13: error:
redefinition of 'Mat'
inline Mat::Mat(const Mat& m)
^
/usr/local/include/opencv2/core/mat.hpp:111:13: note: previous definition is
here
inline Mat::Mat(const Mat& m)
^
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:98:13: error:
constructor for 'cv::Mat' must explicitly initialize the member 'size'
which does not have a default constructor
inline Mat::Mat(const Mat& m)
^
/usr/local/include/opencv2/core/core.hpp:1976:11: note: member is declared here
MSize size;
^
/usr/local/include/opencv2/core/core.hpp:1948:23: note: 'cv::Mat::MSize'
declared here
struct CV_EXPORTS MSize
^
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:106:13: error:
redefinition of 'Mat'
inline Mat::Mat(int _rows, int _cols, int _type, void* _data, size_t _step)
^
/usr/local/include/opencv2/core/mat.hpp:129:13: note: previous definition is
here
inline Mat::Mat(int _rows, int _cols, int _type, void* _data, size_t _step)
^
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:106:13: error:
constructor for 'cv::Mat' must explicitly initialize the member 'size'
which does not have a default constructor
inline Mat::Mat(int _rows, int _cols, int _type, void* _data, size_t _step)
^
/usr/local/include/opencv2/core/core.hpp:1976:11: note: member is declared here
MSize size;
^
/usr/local/include/opencv2/core/core.hpp:1948:23: note: 'cv::Mat::MSize'
declared here
struct CV_EXPORTS MSize
^
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:126:13: error:
redefinition of 'Mat'
inline Mat::Mat(Size _size, int _type, void* _data, size_t _step)
^
/usr/local/include/opencv2/core/mat.hpp:151:13: note: previous definition is
here
inline Mat::Mat(Size _sz, int _type, void* _data, size_t _step)
^
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:126:13: error:
constructor for 'cv::Mat' must explicitly initialize the member 'size'
which does not have a default constructor
inline Mat::Mat(Size _size, int _type, void* _data, size_t _step)
^
/usr/local/include/opencv2/core/core.hpp:1976:11: note: member is declared here
MSize size;
^
/usr/local/include/opencv2/core/core.hpp:1948:23: note: 'cv::Mat::MSize'
declared here
struct CV_EXPORTS MSize
^
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:146:13: error:
constructor for 'cv::Mat' must explicitly initialize the member 'size'
which does not have a default constructor
inline Mat::Mat(const Mat& m, const Range& rowRange, const Range& colRange)
^
/usr/local/include/opencv2/core/core.hpp:1976:11: note: member is declared here
MSize size;
^
/usr/local/include/opencv2/core/core.hpp:1948:23: note: 'cv::Mat::MSize'
declared here
struct CV_EXPORTS MSize
^
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:149:10: error:
'operator=' is a protected member of 'cv::Mat::MStep'
step = m.step; refcount = m.refcount;
~~~~ ^ ~~~~~~
/usr/local/include/opencv2/core/core.hpp:1973:16: note: declared protected here
MStep& operator = (const MStep&);
^
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.cpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/ndarr
ay.hpp:18:
In file included from
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/core/openc
v_headers.hpp:9:
/Users/shuxuan/Engineering/ProjectsofPyOpenCV/pyopencv/package/extras/sdopencv/s
dcxmat.hpp:180:13: error:
constructor for 'cv::Mat' must explicitly initialize the member 'size'
which does not have a default constructor
inline Mat::Mat(const Mat& m, const Rect& roi)
^
/usr/local/include/opencv2/core/core.hpp:1976:11: note: member is declared here
MSize size;
^
/usr/local/include/opencv2/core/core.hpp:1948:23: note: 'cv::Mat::MSize'
declared here
struct CV_EXPORTS MSize
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [CMakeFiles/pyopencv_extras.dir/package/extras/core/ndarray.o]
Error 1
make[1]: *** [CMakeFiles/pyopencv_extras.dir/all] Error 2
make: *** [all] Error 2
Original issue reported on code.google.com by [email protected]
on 18 Nov 2012 at 5:03
What steps will reproduce the problem?
1. import pyopencv
I'm getting:
Python 2.7.1 (r271:86832, Apr 15 2011, 12:09:10)
[GCC 4.5.2 20110127 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyopencv
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/site-packages/pyopencv/__init__.py", line 1, in <module>
from info import __doc__
File "/usr/lib/python2.7/site-packages/pyopencv/info.py", line 42, in <module>
import config as _cfg
File "/usr/lib/python2.7/site-packages/pyopencv/config.py", line 9, in <module>
from cxcore_hpp_vec import *
File "/usr/lib/python2.7/site-packages/pyopencv/cxcore_hpp_vec.py", line 19, in <module>
import cxcore_hpp_vec_ext as _ext
ImportError: /usr/lib/python2.7/site-packages/pyopencv/cxcore_hpp_vec_ext.so:
undefined symbol: _ZN2cv8fastFreeEPv
For some reason this .so does not get linked correctly (no cxcore):
ldd /usr/lib/python2.7/site-packages/pyopencv/cxcore_hpp_vec_ext.so
linux-vdso.so.1 => (0x00007fffc2521000)
libboost_python.so.1.46.0 => /usr/lib/libboost_python.so.1.46.0 (0x00007f7aa4cb8000)
libpython2.7.so.1.0 => /usr/lib/libpython2.7.so.1.0 (0x00007f7aa48fb000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f7aa45f0000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f7aa43da000)
libc.so.6 => /lib/libc.so.6 (0x00007f7aa407c000)
libutil.so.1 => /lib/libutil.so.1 (0x00007f7aa3e78000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007f7aa3c5b000)
libdl.so.2 => /lib/libdl.so.2 (0x00007f7aa3a57000)
librt.so.1 => /lib/librt.so.1 (0x00007f7aa384e000)
libm.so.6 => /lib/libm.so.6 (0x00007f7aa35cc000)
/lib/ld-linux-x86-64.so.2 (0x00007f7aa57ed000)
while other shared libraries does:
ldd /usr/lib/python2.7/site-packages/pyopencv/cxcore_h_ext.so | grep cxcore
libcxcore.so.2.1 => /opt/opencv-old/lib/libcxcore.so.2.1 (0x00007ff8d9566000)
The symbol in question comes exactly from this library:
nm -D /opt/opencv-old/lib/libcxcore.so.2.1 | grep _ZN2cv8fastFreeEPv
000000000015c6c0 T _ZN2cv8fastFreeEPv
so it sounds like build script or configure script error. Anyone else
experiencing this?
Original issue reported on code.google.com by [email protected]
on 21 May 2011 at 6:47
What steps will reproduce the problem?
1.python setup.py build
2.
3.
What is the expected output? What do you see instead?
It is supposed to build pyopencv. The python
script is trying to call gcc-4.2 and it is failing. Not
sure how to configure the installation to avoid this.
What version of the product are you using? On what operating system?
pyopencv-2.1.0.wr1.2.0
Please provide any additional information below.
I am running Snow Leopard. I installed OpenCV using Macports and Boost
manually.
Original issue reported on code.google.com by [email protected]
on 15 Sep 2011 at 2:47
Python binding for methods contained in cvaux.
Original issue reported on code.google.com by [email protected]
on 3 Mar 2010 at 6:26
What steps will reproduce the problem?
1.sudo /opt/local/bin/python2.6 setup.py install
What is the expected output? What do you see instead?
Instead of compiling I get all kinds of redefinition errors
GNU C++ (GCC) version 4.4.4 (i386-apple-darwin10)
compiled by GNU C version 4.4.4, GMP version 5.0.1, MPFR version 3.0.0-p3.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: ff8da831b3da44f67c54b87ca93b4280
In file included from pyopencv/pyopencvext/opencv_converters.hpp:17,
from pyopencv/pyopencvext/__dummy_struct.pypp.cpp:6:
pyopencv/pyopencvext/opencv_extra.hpp:21:1: warning: "BOOST_PYTHON_MAX_ARITY"
redefined
In file included from /tmp/boost_1_43_0/boost/python/args.hpp:12,
from /tmp/boost_1_43_0/boost/python.hpp:11,
from pyopencv/pyopencvext/__dummy_struct.pypp.cpp:3:
/tmp/boost_1_43_0/boost/python/detail/preprocessor.hpp:29:1: warning: this is
the location of the previous definition
In file included from pyopencv/pyopencvext/core/opencv_headers.hpp:7,
from pyopencv/pyopencvext/__dummy_struct.pypp.cpp:5:
pyopencv/pyopencvext/sdopencv/sdcxmat.hpp:58: error: redefinition of
'cv::Mat::Mat()'
/opt/local/include/opencv/cxmat.hpp:57: error: 'cv::Mat::Mat()' previously
defined here
pyopencv/pyopencvext/sdopencv/sdcxmat.hpp:61: error: redefinition of
'cv::Mat::Mat(int, int, int)'
/opt/local/include/opencv/cxmat.hpp:60: error: 'cv::Mat::Mat(int, int, int)'
previously defined here
pyopencv/pyopencvext/sdopencv/sdcxmat.hpp:68: error: redefinition of
'cv::Mat::Mat(int, int, int, const cv::Scalar&)'
/opt/local/include/opencv/cxmat.hpp:67: error: 'cv::Mat::Mat(int, int, int,
const cv::Scalar&)' previously defined here
pyopencv/pyopencvext/sdopencv/sdcxmat.hpp:79: error: redefinition of
'cv::Mat::Mat(cv::Size, int)'
/opt/local/include/opencv/cxmat.hpp:78: error: 'cv::Mat::Mat(cv::Size, int)'
previously defined here
pyopencv/pyopencvext/sdopencv/sdcxmat.hpp:87: error: redefinition of
'cv::Mat::Mat(cv::Size, int, const cv::Scalar&)'
/opt/local/include/opencv/cxmat.hpp:86: error: 'cv::Mat::Mat(cv::Size, int,
const cv::Scalar&)' previously defined here
pyopencv/pyopencvext/sdopencv/sdcxmat.hpp:98: error: redefinition of
'cv::Mat::Mat(const cv::Mat&)'
/opt/local/include/opencv/cxmat.hpp:97: error: 'cv::Mat::Mat(const cv::Mat&)'
previously defined here
pyopencv/pyopencvext/sdopencv/sdcxmat.hpp:106: error: redefinition of
'cv::Mat::Mat(int, int, int, void*, size_t)'
/opt/local/include/opencv/cxmat.hpp:105: error: 'cv::Mat::Mat(int, int, int,
void*, size_t)' previously defined here
What version of the product are you using? On what operating system?
Apple OS X, Snow Leopard 10.6, gcc 4.4
Please provide any additional information below.
Some kind of conflict between the opencv header files and redefinitions in
pyopencv/pyopencvext/sdopencv files.
A commentor at this link seems to have a very similiar problem.
http://translate.google.com/translate?hl=en&sl=fr&u=http://samuel.goutenoir.com/
%3Fp%3D41&ei=Z0xgTLCOKYL-8AbO0Y25DQ&sa=X&oi=translate&ct=result&resnum=1&ved=0CB
UQ7gEwAA&prev=/search%3Fq%3Dpyopencv%2Bredefinition%26hl%3Den%26sa%3DG
Original issue reported on code.google.com by [email protected]
on 9 Aug 2010 at 6:44
easy_install pyopencv does not work because it says I need a newer version of
setuptools while in fact I do have that. (See output below.)
What is the expected output? What do you see instead?
Downloading http://pyopencv.googlecode.com/files/pyopencv-2.1.0.wr1.2.0.tar.gz
Processing pyopencv-2.1.0.wr1.2.0.tar.gz
Running pyopencv-2.1.0.wr1.2.0/setup.py -q bdist_egg --dist-dir
/var/folders/FP/FPAYtgRRHpOjTvD2zcxedE+++TI/-Tmp-/easy_install-NXz8fZ/pyopencv-2
.1.0.wr1.2.0/egg-dist-tmp-9OnP3Q
The required version of setuptools (>=0.6c11) is not available, and
can't be installed while this script is running. Please install
a more recent version first, using 'easy_install -U setuptools'.
(Currently using setuptools 0.6c9
(/Library/Python/2.6/site-packages/setuptools-0.6c9-py2.6.egg))
error: Setup script exited with 2
corretto:bin alper$ python
Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import setuptools
setuptools>>> setuptools.__version__
'0.6c12'
>>> ^D
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by alper.cugun
on 5 Dec 2010 at 9:06
I try to install pyopencv into a virtual env with "pip" command. With "pip
install pyopencv" I get this error:
[...]
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
build/temp.linux-i686-2.6/package/extras/core/opencv_converters.o
build/temp.linux-i686-2.6/package/extras/core/sequence.o
build/temp.linux-i686-2.6/package/extras/core/opencv_extra.o
build/temp.linux-i686-2.6/package/extras/core/ndarray.o
build/temp.linux-i686-2.6/package/extras/sdopencv/iterators.o
build/temp.linux-i686-2.6/package/extras/sdopencv/diffchar_2d.o
build/temp.linux-i686-2.6/package/extras/sdopencv/integral_2d.o
build/temp.linux-i686-2.6/package/extras/sdopencv/int_hist_2d.o
-Lbuild/lib.linux-i686-2.6/pyopencv -lcvaux -lhighgui -lml -lcv -lcxcore
-lBoost_PYTHON_LIBRARY_RELEASE-NOTFOUND -o
build/lib.linux-i686-2.6/pyopencv/libpyopencv_extras.so
/usr/bin/ld: cannot find -lBoost_PYTHON_LIBRARY_RELEASE-NOTFOUND
collect2: ld returned 1 exit status
error: command 'g++' failed with exit status 1
----------------------------------------
Command /home/user/workspace/Stats/env/bin/python -c "import
setuptools;__file__='/home/user/workspace/Stats/env/build/pyopencv/setup.py';exe
cfile(__file__)" install --single-version-externally-managed --record
/tmp/pip-bt3gLP-record/install-record.txt --install-headers
/home/user/workspace/Stats/env/include/site/python2.6 failed with error code 1
I'm on Ubuntu 10.10. I already installed these packages:
libboost-python-dev
python2.6-dev
libboost-python1.42-dev
libboost-python1.42.0
libpython2.6
Thank you for future replies. :]
Original issue reported on code.google.com by [email protected]
on 2 Mar 2011 at 1:11
What steps will reproduce the problem?
1. I read the Common Interfaces for Feature Detection and Descriptor Extraction
on
http://opencv.willowgarage.com/documentation/cpp/common_interfaces_for_feature_d
etection_and_descriptor_extraction.html?highlight=surf#common-interfaces-for-fea
ture-detection-and-descriptor-extraction
2. import pyopencv as cv
3. try to do d = cv.SurfFeatureDetector()
What is the expected output? What do you see instead?
Expected an instance of SurfFeatureDetector but got the following error:
'module' object has no attribute 'SurfFeatureDetector'
What version of the product are you using? On what operating system?
OpenCv 2.1.0
PyOpenCv 2.1.0.wr1.2.0
(Python 2.6.5,Ubuntu 10.04)
Please provide any additional information below.
This PyOpenCV is a great initiative! OpenCV becomes so much easier for me.
Thank you! It would be really nice to have the featuredetector and
descriptormatch functions available in PyOpenCV.
Original issue reported on code.google.com by [email protected]
on 15 Nov 2010 at 3:14
Hello,
Just a simple question: is pyopencv still maintained? No new version was
released since last year, and I feel concerned because several of my projects
depend on it.
I really appreciate pyopencv, and would be very disappointed if it was
discontinued.
Cheers, and thanks for all.
Laurent
Original issue reported on code.google.com by [email protected]
on 27 Sep 2011 at 12:39
What steps will reproduce the problem?
1. use method predict() in ml.CvBoost when _missing matrix is null or ommited
(Mat())
predict( (CvBoost)inst, (Mat)_sample [, (Mat)_missing=Mat() [,
(Range)slice=Range(start=0, end=1073741823) [, (bool)raw_mode=False [,
(bool)return_sum=False]]]]) -> tuple :
What is the expected output? What do you see instead?
Expected output -> Tuple
we get -> OpenCV Error: Bad argument (the missing data mask must be 8-bit
vector of the same size as input sample) in CvBoost::predict, file
/home/eloi/Escriptori/OpenCV-2.1.0/src/ml/mlboost.cpp, line 1627
Traceback (most recent call last):
RuntimeError: OpenCV-2.1.0/src/ml/mlboost.cpp:1627: error: (-5) the missing
data mask must be 8-bit vector of the same size as input sample in function
CvBoost::predict
What version of the product are you using? On what operating system?
pyopencv-2.1.0.wr1.2.0, UBUNTU 9.10
Please provide any additional information below.
It seems that if _missing is missed then it creates a void Mat() and OpenCV
fails because the dimensions of the input sample and the void missing matrix
doesn't match.
Original issue reported on code.google.com by [email protected]
on 17 Nov 2010 at 10:41
I recently built and installed PyOpenCV 2.1.0.wr1.1.0 on a 64-bit Linux system
running Python 2.6.5. When I attempt to import pyopencv within an ipython
session started with ipython -pylab, I notice that ipython stops responding to
the keyboard (including Ctrl-C). I'm running ipython 0.10 and matplotlib 0.99.3
with the wxagg backend enabled.
Original issue reported on code.google.com by [email protected]
on 27 Aug 2010 at 7:04
When using Eclipse and pydev all the examples work but the editor is showing
lots of errors, i.e. all the imports say 'undefined variable'. Sorry this is
probably not a problem with openCV but I don't know how to fix it.
Original issue reported on code.google.com by [email protected]
on 2 Feb 2011 at 3:53
What steps will reproduce the problem?
1.use pyrSegmentation to segment a image
2.try to use the return value of pyrSegmentation
3.want to use GetSeqElem to access the item in the return value of
pyrSegmentation
What is the expected output? What do you see instead?
expected: find GetSeqElem function
see: no such function exposed
What version of the product are you using? On what operating system?
2.1.0
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 8 Sep 2010 at 1:29
What steps will reproduce the problem?
1. Take a random JPG image
2. Run example 1 i.e. People detector
What is the expected output? What do you see instead?
Instead of showing the image, the application crashes. Running from cmd line
within python shows this error - RuntimeError:
M:\programming\packages\opencv\workspace\2.1\OpenCV-2.1.0\src\cxco
re\cxarray.cpp:2476: error: (-206) Unrecognized or unsupported array type in fun
ction cvGetMat
What version of the product are you using? On what operating system?
Use - PyOpenCV -2.1.0 WR 1.0.2 on Windows XP with SP3
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 19 Jun 2010 at 2:13
What steps will reproduce the problem?
Attempt to compile on certain 64-bit platforms will fail because of
incompatible conversion from
size_t* to unsigned int*. Tried on my both platform RHEL5 linux x86_64 and Mac
OS X 10.5.8.
Related files:
pyopencv/pyopencvext/CvQuadEdge2D.pypp.cpp:32: error: invalid conversion from
'CvSubdiv2DEdge*' to 'unsigned int*'
pyopencv/pyopencvext/MatND.pypp.cpp:56: error: invalid conversion from
'size_t*' to 'unsigned
int*'
pyopencv/pyopencvext/ndarray.cpp:117: error: invalid conversion from
'npy_intp*' to 'const int*'
pyopencv/pyopencvext/ndarray.cpp:118: error: invalid conversion from
'npy_intp*' to 'const int*'
Original issue reported on code.google.com by [email protected]
on 9 Feb 2010 at 6:17
What steps will reproduce the problem?
1. in 2.1.0.wr1.1.0 call cv.pyrMeanShiftFiltering
2. python crash
3.
What is the expected output? What do you see instead?
cv.pyrMeanShiftFiltering should return the segmented image
but, the function will crash python
What version of the product are you using? On what operating system?
PortablePython_1.1_py2.6.1
2.1.0.wr1.1.0
windows 7
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 10 Sep 2010 at 8:29
What steps will reproduce the problem?
1. Download OpenCV
2. Compile and Install Boost_1_42_0, NumPy, bjam
3. Install PyOpenCV
What is the expected output? What do you see instead?
/usr/lib/python2.6/dist-packages/Pyrex/Compiler/Errors.py:17:
DeprecationWarning: BaseException.message has been deprecated as of Python
2.6
self.message = message
running build
running build_py
copying pyopencv/config.py -> build/lib.linux-i686-2.6/pyopencv
running build_ext
building 'pyopencv.pyopencvext' extension
bjam release test link=static
error: at /usr/share/boost-build/build/project.jam:884
error: duplicate initialization of gcc with the following parameters:
error: version = 4.3.3
error: previous initialization at /usr/share/boost-
build/build/project.jam:884
error: command 'bjam' failed with exit status 1
What version of the product are you using? On what operating system?
Python 2.6, Boost 1.42.0, Boost-Jam 3.1.17, Python-NumPy 1.2.1, PyOpenCV2.0
wr.1.1.0, Ubuntu 9.04
Please provide any additional information below.
Original issue reported on code.google.com by dna.extrim
on 1 Apr 2010 at 8:23
>>> What steps will reproduce the problem?
1. run following program
-------------------------
import pyopencv as cv
import numpy as np
m = np.arange(0, 20).astype(np.uint8)
m.shape = 4,5
n = cv.asMatND(m)
p = n.ndarray
print m
print "------------"
print p
>>> What is the expected output? What do you see instead?
I think the two print should output the same array, but here is the output:
[[ 0 1 2 3 4]
[ 5 6 7 8 9]
[10 11 12 13 14]
[15 16 17 18 19]]
------------
[[ 0 4 8 12 16]
[ 1 5 9 13 17]
[ 2 6 10 14 18]
[ 3 7 11 15 19]]
the different of strides cause the problem:
the strides of m is (5, 1), but the strides of p is (1, 4)
>>> What version of the product are you using? On what operating system?
Windows XP, Version: 2.1.0.wr1.0.2
>>> Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 9 Jun 2010 at 9:21
Hi,
1. System --> Ubuntu 9.04
2. Downloaded built, installed and tested OpenCV2.1.0
3. Created config.py with details;
"
import os
from glob import glob
# OpenCV 2.x library, to be linked against using bjam+gcc
opencv_dir = "/usr/local"
opencv_include_dirs = [opencv_dir+"/include/opencv"]
opencv_library_dirs = [opencv_dir+"/lib"]
opencv_libraries = ["highgui", "ml", "cvaux", "cv", "cxcore"]
opencv_runtime_library_dirs = []
opencv_runtime_libraries_to_be_bundled = []
# Boost library's source distribution, to be linked against using bjam+gcc
and bundled with
boost_include_dirs = ["/home/paul/boost_1_41_0"]
boost_library_dirs = []
boost_libraries = []
boost_runtime_library_dirs = []
boost_runtime_libraries_to_be_bundled = []
"
4. Installed numpy1.3
5. Downloaded pyopencv-2.1.0.wr1.0.1.tar.gz , extracted it and ran python
setup.py build and python setup.py install --> no issues
6. when i start python and run "from pyopencv import *", i get the
following error from python;
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pyopencv/__init__.py", line 18, in <module>
from core import *
File "pyopencv/core.py", line 35, in <module>
import numpy as _NP
File "/usr/local/lib/python2.6/dist-packages/numpy/__init__.py", line
136, in <module>
import add_newdocs
File "/usr/local/lib/python2.6/dist-packages/numpy/add_newdocs.py", line
9, in <module>
from numpy.lib import add_newdoc
File "/usr/local/lib/python2.6/dist-packages/numpy/lib/__init__.py", line
4, in <module>
from type_check import *
File "/usr/local/lib/python2.6/dist-packages/numpy/lib/type_check.py",
line 8, in <module>
import numpy.core.numeric as _nx
File "/usr/local/lib/python2.6/dist-packages/numpy/core/__init__.py",
line 8, in <module>
import numerictypes as nt
File "/usr/local/lib/python2.6/dist-packages/numpy/core/numerictypes.py",
line 428, in <module>
_set_up_aliases()
File "/usr/local/lib/python2.6/dist-packages/numpy/core/numerictypes.py",
line 411, in _set_up_aliases
allTypes[alias] = allTypes[t]
KeyError: 'timedelta'
How can i resolve this issue ? Thanks in advance.
Regards,
Paul
Original issue reported on code.google.com by [email protected]
on 17 Apr 2010 at 4:00
[deleted issue]
I have tried pyopencv-2.1.0.wr1.0.1.tar.gz with OpenCV 2.1.0 in both 32-bit
and 64-bit OpenSUSE 11.2. It works well in the 32-bit machine, but fails
to compile in the 64-bit machine.
OpenCV version: 2.1.0
Boost version: 1.42.0
See attachment for the build log in the 64-bit machine.
PS. the newest svn checkout also fails in a similar way...
Original issue reported on code.google.com by [email protected]
on 27 Apr 2010 at 8:51
Attachments:
trying to do a copy.deepcopy() of an object who has multiple instances of
CvBoost
RuntimeError: Pickling of "pyopencv.ml_ext.CvBoost" instances is not enabled
(http://www.boost.org/libs/python/doc/v2/pickle.html)
Original issue reported on code.google.com by [email protected]
on 30 Nov 2010 at 12:00
What steps will reproduce the problem?
1.Try to replicate the C++ SVM example in pyopencv
2. Refactor C++ example to match PyOpenCV syntax
(See attached file, and code with notes at bottom)
What is the expected output? What do you see instead?
A match to the class '10', i.e. a matrix with the correct prediction(s)
What version of the product are you using? On what operating system?
Opencv2.1 on Ubuntu (Maverick).
Please provide any additional information below.
Below is the code example. There really aren't enough tutorials for PyOpencv.
Syntactic changes from the python library to the pyopen can be confusing. If
you wanted help creating a tutorial to aid the transition for some users, i
would love to help out.
from pyopencv import *
if __name__ == "__main__":
value=1 #Value starts at 1
train_update = False #Set training parameters
train_sample_count = 100
train_sample_size = 10
#Create the matrices for class and data.
class_mat = Mat(train_sample_count, 1, CV_32FC1);
data_mat= Mat(train_sample_count, train_sample_size, CV_32FC1);
i=0
j=0
val=1
#Add values to the class mat, and fill the data with the same values
while i<train_sample_count:
class_mat[i] = value
while j<train_sample_size:
data_mat[i*train_sample_size+ j] = val
j+=1
val+=1
value+=1
i+=1
#Create a param model for the SVM
x=CvSVMParams
x.svm_type = 104;
x.kernel_type = 2;
x.gamma = 1./train_sample_size;
x.nu = 0.5;
x.C = 8;
#Term criteria in C++ has child parameters (epsilon/count etc)
x.term_crit =TermCriteria(1,50,0.001)
#Changed to suit python TermCriteria format
#Create the training SVM
tSvm = CvSVM()
tSvm.train(data_mat, class_mat, 0, 0, x);
tSvm.save("filename.xml", 0);
#Create predictive SVM which will classify the value '1' (val)
val = 1
pSvm = CvSVM();
pSvm.load("filename.xml", 0);
#Create Sample Matrix
sample = Mat((1, train_sample_size), CV_32FC1);
while i<train_sample_size:
sample[i] = val
pred = pSvm.predict(sample);
print("\n %.3f", pred);
Original issue reported on code.google.com by [email protected]
on 8 Mar 2011 at 12:36
Attachments:
What steps will reproduce the problem?
1. Compiled and installed pyopencv
2. Tried to run all of the demos in the demo directory
3.
What is the expected output? What do you see instead?
The demos should run, but many crash instead.
What version of the product are you using? On what operating system?
Mac OSX Snow leopard on a 64-bit machine.
Please provide any additional information below.
I will summarize what happens with each of the python codes in the demo
directory of svn:
----------
capture.py:
Opens up a windows, but then segfaults with the following message:
OpenCV Python capture video
Output #0, avi, to 'captured.avi':
Stream #0.0: Video: mpeg4, yuv420p, q=2-31, 90k tbn, 30 tbc
picture size invalid (0x0)
Last message repeated 2 times
[avi @ 0x10283b600]dimensions not set
zsh: segmentation fault ./capture-cam.py
debugger doesn't give a whole lot of info - gdb just shows:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000020
0x0000000126548e00 in ff_isom_write_avcc ()
---------------------
./chessboard.py right01.jpg
Crashes due to assert failing:
OpenCV Error: Assertion failed ((corners.cols == 1 || corners.rows == 1) &&
corners.type() == CV_32FC2 && corners.isContinuous()) in drawChessboardCorners,
file
/opt/local/var/macports/build/_Users_abergou_Documents_Ports_graphics_opencv/wor
k/OpenCV-2.1.0/src/cv/cvcalibinit.cpp, line 1900
Traceback (most recent call last):
File "./chessboard.py", line 15, in <module>
drawChessboardCorners( im3, chessboard_dim, asMat(corners), found )
RuntimeError:
/opt/local/var/macports/build/_Users_abergou_Documents_Ports_graphics_opencv/wor
k/OpenCV-2.1.0/src/cv/cvcalibinit.cpp:1900: error: (-215) (corners.cols == 1 ||
corners.rows == 1) && corners.type() == CV_32FC2 && corners.isContinuous() in
function drawChessboardCorners
-----------------------
./contours.py
Crashes due to OverflowError
Traceback (most recent call last):
File "./contours.py", line 72, in <module>
createTrackbar( "levels+3", "contours", levels, 7, on_trackbar )
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pyopencv/highgui.py", line 171, in createTrackbar
result, z = _ext._createTrackbar(trackbar_name, window_name, _CT.addressof(value), count, on_change, userdata=userdata)
OverflowError: bad numeric conversion: positive overflow
--------------------------
./convexhull.py
Works as expected!
--------------------------
./curvature.py
Not sure what expected output should be but seems to work and exits normally.
--------------------------
./distrans1.py
Crashes with overflow error
Traceback (most recent call last):
File "./distrans1.py", line 67, in <module>
createTrackbar( tbarname, wndname, edge_thresh, 255, on_trackbar )
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pyopencv/highgui.py", line 171, in createTrackbar
result, z = _ext._createTrackbar(trackbar_name, window_name, _CT.addressof(value), count, on_change, userdata=userdata)
OverflowError: bad numeric conversion: positive overflow
---------------------------
./edge.py
Crashed with overflow error
OpenCV Python version of edge
Traceback (most recent call last):
File "./edge.py", line 58, in <module>
createTrackbar (trackbar_name, win_name, 1, 100, on_trackbar)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pyopencv/highgui.py", line 171, in createTrackbar
result, z = _ext._createTrackbar(trackbar_name, window_name, _CT.addressof(value), count, on_change, userdata=userdata)
OverflowError: bad numeric conversion: positive overflow
--------------------------------
./facedetect.py pedestrian.jpg
Works!!
--------------------------------
./find_obj.py
Seems to have a bug in the code itself:
Object Descriptors: 607
Image Descriptors: 829
Extraction time = 0.000332358ms
(Point2f(x=296.75613403320312, y=55.682113647460938),
Point2f(x=128.128173828125, y=270.38516235351562))
Traceback (most recent call last):
File "./find_obj.py", line 120, in <module>
cv.line( correspond, cv.asPoint(inst_Point2f=pair[0]), cv.Point(int(pair[1].x), int(pair[1].y+object.rows)), colors[8] )
TypeError: convert() got an unexpected keyword argument 'inst_Point2f'
-----------------------------
./houghlines.py
Works!
----------------------------
./kmeans.py
Works!!
----------------------------
./laplace1.py
Opens camera - I see my camera light come on and then segfaults with message;
Cleaned up camera.
zsh: segmentation fault ./laplace1.py
gdb doesn't say anything useful:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
0x00007fff80f86120 in objc_msgSend ()
---------------------------------
./laplace2.py
Segfault similar to above:
Traceback (most recent call last):
File "./laplace2.py", line 30, in <module>
createTrackbar( "Sigma", "Laplacian", sigma, 15 )
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pyopencv/highgui.py", line 171, in createTrackbar
result, z = _ext._createTrackbar(trackbar_name, window_name, _CT.addressof(value), count, on_change, userdata=userdata)
OverflowError: bad numeric conversion: positive overflow
Cleaned up camera.
zsh: segmentation fault ./laplace2.py
-------------------------------------
./logpolar.py
Works!!!
-------------------------------------
./peopledetect.py
Works!!!!
-------------------------------------
./polar_transforms.py
Segmantation fault after camera light comes on:
Cleaned up camera.
zsh: segmentation fault ./polar_transforms.py
-------------------------------------
./pyramid_segmentation.py
Brings up window then immediately crashes with message:
Traceback (most recent call last):
File "./pyramid_segmentation.py", line 40, in <module>
sthreshold1 = createTrackbar("Threshold1", "Segmentation", threshold1, 255, ON_SEGMENT)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pyopencv/highgui.py", line 171, in createTrackbar
result, z = _ext._createTrackbar(trackbar_name, window_name, _CT.addressof(value), count, on_change, userdata=userdata)
OverflowError: bad numeric conversion: positive overflow
--------------------------------------
./squares.py
Crashes with message:
Traceback (most recent call last):
File "./squares.py", line 123, in <module>
createTrackbar( "canny thresh", wndname, thresh, 1000, on_trackbar )
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pyopencv/highgui.py", line 171, in createTrackbar
result, z = _ext._createTrackbar(trackbar_name, window_name, _CT.addressof(value), count, on_change, userdata=userdata)
OverflowError: bad numeric conversion: positive overflow
--------------------------------------
./watershed.py
Initially brings up two windows - one with fruits picture and the other black.
When I hit w to execute the watershed algorithm it crashes with:
OpenCV Error: Assertion failed (0 <= contourIdx && contourIdx < (int)last) in
drawContours, file
/opt/local/var/macports/build/_Users_abergou_Documents_Ports_graphics_opencv/wor
k/OpenCV-2.1.0/src/cv/cvcontours.cpp, line 1578
Traceback (most recent call last):
File "./watershed.py", line 88, in <module>
drawContours( markers, contours, idx, comp_count+1, CV_FILLED, 8, hierarchy, 0 )
RuntimeError:
/opt/local/var/macports/build/_Users_abergou_Documents_Ports_graphics_opencv/wor
k/OpenCV-2.1.0/src/cv/cvcontours.cpp:1578: error: (-215) 0 <= contourIdx &&
contourIdx < (int)last in function drawContours
Original issue reported on code.google.com by [email protected]
on 20 Aug 2010 at 6:54
So I've been trying to build PyOpenCV , using both cmake and the provided
setup.py
But I keep on getting the same error
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution
option: 'include_package_data'
warnings.warn(msg)
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution
option: 'install_requires'
warnings.warn(msg)
running build
running build_py
running build_ext
building 'pyopencv.pyopencv_extras' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I/usr/include/python2.7 -I/usr/local/include
-I/usr/local/include/opencv2 -I/usr/local/include
-I/home/amine/pyopencv/package -I/home/amine/pyopencv/package/extras
-I/home/amine/pyopencv/package/extras/core
-I/home/amine/pyopencv/package/extras/sdopencv
-I/usr/lib/python2.7/dist-packages/numpy/core/include/numpy
-I/usr/include/python2.7 -c package/extras/core/ndarray.cpp -o
build/temp.linux-i686-2.7/package/extras/core/ndarray.o -O3 -DNDEBUG -O3
-ffast-math -mfpmath=387 -DNDEBUG
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for
C/ObjC but not for C++ [enabled by default]
In file included from package/extras/core/ndarray.cpp:18:0:
package/extras/core/ndarray.hpp:18:30: fatal error: opencv_headers.hpp: No such
file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
And attached you will find my config.py file
Please , could anyone show me the right way
Original issue reported on code.google.com by [email protected]
on 12 Mar 2013 at 1:20
Attachments:
Hi,
python setup.py build produces a segmentation fault. Steps
1. Downloaded and installed OpenCV2.1.0
2. Downloaded and installed both Boost.Python(boost.org) and
bjam(sourceforge)
3. created a config file as per config file eg. viz;
"
import os
from glob import glob
# OpenCV 2.x library, to be linked against using bjam+gcc
opencv_dir = "/usr/local"
opencv_include_dirs = [opencv_dir+"/include/opencv"]
opencv_library_dirs = [opencv_dir+"/lib"]
opencv_libraries = ["highgui", "ml", "cvaux", "cv", "cxcore"]
opencv_runtime_library_dirs = []
opencv_runtime_libraries_to_be_bundled = []
# Boost library's source distribution, to be linked against using bjam+gcc
and bundled with
boost_include_dirs = ["/home/paul/boost_1_41_0"]
boost_library_dirs = []
boost_libraries = []
boost_runtime_library_dirs = []
boost_runtime_libraries_to_be_bundled = []
"
4. download pyopencv via svn
5. ran build and the output follows below:
"
====== BEGIN OUTPUT ======
Segmentation fault
EXIT STATUS: 139
====== END OUTPUT ======
LD_LIBRARY_PATH="/usr/bin:/usr/lib:/usr/lib32:/usr/lib64:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH
PYTHONPATH="bin/gcc-4.3.3/release/link-static"
export PYTHONPATH
"python" "_get_ext.py" > "bin/test_ext.test/gcc-4.3.3/release/link-
static/test_ext.output" 2>&1
status=$?
echo >> "bin/test_ext.test/gcc-4.3.3/release/link-
static/test_ext.output"
echo EXIT STATUS: $status >> "bin/test_ext.test/gcc-4.3.3/release/link-
static/test_ext.output"
if test $status -eq 0 ; then
cp "bin/test_ext.test/gcc-4.3.3/release/link-
static/test_ext.output" "bin/test_ext.test/gcc-4.3.3/release/link-
static/test_ext"
fi
verbose=0
if test $status -ne 0 ; then
verbose=1
fi
if test $verbose -eq 1 ; then
echo ====== BEGIN OUTPUT ======
cat "bin/test_ext.test/gcc-4.3.3/release/link-
static/test_ext.output"
echo ====== END OUTPUT ======
fi
exit $status
...failed capture-output bin/test_ext.test/gcc-4.3.3/release/link-
static/test_ext...
...failed updating 1 target...
...skipped 1 target...
...updated 250 targets...
error: command 'bjam' failed with exit status 1
"
Original issue reported on code.google.com by [email protected]
on 13 Apr 2010 at 2:31
What steps will reproduce the problem?
1.Install pyopencv-2.1.0.wr1.2.0.win32-py2.6.exe
2. import pyopencv as cv
When i import pyopencv it fails with the following error:
from pyopencv import *
File "C:\Python26\lib\site-packages\pyopencv\__init__.py", line 1, in <module>
from info import __doc__
File "C:\Python26\lib\site-packages\pyopencv\info.py", line 42, in <module>
import config as _cfg
File "C:\Python26\lib\site-packages\pyopencv\config.py", line 7, in <module>
from cxtypes_h import *
File "C:\Python26\lib\site-packages\pyopencv\cxtypes_h.py", line 19, in <module>
import cxtypes_h_ext as _ext
ImportError: DLL load failed: Invalid access to memory location.
Am using python 2.6 in Windows 7. Also am using pythonxy, maybe its causing
conflicts with prior versions of pyopencv. Any help will be appreciated.
Thank you in advance.
Original issue reported on code.google.com by [email protected]
on 28 Oct 2010 at 3:28
On UNIX (Linux, Mac OS X, FreeBSD, Solaris, etc.) there are a set of common
paths for finding headers, libraries, and binary files. In addition, there
are environment variables such as PATH, LIBRARY_PATH, CPATH, and
LD_LIBRARY_PATH which may be used to augment the default paths. I think it
is a bug that PyOpenCV requires one to create/copy+edit a "config.py" file,
given that most packages are capable of following these standard
conventions and automatically figuring out the correct locations.
Additionally, requiring an explicit configuration causes the standard
installation via setuptools "sudo easy_install -O2 pyopencv" to fail.
Original issue reported on code.google.com by michaelsafyan
on 5 May 2010 at 1:20
What steps will reproduce the problem?
1. Download boost source and setup config.py
2. add 'using darwin : : /usr/bin/g++-4.2 ;' to tools/build/v2/user-config.jam
3. run setup.py build
What is the expected output? What do you see instead?
The software should compile, but instead it fails with a number of strange
errors.
What version of the product are you using? On what operating system?
latest svn version on Mac OSX
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 7 May 2010 at 5:00
Attachments:
What steps will reproduce the problem?
1. install opencv 2.1 and run the pyopencv installer for windows 32 & python 2.6
2. try to convert a numpy array to a cv array using cv.fromarray
3.
What is the expected output? What do you see instead?
I get the error message: AttributeError: 'module' object has no attribute
'fromarray'
What version of the product are you using? On what operating system?
opencv 2.1, pyopencv for python 2.6, windows xp
Please provide any additional information below.
when i do dir(cv) the attribute is not listed. This is what I get:
IDLE 2.6.5
>>> import cv
>>> dir(cv)
['16SC', '16UC', '32FC', '32SC', '64FC', '8SC', '8UC', 'Abs', 'AbsDiff',
'AbsDiffS', 'Acc', 'AdaptiveThreshold', 'Add', 'AddS', 'AddWeighted', 'And',
'AndS', 'ApproxChains', 'ApproxPoly', 'ArcLength', 'Avg', 'AvgSdv',
'BackProjectPCA', 'BoundingRect', 'BoxPoints', 'CMP', 'CV_16S', 'CV_16SC',
'CV_16SC1', 'CV_16SC2', 'CV_16SC3', 'CV_16SC4', 'CV_16U', 'CV_16UC',
'CV_16UC1', 'CV_16UC2', 'CV_16UC3', 'CV_16UC4', 'CV_32F', 'CV_32FC',
'CV_32FC1', 'CV_32FC2', 'CV_32FC3', 'CV_32FC4', 'CV_32S', 'CV_32SC',
'CV_32SC1', 'CV_32SC2', 'CV_32SC3', 'CV_32SC4', 'CV_64F', 'CV_64FC',
'CV_64FC1', 'CV_64FC2', 'CV_64FC3', 'CV_64FC4', 'CV_8S', 'CV_8SC', 'CV_8SC1',
'CV_8SC2', 'CV_8SC3', 'CV_8SC4', 'CV_8U', 'CV_8UC', 'CV_8UC1', 'CV_8UC2',
'CV_8UC3', 'CV_8UC4', 'CV_AA', 'CV_ADAPTIVE_THRESH_GAUSSIAN_C',
'CV_ADAPTIVE_THRESH_MEAN_C', 'CV_ARRAY', 'CV_AUTOSTEP', 'CV_BACK',
'CV_BGR2BGR555', 'CV_BGR2BGR565', 'CV_BGR2BGRA', 'CV_BGR2GRAY', 'CV_BGR2HLS',
'CV_BGR2HSV', 'CV_BGR2Lab', 'CV_BGR2Luv', 'CV_BGR2RGB', 'CV_BGR2RGBA',
'CV_BGR2XYZ', 'CV_BGR2YCrCb', 'CV_BGR5552BGR', 'CV_BGR5552BGRA',
'CV_BGR5552GRAY', 'CV_BGR5552RGB', 'CV_BGR5552RGBA', 'CV_BGR5652BGR',
'CV_BGR5652BGRA', 'CV_BGR5652GRAY', 'CV_BGR5652RGB', 'CV_BGR5652RGBA',
'CV_BGRA2BGR', 'CV_BGRA2BGR555', 'CV_BGRA2BGR565', 'CV_BGRA2GRAY',
'CV_BGRA2RGB', 'CV_BGRA2RGBA', 'CV_BILATERAL', 'CV_BLUR', 'CV_BLUR_NO_SCALE',
'CV_BayerBG2BGR', 'CV_BayerBG2RGB', 'CV_BayerGB2BGR', 'CV_BayerGB2RGB',
'CV_BayerGR2BGR', 'CV_BayerGR2RGB', 'CV_BayerRG2BGR', 'CV_BayerRG2RGB', 'CV_C',
'CV_CALIB_CB_ADAPTIVE_THRESH', 'CV_CALIB_CB_FILTER_QUADS',
'CV_CALIB_CB_NORMALIZE_IMAGE', 'CV_CALIB_FIX_ASPECT_RATIO',
'CV_CALIB_FIX_FOCAL_LENGTH', 'CV_CALIB_FIX_INTRINSIC', 'CV_CALIB_FIX_K1',
'CV_CALIB_FIX_K2', 'CV_CALIB_FIX_K3', 'CV_CALIB_FIX_PRINCIPAL_POINT',
'CV_CALIB_SAME_FOCAL_LENGTH', 'CV_CALIB_USE_INTRINSIC_GUESS',
'CV_CALIB_ZERO_DISPARITY', 'CV_CALIB_ZERO_TANGENT_DIST',
'CV_CANNY_L2_GRADIENT', 'CV_CAP_PROP_BRIGHTNESS', 'CV_CAP_PROP_CONTRAST',
'CV_CAP_PROP_CONVERT_RGB', 'CV_CAP_PROP_EXPOSURE', 'CV_CAP_PROP_FORMAT',
'CV_CAP_PROP_FOURCC', 'CV_CAP_PROP_FPS', 'CV_CAP_PROP_FRAME_COUNT',
'CV_CAP_PROP_FRAME_HEIGHT', 'CV_CAP_PROP_FRAME_WIDTH', 'CV_CAP_PROP_GAIN',
'CV_CAP_PROP_HUE', 'CV_CAP_PROP_MODE', 'CV_CAP_PROP_POS_AVI_RATIO',
'CV_CAP_PROP_POS_FRAMES', 'CV_CAP_PROP_POS_MSEC', 'CV_CAP_PROP_RECTIFICATION',
'CV_CAP_PROP_SATURATION', 'CV_CAP_PROP_WHITE_BALANCE', 'CV_CHAIN_APPROX_NONE',
'CV_CHAIN_APPROX_SIMPLE', 'CV_CHAIN_APPROX_TC89_KCOS',
'CV_CHAIN_APPROX_TC89_L1', 'CV_CHAIN_CODE', 'CV_CHECK_QUIET', 'CV_CHECK_RANGE',
'CV_CHOLESKY', 'CV_CLOCKWISE', 'CV_CMP', 'CV_CMP_EQ', 'CV_CMP_GE', 'CV_CMP_GT',
'CV_CMP_LE', 'CV_CMP_LT', 'CV_CMP_NE', 'CV_CN_MAX', 'CV_CN_SHIFT',
'CV_COLORCVT_MAX', 'CV_COMP_BHATTACHARYYA', 'CV_COMP_CHISQR', 'CV_COMP_CORREL',
'CV_COMP_INTERSECT', 'CV_CONTOURS_MATCH_I1', 'CV_CONTOURS_MATCH_I2',
'CV_CONTOURS_MATCH_I3', 'CV_CONTOUR_TREES_MATCH_I1', 'CV_COUNTER_CLOCKWISE',
'CV_COVAR_COLS', 'CV_COVAR_NORMAL', 'CV_COVAR_ROWS', 'CV_COVAR_SCALE',
'CV_COVAR_SCRAMBLED', 'CV_COVAR_USE_AVG', 'CV_DIFF', 'CV_DIFF_C', 'CV_DIFF_L1',
'CV_DIFF_L2', 'CV_DIST_C', 'CV_DIST_FAIR', 'CV_DIST_HUBER', 'CV_DIST_L1',
'CV_DIST_L12', 'CV_DIST_L2', 'CV_DIST_MASK_3', 'CV_DIST_MASK_5',
'CV_DIST_MASK_PRECISE', 'CV_DIST_USER', 'CV_DIST_WELSCH', 'CV_DOMINANT_IPAN',
'CV_DXT_FORWARD', 'CV_DXT_INVERSE', 'CV_DXT_INVERSE_SCALE', 'CV_DXT_INV_SCALE',
'CV_DXT_MUL_CONJ', 'CV_DXT_ROWS', 'CV_DXT_SCALE', 'CV_EVENT_FLAG_ALTKEY',
'CV_EVENT_FLAG_CTRLKEY', 'CV_EVENT_FLAG_LBUTTON', 'CV_EVENT_FLAG_MBUTTON',
'CV_EVENT_FLAG_RBUTTON', 'CV_EVENT_FLAG_SHIFTKEY', 'CV_EVENT_LBUTTONDBLCLK',
'CV_EVENT_LBUTTONDOWN', 'CV_EVENT_LBUTTONUP', 'CV_EVENT_MBUTTONDBLCLK',
'CV_EVENT_MBUTTONDOWN', 'CV_EVENT_MBUTTONUP', 'CV_EVENT_MOUSEMOVE',
'CV_EVENT_RBUTTONDBLCLK', 'CV_EVENT_RBUTTONDOWN', 'CV_EVENT_RBUTTONUP',
'CV_ErrModeLeaf', 'CV_ErrModeParent', 'CV_ErrModeSilent', 'CV_FILLED',
'CV_FLOODFILL_FIXED_RANGE', 'CV_FLOODFILL_MASK_ONLY', 'CV_FM_7POINT',
'CV_FM_8POINT', 'CV_FM_LMEDS', 'CV_FM_LMEDS_ONLY', 'CV_FM_RANSAC',
'CV_FM_RANSAC_ONLY', 'CV_FONT_HERSHEY_COMPLEX',
'CV_FONT_HERSHEY_COMPLEX_SMALL', 'CV_FONT_HERSHEY_DUPLEX',
'CV_FONT_HERSHEY_PLAIN', 'CV_FONT_HERSHEY_SCRIPT_COMPLEX',
'CV_FONT_HERSHEY_SCRIPT_SIMPLEX', 'CV_FONT_HERSHEY_SIMPLEX',
'CV_FONT_HERSHEY_TRIPLEX', 'CV_FONT_ITALIC', 'CV_FONT_VECTOR0', 'CV_FOURCC',
'CV_FRONT', 'CV_GAUSSIAN', 'CV_GAUSSIAN_5x5', 'CV_GEMM_A_T', 'CV_GEMM_B_T',
'CV_GEMM_C_T', 'CV_GRAPH_ALL_ITEMS', 'CV_GRAPH_ANY_EDGE',
'CV_GRAPH_BACKTRACKING', 'CV_GRAPH_BACK_EDGE', 'CV_GRAPH_CROSS_EDGE',
'CV_GRAPH_FORWARD_EDGE', 'CV_GRAPH_FORWARD_EDGE_FLAG',
'CV_GRAPH_ITEM_VISITED_FLAG', 'CV_GRAPH_NEW_TREE', 'CV_GRAPH_OVER',
'CV_GRAPH_SEARCH_TREE_NODE_FLAG', 'CV_GRAPH_TREE_EDGE', 'CV_GRAPH_VERTEX',
'CV_GRAY2BGR', 'CV_GRAY2BGR555', 'CV_GRAY2BGR565', 'CV_GRAY2BGRA',
'CV_GRAY2RGB', 'CV_GRAY2RGBA', 'CV_HAAR_DO_CANNY_PRUNING',
'CV_HAAR_DO_ROUGH_SEARCH', 'CV_HAAR_FEATURE_MAX',
'CV_HAAR_FIND_BIGGEST_OBJECT', 'CV_HAAR_MAGIC_VAL', 'CV_HAAR_SCALE_IMAGE',
'CV_HIST_ARRAY', 'CV_HIST_SPARSE', 'CV_HLS2BGR', 'CV_HLS2RGB',
'CV_HOUGH_GRADIENT', 'CV_HOUGH_MULTI_SCALE', 'CV_HOUGH_PROBABILISTIC',
'CV_HOUGH_STANDARD', 'CV_HSV2BGR', 'CV_HSV2RGB', 'CV_IABS',
'CV_IMWRITE_JPEG_QUALITY', 'CV_IMWRITE_PNG_COMPRESSION',
'CV_IMWRITE_PXM_BINARY', 'CV_INPAINT_NS', 'CV_INPAINT_TELEA', 'CV_INTER_AREA',
'CV_INTER_CUBIC', 'CV_INTER_LINEAR', 'CV_INTER_NN', 'CV_IS_SEQ_CLOSED',
'CV_IS_SEQ_CONVEX', 'CV_IS_SEQ_CURVE', 'CV_IS_SEQ_HOLE', 'CV_IS_SEQ_INDEX',
'CV_IS_SEQ_SIMPLE', 'CV_KMEANS_USE_INITIAL_LABELS', 'CV_L1', 'CV_L2',
'CV_LINK_RUNS', 'CV_LKFLOW_GET_MIN_EIGENVALS', 'CV_LKFLOW_INITIAL_GUESSES',
'CV_LKFLOW_PYR_A_READY', 'CV_LKFLOW_PYR_B_READY', 'CV_LMEDS',
'CV_LOAD_IMAGE_COLOR', 'CV_LOAD_IMAGE_GRAYSCALE', 'CV_LOAD_IMAGE_UNCHANGED',
'CV_LU', 'CV_Lab2BGR', 'CV_Lab2RGB', 'CV_Luv2BGR', 'CV_Luv2RGB', 'CV_MAKETYPE',
'CV_MAT_CN', 'CV_MAT_DEPTH', 'CV_MAX_ARR', 'CV_MAX_DIM', 'CV_MAX_SOBEL_KSIZE',
'CV_MEDIAN', 'CV_MINMAX', 'CV_MOP_BLACKHAT', 'CV_MOP_CLOSE', 'CV_MOP_GRADIENT',
'CV_MOP_OPEN', 'CV_MOP_TOPHAT', 'CV_NEXT_AROUND_DST', 'CV_NEXT_AROUND_LEFT',
'CV_NEXT_AROUND_ORG', 'CV_NEXT_AROUND_RIGHT', 'CV_NORMAL', 'CV_NORM_MASK',
'CV_NO_CN_CHECK', 'CV_NO_DEPTH_CHECK', 'CV_NO_SIZE_CHECK',
'CV_PCA_DATA_AS_COL', 'CV_PCA_DATA_AS_ROW', 'CV_PCA_USE_AVG', 'CV_PI',
'CV_POLY_APPROX_DP', 'CV_PREV_AROUND_DST', 'CV_PREV_AROUND_LEFT',
'CV_PREV_AROUND_ORG', 'CV_PREV_AROUND_RIGHT', 'CV_PTLOC_INSIDE',
'CV_PTLOC_ON_EDGE', 'CV_PTLOC_OUTSIDE_RECT', 'CV_PTLOC_VERTEX', 'CV_QR',
'CV_RAND_NORMAL', 'CV_RAND_UNI', 'CV_RANSAC', 'CV_REDUCE_AVG', 'CV_REDUCE_MAX',
'CV_REDUCE_MIN', 'CV_REDUCE_SUM', 'CV_RELATIVE', 'CV_RELATIVE_C',
'CV_RELATIVE_L1', 'CV_RELATIVE_L2', 'CV_RETR_CCOMP', 'CV_RETR_EXTERNAL',
'CV_RETR_LIST', 'CV_RETR_TREE', 'CV_RGB', 'CV_RGB2BGR', 'CV_RGB2BGR555',
'CV_RGB2BGR565', 'CV_RGB2BGRA', 'CV_RGB2GRAY', 'CV_RGB2HLS', 'CV_RGB2HSV',
'CV_RGB2Lab', 'CV_RGB2Luv', 'CV_RGB2RGBA', 'CV_RGB2XYZ', 'CV_RGB2YCrCb',
'CV_RGBA2BGR', 'CV_RGBA2BGR555', 'CV_RGBA2BGR565', 'CV_RGBA2BGRA',
'CV_RGBA2GRAY', 'CV_RGBA2RGB', 'CV_SCHARR', 'CV_SHAPE_CROSS',
'CV_SHAPE_CUSTOM', 'CV_SHAPE_ELLIPSE', 'CV_SHAPE_RECT', 'CV_SIGN',
'CV_SORT_ASCENDING', 'CV_SORT_DESCENDING', 'CV_SORT_EVERY_COLUMN',
'CV_SORT_EVERY_ROW', 'CV_STEREO_BM_BASIC', 'CV_STEREO_BM_FISH_EYE',
'CV_STEREO_BM_NARROW', 'CV_STEREO_BM_NORMALIZED_RESPONSE',
'CV_STEREO_GC_OCCLUDED', 'CV_SUBDIV2D_VIRTUAL_POINT_FLAG', 'CV_SVD',
'CV_SVD_MODIFY_A', 'CV_SVD_SYM', 'CV_SVD_U_T', 'CV_SVD_V_T', 'CV_TERMCRIT_EPS',
'CV_TERMCRIT_ITER', 'CV_TERMCRIT_NUMBER', 'CV_THRESH_BINARY',
'CV_THRESH_BINARY_INV', 'CV_THRESH_MASK', 'CV_THRESH_OTSU', 'CV_THRESH_TOZERO',
'CV_THRESH_TOZERO_INV', 'CV_THRESH_TRUNC', 'CV_TM_CCOEFF',
'CV_TM_CCOEFF_NORMED', 'CV_TM_CCORR', 'CV_TM_CCORR_NORMED', 'CV_TM_SQDIFF',
'CV_TM_SQDIFF_NORMED', 'CV_VALUE', 'CV_WARP_FILL_OUTLIERS',
'CV_WARP_INVERSE_MAP', 'CV_WINDOW_AUTOSIZE', 'CV_XYZ2BGR', 'CV_XYZ2RGB',
'CV_YCrCb2BGR', 'CV_YCrCb2RGB', 'CalcArrBackProject', 'CalcArrHist',
'CalcBackProject', 'CalcBackProjectPatch', 'CalcCovarMatrix', 'CalcEMD2',
'CalcGlobalOrientation', 'CalcHist', 'CalcMotionGradient', 'CalcOpticalFlowBM',
'CalcOpticalFlowFarneback', 'CalcOpticalFlowHS', 'CalcOpticalFlowLK',
'CalcOpticalFlowPyrLK', 'CalcPCA', 'CalcProbDensity', 'CalcSubdivVoronoi2D',
'CalibrateCamera2', 'CalibrationMatrixValues', 'CamShift', 'Canny',
'CaptureFromCAM', 'CaptureFromFile', 'CartToPolar', 'Cbrt', 'Ceil', 'CheckArr',
'CheckContourConvexity', 'Circle', 'ClearHist', 'ClearND', 'ClearSeq',
'ClearSubdivVoronoi2D', 'ClipLine', 'CloneImage', 'CloneMat', 'CloneMatND',
'CloneSeq', 'Cmp', 'CmpS', 'CompareHist', 'ComputeCorrespondEpilines',
'ContourArea', 'ContourFromContourTree', 'Convert', 'ConvertMaps',
'ConvertPointsHomogeneous', 'ConvertScale', 'ConvertScaleAbs', 'ConvexHull2',
'ConvexityDefects', 'Copy', 'CopyMakeBorder', 'CornerEigenValsAndVecs',
'CornerHarris', 'CornerMinEigenVal', 'CountNonZero', 'CreateCameraCapture',
'CreateContourTree', 'CreateData', 'CreateFileCapture', 'CreateHist',
'CreateImage', 'CreateImageHeader', 'CreateKalman', 'CreateMat',
'CreateMatHeader', 'CreateMatND', 'CreateMatNDHeader', 'CreateMemStorage',
'CreatePOSITObject', 'CreateStereoBMState', 'CreateStereoGCState',
'CreateStructuringElementEx', 'CreateSubdivDelaunay2D', 'CreateTrackbar',
'CreateVideoWriter', 'CrossProduct', 'CvtColor', 'CvtPixToPlane', 'CvtScale',
'DCT', 'DFT', 'DecodeImage', 'DecodeImageM', 'DecomposeProjectionMatrix',
'DestroyAllWindows', 'DestroyWindow', 'Det', 'Dilate', 'DistTransform', 'Div',
'DotProduct', 'DrawChessboardCorners', 'DrawContours', 'EigenVV', 'Ellipse',
'EllipseBox', 'EncodeImage', 'EqualizeHist', 'Erode', 'EstimateRigidTransform',
'Exp', 'ExtractSURF', 'FOURCC', 'FastArctan', 'FillConvexPoly', 'FillPoly',
'Filter2D', 'FindChessboardCorners', 'FindContours', 'FindCornerSubPix',
'FindExtrinsicCameraParams2', 'FindFundamentalMat', 'FindHomography',
'FindNearestPoint2D', 'FindStereoCorrespondenceBM',
'FindStereoCorrespondenceGC', 'FitEllipse2', 'FitLine', 'Flip', 'FloodFill',
'Floor', 'GEMM', 'Get1D', 'Get2D', 'Get3D', 'GetAffineTransform',
'GetCaptureProperty', 'GetCentralMoment', 'GetCol', 'GetCols', 'GetDiag',
'GetDims', 'GetElemType', 'GetHuMoments', 'GetImage', 'GetImageCOI',
'GetImageROI', 'GetMat', 'GetMinMaxHistValue', 'GetND',
'GetNormalizedCentralMoment', 'GetOptimalDFTSize', 'GetOptimalNewCameraMatrix',
'GetPerspectiveTransform', 'GetQuadrangleSubPix', 'GetReal1D', 'GetReal2D',
'GetReal3D', 'GetRealND', 'GetRectSubPix', 'GetRotationMatrix2D', 'GetRow',
'GetRows', 'GetSize', 'GetSpatialMoment', 'GetStarKeypoints', 'GetSubRect',
'GetTextSize', 'GetTickCount', 'GetTickFrequency', 'GetTrackbarPos',
'GoodFeaturesToTrack', 'GrabFrame', 'HOGDetectMultiScale', 'HaarDetectObjects',
'HoughCircles', 'HoughLines2', 'IABS', 'IPL_DEPTH_16S', 'IPL_DEPTH_16U',
'IPL_DEPTH_32F', 'IPL_DEPTH_32S', 'IPL_DEPTH_64F', 'IPL_DEPTH_8S',
'IPL_DEPTH_8U', 'IPL_ORIGIN_BL', 'IPL_ORIGIN_TL', 'IS_SEQ_CLOSED',
'IS_SEQ_CONVEX', 'IS_SEQ_CURVE', 'IS_SEQ_HOLE', 'IS_SEQ_INDEX',
'IS_SEQ_SIMPLE', 'InRange', 'InRangeS', 'InitFont', 'InitIntrinsicParams2D',
'InitLineIterator', 'InitUndistortMap', 'InitUndistortRectifyMap', 'Inpaint',
'Integral', 'InvSqrt', 'Invert', 'IsInf', 'IsNaN', 'KMeans2', 'KalmanCorrect',
'KalmanPredict', 'LUT', 'Laplace', 'Line', 'Load', 'LoadImage', 'LoadImageM',
'Log', 'LogPolar', 'MAKETYPE', 'MAT_CN', 'MAT_DEPTH', 'Mahalonobis', 'MatMul',
'MatMulAdd', 'MatchContourTrees', 'MatchShapes', 'MatchTemplate', 'Max',
'MaxRect', 'MaxS', 'MeanShift', 'Merge', 'Min', 'MinAreaRect2',
'MinEnclosingCircle', 'MinMaxLoc', 'MinS', 'MixChannels', 'Moments',
'MorphologyEx', 'MoveWindow', 'Mul', 'MulSpectrums', 'MulTransposed',
'MultiplyAcc', 'NamedWindow', 'Norm', 'Normalize', 'NormalizeHist', 'Not',
'Or', 'OrS', 'POSIT', 'PerspectiveTransform', 'PointPolygonTest',
'PolarToCart', 'PolyLine', 'Pow', 'PreCornerDetect', 'ProjectPCA',
'ProjectPoints2', 'PutText', 'PyrDown', 'PyrMeanShiftFiltering',
'PyrSegmentation', 'PyrUp', 'QueryFrame', 'QueryHistValue_1D',
'QueryHistValue_2D', 'QueryHistValue_3D', 'QueryHistValue_nD', 'RGB', 'RNG',
'RQDecomp3x3', 'RandArr', 'RandInt', 'RandReal', 'RandShuffle', 'Range',
'RealScalar', 'Rectangle', 'Reduce', 'Remap', 'Repeat', 'ReprojectImageTo3D',
'ResetImageROI', 'Reshape', 'ReshapeMatND', 'Resize', 'ResizeWindow',
'RetrieveFrame', 'Rodrigues2', 'Round', 'RunningAvg', 'SIGN', 'SVBkSb', 'SVD',
'Save', 'SaveImage', 'Scalar', 'ScalarAll', 'Scale', 'ScaleAdd',
'SegmentMotion', 'SeqInvert', 'SeqRemove', 'SeqRemoveSlice', 'Set', 'Set1D',
'Set2D', 'Set3D', 'SetCaptureProperty', 'SetData', 'SetIdentity',
'SetImageCOI', 'SetImageROI', 'SetMouseCallback', 'SetND', 'SetReal1D',
'SetReal2D', 'SetReal3D', 'SetRealND', 'SetTrackbarPos', 'SetZero',
'ShowImage', 'Smooth', 'SnakeImage', 'Sobel', 'Solve', 'SolveCubic',
'SolvePoly', 'Sort', 'Split', 'Sqrt', 'SquareAcc', 'StartWindowThread',
'StereoCalibrate', 'StereoRectify', 'StereoRectifyUncalibrated', 'Sub',
'SubRS', 'SubS', 'Subdiv2DEdgeDst', 'Subdiv2DEdgeOrg', 'Subdiv2DGetEdge',
'Subdiv2DLocate', 'Subdiv2DNextEdge', 'Subdiv2DRotateEdge',
'SubdivDelaunay2DInsert', 'Sum', 'ThreshHist', 'Threshold', 'Trace',
'Transform', 'Transpose', 'Undistort2', 'UndistortPoints',
'UpdateMotionHistory', 'WaitKey', 'WarpAffine', 'WarpPerspective', 'Watershed',
'WriteFrame', 'Xor', 'XorS', 'Zero', '__doc__', '__file__', '__name__',
'__package__', 'cvmat', 'error', 'iplimage', 'mGet', 'mSet', 'temp_test']
Original issue reported on code.google.com by [email protected]
on 5 Nov 2010 at 9:18
What steps will reproduce the problem?
1. After Train a Cv_Boost() trying to get_weak_predictors,
and iterate over a sequence of Pointers to Cv_DTree objects
2. Code:
cvseq = strong.get_weak_predictors();
for i in range(cvseq.total):
CV_GET_SEQ_ELEM(CV_TYPE_NAME_SEQ_TREE,i,cvseq)
What is the expected output? What do you see instead?
For each DecisionStump, the attribute selected in the trained model.
Returns: File line 146, in get_weak_predictors
CV_GET_SEQ_ELEM(CV_TYPE_NAME_SEQ_TREE,i,cvseq)
File "/usr/lib/python2.6/dist-packages/pyopencv/cxtypes_h.py", line 438, in CV_GET_SEQ_ELEM
result = cvGetSeqElem(seq, index)
NameError: global name 'cvGetSeqElem' is not defined
What version of the product are you using? On what operating system?
>>> pyopencv.PYOPENCV_VERSION
'2.1.0.wr1.2.0'
UBUNTU 0.9.10.1
Please provide any additional information below.
There is any workaround for accessing to DecisionStump's selected attribute
over the sequence of weaks predictors ?
Thanks in advance for your time.
Original issue reported on code.google.com by [email protected]
on 14 Dec 2010 at 5:16
What steps will reproduce the problem?
1. Download PyOpenCV and Boost
2. Compile Boost.Python from source
3. Compile PyOpenCV from source using Boost.Python from source
4. Try to run the following code in ipython
import pyopencv as cv
a = cv.Mat(3,3,cv.CV_32F)
a
What is the expected output? What do you see instead?
I expect to see the content of a.
What I get is a huge pile of error message ending with:
/home/dchu/Desktop/PythonURxDTest/pyopencv/core.pyc in _Mat__repr__(self)
1831
1832 def _Mat__repr__(self):
-> 1833 return "Mat()" if self.empty() else "Mat(rows=" +
repr(self.rows) + ", cols=" + repr(self.cols) + ", nchannels=" +
repr(self.channels()) + ", depth=" + repr(self.depth()) + "):\n" +
repr(self.ndarray)
1834 Mat.__repr__ = _Mat__repr__
1835
ValueError: dimensions too large.
What version of the product are you using? On what operating system?
PyOpenCV1.0.2.tar.gz
Ubuntu 10.04 64-bit
Please provide any additional information below.
This seems to be a problem with 64-bit systems. Is there anyone out there
with the same Ubuntu version in 32-bit who can confirm this?
Original issue reported on code.google.com by [email protected]
on 20 May 2010 at 1:44
What steps will reproduce the problem?
1. download
2. unzip
3. edit config
4. run python setup.py build
What is the expected output? What do you see instead?
running build
running build_py
copying pyopencv/config.py -> build/lib.linux-i686-2.6/pyopencv
running build_ext
building 'pyopencv.pyopencvext' extension
bjam release test link=static
notice: no Python configured in user-config.jam
notice: will use default configuration
/usr/share/boost-build/build/project.jam:270: in find-jamfile from module
project
error: Unable to load Jamfile.
error: Could not find a Jamfile in directory '/usr/include'.
error: Attempted to find it with pattern '[Bb]uild.jam [Jj]amfile.v2 [Jj]amfile
[Jj]amfile.jam'.
error: Please consult the documentation at 'http://www.boost.org'.
/usr/share/boost-build/build/project.jam:290: in load-jamfile from module
project
/usr/share/boost-build/build/project.jam:68: in project.load from module project
/usr/share/boost-build/build/project.jam:718: in project.use from module project
/usr/share/boost-build/build/project.jam:94: in load-used-projects from module
project
/usr/share/boost-build/build/project.jam:79: in load from module project
/usr/share/boost-build/build/project.jam:170: in project.find from module
project
/usr/share/boost-build/build-system.jam:248: in load from module build-system
/usr/share/boost-build/kernel/modules.jam:261: in import from module modules
/usr/share/boost-build/kernel/bootstrap.jam:132: in boost-build from module
/home/dan/tmp/pyopencv-2.0.wr1.0.0/boost-build.jam:2: in module scope from
module
error: command 'bjam' failed with exit status 1
What version of the product are you using? On what operating system?
pyopencv-2.0.wr1.0.0 on Ubuntu 9.10
Please provide any additional information below.
config.py
---------
import os
from glob import glob
# OpenCV 2.0 library, to be linked against using bjam+gcc
opencv_dir = "/usr/local"
opencv_include_dirs = [opencv_dir+"/include/opencv"]
opencv_library_dirs = [opencv_dir+"/lib"]
opencv_libraries = ["highgui", "ml", "cvaux", "cv", "cxcore"]
opencv_runtime_library_dirs = []
opencv_runtime_libraries_to_be_bundled = []
# Boost.Python library, to be linked against using bjam+gcc and bundled with
boost_include_dirs = ["/usr/include"]
boost_library_dirs = ['/usr/lib']
boost_libraries = []
boost_runtime_library_dirs = []
boost_runtime_libraries_to_be_bundled = []
Original issue reported on code.google.com by [email protected]
on 5 Feb 2010 at 5:38
What steps will reproduce the problem?
1. Run setuptools-0.6c11-py2.6.egg as root
2. Run setup.py config
3. Run setup.py install as root
What is the expected output? What do you see instead?
I get a compilation error:
In file included from package/extras/core/opencv_extra.hpp:15,
from package/extras/core/opencv_converters.hpp:17,
from package/extras/core/opencv_converters.cpp:14:
package/extras/core/opencv_headers.hpp:7: fatal error: cxcore.h: No such file
or directory
compilation terminated.
What version of the product are you using? On what operating system?
pyopencv-2.1.0.wr1.2.0 source
Configuration: Ubuntu 10.10, with packages libboost-python-dev v1.42.0,
libcv-dev v2.1.0 and libcvaux-dev v2.1.0 and their dependencies installed
Please provide any additional information below.
The pyopencv configuration seems to be unable to locate the include directories
for opencv.
Original issue reported on code.google.com by [email protected]
on 7 Nov 2010 at 8:02
I am trying to install pyopencv on an Ubuntu system (Linux 3.0.0-14-generic
#23-Ubuntu SMP Mon Nov 21 20:28:43 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux).
I already have OpenCV library installed and working. At least the sample code
provided by OpenCV are working. I also have the latest Boost.Python installed
from the Ubuntu repository.
I followed the installation instructions
(http://code.google.com/p/pyopencv/wiki/Installation_PyOpenCV)
1. Downloaded pyopencv source (pyopencv-2.1.0.wr1.2.0.tar.gz)
2. Installed cmake and cmake-gui
3. Configured via setuptools (python setup.py config)
4. Built and installed via cmake
However, after running the make command, an error appears whose complete log
(which is quite big) is attached.
I would appreciate very much if anyone can give me an insight.
Cheers,
Sebastian
Original issue reported on code.google.com by [email protected]
on 16 Dec 2011 at 8:07
Attachments:
What steps will reproduce the problem?
1.Windows 7 SP1
2. Eclipse platform 3.5.2
3.pyopencv 2.1.0 wr1.1.0
I tried to run the following code and always returns "Error opening capture
device". In other other words I've never been able to load a video file.
The file is in the folder and I could watch it with my regular viewer so the
codec is installed.
I think it tries to capture the flow from the webcam (that i don't have).
Could you help me with that issue ?
Thanks,
if __name__ == '__main__':
# a small welcome
print("OpenCV Python capture video")
# first, create the necessary window
namedWindow('Camera', CV_WINDOW_AUTOSIZE)
# move the new window to a better place
moveWindow('Camera', 10, 10)
capture = VideoCapture("video.mpg")
# check that capture device is OK
if not capture.isOpened():
print("Error opening capture device")
sys.exit (1)
Original issue reported on code.google.com by [email protected]
on 4 Aug 2011 at 2:20
>>> What steps will reproduce the problem?
1. run the following code, which use a SparseMat to get the result of calcHist.
import pyopencv as cv
import numpy as np
img = cv.Mat(100, 100, cv.CV_8UC3)
img[:] = 0
result = cv.SparseMat() # <--- NG
# result = cv.MatND() # <--- OK
r = cv.Mat(1,2,cv.CV_32F)
r[0,:] = 0, 256
ranges = [r, r]
cv.calcHist([img],
channels = cv.asMat([0, 1]),
mask = cv.Mat(),
hist = result,
histSize=cv.asMat([10, 10]),
ranges=ranges
)
print result
2. The program cause a system error.
3. using MatND is OK.
>>> What is the expected output? What do you see instead?
The same result as using MatND.
>>> What version of the product are you using? On what operating system?
Windows XP, Version: 2.1.0.wr1.0.2
>>> Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 8 Jun 2010 at 7:50
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.