i attempting adjust camera settings such exposure , white balance fmj library in java. can create player dynamically:
new net.sf.fmj.media.cdp.civil.capturedeviceplugger().addcapturedevices(); final java.util.vector vectordevices = capturedevicemanager.getdevicelist(null); player player = null; capturedeviceinfo cdi = ((capturedeviceinfo) vectordevices.get(2)); // simplicity try { player = manager.createplayer(cdi.getlocator()); player.start(); } catch (noplayerexception | ioexception e) { e.printstacktrace(); } so need controls of player change camera settings:
control[] ctrls = player.getcontrols(); however, returning ratecontrol, when need framegrabbingcontrol grab individual frames , (i'm assuming) formatcontrol change camera settings (source).
if these not returned getcontrols(), doomed? same results these cameras: microsoft lifecam studio , built-in lenovo easycam
Comments
Post a Comment