Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have a permission to ask a question, You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here
Sign InSign Up

ErrorCorner

ErrorCorner Logo ErrorCorner Logo

ErrorCorner Navigation

  • Home
  • Contact Us
  • About Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Contact Us
  • About Us
Home/ Questions/Q 223
Next
Answered
Kenil Vasani
Kenil Vasani

Kenil Vasani

  • 646 Questions
  • 567 Answers
  • 77 Best Answers
  • 26 Points
View Profile
  • 0
Kenil Vasani
Asked: December 8, 20202020-12-08T03:30:26+00:00 2020-12-08T03:30:26+00:00In: Python

Opencv imshow crashes python launcher on macOS 11.0.1 (Big Sur)

  • 0

I’m trying to run some old code from gaussian filter when I find out that python launcher gets stuck trying to do the imshow function. I tried:

  • Used Matplotlib to display a graph to see if the python launcher was the problem but no, graph showed up fine.
  • Remove process in between just to have the image read and display in fear that something in my code was breaking the launcher but no success.
  • Reinstalled opencv-python but no success.

Also saw one question like this in the google search but OP deleted it.

Has anyone encounter this issue or has any fix for this?

Example code:

import cv2 as cv
filename = 'chessboard.png'
img = cv.imread(filename)
cv.imshow('dst',img)
cv.waitKey(0)

OS: MacOS Big Sur (11.0.1)

macosopencvpython
  • 1 1 Answer
  • 27 Views
  • 0 Followers
  • 0
Answer
Share
  • Facebook

    1 Answer

    • Voted
    1. Kenil Vasani

      Kenil Vasani

      • 646 Questions
      • 567 Answers
      • 77 Best Answers
      • 26 Points
      View Profile
      Best Answer
      Kenil Vasani
      2020-12-08T03:30:35+00:00Added an answer on December 8, 2020 at 3:30 am

      I resolved the issue with below steps:

      1. Install the anaconda.
      2. Install the libraries needed.
      3. Run the script, there is an error appeared as below:

      You might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.

      1. then I installed two libraies:

      pip install opencv-python opencv-python-headless

      1. Retry run the script, the image can be shown on the left top of the monitor.
      • 0
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp

    You must login to add an answer.

    Forgot Password?

    Sidebar

    Ask A Question
    • Popular
    • Kenil Vasani

      SyntaxError: invalid syntax to repo init in the AOSP code

      • 5 Answers
    • Kenil Vasani

      xlrd.biffh.XLRDError: Excel xlsx file; not supported

      • 3 Answers
    • Kenil Vasani

      Homebrew fails on MacOS Big Sur

      • 3 Answers
    • Kenil Vasani

      runtimeError: package fails to pass a sanity check for numpy ...

      • 3 Answers
    • Kenil Vasani

      FATAL EXCEPTION: Firebase-Messaging-Intent-Handle — java.lang.NoClassDefFoundError

      • 2 Answers

    Explore

    • Most Answered
    • Most Visited
    • Most Voted
    • Random

    © 2020-2021 ErrorCorner. All Rights Reserved
    by ErrorCorner.com