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
0ctom cdscsgchvideappl cset vdigvdigusbvappl = H
nameUSB Video Class Video H
dnamLogitech Camera €; ˇˇ ◊;
4 duidˇˇˇˇ˝0 vrct ∞@ ∞@ ,mtrx
@ clip use plyf posn
[ '≈ · Zptom pdscsgpnvideimag :pset
2≤
satrˇ~
brit�ˇ
trst †
shrp2≤ <ptom pdscsgpnvidesour pset
vinp
vstd zptom pdscsgpnvidecmpr Zpset sptlyuvs
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