def select_roi(self):
"""Prompt user for a region of interest.
Args:
None.
Returns:
ROI (tuple): selected ROI coordinates.
"""
ROI = cv2.selectROI('Select region of interest...', self.current_frame,
False, False)
cv2.destroyWindow('Select region of interest...')
return ROI
评论列表
文章目录