Hi all,
I'm trying to take snapshots using MMAPI (JSR 135) on my nokia N95.
I'm using the following code, which seems pretty standard.
The quality of the resulting image is very poor. It's blurry and very noisy. When i use the camera application of the phone I'm getting much better results.Code:mPlayer = Manager.createPlayer("capture://video"); mPlayer.realize(); mVideoControl = (VideoControl) mPlayer.getControl("VideoControl"); Item item = (Item)mVideoControl.initDisplayMode(GUIControl.USE_GUI_PRIMITIVE, null); item.setLayout(Item.LAYOUT_EXPAND|Item.LAYOUT_VEXPAND); cameraForm.append(item); mPlayer.start(); byte snapshot[]=mVideoControl.getSnapshot("encoding=png&width=800&height=600");
I've tried using jpeg format and larger resolution ( 1024x768) but the result is always the same, very bad image quality ( see sample snapshot!
I tried my midlet on an N73 and got the same results.
Is there a trick to get better results ? Camera settings ? ( unfortunately, the CamerControl is not supported on the N95, which is a real shame for such a pricy and high end model ! )
Thanks for your help.
Regards.

Reply With Quote


