Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resize the PlayerThread window #5

Open
aahmed23 opened this issue Apr 18, 2018 · 1 comment
Open

resize the PlayerThread window #5

aahmed23 opened this issue Apr 18, 2018 · 1 comment
Assignees

Comments

@aahmed23
Copy link

hello,
when I run the Player or PlayerThread app, the window display is small, is there any way I can resize it to something bigger?

@cosmac
Copy link
Owner

cosmac commented Apr 26, 2018

Hello aahmed23, the widow size is the original image resolution (80x60 or 160x120 based on the Lepton version). You can display an bigger image by upscaling the IR image. You can do that by replacing this line https://github.com/cosmac/LePi/blob/master/app/PlayerThread/PlayerThread.cpp#L66 with:

cv::Mat img_scaled;
double scale_factor {2.0};
cv::resize(img, img_scaled, cv::Size(), scale_factor, scale_factor);
cv::imshow("Lepton", img_upscaled);

@cosmac cosmac self-assigned this Apr 26, 2018
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

No branches or pull requests

2 participants