Giter VIP home page Giter VIP logo

androidpanodemo's Introduction

主要特点:

  1. 合成照片质量可自由设置,可以做到分辨率无损失合成
  2. 不需要后期电脑端处理,全部合成动作都在手机端完成
  3. SDK集成步骤简单,API极度精简

集成步骤:

  1. 将pano Module导入到你的项目
  2. 在application里添加SDK初始化代码:
    public void onCreate() {
        super.onCreate();
        
        ImagesStitch.init(this);
    }
  1. 混淆代码 -keep public class com.lerp.pano.ImagesStitch { *; }

API使用说明

    /**
     * @param path           输入图片路径
     * @param outPath        输出图片路径
     * @param panoType       全景类型,0球面,1圆柱,2立体,3三明治
     * @param waveCorrection 波段修正,水平或垂直
     * @param widthRatio     宽度最多裁掉的比例,范围0~1,为0表示宽度不需要裁剪
     * @param heightRatio    高度最多裁掉的比例,范围0~1,为0表示高度不需要裁剪
     * @param length         裁剪系数,值越大裁减的比例越少,参考值300,单位是pixel
     * @param scale          图像质量,范围0~1,为1时表示以原画进行合成
     * @return 返回长度为3的字节数组
     * [0]合成结果状态码
     * [1]合成后宽度
     * [2]合成后的高度
     */
   public native static int[] stitchImages(String path[], String outPath,
                                            int panoType, int waveCorrection,
                                            float widthRatio, float heightRatio,
                                            int length, float scale);

合成示例

  • 合成2x3照片

  • 合成小行星照片

联系我

  • 电话/微信 17512006887
  • QQ 495572997

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.