I have setup my orin through the jetson-inference guide. I want to run the live camera detection demo but found the output video cannot autosized to the size of display window.
The input stream is 2880*1860, but the output window only displays part of the original video(shown above). When I zoom out the window, the display shows even smaller image.
If I want to adjust the video to the window size in real-time, which means no matter how I drag the window, it can display the full image, what should I do?
Do you use C++ or python examples?
To scale the output stream, you can try to modify the output stream status:
This file has been truncated.
<img src="https://github.com/dusty-nv/jetson-inference/raw/master/docs/images/deep-vision-header.jpg" width="100%">
<p align="right"><sup><a href="../README.md#appendix">Back</a> | <a href="aux-image.md">Next</a> | </sup><a href="../README.md#hello-ai-world"><sup>Contents</sup></a>
# Camera Streaming and Multimedia
This project supports streaming video feeds and images via a variety of interfaces and protocols, including:
* [MIPI CSI cameras](#mipi-csi-cameras)
* [V4L2 cameras](#v4l2-cameras)
* [RTP](#rtp) / [RTSP](#rtsp)
* [Videos](#video-files) & [Images](#image-files)
* [Image sequences](#image-files)
* [OpenGL windows](#output-streams)
Streams are identified via a resource URI and accessed through the [`videoSource`](#source-code) and [`videoOutput`](#source-code) APIs. The tables below show the supported input/output protocols and example URIs for each type of stream:
### Input Streams
Hi，thanks for respond so quickly!
I use the c++ example, can you tell me which line exactly should I modify to change the output stream?
@vanilla.huang, can you camera run at lower resolutions? If so, you could run video-viewer/imagenet/detectnet/ect programs with
--input-height=HEIGHT command-line options.
Otherwise you could use the cudaResize() function to downscale your camera images to the desired size:
Thanks a lot! I’ve successfully solve this problem by cudaResize() function.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.