Log in or register to post comments

Device support for Japanese version of Galaxy Tab 10.1 LTE

August 1, 2012 - 2:24am #1

Hello there.

I'm a japanese developer doing some work on my Galaxy Tab 10.1 LTE. It's model name is 'SC-01D' in Japan, provided by Docomo.

It turns out that no matter which mode I select for the camera, like below. It will use 640x480 resolution.

QCAR::CameraDevice::getInstance().selectVideoMode(QCAR::CameraDevice::MODE_OPTIMIZE_QUALITY)

So I wonder is this device supported by Vuforia 1.5.9?

I don't know how to check if the calibration info was successfully downloaded. So I just run my app cleanlly (means stop the old app, remove all data and uninstall the old app before install and run the new app) without any network connection, no 3G, no Wi-Fi, and get the QCAR::CameraCalibration object and print it out. I then run the app again cleanlly with internet connection(through Wi-Fi) and print the QCAR::CameraCalibration object out. It seems to me that there's nothing changed at all. It output like this.

08-01 17:54:44.572: D/QCAR(31020): Camera Calibration.getDistortionParameters (0.000000, 0.000000, 0.000000, 0.000000)
08-01 17:54:44.572: D/QCAR(31020): Camera Calibration.getFocalLength (629.504028, 629.504028)
08-01 17:54:44.572: D/QCAR(31020): Camera Calibration.getPrincipalPoint (320.000000, 240.000000)
08-01 17:54:44.572: D/QCAR(31020): Camera Calibration.getSize (640.000000, 480.000000)

I've read something about the network connection in this forum and think an app will run without internet connection using default calibration info and will automaticlly download the propper calibration info the next time when run with an internet connection.

So I just wonder is this device supported by Vuforia? Could someone tell me how can I check if the calibration info was downloaded right.

How Vuforia detect which device it was running on? By using device identifier (ANDROID_ID), model name, IMEI or something else?

Device support for Japanese version of Galaxy Tab 10.1 LTE

August 9, 2012 - 6:50pm #9

Hello, Peter

Thanks for the update. Now it seems ok with Mode_Optimized_Quality except one problem.

I have some code to caculate the distance between camera and the target marker.

I'm using the code from https://ar.qualcomm.at/node/2000437

It seems the distance result almost equals the real value when using Mode_Default at 640x480. But with Mode_Optimized_Quality at 1024x768, the distance calculated will be a little longer. Like 150 unit will be 200 unit, and 580 will be 610, not so exactlly but I think you know what I'm trying to say. By the way target marker size is 60x60 in mm.

Should I change my code somewhere to fix the problem? Or was it affected by the callibration info form quality mode? Does the near/far plane settings for getProjectionGL will be the cause? I use the value same as in samples, 2.0f and 2000.0f.

Device support for Japanese version of Galaxy Tab 10.1 LTE

August 9, 2012 - 1:11pm #8

Hello,

Thank you for posting this information. I have updated the settings. Can you please try again with Mode_Optimized_Quality ?

Thank you,

-Peter

Device support for Japanese version of Galaxy Tab 10.1 LTE

August 7, 2012 - 5:42pm #7

Hello Peter.

I tried Device Info provided by CurveFish, and got the output.

I paste the relevant part here and hope that helps. I can see it's camera only supports preview maximum at 1024x768. So that's it I think.

[Display]
Screen Size: 1280x752
Density DPI: Medium (160)
Logical Density: 1.0
Font Scaling Factor: 1.0
Pixels Per Inch X: 160.15764
Pixels Per Inch Y: 160.0

