Studio Video (2.0-pr.1 – 2.0-pr.7)
Studio is a powerful tool for visualizing both data and video. The video plugin allows developers to view the video devices on the bus, display their real time video feed, flip and mirror the feed, and overlay LiDAR points or Lane Model objects if they are available. ### Opening video plugin and viewing a video stream To use the Video plugin first open up PolySync Studio. ```bash $ polysync-studio ``` Then click on "Video" in the "Launch Plugin" right-hand sidebar. The video plugin should open up as shown below. If video devices are present on the bus, then developers may select one of them in the "Image Data Sources" box in the left-hand sidebar. Sometimes it takes a few seconds for the video to decode and start displaying. Once the feed is up developers can flip or mirror the video, as well as overlay LiDAR or Lane Model objects if they are available on the bus. Image width and height, pixel format of the incoming video, and the system name is also displayed. ![Studio Video](https://help.polysync.io/releases/2.0.7//wp-content/uploads/2016/08/studiovideo.png) #### Overlaying primitives In order to overlay objects─LiDAR points and lane model markings─it is necessary to configure the publishing nodes (video device) focal length and mount positions (x/y/z and roll/pitch/yaw). The focal length is just another parameter that can be found under the video device node's "Sensor Configuration" section, in the SDF Configurator: ```bash ID: 1099, Name: "Video Device 0 Focal Length" ``` The focal length needs to be calculated on a per-image-sensor and lens combination basis.