View Full Version : Changing Camera Aspect Ratio in Code
So we want cameras with high FOV so drivers can see, but the problem is that our 16:9 USB camera feed is truncated to 4:3. Is it at all possible to change the aspect ratio of the feed so that we can actually see the whole image from the stream?
euhlmann
26-02-2016, 08:07
If you want fine tuned control of your camera you'll probably need to ditch USBCamera and write your own wrapper.
First, find all supported capture modes on your camera with IMAQdxEnumerateVideoModes(). Find the mode you want, and set it using IMAQdxSetAttribute() with IMAQdxAttributeVideoMode. Further IMAQdx documentation should be in C:\Program Files (x86)\National Instruments\Vision\Help
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.