Skip to content

Cyrillic keyboard layout issue #21899

@GMtranscendence

Description

@GMtranscendence
System information (version)
  • OpenCV => opencv-contrib-python 4.5.5.64
  • Operating System / Platform => Arch Linux 64 Bit
  • Compiler => native python 3.10.4 iterpreter
Detailed description

opencv library crashes every time you use russian keyboard layout ( possible problems with others as well, at least cyrillic ones ) and also when pressing <shift+alt> to change layout during image displaying

Steps to reproduce
  1. create a simple script (test.py) to open an image and paste the code:
   import cv2 as cv
  
   img = cv.imread('some_image.jpg')
   cv.imshow('Picture', img)
   while True:
       k = cv.waitKey(0) & 0xFF
       if k == 27:
           cv.destroyAllWindows()
           break
  1. execute the script from terminal:
    python test.py

  2. try to change keyboard layout (<shift+alt>) or press a cyrillic key

Error:

ASSERT: "false" in file qasciikey.cpp, line 501

shell returned 134

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions