Skip to content

Small updates for linux#1

Open
IrisDB wants to merge 1 commit intovasarhelyi:masterfrom
IrisDB:master
Open

Small updates for linux#1
IrisDB wants to merge 1 commit intovasarhelyi:masterfrom
IrisDB:master

Conversation

@IrisDB
Copy link

@IrisDB IrisDB commented Feb 6, 2023

The key numbers for enter and for numbers did not match for linux, preventing the manual input of HSV values to work.

The key numbers for enter and for numbers did not match for linux, preventing the manual input of HSV values to work. I did not test the changes in Windows.
@vasarhelyi
Copy link
Owner

I did some updates on the code, to be used with newer opencv, and with some of your modifications integrated, please check. Unfortunately, the WaitKey() function gives back platform independent values. So far I used only last 8 bits (see cv::waitKey(0) & 255 not to care about modifiers (shift, alt, ctrl, etc.), but it seems that in your case the 8th bit is also set. You could change 255 to 127 here to resolve your problem locally without any further modifications. I do not want to include that to main as I might get ascii codes above 127 I guess...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants