GithubHelp home page GithubHelp logo

acodexm / panorama360 Goto Github PK

View Code? Open in Web Editor NEW
68.0 4.0 16.0 51.22 MB

Projekt przejściowy do projektu Magisterskiego. Android, LibGDX, OpenCV, Camera, SurfaceView, stitching, panorama, sphere, gyroscope

Java 97.27% Makefile 0.05% C++ 2.63% Batchfile 0.02% Shell 0.02% C 0.02%
panorama android opencv3 libgdx cpp11 matchtemplate comparehist compose stitch sphere

panorama360's Introduction

About this panorama application:

This application is a study project

Features:

  • 2D/3D user interface
  • ability to taking photos and stitchung them to panorama
  • ability to view pictures in gallery

This android project uses:

  • OpenCV library
  • LibGDX library
  • ButterKnife

How to use app:

  • The pictures will be taken ONLY when you are pointing in a centre of every rectangle AND if you dont shake camera too mach
  • In FullAuto mode press shutter and move phone around.
  • In Manual mode press shutter every time you want take a picture.
  • If you done, press save button to process stitching and saving procedure
  • Tap gallery icon to see the panorama
  • Tap restart to clear everything and start making new photo
  • Swipe from left side to manage settings

Settings:

  • Auto: all pictures are processed
  • Panorama: longest chain of pictures horizontally will be processed (might not work)
  • Wide: pictures that makes bigest area will be processed (might not work)
  • 360: only when every cell on sphere is filled with picture panorama will be proccessed (not working/not optimised, try only on lovest picture quality)
  • High quality: highest your divice provide (dont stitch more than 4 pictures)
  • Low quality: pictures in HD (around 720p)
  • Lowest quality: lowest provided by device (fast for testing)

Required:

  • opencv-3.3.1-android-sdk
  • android-ndk-r15c 64bit

panorama360's People

Contributors

acodexm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

panorama360's Issues

hello

hello sir,

i tried to run your code and encountered this problem, do you mind telling me what is the issue? Thank you.
untitled

App Crashed with this error java.lang.UnsatisfiedLinkError

Hello i am just new to this subject. I have compiled and build your source code successfully but when i tried to use the application it crashed with the following error.
Thanks in Advance :)
May be this info helps:
I am using Windows 10 and Android studio v3.0.1

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/study.acodexm-1/base.apk"],nativeLibraryDirectories=[/data/app/study.acodexm-1/lib/x86, /vendor/lib, /system/lib]]] couldn't find "libopencv_java3.so"
at java.lang.Runtime.loadLibrary(Runtime.java:366)
at java.lang.System.loadLibrary(System.java:989)
at study.acodexm.MainActivity.(MainActivity.java:61)
at java.lang.reflect.Constructor.newInstance(Native Method)
at java.lang.Class.newInstance(Class.java:1572)
at android.app.Instrumentation.newActivity(Instrumentation.java:1065)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2199)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)
at android.app.ActivityThread.access$800(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5221)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)

How to change camera angle

Hi i wanted to change the focal length of the camera to capture 12 images instead of 8. I'm not able to do this can u please help me where should i modify the code

TEMPLATE_Android.mk is missing a entry

Hi,
the file Panorama360/android/src/main/jni/TEMPLATE_Android.mk is missing an entry which includes the opencv library.
The line
LOCAL_LDLIBS += -llog -L$(SYSROOT)/usr/lib
should read
LOCAL_LDLIBS += -llog -L$(SYSROOT)/usr/lib -lopencv
at least that's when it compiled for me.

Thanks for sharing your work.

ERROR: Cause: executing external native build for ndkBuild

ERROR: Cause: executing external native build for ndkBuild /Users/abc/Downloads/360/android/src/main/jni/TEMPLATE_Android.mk

can anyone please resolve this here is TEMPLATE_Android.mk file
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
#opencv
OPENCVROOT:= /Users/abc/Downloads/OpenCV-android-sdk
OPENCV_CAMERA_MODULES:=on
OPENCV_INSTALL_MODULES:=on
OPENCV_LIB_TYPE:=SHARED
include ${OPENCVROOT}/sdk/native/jni/OpenCV.mk
LOCAL_SRC_FILES := study_acodexm_NativePanorama.cpp ImgStitcher.cpp CroppImg.cpp
LOCAL_C_INCLUDES += $(LOCAL_PATH)/include
LOCAL_CFLAGS += -std=c++11 -frtti -fexceptions -fopenmp -w
LOCAL_LDLIBS += -llog -L$(SYSROOT)/usr/lib
LOCAL_LDFLAGS += -fopenmp
LOCAL_MODULE := MyLib
include $(BUILD_SHARED_LIBRARY)

Stiching Problem

Hi I'm capturing horizontal images only and when image stitching is completed 1 image frame getting misplaced please help
panorama_28052019112621

Doc: suggest adding these steps for Android Studio

Here are some steps I needed to perform in getting the app to compile in Android Studio; not all of them are obvious; documenting them might save others some time.

  1. Download old Android ndk r15c
  2. Add to local.properties: ndk.dir=c:\\android\\sdk\\ndk\\android-ndk-r15c
  3. Desktop module build.gradle, line 32 change ".classesDir" to ".classesDirs"
  4. Download OpenCV 3.3.1 https://github.com/opencv/opencv/archive/3.3.1.zip and extract it into the top directory of the project
  5. Copy android/src/main/jni/TEMPLATE_Android.mk to Android.mk
  6. In Android.mk set OPENCVROOT var to the OpenCV SDK 3.3.1 downloaded above (e.g. C:/Projects/Android/Panorama360/OpenCV-android-sdk)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.