I was wondering if anyone could explain or clear me out -- I am currently doing some project to identify trees using android. I suppose the main components I must use at this project is GPS, Camera API and Compass (Please let me know if anyone can think anything) -- I am still in a middle of researching about the project and the possible problems that might arise during implement the project for example if there are two trees are in the same line of sight or same line (overlapping), what information is going to be displayed? How I can tell my software that I am actually want to display the front tree not the back of the tree? What sort of information or API will determine this? I mean does the camera or compass or GPS or even the database of the location of tree will determine it?
Can anyone please give me some idea, how I can tackle this kind of problem? Or perhaps if anyone know any tutorials that I can learn etc?
Much appreciated.
theBorneo
There is no existing api that would let you determine this specifically. I can image that you could estimate object identifications based on gps location. If you had waypoints in front, you could use the compass to get a direction and then approximate the gps region in front of you. Then try to see if you know of any prior waypoints that are in that area. Obviously, the one you see in direct line sight is the closest, and this would probably be the heuristic.
The camera will have almost no use in this case other than a view finder. If you are looking to segment images in order to differentiate between different objects, consider this impossible with google api, or any mobile application. This is difficult enough to do for professional researchers who can isolate variables..
The gps approximations are pretty trivial, however I am not confident as to how accurate or often a compass returns direction.
Related
I am working with android studio for last few days, and I am pretty new here with this work. I am trying to implement a location sensor app. The basic idea is if my phone enters into some restricted area (would be predefined in app), some voice message will be popped up, Surely I have to keep the app running on background to test this. I headed with FusedLocationProviderClient and implemented a very basic getmylocation app for now, where my actual obstacle I found. The co-ordinates keep fluctuating all the time for a same place after the decimal points by some values[(xx.xfffff,yy.yfffff) where f are the fluctuating figures,and the app is supposed to work on the truth of that figures], so the sensor can never implemented if the measurement is wrong.
Anyone having idea, how to fix this or may be there are better alternatives to implement this thing? I am pretty new to this work, so I would request you to give explanation or some attachment/article links in support of your answer so that I can get things clear and straight forward.
If any details is required from my work, Please mention , so that I can update this question on next round edit.
Thanks in advance.
I'm trying to achieve routing "walking path" inside specific premises (Hospital). I'm using osmdroid and osmdroid bonus pack. I have spend losts of time. Still not success. Does anyone achieved like this.
By now i tried
roadManager.addRequestOption("routeType=pedestrian");
and all other available rooting types available here
and it gives result only where roads available.
Can someone suggest the right way to do this?
Thanks in advance.
I'm trying something as below.
This is a tough one for a few reasons.
Osmdroid has issues as zoom levels > 20. In fact, 20 should be your max. Finding a map source for zoom 20 is also difficult, however the mapsforge adapter should help with that. You'll need a high zoom level in order for this to be useful to the user.
OSM data is generally a series of nodes and paths that connect the nodes called ways. The vast majority of these nodes and ways are for roadways. These nodes and ways are the only thing we have for calculating walking or driving directions. You should be able to get directions to the closest address.
If you have osm data for inside the building, that's great, but now you have a GPS/location issue. GPS generally doesn't penetrate indoors.
So no real answers here, but hopefully this will help you identify some of the challenges ahead.
This is the gist of my app idea:
When the user turns on the app, it calculates a position 100 ft in front of them, then overlays some kind of marker onto the camera, so that when the user looks at the position through the phone, they see the marker. Then they can walk towards the marker, which gets bigger (ie "closer") as they walk towards it.
The full idea for the app is more complicated than this, but I think that if I could create this, the rest would just be iterations.
What concepts of AR, mapping, images, Android API, hardware (and anything else I haven't thought of) does this bring to mind that I need to begin learning about? I have lots of programming experience, and some Android experience but next to no AR or vision experience.
Basically, I'm hoping you guys could give me a list of terms to Google so that I can begin forming concrete ideas of how to make this.
Isn't this a kind of 'Geo-Located" AR? To get search results matching what you are describing rather than methods that put the augmented content at a relative distance from the viewer, try searching "latitude", "longitude", "coordinates", "POI" etc., along with AR terms. I am currently looking into learning AWE.js because it offers true geo-located POIs (point(s) of interest) using coordinates.
I came across this (https://github.com/buildar/awe.js/issues/3) when trying to find for myself how to create geo-located POIs using AWE. For your purpose ("...calculates a position 100 ft in front of them, then overlays some kind of marker onto the camera...") you would need a way to leave the x and y axis as they are in the original 'geo_ar' demo (https://github.com/buildar/awe.js/tree/master/examples) - as relative to the user, not as lat/lon coordinates. However, for the user to be able to approach them, you would need to find a way to get them to initially appear as relative to the user (the default way), but then somehow be locked down. It normally wouldn't be necessary because in most apps geo-located POIs are placed near real physical places of some significance, so rather than the user having POIs appear near wherever he is, he goes to find them where they are. I don't know how locking down an initially-relative POI would be done - I am not a programmer, I just stalk programmers online. ;) Still, I hope that fills in some of your gaps to help you get started.
I believe there are games out there (though I haven't played them myself) that do this to spawn enemies like ghosts or zombies. They spawn a set distance away from you, but you have to run from them.
Hey guys i am looking for an application that can navigate inside a mall.We can adopt the idea of inputting our current location through a QR code or by taking a snap of any near landmark(like shop,name boards..),Then we can input where we want go?But the actual problem is How to build a map of the indoor?Can u suggest any such tool to create a map for android phones.Because after creating the map by programming the gyroscope sensor in android for proper routing,because application now knows the source and destination,so i think it can display the shortest route(like GPS),then we can start walking through that path with our phone.Whenever we violates route using gyroscope we can track it.I think it is possible,if we turn left instead of taking right then app will direct us it is a wrong way.But i need help to create the map.Can anyone please suggest any idea?
my email:anishubais#gmail.com
please----
I might be wrong, but I think that going off of GPS would be inaccurate. If I remember right, GPS is only accurate up to 10 meters or something like that.
Like I said, I might be horribly wrong, I'm just going off of what I remember
I'm trying to create an app that will tell a person what zone of a building they are in. I'm using bluetooth dongles to get an approximate location, as oppose to exact location, and show the user on a map whereabouts they are. I would like it just to highlight the zone they are in, instead of a specific location.
I can get my hands on a floor plan of the building I am using so I'm just wondering if there is an easy way to incorporate this into some kind of map with an existing API? I found a question here which states that they just use an overlay on the image to show a marker of where the person is. Would this be a bit easier?
This is for my final year project so I would like to have some sort of flashy map if possible but I'm not sure where to start looking or if it's possible.
I also found this question which gives a great variety of apps that implement and indoor map, but I don't think I can just take this small piece of functionality that I need out of them as they seem to be complete apps.
Any information would be a great help. Anyone with experience in this sort of thing please share your knowledge :)
It doesn't sound like it'd be too complicated to just write your own custom view for this. Draw the map image to the canvas. Then for the zone the user is in, draw another 'highlight' graphic on top of the map that you just drew.
If you're not sure how to do this, there's a rather basic guide on how to create your own drawable widgets which should point you in the right direction. There are plenty of examples on drawing images to the canvas, eg this one.