Description

Any discussions related to native (Android Studio, Xcode, Visual Studio) Vuforia Engine development.

App crashes when accessing vuImageGetImageInfo

Hello,

I need to grab the camera image which I am accessing trough the attached code. When I run from the IDE, it works fine, but when I sign the code, it crashes when calling this line:

 

if (vuImageGetImageInfo(image, info) != VU_SUCCESS) {}

 

This is the error:

 

Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x20 in tid 24378 (GLThread 5756), pid 23872 (snoopstar.stage)

 

I used the Vuforia Sample and the latest SDK.

How can I debug this problem? I tried a lot of classes in the proguard file, but onyl vuforia code is called in this steps..

This is the code executed in prepareToRender:

    VuCameraFrame *frame = nullptr;
    if (vuStateGetCameraFrame(state, &frame) != VU_SUCCESS) {
        return;
    }

    VuImageList *images = nullptr;
    if (frame != nullptr) {
        vuImageListCreate(&images);
        vuCameraFrameGetImages(frame, images);
        int listSize = 0;
        vuImageListGetSize(images, &listSize);
        if (listSize > 0) {
            for (int i = 0; i < listSize; i++) {
                VuImage *image;
                if (vuImageListGetElement(images, i, &image) != VU_SUCCESS) {
                    continue;
                }
                VuImageInfo* info;
                if (vuImageGetImageInfo(image, info) != VU_SUCCESS) {
                    continue;
                }
                if (info->width <= 0 || info->height <= 0) {
                    continue;
                }
                if (
                    info->format == VU_IMAGE_PIXEL_FORMAT_YUV420P
                    || info->format == VU_IMAGE_PIXEL_FORMAT_YUYV
                    || info->format == VU_IMAGE_PIXEL_FORMAT_YV12
                    || info->format == VU_IMAGE_PIXEL_FORMAT_NV21
                    || info->format == VU_IMAGE_PIXEL_FORMAT_NV12
                    ) {
                    mImageGrabCallback(info);
                }
            }
        }
        vuImageListDestroy(images);
    }

Thanks for you help.

poppy12ab

Thu, 02/09/2023 - 07:09

