stimpyp.camlog.AbstractCamlog#
- class stimpyp.camlog.AbstractCamlog#
Bases:
objectABC for the camera logging information
- __init__(root, frame_id, timestamp, comment_info, time_info=None)#
- Parameters:
root (Path)
frame_id (ndarray)
timestamp (ndarray)
comment_info (dict[str, Any])
time_info (list[str] | None)
Methods
__init__(root, frame_id, timestamp, comment_info)get_camera_time(riglog[, cam_name])load(root[, suffix])load/parse the camera log file
Attributes
number of frames
tif root path
frame index
time stamp of each frame
# information
i.e., # [21-03-02 15:23:08].
- __init__(root, frame_id, timestamp, comment_info, time_info=None)#
- Parameters:
root (Path)
frame_id (ndarray)
timestamp (ndarray)
comment_info (dict[str, Any])
time_info (list[str] | None)
- root: Path#
tif root path
- frame_id: ndarray#
frame index
- timestamp: ndarray#
time stamp of each frame
- comment_info: dict[str, Any]#
# information
- time_info: list[str]#
i.e., # [21-03-02 15:23:08]. Note that time could be duplicated
- abstract classmethod load(root, suffix='.camlog')#
load/parse the camera log file
- Parameters:
root (Path | str) – directory with camera log file
suffix (str) – file suffix
- Returns:
- Return type:
Self
- abstract get_camera_time(riglog, cam_name='1P_cam')#
- Parameters:
riglog (RiglogData | PyVlog)
cam_name (str)
- Return type:
ndarray
- property nframes: int#
number of frames