Merge pull request #1715 from dennisss/patch-1

boards/OPENMVPT: Use IR rather than color image for temperature stats.
This commit is contained in:
Ibrahim Abdelkader 2022-09-05 20:28:49 +02:00 committed by GitHub
commit 7fd5c77db0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,8 +52,8 @@ static const char fresh_main_py[] =
" # Collect stats into a list of tuples\n"
" blob_stats = []\n"
" for b in blobs:\n"
" blob_stats.append((b.rect(), map_g_to_temp(img.get_statistics(thresholds = threshold_list,\n"
" roi = b.rect()).mean())))\n"
" blob_stats.append((b.rect(), map_g_to_temp(fir_img.get_statistics(thresholds = threshold_list,\n"
" roi = b.rect()).mean())))\n"
" x_scale = img.width() / fir_img.width()\n"
" y_scale = img.height() / fir_img.height()\n"
" img.draw_image(fir_img, 0, 0, x_scale = x_scale, y_scale = y_scale,\n"