Access to full resolution camera in j2me

I am trying to capture images on a tall Nokia phone (N95). The phone’s internal camera is very good (4 megapixels), but in j2me it seems to me that I can get a maximum of 1360x1020 images. I mainly used this example http://developers.sun.com/mobility/midp/articles/picture/

What I did started with 640x480 and increased the width and height by 80 and 60, respectively, until it worked out. Line of code:

jpg = mVideoControl.getSnapshot ("encoding = jpeg & quality = 100 & width =" + width + "& height =" + height);

So, two questions: 1. The phone throws an exception when receiving images larger than 1360x1020. 2. Higher resolution images just look like smoothed versions of smaller ones. For example. When I take a 640x480 image and enlarge it in Photoshop, I can’t tell the difference between this and what is supposedly 1360x1020.

Is this a j2me limitation on the phone? If anyone knows a way to get a higher resolution from a j2me application and / or how to access their own camera from another application?

+5
source share
3 answers

This explanation on the Nokia forum can help you.

, " , , , ".

" , , ( 1mpix) JPEG (, 1600x1200 2mpix ..). ".

1. 1600x1200, 1024x768 , N95 2. BMP PNG.

, ( ), j2me , .

+6

: 2582 x 1944. , , .

: http://developers.sun.com/mobility/midp/articles/picture/index.html

:

byte[] raw = mVideoControl.getSnapshot(null);
Image image = Image.createImage(raw, 0, raw.length);

raw , .

+3

JPEG “quality” (as interpreted by the code) has nothing to do with resolution. Rather, it is related to how the image is compressed. A 640x480 image with 100 quality will be noticeably better than a 50x440x480 image, but will use more storage space.

Try this instead:

jpg = mVideoControl.getSnapshot("encoding=jpeg&quality=100&width=2048&height=1536");
+1
source

All Articles