resize the PlayerThread window
aahmed23 opened this issue · 1 comments
aahmed23 commented
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 commented
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);