[Camera]
Preferred Preview Size For Video : 176x144
Mce : Enable
Scene Detect Values : Off, On
Zoom Supported : False
Strtextures : Off
Face Detection Values :
Sharpness : 10
Contrast : 5
Whitebalance : Auto
Max Sharpness : 30
Scene Mode : Auto
Jpeg Quality : 85
Preview Format Values : Yuv420sp, Yuv420sp-adreno, Yuv420p
Histogram Values : Enable, Disable
Jpeg Thumbnail Quality : 90
Preview Format : Yuv420sp
Face Detection : Off
Video Size Values : 1280x720, 640x480, 176x144
Skintoneenhancement : Disable
Touch Index Af : -1x-1
Preview Size : 1024x768
Orientation :
Focal Length : 2.79
Auto Exposure Values : Matrix, Center, Spot
Video Zoom Support : False
Iso : Auto
Mce Values : Enable, Disable
Record Size :
Flash Mode Values : Off, Auto, On, Torch
Preview Frame Rate Values : 15, 30
Preview Frame Rate : 30
Focus Mode Values : Auto, Fixed, Macro
Preview Frame Rate Mode : Frame-rate-auto
Jpeg Thumbnail Width : 320
Video Size :
Scene Mode Values : Auto, Portrait, Landscape, Sports, Party, Beach, Sunset, Night, Backlight, Fireworks, Candlelight, Dusk-dawn, Fall, Text
Preview Fps Range Values : (7000, 35000)
Auto Exposure : Frame-average
Jpeg Thumbnail Size Values : 320x240, 0x0
Histogram : Disable
Preview Size Values : 1024x768, 640x480, 320x240, 176x144
Picture Size Values : 2048x1536, 1024x768
Touch Af Aec : Touch-off
Preview Fps Range : 7000, 35000
Min Exposure Compensation : -4
Antibanding : Off
Touch Af Aec Values : Touch-off, Touch-on
Vertical View Angle : 42.1
Luma Adaptation : 3
Horizontal View Angle : 54.4
Touch Index Aec : -1x-1
Skintoneenhancement Values : Enable, Disable
Jpeg Thumbnail Height : 240
Focus Mode : Auto
Max Saturation : 10
Max Contrast : 10
Preview Frame Rate Modes : Frame-rate-auto, Frame-rate-fixed
Picture Format Values : Jpeg, Raw
Max Exposure Compensation : 4
Exposure Compensation : 0
Exposure Compensation Step : 0.5
Scene Detect : Off
Flash Mode : Off
Effect Values : None, Mono, Negative, Sepia
Picture Size : 2048x1536
Effect : None
Saturation : 5
Whitebalance Values : Auto, Incandescent, Fluorescent, Daylight, Cloudy-daylight
Picture Format : Jpeg
Focus Distances : 0.10, 1.20, Infinity
Touchafaec Dx : 100
Lensshade Values : Enable, Disable
Touchafaec Dy : 100
Selectable Zone Af : Auto
Iso Values : Auto, Iso_hjr, Iso100, Iso200, Iso400, Iso800, Iso1600
Selectable Zone Af Values : Auto, Spot-metering, Center-weighted, Frame-average
Lensshade : Enable
Antibanding Values : Off, 50hz, 60hz, Auto

[Graphics]
GL Renderer: Adreno (TM) 220
GL Version: OpenGL ES-CM 1.1
GL Vendor: Qualcomm
Max Texture Size: 4096
Max Texture Units: 2
GL Extensions: GL_AMD_compressed_ATC_texture GL_AMD_performance_monitor GL_APPLE_texture_2D_limited_npot GL_ARB_vertex_buffer_object GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_texture_type_2_10_10_10_REV GL_OES_blend_equation_separate GL_OES_blend_func_separate GL_OES_blend_subtract GL_OES_compressed_ETC1_RGB8_texture GL_OES_compressed_paletted_texture GL_OES_depth_texture GL_OES_draw_texture GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_framebuffer_object GL_OES_matrix_palette GL_OES_packed_depth_stencil GL_OES_point_size_array GL_OES_point_sprite GL_OES_read_format GL_OES_rgb8_rgba8 GL_OES_stencil_wrap GL_OES_texture_cube_map GL_OES_texture_env_crossbar GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_texture_mirrored_repeat GL_QCOM_binning_control GL_QCOM_extended_get GL_QCOM_tiled_rendering GL_AMD_compressed_3DC_texture

 

Device support for Japanese version of Galaxy Tab 10.1 LTE

August 7, 2012 - 10:36am #6

Hello,

