This function is highly dependent on the operating system: / some of them add a bit to an integer ....
ascii , , 27 - ascii ESC...
, , , int char.
: .... ( , )
:
1) char... , ( opencv, )
2) int key = cv::waitKey(1) & 255. ...
, :
You obtained as an int: 1048603
in binary it will be: 00000000 00010000 00000000 00011011
27 in binary is: 00000000 00000000 00000000 00011011
, .... - , 2. 255, 0xEFFFFF,
00000000 11101111 11111111 11111111
?
, , , numslock capslock ctrl... .