WebDemo
WebDemo(camera_ip: str, color_base: str = 'BGR', route: str = '/', pipelines: list = []) -> None
-
Description: Displays the IP camera feed on a web page.
-
Parameters
- camera_ip (
str
): The URL of the IP camera. - color_base (
str
): The color space of the output frame. It can be 'BGR' or 'RGB'. Note that OpenCV input frames are always in BGR format. Ifcolor_base
is set to 'RGB', each frame will be converted from BGR to RGB before returning. Default is 'BGR'. - route (
str
): The web page route. Default is '/'. - pipelines (
list
): The image processing pipeline. Default is an empty list.
- camera_ip (
-
Example
import capybara as cb
cb.WebDemo(camera_ip='http://your_ip:your_port/video').run()