Simple Video
The following pipeline will take in a video file and play it in a window.
Setup
The pipefile associated with this tutorial is located in the <kwiver build directory>examples/pipelines/video_display.pipe You will need to have KWIVER_ENABLE_EXAMPLES turned on during CMake configuration of kwiver to get this file. There is nothing more that will need to be done to execute this pipe file. You can edit the edit the pipe file if you want to change the video file to be viewed.
Execution
Run the following command from the kwiver buildbin directory (bin/release on windows) Relativly point to the darknet_image.pipe or darknet_video.pipe file like this:
# Windows Example :
kwiver runner ..\..\examples\pipelines\video_display.pipe
# Linux Example :
./kwiver runner ../examples/pipelines/video_display.pipe
Process Graph
The following image displays the pipeline graph. Each process is linked to its associated definition page to learn more about it and the algorithms it uses.
strict digraph "unnamed" { clusterrank=local; subgraph "cluster_disp" { color=lightgray; "disp_main" [label=<<u>disp<br/>:: image_viewer</u>>,shape=ellipse,rank=same,fontcolor=blue,fontsize=16,href="../sprokit/processes/image_viewer.html"]; "disp_input_image" [label="image\n:: kwiver:image",shape=none,height=0,width=0,fontsize=12]; "disp_input_image" -> "disp_main" [arrowhead=none,color=black]; "disp_input_timestamp" [label="timestamp\n:: kwiver:timestamp",shape=none,height=0,width=0,fontsize=12]; "disp_input_timestamp" -> "disp_main" [arrowhead=none,color=black]; "disp_output__heartbeat" [label="_heartbeat\n:: _none",shape=none,height=0,width=0,fontsize=12]; "disp_main" -> "disp_output__heartbeat" [arrowhead=none,color=black]; } subgraph "cluster_input" { color=lightgray; "input_main" [label=<<u>input<br/>:: video_input</u>>,shape=ellipse,rank=same,fontcolor=blue,fontsize=16,href="../sprokit/processes/video_input.html"]; "input_output__heartbeat" [label="_heartbeat\n:: _none",shape=none,height=0,width=0,fontsize=12]; "input_main" -> "input_output__heartbeat" [arrowhead=none,color=black]; "input_output_image" [label="image\n:: kwiver:image",shape=none,height=0,width=0,fontsize=12]; "input_main" -> "input_output_image" [arrowhead=none,color=black]; "input_output_timestamp" [label="timestamp\n:: kwiver:timestamp",shape=none,height=0,width=0,fontsize=12]; "input_main" -> "input_output_timestamp" [arrowhead=none,color=black]; "input_output_video_metadata" [label="video_metadata\n:: kwiver:video_metadata",shape=none,height=0,width=0,fontsize=12]; "input_main" -> "input_output_video_metadata" [arrowhead=none,color=black]; } "input_output_image" -> "disp_input_image" [minlen=1,color=black,weight=1]; "input_output_timestamp" -> "disp_input_timestamp" [minlen=1,color=black,weight=1]; }