Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
SGVideoChannel Settings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SGVideoChannel Settings



Hi,

we are currently using QT for Java to access a webcam using:
		QTSession.open();
		grabber = new SequenceGrabber();
		SGVideoChannel videoChannel = new SGVideoChannel(grabber);

This cam is used to recognise gestures in front of a blue background.
To increase accuracy we set the saturation to 100% and the contrast to 0%.
This is currently done via
videoChannel.settingsDialog();


I now want to automate this process but I couldn't figure out how to access
the corresponding API calls.
Additionally I would like to fix the white point to a certain value.


Any hints?

I already tried to store the settings with the following code but this didn't work
either. Even though the content of the settings file looked quite promising :/
quicktime.std.movies.media.UserData userData = videoChannel.getSettings();
try{
File file = new File("VideoChannelSettings.atoms");
FileOutputStream stream = new FileOutputStream(file);
stream.write(userData.putIntoHandle().getBytes());
stream.close();
}catch(Exception ex){ex.printStackTrace();System.exit(0);}
try{
File file = new File("VideoChannelSettings.atoms");
InputStream stream = new FileInputStream(file);
byte[] bytes = new byte[stream.available()];
stream.read(bytes);
stream.close();
//AtomContainer settings = AtomContainer.fromQTHandle(new QTHandle(bytes));
videoChannel.setSettings(new UserData(new QTHandle(bytes)));
}catch(Exception ex){ex.printStackTrace();System.exit(0);}


The contents of the file is
0ctomcdscsgchvideapplcsetvdigvdigusbvappl=H nameUSB Video Class Video H dnamLogitech Camera€;ˇˇ ◊; 4duidˇˇˇˇ˝0vrct∞@∞@,mtrx @clip use plyfposn ['≈·Zptompdscsgpnvideimag:pset
2≤
satrˇ~
brit�ˇ
trst †
shrp2≤<ptompdscsgpnvidesourpset
vinp
vstdzptompdscsgpnvidecmprZpsetsptlyuvs tprl
drat cmfr




Thanks in advance
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.