Can you tell me the supported resolutions of your device? You can use an app like Device Info or Android Analyser to get the supported camera resolutions. It sounds like your device in particular is not supporting 1280x720. I don't think 1280x752 is going to be the correct resolution but it might be. Please let me know what you find. We'll get this fixed for you.

Thank you,

-Peter

Device support for Japanese version of Galaxy Tab 10.1 LTE

August 5, 2012 - 6:58pm #5

Hi Peter, thank you for the update.

I tried it this morning, and I got blackscreen means no rendering was happening.

As you suggested, I just changed the mode to MODE_OPTIMIZE_QUALITY, and do a clean reinstall. From my debug log, I can see that it just failed at QCAR::CameraDevice::getInstance().selectVideoMode() in my startCamera method. Code snippests like below

    // Initialize the camera:
    if (!QCAR::CameraDevice::getInstance().init()) {
        LOG("QCAR::CameraDevice initialization failed.");
        return;
    }

    // Configure the video background
    configureVideoBackground();

    // Select the default mode:
    if (!QCAR::CameraDevice::getInstance().selectVideoMode(
            QCAR::CameraDevice::MODE_OPTIMIZE_QUALITY)) {
        LOG("QCAR::CameraDevice failed to select video mode.");
        return;
    }

    // Start the camera:
    if (!QCAR::CameraDevice::getInstance().start()) {
        LOG("QCAR::CameraDevice failed to start.");
        return;
    }

I can see the log output from the red line. And I can confirm that in configureVideoBackground(), it does get the VideoMode as 1280x720, while screen is 1280x752, and final VideoBackgroundConfig.mSize is 1336x752 after correcting aspect ratios. It's strange but I think it's not the problem though.

 

I then tried again without network and a clean reinstallation. I can see in configureVideoBackground(), it got the VideoMode as 640x480, event I specified the QUALITY mode. That's what it should be, so it's OK I think. The screen is 1280x752, and final VideoBackgroundConfig.mSize is 1280x960.

The camera can start normally in no-network run while it also works with MODE_DEFAULT with network connection. If I try to get the calibration info before selectVideoMode, I get the calibration info for default configuration, just same as the values in my first post. So I think maybe it's because the video mode wasn't set yet.

And if I call QCAR::CameraDevice::getInstance().getNumVideoModes(), it gives me return value as 2. Which is 3 when using no-network default configuration. I then tried QCAR::CameraDevice::getInstance().getVideoMode() for all three mode, MODE_DEFAULT and MODE_OPTIMIZE_SPEED will return 640x480, while MODE_OPTIMIZE_QUALITY will return 1280x720.

I'm sorry for the long reply. Please help me to find out the problem. If it will help I can post more detailed log messages here.

Device support for Japanese version of Galaxy Tab 10.1 LTE

August 3, 2012 - 5:00pm #4

Hello,

I have updated the settings for this device. Please try using the MODE_OPTIMIZE_QUALITY setting in your app to use 720p. Also please uninstall and re-install your app to make sure your device gets the latest settings from the server.

Thank you,

-Peter

Device support for Japanese version of Galaxy Tab 10.1 LTE

August 1, 2012 - 8:02pm #3

Thanks for your reply.

Even with network connection, the app will not get the right parameter. Does the clean procedure is enough to reset environment related to the app? I mean stop the app, clear data and then uninstall it. Should I do a factory reset for my device?

Oh, by the way, the device's serial is shown as 'samsung-sc_01d-xxxxxxxx' on the device select dialog before the app run from eclipse IDE.

And this device has not so much different from the global version in hardware I think. It has a 3.1MP rear camera support 720p video recording at 24fps(Docomo says it support 30fps, but it may be wrong). I don't know if the preview resolutions are 720p. What I know is that it's definitely better than 640x480.

If it's because the model difference, then will it be fully supported or should I consider to get a global version of Galaxy tab 10.1?

Device support for Japanese version of Galaxy Tab 10.1 LTE

August 1, 2012 - 7:26pm #2

The app will generate a profile based on the device parameters if a network connection is not available. Let me check to determine what the expected resolution should be for this device. For some, the available resolution is less than the maximum if the supported preview resolutions are lower.

Log in or register to post comments