diplomat.utils.extract_frames.pretty_print_frame¶
- diplomat.utils.extract_frames.pretty_print_frame(data: ~diplomat.processing.track_data.TrackingData, frame_idx: int = 0, body_part: int = 0, dynamic_sz: bool = True, size_up: bool = False, interpol: int = 2, format_type: ~typing.Tuple[str, int, tuple] = ('\u2007░▒▓█', 2, ('╔', '╗', '╝', '╚', '═', '║', '═', '║', <function BorderStyle.<lambda>>)))[source]¶
Print a DIPLOMAT Probability Frame.
- Parameters:
data – The probability frame, a TrackingData object.
frame_idx – Frame index to print, defaults to 0.
body_part – Body part index to print, defaults to 0.
dynamic_sz – Determines if the frame is resized to fit the window if it is to big….
size_up – Determines if the frame should not only be downsized, but also upsized if the terminal provides extra room.
interpol – The interpolation method if a size is specified. Defaults to cv2.INTER_CUBIC, but any cv2 interpolation value works.
format_type – The format or ‘font’ to use for the pretty printed string. A tuple, containing a sequence of strings being the displayed characters at given magnitudes, and an integer being the number of times to repeat the characters when displaying them. (‘abcd’, 2 with 0 becomes aa)