Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv_contrib
Commits
e19a449d
Commit
e19a449d
authored
Mar 24, 2016
by
aravind
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed roiSelector platform dependency bug - lower 8 bits comparison for keypresses.
parent
f073c003
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
roiSelector.cpp
modules/tracking/src/roiSelector.cpp
+3
-1
No files found.
modules/tracking/src/roiSelector.cpp
View file @
e19a449d
...
...
@@ -107,8 +107,10 @@ namespace cv {
// select the object
setMouseCallback
(
windowName
,
mouseHandler
,
(
void
*
)
&
selectorParams
);
// extract lower 8 bits for scancode comparison
unsigned
int
key_
=
key
&
0xFF
;
// end selection process on SPACE (32) ESC (27) or ENTER (13)
while
(
!
(
key
==
32
||
key
==
27
||
key
==
13
)){
while
(
!
(
key
_
==
32
||
key_
==
27
||
key_
==
13
)){
// draw the selected object
rectangle
(
selectorParams
.
image
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment