Skip to content

Commit

Permalink
Merge pull request openalpr#694 from engycz/calibrate
Browse files Browse the repository at this point in the history
openalpr-utils-calibrate set sliders to correct position
  • Loading branch information
matthill authored Jun 15, 2018
2 parents d25774c + ef273fe commit 298db50
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/misc_utilities/calibrate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,19 @@ void create_window()
{
namedWindow(WINDOW_NAME, CV_WINDOW_AUTOSIZE | CV_WINDOW_KEEPRATIO | CV_GUI_EXPANDED);

value = round(-(rotationx * 20000.0) + 100);
createTrackbar( "X", WINDOW_NAME, &value, 200, XChange);

value = round(rotationy * 20000.0 + 100);
createTrackbar( "Y", WINDOW_NAME, &value, 200, YChange);

value = round(-(rotationz * 100.0) + 100);
createTrackbar( "Z", WINDOW_NAME, &value, 200, ZChange);

value = round((stretchX - 1.0) * -200.0 + 100);
createTrackbar( "W", WINDOW_NAME, &value, 200, StretchChange);

value = round(-((dist - 1.0) * 200.0) + 100);
createTrackbar( "D", WINDOW_NAME, &value, 200, DistChange);

setMouseCallback(WINDOW_NAME, mouse_callback, NULL);
Expand Down

0 comments on commit 298db50

Please sign in to comment.