Skip to content

Commit

Permalink
refactor: classifier returns dictionary instead of tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
bmccalmon committed Aug 16, 2024
1 parent 7b39752 commit 520822e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyfishsensedev/fish/fish_head_tail_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def classify_coords(self, mask: np.ndarray, coords: Tuple[np.ndarray, np.ndarray
head_coord = [head_coord.x, head_coord.y]
tail_coord = [tail_coord.x, tail_coord.y]

return {'head': head_coord, 'tail': tail_coord, 'confidence': 0.9}
return {'head': np.asarray(head_coord), 'tail': np.asarray(tail_coord), 'confidence': 0.9}


def find_head_tail(self, mask: np.ndarray) -> Tuple[np.ndarray, np.ndarray, float]:
Expand Down

0 comments on commit 520822e

Please sign in to comment.