This commit is contained in:
Scott Pruett 2022-05-23 22:39:24 -04:00
parent 25edcfe316
commit 70ad975866
1 changed files with 4 additions and 4 deletions

View File

@ -260,15 +260,15 @@ fn open_debug_lap(
) { ) {
if let Some(screenshot) = &lap.screenshot { if let Some(screenshot) = &lap.screenshot {
let ocr_results = ocr::ocr_all_regions( let ocr_results = ocr::ocr_all_regions(
&screenshot, screenshot,
config.clone(), config.clone(),
learned.clone(), learned,
ocr_cache.clone(), ocr_cache,
); );
let debug_lap = DebugLap { let debug_lap = DebugLap {
screenshot: RetainedImage::from_image_bytes("debug-lap", &to_png_bytes(screenshot)) screenshot: RetainedImage::from_image_bytes("debug-lap", &to_png_bytes(screenshot))
.unwrap(), .unwrap(),
debug_regions: save_frames_from(&screenshot, &*config, &ocr_results), debug_regions: save_frames_from(screenshot, &*config, &ocr_results),
}; };
ui_state.debug_lap = Some(debug_lap); ui_state.debug_lap = Some(debug_lap);