How to integrate Location based Augmented Reality in Android - android

I have been searching seens long about augmented reality examples or documents which covers location based services.
For Example i have to create such type of app which gives location based marker on camera view.Whenever i move camera to the direction of latitude and longitude i need to display AR marker on that direction.some thing like it is used to navigate user to that direction.
There are many SDKs available for this like.
GoogleCore,
Vuforia,
Wikitude
But main problem of Google Core is it is not supported with all devices and i have also checked other example which needs compass sensor but which is also i dont want because compass sensor also not available in all devices
Also,I have searched in Vuforia and Wikitude but i am not getting how to display AR object with respect to latitude and longitude
There are lots off calculation available but i am not able to identify actual one to use.Please help if anyone knows about it
Thanks in advance!!!

Related

ARCore alternative on Android

I'm developing an Android app with Augmented Reality in order to display points of interests at given location. I do not need face, plane or object recognition, only placing some points at specific locations (lat/long).
It seems ARCore on Android only supports few devices, my customer requires more devices supported as the AR view is the core of the app.
I was wondering if there are alternatives to ARCore on Android that supports placing points of interest at some coordinates, covering a large number of Android devices.
Thanks for any tip.
Well, there is this location based AR framework for Android: https://github.com/bitstars/droidar
However it hasn't been maintained for quite a long time. You can also look at vuforia, however it's not free:
https://developer.vuforia.com/

Augmented reality Vuforia- What is a marker

im new to augmented reality but what is meant by the term marker ? i have done a web search and it says the marker is a place where content will be shown on the mobile device but im not clear still. Here is what i found out so far:
Augmented reality is hidden content, most commonly hidden behind
marker images, that can be included in printed and film media, as long
as the marker is displayed for a suitable length of time, in a steady
position for an application to identify and analyze it. Depending on
the content, the marker may have to remain visible.
There are a couple of types of marker in Vuforia, there are ones you define yourself, after putting them in to they CMS online, ones that you can create at run time and set markers that just have information around the edge. They are where your content will appear. You can see a video here where my business card is the marker and the 3d content is rendered on top. http://youtu.be/MvlHXKOonjI
When the app sees the marker it will work out the pose (position and rotation) of the marker and apply that to any 3d content you want to load, that way as you move around date marker the content stays in the same relative position to the marker.
And one final heads up, this is much easier in Unity 3D than using the iOS or Android native versions. I've done quite a lot and it saves a lot of time.
Marker is nothing but a target for your Augmented Reality app. Whenever you see your marker through the AR CAMERA, the models of your augmented reality app will be shown on!
It will be easy to understand if you develop your first app in augmented reality! :)
TLDR: Augmented Reality markers ~= Google Goggles + Activator
AR markers can be real-world objects or locations that trigger associated actions in your AR system when identified in sight, and usually result in some action, like displaying annotations (à la Rap Genius for objects around you).
Example:
Imagine you are gazing through your AR glasses. (You will see both what is displayed on the lenses, if anything, as well as the world around you.)
As you drive by a series of road cones closing the rightmost lane ahead, the AR software analyzes the scene and identifies several road cones in formation. This pattern is programmed to launch traffic notification software and, in conjunction with your AR's built-in GPS, obtains the latest information regarding what is going on here and what to expect.
In this way, the road cone formation is a marker: something particular and pre-defined triggers some action: obtaining and providing special information regarding your surroundings.

Augment Reality for Android

I have quite strange augment reality case to implement. Most AR frameworks I've found can be classified on 2 groups:
GPS based ones
Based on visual markers (something like a QR code) located in real world.
Basically here is a list:
AndAr https://code.google.com/p/andar/
Mixare https://code.google.com/p/mixare/
DroidAr https://code.google.com/p/droidar/
But this does not fit my case, in simple words, I do need to place visual marker flying in a room near by one or several physical assets. I do have all needed coordinates, but I don't sure how I can show marker flying 2 meters in front of a phone, because all above mentioned frameworks positioning api based on degrees, minutes and seconds. Don't sure how I can correlate those 2 coordinates system.
I use BeyondAR for this. is small, simple, free and open source.
The Wikitude SDK allows you to put markers (so called GeoObjects) relative to a position. The position could be the user's position or any position defined by latitude, longitude, altitude (in your case this could be the initial user's position). The relative position is defined in meters north/east of the initial position.
For more information have a look at the documentation at: http://www.wikitude.com/external/doc/documentation/3.0/Reference/JavaScript%20Reference/index.html
It includes both Geo-based AR and Image Recognition & Tracking.
Disclaimer: I'm working for Wikitude
I use BeyondAR for this. is small, simple, free and open source. Here the linke
BeyondAR Framework

Location based AR

I am new for Augmented Reality though I know Android development.
I am trying to create an app whose main aim is to overlay the camera preview with some image if the device camera is pointing to a particular building or place. The camera preview will be overlaid with some image if and only if camera is pointing to correct building and correct direction. The overlay image & its related data will be uploaded from back-end. I have gone through mixar but it is not giving the correct solution.
In this I am not getting the Elevation / altitude concept. From where I will get this. Which opensource sdk is better for this app? How to crack this application?
For altitude you should forget it. The altitude return by GPS is terrible. Just crossing from one side of the street to the other side, the altitude returned by GPS could be different by 50 meter. Also, the direction of the back camera using sensors will not be accurate enough for buildings close together. If you restrict your app for known buildings or places then you can adjust using some image recognition but still it is very hard.
try to download wikitude sample app from wikitude website.it contain sample project simpleArbrowser that is what u are searching.hope this will help u
I don't know of any opensource sdk but I used Wikitude SDK which is quite useful for you implementation.The main advantage about wikitude sdk is that you can use your own server for back-end data. Which is not possible with the other alternative that is layar. And #Hoan is right about getting altitude information from GPS data is really inacurate but you can give it a go as the inaccuracy is only visible if you are really near the Point of Interest. It works okay for a distance greater than 250 meters or so(not confirmed). The only problem you might get is from the compass deflections which are really great when you are near a high EM field or near metals. But that's a chance you'd have to take and nothing can be done about it.
If you want to place AR objects based on the LAT and LONG of the location with a given altitude.
Well, now that's possible using Google's ARCore Geospatial API.
Docs:
https://developers.google.com/ar/develop/geospatial

find out if coordinate in range of the camera - android

I am doing a small augmented reality app, and i have these objects which contains longitude and latitude information. I also have the current user location and the compass heading angle. How can I check if the coordinate is within the range of the camera view (No matter what it's distance from the camera is)?
I dont know how to make it, but I can give you logic if its possible for you to do.Yous should try this if you have not thought about it and you find it feasible. It can be idea or just a crap too.
You can do it by using current location and compass(like in which direction camera u watching). If the direction of that location from your current location and camera's direction matches then display that location as overlay.
Try this two links:
Augmented Reality on Android: Prepping the Camera and Compass
Augmented Reality on Android: Using GPS and the Accelerometer
Found it, this is exactly you want.
android-augment-reality-framework

Categories

Resources