Ask Your Question

DevelopB's profile - activity

2019-12-11 21:08:23 -0600 received badge  Notable Question (source)
2018-09-15 23:17:07 -0600 received badge  Popular Question (source)
2017-11-22 23:48:09 -0600 received badge  Famous Question (source)
2017-06-20 15:33:59 -0600 received badge  Notable Question (source)
2017-04-09 07:12:31 -0600 received badge  Popular Question (source)
2016-09-19 09:07:31 -0600 commented question cmake error sys/video.h: No such file (OpenCV 3.1)

I am actually unable to proceed from here. Kindly suggest.

2016-09-18 05:18:20 -0600 asked a question cmake error sys/video.h: No such file (OpenCV 3.1)

While doing cmake getting below error (OpenCV 3.1 source):

OpenCV/build/make_dir/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:25: fatal error: sys/videoio.h: No such file or directory. compilation terminated. CMakeFiles/cmTC_01654.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_01654.dir/CheckIncludeFile.c.o' failed make[1]: * [CMakeFiles/cmTC_01654.dir/CheckIncludeFile.c.o] Error 1

I'd already installed below libs: libv4l-0:amd64 libv4l-dev:amd64 libv4l2rds0:amd64 libv4lconvert0:amd64 v4l-utils cmake cmd used: sudo cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_NEW_PYTHON_SUPPORT=ON -D BUILD_EXAMPLES=ON -D WITH_TBB=ON -D WITH_V4L=ON -D WITH_EIGEN=OFF -DOPENCV_EXTRA_MODULES_PATH=<path of="" opencv_contrib=""> <path of="" opencv="">

2016-09-18 01:33:23 -0600 received badge  Enthusiast
2016-09-17 22:41:07 -0600 commented question OpenCV source make error: OpenCV/modules/features2d/src/matchers.cpp:47:23: fatal error: Eigen/Array: No such file or directory

Hi Berak, The mentioned error is'nt coming with WITH_EIGEN=OFF but getting below error:

OpenCV/build/make_dir/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:25: fatal error: sys/videoio.h: No such file or directory. compilation terminated. CMakeFiles/cmTC_01654.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_01654.dir/CheckIncludeFile.c.o' failed make[1]: * [CMakeFiles/cmTC_01654.dir/CheckIncludeFile.c.o] Error 1

I'd already installed below libs: libv4l-0:amd64 libv4l-dev:amd64 libv4l2rds0:amd64 libv4lconvert0:amd64 v4l-utils cmake cmd used: sudo cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_NEW_PYTHON_SUPPORT=ON -D BUILD_EXAMPLES=ON -D WITH_TBB=ON -D WITH_V4L=ON -D WITH_EIGEN=OFF -DOPENCV_EXTRA_MODULES_PATH=<path of="" opencv_contrib=""> <path of="" opencv="">

2016-09-17 22:18:47 -0600 answered a question python sample script error : AttributeError: 'module' object has no attribute 'LINE_AA' (OpenCV 3.1, python 2.7.9)

I could alternatively proceed by make LINE_AA to CV_AA. Could not resolve root cause, which is in apt-xenial config that lists 2.4.x only and not 3.1 for OpenCV corresponding to cv2 library. Thank you very much Berak.

2016-09-16 07:43:19 -0600 commented question OpenCV source make error: OpenCV/modules/features2d/src/matchers.cpp:47:23: fatal error: Eigen/Array: No such file or directory

Just before this error, I was getting error for Eigen/Eigenvalues no such file or dir... which was resolved by installing libeigen3-dev. Now, this new error is coming. I checked usr/include/eigen3/ but Array doesnt exist, it seems Array is deprecated in OpenCV3 ? So, how do i go ahead?

2016-09-16 07:40:47 -0600 asked a question OpenCV source make error: OpenCV/modules/features2d/src/matchers.cpp:47:23: fatal error: Eigen/Array: No such file or directory

Hi, Am using OpenCV3.1,Python2.7. At sudo make of opencv source cloned from git rep, below log excerpt: (Kindly guide. Thanks in advance).

