Skip to content

Commit

Permalink
docs: update the jupiter notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanchristopheruel committed Aug 23, 2024
1 parent c4d820c commit 4211861
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions notebooks/pose_extimation_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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)}.\")"
]
}
],
Expand Down

0 comments on commit 4211861

Please sign in to comment.