Skip to content

No icons in imshow() #585

@boris-gu

Description

@boris-gu

Expected behaviour

When using the imshow() function, a window appears, at the top there are various buttons

Actual behaviour

Buttons work, but they do not display icons

Buttons work, but they do not display icons

Steps to reproduce

  1. Install pip install opencv-contrib-python==4.5.3.56
  2. Run this code
import cv2
cap = cv2.VideoCapture(0)
if not cap.isOpened():
    print("Cannot open camera")
    exit()
while True:
    ret, frame = cap.read()
    if not ret:
        print("Can't receive frame (stream end?). Exiting ...")
        break
    cv2.imshow('frame', frame)
    if cv2.waitKey(1) != -1:
        break
cap.release()
cv2.destroyAllWindows()
Issue submission checklist
  • This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.)
  • I have read the README of this repository and understand that this repository provides only an automated build toolchain for OpenCV Python packages (there is no actual OpenCV code here)
  • The issue is related to the build scripts in this repository, to the pre-built binaries or is a feature request (such as "please enable this additional dependency")
  • I'm using the latest version of opencv-python
    I am not using the latest version due to this error: imshow segfaults in 4.5.4.58 on Ubuntu 21.04 (x86_64, Python 3.9) #572

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions