Milestone in my AR app development Proof of concept

I reached the POC stage, where my vision and ideas came together.

Im building a AR reconstruction app and succesfully achieved partial reconstruction of the room in minutes. On android without TOF or lidar sensors

1 Like

Is your app able to detect windows and doors as well, and what about furniture? Good job, keep it up!

1 Like

At the moment not yet, im going to explore a locally runned yolo integration see if it will work.

If you ever plan to release this in a commercial product, be careful when using 3rd party libraries like Yolo. In many cases their licenses actually do not permit this.

Oh really? thx for the headsup.

Over the past few months I’ve been experimenting a lot with things related to computer vision and checked out a lot of third party libraries. The licenses of most of them had restrictions.

they have conditions that you have to make your source open source lol.

are you building on Xr architecture? and did you found some interesting things

I developed on Meta XR and did some testing on custom AR applications for mobile phones, primarily for object and pose detection.

Performance on cell phones is very limited, depth cameras or lidar sensors may have a very low resolution or tracking range. Depending on the AR implementation used, the phone may overheat and even more reduce its computing power in order to cool down.

The Meta XR headset may have a better performance, but there are no public APIs for a direct access to the depth or lidar sensor.

This mainly affects my own developments for live object tracking, I did not use ARKit or ARCore yet.

is your app voor meta quest? did you try the passthrough camera Api. then you can use compu vison models like open cvor a ai model. i also found that some yolo versions have the apache or mit license

I use that API, but i don’t know what camera it accesses. That camera provides neither lidar nor depth information. Maybe its one of the monochrome cameras that the Quest use for tracking. It also has a weird offset, what you see in the headset is not what that camera sees. You also have access to the stereo camera via ADB, but we would need an API to access that in code.

For my object tracking I use a self trained NN model for keypoint tracking. It is the fastest I could find, but it has its quirks. Mainly the usual CV issues like the ones with fast movement, bad lighting, camera movement blur, other objects overlapping.

This is the current progress of the project. In that case I used my iphone since it has a better camera. It also works on the Quest, but is even more lagging.

I admit that AI have been used for the main implementations. I would not say this all would be impossible without it, but it would take me months to go through all the different documentations.

Nothing wrong with ai, im currently building this project for researching ai impact on certain jobs. i have 0 skills in unreal and c++.

Just a bright mind with 1000 ideas. So im making a app and see how far i come without proffesional help, from building ,to website, to play store.

Actually im impressed with latest update of chatgpt and codex. My conclusion so far can anyone build a high end app with a lot of world problems and hardware limitations?. i doubt it. will any developer who refusing ai be in trouble? I think so for sure.

If i had any knowledge of c++ and unreal, i would have know exactly where to check for flaws, now i solve a lot by learning on the fly, researching en experimenting.

i know arcore have image reference tracking and object tracking for candidates. where you can put objects in array where AR have to look for in a scene, but that are known objects i guess and not random variations of a object. i just saw the options didnt use it or explore it. exept for the image referenge that i use for world kalibration and making a global project orientation. And that works perfectly

about your offset i had that too. thats because screen and world coordinates are not the same you have to convert them.

Here’s a C++ example for ARCore for converting a screen position into a world-space hit on a tracked AR surface in Unreal Engine 5.8.

Add "AugmentedReality" to PrivateDependencyModuleNames in your module’s .Build.cs. Then use this function from your scan component:

include “ARBlueprintLibrary.h”
include “ARTraceResult.h”

bool TryGetARSurfaceHit(
const FVector2D& ScreenPixel,
FTransform& OutWorldTransform)
{
if (UARBlueprintLibrary::GetARSessionStatus().Status
!= EARSessionStatus::Running)
{
return false;
}

const TArray<FARTraceResult> Hits =
    UARBlueprintLibrary::LineTraceTrackedObjects(
        ScreenPixel,
        /\* bTestFeaturePoints \*/ false,
        /\* bTestGroundPlane \*/ false,
        /\* bTestPlaneExtents \*/ false,
        /\* bTestPlaneBoundaryPolygon \*/ true);

if (Hits.IsEmpty())
{
    return false;
}

OutWorldTransform = Hits\[0\].GetLocalToWorldTransform();
return true;

}

Pass the reticle center or tap position in viewport pixels. If the position comes from a UMG widget, convert its local coordinates to viewport pixels first so the ray starts at the same place the user sees on screen.

LineTraceTrackedObjects() asks the AR provider to hit-test that screen pixel. This example enables tracked plane boundaries only. On success, GetLocalToWorldTransform() returns the hit in Unreal world space, and OutWorldTransform.GetLocation() gives the 3D hit position. If the function returns false, skip placement for that sample. Unreal AR Blueprint Library · FARTraceResult

Thanks, but that issues are solved already. Currently I struggle to make the tracking more responsive on the Quest headset, in the Quest the tracking also completely collapses when an object is overlapped by my thumb or any other objects. Maybe I will have to change the NN model.

This project has stalled since the hot summer we had in Germany. With the current data set of 50k synthetic images of the object to track, and with my RTX2080ti, the training of the tracking model takes about 6 hours, with the GPU under full load. That generated quite an amount of waste heat, especially given how hot it was in my small office.

1 Like

Try Google colab its free there you can train your ai

i ve started the implementation of ai in my app

Google colab isn’t free, but it seems to cost less than renting a GPU server. Will definitely check it out, need to find out how the costs break down and what they do for securing my data.

You have to start direct a new notebook. use small session cause you have to save your checkpoint or everything is lost also you cant sit idle or in standby mode. use small sessions 500 picturues takes about 15 min. because its free you have to wait for a slot. paid version will get you priority over free users and better gpus

om now testing microsoft MoGe see if its usuable for my app

what do you wanna recognize btw?

Actually all kind of objects. I’m thinking of something like an AR-guided tutorial on how to make or repair something, ideally for the manufacturing industry. You see components and tools and be guided by augmented visualization in AR on how to use the tools with the parts.

oke kinda simalr path we are walking. Ive created my own kind of compu vision. it builds a scene understanding mainly focussing on walls but later ill add doors and windows. if this mathmatical algorythm works,ill add AI to predict objects and structures.

if your interrested ive made a bencmark to see if any changes improves it. I removed some sensitive info about my architecture.

the problem here is that the awareness works but the conformation button stays grey while there are confirmed objects to validate.

P.S the frame rate is nerved to 30 fps for developing so i have room to boost it.

Anonymized_Performance_Benchmark_EN.pdf (74.8 KB)