You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to import imutils in Debian distro running on BeagleBone Black. This is what im getting when i import it in the Python Interpreter;
root@beaglebone:~# python
Python 2.7.3 (default, Mar 14 2014, 17:55:54)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import imutils
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/imutils/init.py", line 5, in
from .convenience import translate
File "/usr/local/lib/python2.7/dist-packages/imutils/convenience.py", line 108, in
def url_to_image(url, readFlag=cv2.IMREAD_COLOR):
AttributeError: 'module' object has no attribute 'IMREAD_COLOR'
the IMREAD_COLOR is part of the cv2 module which are your OpenCV bindings. Which OpenCV version are you using? I've seen errors like this happen when you install OpenCV via apt-get instead of compiling via source.
This is the kernel version i am operating on;
root@beaglebone:~# uname -a
Linux beaglebone 3.8.13-bone79 #1 SMP Tue Oct 13 20:44:55 UTC 2015 armv7l
GNU/Linux
See below for the cv2 version running on the system;
root@beaglebone:~# python
Python 2.7.3 (default, Mar 14 2014, 17:55:54)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
the IMREAD_COLOR is part of the cv2 module which are your OpenCV
bindings. Which OpenCV version are you using? I've seen errors like this
happen when you install OpenCV via apt-get instead of compiling via
source.
Run:
$ python
import cv2
cv2.version_
And then report back your version.
—
Reply to this email directly or view it on GitHub #7 (comment).
It sounds like you installed OpenCV via apt-get, which normally installs an out-dated version with functionality missing. I would suggest installing OpenCV from source to avoid this issue. The instructions listed below can be used to install OpenCV from source for Debian:
I'm going to go ahead and close this issue now. Re-flash Debian onto your BeagleBone Black and then compile OpenCV from source and it should take care of the issue. Otherwise, it might be a BBB issue, and since I do not have one, I cannot further diagnose the problem.
Activity
jrosebr1 commentedon Mar 7, 2016
the
IMREAD_COLORis part of thecv2module which are your OpenCV bindings. Which OpenCV version are you using? I've seen errors like this happen when you install OpenCV viaapt-getinstead of compiling via source.Run:
And then report back your version.
tinashemudavanhu commentedon Mar 7, 2016
This is the kernel version i am operating on;
root@beaglebone:~# uname -a
Linux beaglebone 3.8.13-bone79 #1 SMP Tue Oct 13 20:44:55 UTC 2015 armv7l
GNU/Linux
See below for the cv2 version running on the system;
root@beaglebone:~# python
Python 2.7.3 (default, Mar 14 2014, 17:55:54)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
On Mon, Mar 7, 2016 at 1:26 PM, Adrian Rosebrock notifications@github.com
wrote:
jrosebr1 commentedon Mar 7, 2016
It sounds like you installed OpenCV via
apt-get, which normally installs an out-dated version with functionality missing. I would suggest installing OpenCV from source to avoid this issue. The instructions listed below can be used to install OpenCV from source for Debian:http://www.pyimagesearch.com/2015/06/22/install-opencv-3-0-and-python-2-7-on-ubuntu/
I'm going to go ahead and close this issue now. Re-flash Debian onto your BeagleBone Black and then compile OpenCV from source and it should take care of the issue. Otherwise, it might be a BBB issue, and since I do not have one, I cannot further diagnose the problem.