Answers for "waitkey(1) & 0xff"

0

waitkey(1) & 0xff

0xFF is a hexadecimal constant which is 11111111 in binary. By using bitwise AND (&) with this constant, it leaves only the last 8 bits of the original (in this case, whatever cv2.waitKey(0) is).
Posted by: Guest on May-18-2021

Browse Popular Code Answers by Language