diff --git a/notebooks/pose_extimation_example.ipynb b/notebooks/pose_extimation_example.ipynb index cbdb1d3..b71c107 100644 --- a/notebooks/pose_extimation_example.ipynb +++ b/notebooks/pose_extimation_example.ipynb @@ -234,13 +234,15 @@ " penalized_matches = openfdcm.penalize(penalizer, raw_matches, openfdcm.get_template_lengths(templates))\n", " sorted_matches = openfdcm.sort_matches(penalized_matches)\n", " search_time = time.time() - start_time\n", - " print(f\"Template matching search completed in {search_time:.4f} seconds (see image above for unrefined 10 best matches).\")\n", - " print(\"Expected performance: Should run at 22 FPS (0.045ms) on an i7-14700 CPU with max_tmpl_lines = 4, max_scene_lines = 10, depth = 30.\")\n", - " print(f\"Number of unfiltered match candidates: {len(sorted_matches)}.\")\n", "\n", + " display_best_matches_num = 10\n", " if sorted_matches:\n", - " best_matches = sorted_matches[:10]\n", - " display_best_match(scene_image, best_matches, templates)" + " best_matches = sorted_matches[:display_best_matches_num]\n", + " display_best_match(scene_image, best_matches, templates)\n", + "\n", + " print(f\"Template matching search completed in {search_time:.4f} seconds (see image above for unrefined {display_best_matches_num} best matches).\")\n", + " print(\"Expected performance: Should run at 22 FPS (0.045ms) on an i7-14700 CPU with max_tmpl_lines = 4, max_scene_lines = 10, depth = 30.\")\n", + " print(f\"Number of unfiltered match candidates: {len(sorted_matches)}.\")" ] } ],