mp.packet_getter.get_bool_list

get_bool_list(arg0: mediapipe.python._framework_bindings.packet.Packet) -> List[bool]

Get the content of a MediaPipe bool vector Packet as a boolean list.

Args: packet: A MediaPipe Packet that holds std:vector .

Returns: An boolean list.

Raises: ValueError: If the Packet doesn't contain std:vector .

Examples: packet = mp.packet_creator.create_bool_vector([True, True, False]) data = mp.packet_getter.get_bool_list(packet)

Design a Mobile Site
View Site in Mobile | Classic
Share by: