Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ptgaze/common/visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ def draw_bbox(self,
lw: int = 1) -> None:
assert self.image is not None
assert bbox.shape == (2, 2)
bbox = np.round(bbox).astype(np.int).tolist()
bbox = np.round(bbox).astype(int).tolist()
cv2.rectangle(self.image, tuple(bbox[0]), tuple(bbox[1]), color, lw)

@staticmethod
def _convert_pt(point: np.ndarray) -> Tuple[int, int]:
return tuple(np.round(point).astype(np.int).tolist())
return tuple(np.round(point).astype(int).tolist())

def draw_points(self,
points: np.ndarray,
Expand Down