sima.video_reader
Attributes
Classes
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
|
A class for reading video from various sources, including |
|
A class for writing video stream to various destinations, including |
Module Contents
- sima.video_reader.logger
- class sima.video_reader.Reader
Helper class that provides a standard way to create an ABC using inheritance.
- abstract read() Tuple[int, numpy.ndarray]
- abstract isOpened() bool
- abstract get_cam_resolution() Tuple[int, int]
- abstract release()
- class sima.video_reader.Writer
Helper class that provides a standard way to create an ABC using inheritance.
- abstract write(frame, meta=None)
- abstract release()
- class sima.video_reader.RTSPReader(cam_source: str)
Helper class that provides a standard way to create an ABC using inheritance.
- frame_num = 0
- app_source = 'rtspsrc location=Uninferable latency=0 ! rtph264depay wait-for-keyframe=true ! h264parse !...
- cap
- fps
- get_cam_resolution() Tuple[int, int]
Get frame width and frame height
- read()
- isOpened() bool
- release()
- class sima.video_reader.FolderImageReader(folder_path: str, frame_width: int = 1280, frame_height: int = 720)
- folder_path
- loop = False
- image_files
- frame_num = 0
- total_images
- current_index = 0
- set_loop(val)
- get_cam_resolution() Tuple[int, int]
Get frame width and frame height
- read() Tuple[int, numpy.ndarray]
- isOpened() bool
- release()
- class sima.video_reader.PCIeReader(frame_width: int = 1280, frame_height: int = 720, data_buf_name: str = 'in-img-source')
Helper class that provides a standard way to create an ABC using inheritance.
- app_source = 'simaaipciesrc buffer-size=0 ! appsink sync=true max-buffers=100 drop=true'
- data_reader
- frame_num = 0
- get_cam_resolution() Tuple[int, int]
Get frame width and frame height
- read() Tuple[int, numpy.ndarray]
- isOpened() bool
- release()
- class sima.video_reader.RTSPWriter(host_ip: str, port: int, width: int, height: int, fps: int = 30)
Helper class that provides a standard way to create an ABC using inheritance.
- app_sink = 'appsrc ! video/x-raw,format=NV12,width=Uninferable,height=Uninferable,framerate=Uninferable/1 !...
- writer
- write(frame, meta=None)
- release()
- class sima.video_reader.PCIeWriter(frame_width: int = 1280, frame_height: int = 720)
Helper class that provides a standard way to create an ABC using inheritance.
- buf_size = 0
- app_sink = 'appsrc ! simaaimetaparser ! simaaipciesink'
- data_writer
- write(frame, meta=None)
- release()
- class sima.video_reader.VideoReader(source: str = None, frame_width: int = 1280, frame_height: int = 720)
A class for reading video from various sources, including
pcie
,rtspsrc
andfilesrc
.- read() Tuple[int, numpy.ndarray]
Reads a frame from the video source.
- isOpened() bool
Check whether the video source has been successfully opened.
This method verifies that the underlying video reader or stream is properly initialized and ready for reading frames.
- Returns:
True if the video source is open and accessible; False otherwise.
- Return type:
bool
- get_cam_resolution() Tuple[int, int]
Get frame width and frame height
- release()
Releases the VideoReader resources.
- set_loop(val)
- property frame_num
- class sima.video_reader.VideoWriter(source: str = None, host_ip: str = None, port: int = None, frame_width: int = None, frame_height: int = None)
A class for writing video stream to various destinations, including
pcie
,rtspsrc
andfilesrc
.- write(frame, meta=None)
Writes a frame to the video sink.
- release()
Releases the VideoWriter resources.