If you are looking for a game then [url=https://fallguys3.com]fall guys 3[/url] will be a satisfying game for you if you are looking for a way to provide some downtime for you and your kids. There are hundreds of fun and exciting games available for you to try.

Cloud Recognition matrices not working

Hello,

I am using Vuforia 10 with native development. I have implemented the cloud recognition and I am receiving targets when scanning images. So far so good. The problem is, that the matrices, projection and model do not seem to be correct. I have also implemented the ImageTarget Observer and it works correctly. If I feed my matrices into the same method used for Image Targets, I do not see anything on the screen. 

 

Is there an example with working cloud recognition for vuforia 10? Why don't I receive the same matrices for cloud targets as for image targets?

 

Best regards

snoopstar

Mon, 12/19/2022 - 12:51

The problem was the near-and far lane in combination with scale-factor and rotation. The object was so tiny, it was not visible. After adjusting these values near: 0, far 100, rotation 90 degree to the right and no scaling, the matrix worked.

 

 

poppy12ab

Thu, 02/09/2023 - 07:10

A large gaming community is praising a really alluring game when you're looking for a nice one to play. Please visit the page [url=https://fireboyand-watergirl.com]fireboy and watergirl[/url] for moments of fun entertainment!

camera images coming from Other source

I am new to Vuforia. I want to integrate One of my device that has prebuilt camera. From that device i can get image frame and other parameter that required for AR. I can use that device camera as " android.hardware.usb".

I want to implement AR Using that Device Camera(External Camera) or using the frame of Device Camera to add AR feature to  that frame.

Problem:

I try vuforia documentation for  External Camera I am not able to find How I can do that.

If any one now plz help me to configure external  Camera or external frame.

How do I get call back when the image target was detected

I was doing the project using vuforia native on android studio where the native api was called by JNI-C++ and then called by java-android, I want to get notification on android layer when the vuforia detects/loses the image target. 

I found out that on Unity API, we get the event of "OnTargetStatusUpdated" under "ObserverBehaviour" class which we can subscribe our own function to thus we can get the status when the observer status changed.

The problem for me is that I want to know where to bind the function which can be called when the observer changed in the native API just like in Unity API

Hey there,

 

The problem here is that our native APIs are very low-level compared to their Unity counterpart. It doesn't have a dedicated "notification mechanism" as the Unity SDK. 

Android 如何使用使用Vuforia开发

您好,我是一名来自中国的Android开发者, 我的名字叫 Obico; 我需要帮助,我想要在 Android 原生项目中 使用 Vuforia 进行图像识别,但我遇到了几个问题:

1.原生Android项目 如何正确接入 "Vuforia for android 10.8" SDK 2.原生Android项目 在哪里设置 Vuforia的 "license key" 3.原生Android项目 如何获取 "Vuforia 10.8 SDK的回调 ( 识别到图片 & 丢失图片)" 4.是否有 ”Android原生项目使用Vuforia进行图像识别“ 的官方文档;

Translate:

Hello, I am an Android developer from China, my name is Obico; I need help, I want to use Vuforia for image recognition in Android native projects, but I have several problems:

1. Native Android Project How to properly access the "Vuforia for Android 10.8" SDK

2. Native Android Project Where to Set Vuforia's "License Key"

3. Native Android Project How to Get "Vuforia 10.8 SDK Callback ( Recognized Image & Missing Image)"

4. Is there an official documentation for "Android native projects use Vuforia for image recognition";

 

Android 如何集成 Vuforia SDK 10.8

1.原生Android项目 如何正确接入 "Vuforia for android 10.8" SDK 2.原生Android项目 在哪里设置 Vuforia的 "license key" 3.原生Android项目 如何获取 "Vuforia 10.8 SDK的回调 ( 识别到图片 & 丢失图片)" 4.是否有 ”Android原生项目使用Vuforia进行图像识别“ 的官方文档;

Android 如何集成 Vuforia SDK 10.8

1.原生Android项目 如何正确接入 "Vuforia for android 10.8" SDK 2.原生Android项目 在哪里设置 Vuforia的 "license key" 3.原生Android项目 如何获取 "Vuforia 10.8 SDK的回调 ( 识别到图片 & 丢失图片)" 4.是否有 ”Android原生项目使用Vuforia进行图像识别“ 的官方文档;

Examples of Cloud Recognition for Android

Hello, can you please provide the simplest examples of Cloud Recognition for Android? Just scanning for image and i.e. displying its name. Thanks.

Hey there,

 

There's a sample for this on the Unity Asset Store.

 

Kind regards,

Patrick Scheper

Technical Community Manager

Hey there,

 

Sorry, I didn't read that we're discussing in the Native Development forum group. We do provide code samples in the documentation, also for Native: https://library.vuforia.com/cloud-recognition/working-cloud-recognition#native

 

The code samples are definitely not enough to start using Cloud Reco in native Android. Its written so I have no idea how to use it.

Hello @pavviel,

Here is a link to the last published version of our native Android Cloud Reco sample project: https://we.tl/t-IXJHe1Ko4M. This link will expire in 7 days.

Important note: The APIs demonstrated in this sample are only for our legacy 9.8 SDK.

Kind regards,

Hello Dave Downing,

I will be thankful if can share again sample app with cloud recognition implemented.
Thanks 

Regards:
LBMamoon (iOS,android) Native App Developer.

Hello @LBMamoon,

Here is a link to the last published version of our native Android Cloud Reco sample project: https://we.tl/t-9rXvkKYj0E. This link will expire in 7 days.

Important note: The APIs demonstrated in this sample are only for our legacy 9.8 SDK.

Kind regards,

Hello Medabit,

I hope you are doing well.
I just missed the link you shared earlier.
I will be much much thankful to you if you can share the android vuforia cloud recognition sample again.

Thanks
 

Hello Medabit,

I hope you are doing well.

I just missed the link you shared earlier.

I will be much much thankful to you if you can share the android vuforia cloud recognition sample again.

 

Thanks

Hello @LBMamoon,

Re-posting the last published version of our native Android Cloud Reco sample project: https://we.tl/t-sZ5VjlA2b3. This link will expire in 7 days.

Important note: The APIs demonstrated in this sample are only for our legacy 9.8 SDK.

Kind regards,

Hello Tech Support,
I placed the project into older 9.8 sdk sample project.
but getting error that import com.vuforia.State; not importing into its usage class.
will be thankful for your guidance.
Thanks

snoopstar

Fri, 12/09/2022 - 14:49

Hello Tech Support,

I would be grateful for a Vuforia 10 example of cloud recognition. Can you please provide one?

Best regards.

Sure! Here's a basic example of how to use cloud recognition in Vuforia 10:

Create a Vuforia account and sign in to the Vuforia Engine Developer Portal.

Create a new image target database and upload the image you want to use for recognition.

Thanks for sharing.

I want to ask does it work for multiple target image?

I mean if we have many target images in Vuforia cloud database can it recognize all of them?

 

 

I am using add-vuforia-package-10-13-3. unitypackage and used this code but these two lines has error.

mCloudRecoBehaviour.CloudRecoEnabled = true;
mCloudRecoBehaviour.TargetFinder.StartRecognition();

 

who can tell me how to solve this issue?

Vuforia Runtime Error on Android 9+

When I run my app on an older phone (Android 7) using the previous version Vuforia 7, there is no error, but when running on Android 9+ I get the following runtime error:

No implementation found for void com.qualcomm.vuforia.VuforiaJNI.swig_module_init()

Not sure if this is due to the older versions of Vuforia not being compatible with newer versions of Android.

Any tips on migrating to the newer Vuforia Engine 9.8/10.5 or if there is another workaround? I've tried downloading the new Vuforia package and copying the jar file over to my old project, but that hasn't worked.

Thanks!

Hey there,

 

There's a migration guide that might be helpful for you: 

vuEngineStart crashing in Native Magic Leap Application

Hello,

so I'm using VS to develop a native app for the magic leap device,

I've successfully reached all the steps before the vuEngineStart function:

init vuforia, creating the engine, creating the device and the image observer... I'm getting the prompt to allow permission to use the camera and I accept it, the license is also ok.

but when I'm reaching to start the Engine via vuEngineStart call, I'm getting a fatal error, with the message: " Received on_device_unavailable ".

I also can't find any resources for native development for Lumin, so are we supposed to follow the same sample as the Android one ? 

Thank you for your help !