Timeline.add_marker#
- Timeline.add_marker(frame_id: int, color: str, name: str, note: str, duration: int, custom_data: str) bool[source]#
Creates a new marker at given frameId position and with given marker information.
- Parameters:
frame_id (int) – frame position of the marker.
color (str) – color of the marker.
name (str) – name of the marker.
note (str) – note of the marker.
duration (int) – duration of the marker,count by frames.
custom_data (str) – custom data of the marker.helps to attach user specific data to the marker.
- Returns:
True if successful, False otherwise.
- Return type: