dat-ng / ar-location-based-android

This AR app generally show where things are in the real-world by indicating where the app thinks they are over the camera view when the user holds the phone up and moves it about.
MIT License
203 stars 85 forks source link

Point question #17

Open JackZhang1994 opened 6 years ago

JackZhang1994 commented 6 years ago

Why is the point so unstable? It doesn't stop moving in the screen, and then it shows off for a while, and I don't have a mobile phone. Can you answer my question? Thanks~

dat-ng commented 6 years ago

Please check your phone whether has compass and accelerometer sensors

2018-01-15 9:37 GMT+07:00 JackZhang1994 notifications@github.com:

Why is the point so unstable? It doesn't stop moving in the screen, and then it shows off for a while, and I don't have a mobile phone. Can you answer my question? Thanks~

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dat-ng/ar-location-based-android/issues/17, or mute the thread https://github.com/notifications/unsubscribe-auth/ABOmjNLkDb7J3T6zcGrVBAzeyFixW6hyks5tKrnYgaJpZM4Rd2nu .

JackZhang1994 commented 6 years ago

image Here regist a sensor listener. image And it can go into this method.

dat-ng commented 6 years ago

What is your device?

2018-01-15 10:30 GMT+07:00 JackZhang1994 notifications@github.com:

[image: image] https://user-images.githubusercontent.com/20792223/34925864-0d6d1cb2-f9e7-11e7-8707-a7297ab96c8c.png Here regist a sensor listener. [image: image] https://user-images.githubusercontent.com/20792223/34925886-2bd440f4-f9e7-11e7-837b-64376961a90e.png And it can go into this method.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dat-ng/ar-location-based-android/issues/17#issuecomment-357574628, or mute the thread https://github.com/notifications/unsubscribe-auth/ABOmjAKYmTYKKqBTAvNUh5SRvjf6y9Trks5tKsZJgaJpZM4Rd2nu .

JackZhang1994 commented 6 years ago

In OnDraw(Canvas canvas) method, I set a log. image And this is the result. image A large change in coordinate points, and why?

JackZhang1994 commented 6 years ago

My device is MEIZU M5, and another is One Plus 5.

dat-ng commented 6 years ago

Because I set SENSOR_DELAY_GAME flag in sensor register listener, it probably depends on devices, but I think sensor trigger and frequently update value for each 37-39 mili seconds

2018-01-15 10:41 GMT+07:00 JackZhang1994 notifications@github.com:

My device is MEIZU M5, and another is One Plus 5.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dat-ng/ar-location-based-android/issues/17#issuecomment-357575788, or mute the thread https://github.com/notifications/unsubscribe-auth/ABOmjDdgI6YsN7QD-z3AVUmuZKcTYJtvks5tKsjcgaJpZM4Rd2nu .

JackZhang1994 commented 6 years ago

Well, what I mean is x:826~863 y:154~201 but I didn't move my device.

JackZhang1994 commented 6 years ago

Ehnnn, what I mean is... When I fix the cell phone, the value of X and Y is still changing, the range of the change is 50. What is the cause? Do you have a way to solve it? And another question, when I set up difficult altitude, the location of the point is always in the center of the screen, just like no altitude. Can you tell me why? Thank you very much~

ShantiRanjanDas commented 6 years ago

Yes, I have also the similar situation. The points are moving and are not on a particular position, While I move my phone they also move, but they must be in one position.

makisp commented 6 years ago

For my case, i had no problem with Xiaomi Mi A1 running Nougat. After updating to Oreo this started happening...

travs15 commented 6 years ago

Hi, I have a problem, it says that the camera its not found, but the camera works fine, it seems that dont recognize any camera in any device, is there any problem with API`s lower than 25? thank you

pankajjangid commented 6 years ago

i had a same issue , point are movie fast when i did't rotate the mobile if anyone got the solution please help me

devidvogel commented 5 years ago

Hey, is there a solution for this problem? I have the same issue with a Google Pixel with Android 9. Thanks.

akshayshelke232 commented 2 years ago

@pankajjangid @dat-ng @JackZhang1994 @travs15 @makisp did you find any solution to this problem?