Reading webcam resolution
|
05-12-2014, 09:02 PM
Post: #4
|
|||
|
|||
RE: Reading webcam resolution
A little update... Before I posted this question I had sent Boian an Emil asking almost the same question. He pointed me to VLDSCapture1->VideoModes which I was able to figure out and worked great.
Below is the code I ended up with, it populates a TComboBox I named ResolPickBox and stores the actual height and width numbers in a struct. I was only interested in 640x480 and above with an aspect of 1.33. The aspect was converted to a string to provide consistent truncation of the decimal places for a comparison to what I was looking for. One thing I didn't (and still don't) understand is without the line that looks for a duplicate entry I get two sets of identical resolution numbers. I looked at the other data fields returned in TVLVideoModeFormat and couldn't find anything that was different between the duplicate listings. For example, Format returned vfRGB24 in all cases. Code: void TCamera::GetCamResolutions(void) |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Reading webcam resolution - BReeves - 05-03-2014, 09:14 PM
RE: Reading webcam resolution - Dave - 05-04-2014, 01:06 AM
RE: Reading webcam resolution - BReeves - 05-06-2014, 08:40 PM
RE: Reading webcam resolution - BReeves - 05-12-2014 09:02 PM
|
User(s) browsing this thread: 1 Guest(s)