Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
smroid committed Dec 10, 2024
1 parent 61611bc commit 5aa736f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/test_tetra3.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def draw_box(img_draw, centre, radius, **kwargs):
# path = EXAMPLES_DIR / 'data' / 'large_fov'
try:
for impath in path.glob('*'):
# for impath in path.glob('img_110ms_20241209_042605.bmp'):
try:
with Image.open(str(impath)) as img:
img = img.convert(mode='L')
Expand Down Expand Up @@ -80,7 +81,8 @@ def draw_box(img_draw, centre, radius, **kwargs):
trimmed_centroids = centroids[:30]
solution = t3.solve_from_centroids(
trimmed_centroids, (height, width),
return_matches=True, solve_timeout=5000)
return_matches=True, solve_timeout=5000,
distortion=0)

if 'matched_centroids' in solution:
# Draw a green box around each matched star.
Expand Down

0 comments on commit 5aa736f

Please sign in to comment.