Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make photosphere camera like in Nexus/Pixel camera or StreetView app?

Tags:

android

I'm trying to find out how to implement spherical mode for the camera app, especially I'm interested in part of placing dots on a sphere and displaying them on camera preview. For instance, these apps have such feature:

Google Camera

Street View - click on the floating button

Panorama 360

Gallery 3D - old version of Gallery app

I was thinking about ARCore, but for sure it's not used in one of the mentioned apps, because these apps work on the devices that don't support ARCore (supported devices).

I also found similar questions

Create spherical camera app like google camera

How to implement Camera functionality with extra options (like Panorama)?

But they're old and lack of any clues.

Any hints would be appreciated.

like image 299
Nominalista Avatar asked Nov 06 '22 17:11

Nominalista


1 Answers

I think you are talking about the event handling using accelerometer of the android , you can capture the events like here How to detect shake event with android? , and then can possibly turn on your camera and perform your events.

Also try this http://www.techrepublic.com/blog/app-builder/a-quick-tutorial-on-coding-androids-accelerometer/472

You need to capture the multiple images and then combine them by using specific algorithm to have the Panoram 360 view on it.

The algorithm like Image stitching like this : http://en.wikipedia.org/wiki/Image_stitching

Most Important Thing : No one is going to reveal their algorithm on any opensource forum (As per I know)

Have a look at this too : math explanations

http://www.cs.cornell.edu/courses/cs4670/2010fa/projects/final/results/group_of_acc269_ty244_yc563/cs4670_final.html

like image 160
ismail alaoui Avatar answered Nov 14 '22 23:11

ismail alaoui