GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — IDCardCamera/README_EN.md at master · Monkey-X/IDCardCamera

Expand file tree

/

README_EN.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
92 lines (77 loc) · 2.99 KB
/

README_EN.md

Copy path

File metadata and controls

92 lines (77 loc) · 2.99 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Android custom ID card camera

jitpack API

README of Chinese

Design sketch

APK

download APK

Features

  • Custom camera interface
  • Support to turn on flash
  • Support touch screen for focusing
  • Support automatic focus
  • Support automatic clipping of images
  • Support manual irregular clipping of images

Usage

Step 1. Add a JitPack repertory
allprojects {
    repositories {
        ...
        maven { url "https://jitpack.io" }
    }
}
Step 2. Add a gradle dependency
dependencies {
	compile 'com.github.wildma:IDCardCamera:1.1.0'
}
Step 3. Open photographic interface
  • front
IDCardCamera.create(this).openCamera(IDCardCamera.TYPE_IDCARD_FRONT);
  • back
IDCardCamera.create(this).openCamera(IDCardCamera.TYPE_IDCARD_BACK);

notice: In the Fragment,Replace "this" with "fragment.this".

Step 4. Get a picture
    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        if (resultCode == IDCardCamera.RESULT_CODE) {
            final String path = IDCardCamera.getImagePath(data);
            if (!TextUtils.isEmpty(path)) {
                if (requestCode == IDCardCamera.TYPE_IDCARD_FRONT) {
                    mIvFront.setImageBitmap(BitmapFactory.decodeFile(path));
                } else if (requestCode == IDCardCamera.TYPE_IDCARD_BACK) {
                    mIvBack.setImageBitmap(BitmapFactory.decodeFile(path));
                }
            }
        }
    }

Blog:Android custom ID card camera

Thanks

  • CertificateCamera
  • PhotoPolygonCropper
  • SweetCamera

License

   Copyright 2018 wildma

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.