[ 77%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/keypoint.cpp.o [ 77%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/main.cpp.o [ 77%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/matchers.cpp.o /media/bhargav/Bhargav_WD1/temp_dir/home_bhargav/OpenCV/modules/features2d/src/matchers.cpp:47:23: fatal error: Eigen/Array: No such file or directory compilation terminated. modules/features2d/CMakeFiles/opencv_features2d.dir/build.make:552: recipe for target 'modules/features2d/CMakeFiles/opencv_features2d.dir/src/matchers.cpp.o' failed make[2]: * [modules/features2d/CMakeFiles/opencv_features2d.dir/src/matchers.cpp.o] Error 1 CMakeFiles/Makefile2:5821: recipe for target 'modules/features2d/CMakeFiles/opencv_features2d.dir/all' failed make[1]: [modules/features2d/CMakeFiles/opencv_features2d.dir/all] Error 2 Makefile:149: recipe for target 'all' failed make: ** [all] Error 2

2016-09-15 11:43:59 -0600 commented question python sample script error : AttributeError: 'module' object has no attribute 'LINE_AA' (OpenCV 3.1, python 2.7.9)

Can I get help on resolving this... how do I make sure the so file corresponds to openCV3.1 and not 2.4.x

2016-09-15 11:42:18 -0600 commented question python sample script error : AttributeError: 'module' object has no attribute 'LINE_AA' (OpenCV 3.1, python 2.7.9)

Hi, I got the lib file which one is picked up. the cv2.so is picked up as : /usr/lib/python2.7/dist-packages/cv2.x86_64-linux-gnu.so

This .so is getting created through the command: sudo apt-get install python-opencv

2016-09-15 08:53:43 -0600 commented question python sample script error : AttributeError: 'module' object has no attribute 'LINE_AA' (OpenCV 3.1, python 2.7.9)

Oh sorry. I understand your answer now. I am checking why wrong cv2 got installed/picked. ie cv2.so corresponding to 2.4.x version rather than 3.1.

2016-09-15 08:46:57 -0600 commented question python sample script error : AttributeError: 'module' object has no attribute 'LINE_AA' (OpenCV 3.1, python 2.7.9)

Sorry, not readable format as shrinked due to limit on length. That is the setup steps I followed. Using python 2.7 From OpenCV source git repository, did cmake and built make file. Used makefile to install OpenCV. The sample file is from the same source code, so it should work right? Or sample python files are not updated along with python versions?

I believe I have installed OpenCV 3.1 because of which 3.1 so files are installed. Not sure why __vesion__ is printing differently.

2016-09-15 08:43:36 -0600 commented question python sample script error : AttributeError: 'module' object has no attribute 'LINE_AA' (OpenCV 3.1, python 2.7.9)

Used steps: clone source from https://github.com/opencv/opencv.git. sudo apt-get update sudo apt install python-pip sudo pip install --upgrade pip sudo apt-get upgrade libv4l-dev cd /usr/include/linux sudo ln -s ../libv4l1-videodev.h videodev.h // This didnt exist before.But videodev2.h exists in my folder. sudo apt-get install python-setuptools python-dev build-essential sudo apt-get install cmake sudo apt-get install python-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libsmpeg-dev python-numpy subversion libportmidi-dev ffmpeg libswscale-dev libavformat-dev libavcodec-dev cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_NEW_PYTHON_SUPPORT=ON -D BUILD_EXAMPLES=ON .. sudo make sudo make install sudo apt-get install python-opencv

2016-09-15 07:43:38 -0600 commented question python sample script error : AttributeError: 'module' object has no attribute 'LINE_AA' (OpenCV 3.1, python 2.7.9)

Thank you Berak. It outputs: '2.4.9.1'

But i have version 3.1 installed (checked library files as *.so.3.1). The sample program opencv_version.py also is showing 2.4.9.1 in output.

2016-09-15 07:13:55 -0600 asked a question python sample script error : AttributeError: 'module' object has no attribute 'LINE_AA' (OpenCV 3.1, python 2.7.9)

Hi, posting the content below. Executed, as python facedetect.py in sample scripts of opencv version 3.1:

face detection using haar cascades

USAGE: facedetect.py [--cascade <cascade_fn>] [--nested-cascade <cascade_fn>] [<video_source>]

Traceback (most recent call last): File "facedetect.py", line 68, in <module> draw_str(vis, (20, 20), 'time: %.1f ms' % (dt*1000)) File "/media/bhargav/Bhargav_WD1/temp_dir/home_bhargav/OpenCV/samples/python/common.py", line 83, in draw_str cv2.putText(dst, s, (x+1, y+1), cv2.FONT_HERSHEY_PLAIN, 1.0, (0, 0, 0), thickness = 2, lineType=cv2.LINE_AA) AttributeError: 'module' object has no attribute 'LINE_AA'

Kindly help. Thanks in advance.

2016-09-11 10:04:05 -0600 answered a question How to uninstall OpenCV (Python)

Working with similar issue. But this below command helps (make uninstall will be applicable in case the installation done through make): sudo apt-get autoremove opencv-doc opencv-data libopencv-dev libopencv2.4-java libopencv2.4-jni python-opencv libopencv-core2.4 libopencv-gpu2.4 libopencv-ts2.4 libopencv-photo2.4 libopencv-contrib2.4 libopencv-imgproc2.4 libopencv-superres2.4 libopencv-stitching2.4 libopencv-ocl2.4 libopencv-legacy2.4 libopencv-ml2.4 libopencv-video2.4 libopencv-videostab2.4 libopencv-objdetect2.4 libopencv-calib3d2.4

Above one should help (it is specifically for 2.4 version). Below ones might be useful. ( I see that below commands executing succesfully for me but even after executing, corresponding lib files still retain in the /usr/local/lib..)

sudo apt-get purge libopencv* sudo apt-get purge opencv*