logo
down
shadow

OpenCV not working properly with python on Linux with anaconda. Getting error that cv2.imshow() is not implemented


OpenCV not working properly with python on Linux with anaconda. Getting error that cv2.imshow() is not implemented

By : Killanrun
Date : November 20 2020, 11:01 PM
This might help you This is the exact error that I am getting. My OS is Ubuntu 16.10. , 1.The easiest way:
code :
conda remove opencv
conda update conda
conda install --channel menpo opencv
conda install -c menpo opencv3
import cv2
import matplotlib.pyplot as plt

img = cv2.imread('img.jpg',0)

plt.imshow(img, cmap='gray')
plt.show()
conda remove opencv
conda install -c conda-forge opencv=4.1.0
pip install opencv-contrib-python


Share : facebook icon twitter icon
Anaconda OpenCV Arch Linux libselinux.so error

Anaconda OpenCV Arch Linux libselinux.so error


By : Mr-Frazz
Date : March 29 2020, 07:55 AM
will help you I have installed Anaconda 64 bit on a relatively fresh install of Arch. , Fixed with installing the libselinux package in the AUR:
code :
yaourt -S libselinux
ImportError: /usr/lib/libpangoft2-1.0.so.0: undefined symbol: FcWeightToOpenType
conda install -c asmeurer pango
Python OpenCV imshow() function is not implemented

Python OpenCV imshow() function is not implemented


By : user6642364
Date : March 29 2020, 07:55 AM
hop of those help? it seems opencv have problem with python 3 and above. I tried this code in python 2.7 and it worked
OpenCV 3.1.0 imshow in Linux does not work for webcam (Python)

OpenCV 3.1.0 imshow in Linux does not work for webcam (Python)


By : Robert B
Date : March 29 2020, 07:55 AM
Hope this helps I hacked together a quick and dirty snippet that uses matplotlib.animation and resembles what cv2.imshow() is expected to do with webcam video:
code :
import cv2
import matplotlib.pyplot as plt
import matplotlib.animation as animation
cap = cv2.VideoCapture(0)
ret, frame = cap.read()
# The following is the replacement for cv2.imshow():
fig = plt.figure() 
ax = fig.add_subplot(111)
im = ax.imshow(cv2.cvtColor(frame, cv2.COLOR_BGR2RGB), animated=True)
def updatefig(*args):
    ret, frame = cap.read()
    im.set_array(cv2.cvtColor(frame, cv2.COLOR_BGR2RGB))
    return im
ani = animation.FuncAnimation(fig, updatefig, interval=10)
plt.show()
import matplotlib
matplotlib.use('qt5agg')
cv2.imshow command doesn't work properly in opencv-python

cv2.imshow command doesn't work properly in opencv-python


By : Dustin Go
Date : March 29 2020, 07:55 AM
should help you out I'm using opencv 2.4.2, python 2.7 The following simple code created a window of the correct name, but its content is just blank and doesn't show the image: , imshow() only works with waitKey():
opencv 3.0 python imshow error

opencv 3.0 python imshow error


By : UnitTset
Date : March 29 2020, 07:55 AM
this one helps. As the message says, you need to rebuild the library with gtk. Enter into your OpenCV folder and create a new folder with name Release.
Related Posts Related Posts :
  • Django Form Based on Variable Attributes
  • Relocate all the evens
  • How to scrap span ids' texts in beautifulsoup in the following html?
  • How to generate random number in a given range as a Tensorflow variable
  • Gradient Descent Variation doesn't work
  • Python 2.7 - search for a particular URL on a webpage with ajax
  • How to configure Luigi task retry correctly?
  • web.py : an urlencoded slash into args
  • Use of pyzmq's logging handler in python
  • How to count the number of a particular entry. python
  • devide int into lower whole ints
  • Access atribute of every object in pandas dataframe column
  • Combine Dataframe rows on conditions
  • Select closest date (or value) in pandas / python
  • Pycharm and remote interpreter (Docker) shows errors but runs fine
  • Get started to launch google-cloud-ml with my own dataset
  • Multiprocessing: use only the physical cores?
  • Django Login Custom Auth works locally but not on production server
  • Python: Invalid HTTP basic authentication header with long base64 string
  • How can I request several pages without wating for the output?
  • Flask Response vs Flask make_response
  • python linear regression predict by date
  • How to get pandas dataframe where columns are the subsequent n-elements from another column dataframe?
  • MYSQL: "Access denied for user 'X'@'localhost' (using password: YES)" PYTHON
  • install scipy package via pycharm in windows 10 64 bit - python 3.5
  • Update time in linux and solaris machines from robot framework
  • Complex pandas isin function
  • Averaging over every n elements of an array without numpy
  • An elegant way of inserting multiple arguments
  • IntegrityError:NOT NULL constraint failed: chatapp_chat.message
  • Indexing of 3d numpy arrays with 2d arrays
  • Creating a mean of columns with csv writer
  • Reading in environment variables from an environment file
  • Collapse duplicate rows with pandas
  • How can I use skyfied to convert SGP4 TEME coordinate to ECEF?
  • How to modify object in Python's Rtree index
  • Create Hexbin plot with pandas dataframe using index and columns names as x and y
  • SQLAlchemy query returns no data if a database field is empty
  • Python pandas column asignment between dataframe and series does not work
  • ValueError: Unknown label type: array while using Decision Tree Classifier and using a custom dataset
  • Trouble accessing exif information with PIL.Image._getexif()
  • Use all coordinates in a grid except with certain value
  • Why for loop is splitting strings of user input?
  • How can I add two variable and assign to result variable in Python?
  • Error when parsing timestamp with pandas read_csv
  • Slicing arrays based on boolean array in python
  • Feeding scipy.sparse() sparse matrices into CVXOPT
  • How to separate a irregularly cased string to get the words? - Python
  • Pandas: replace some values in column if that contain a substring
  • Fabric does not close the ssh connection
  • Python Creating Classes Code
  • When will train() method in easy_seq2seq stop?
  • How to split each element of the RDD in spark with python?
  • Read in csv file in python, round the values and write back to file
  • How to properly close a QWidget-window in an API with PythonQt
  • How to know which segment a value reside in
  • pandas: convert multiple categories to dummies
  • 'Options' object has no attribute 'get_all_field_names'
  • Customize django filter model field
  • NLTK tag Dutch sentence
  • shadow
    Privacy Policy - Terms - Contact Us © soohba.com