Go to Post I swear, sometimes it seems like FIRST has got a room full of monkeys writing code. Maybe the monkeys should spend less time flinging fecal matter at each other and more time testing the code before posting it :-). - Kevin Watson [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-25-2016, 05:37 PM
yonip yonip is offline
Registered User
FRC #0449 (The Blair Robot Project)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2014
Location: Silver Spring, MD
Posts: 24
yonip is an unknown quantity at this point
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?
Reply With Quote
  #2   Spotlight this post!  
Unread 02-26-2016, 08:07 AM
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 298
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: Changing Camera Aspect Ratio in Code

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
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:59 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi