GithubHelp home page GithubHelp logo

opencvtest's Introduction

利用opencv库对Android摄像头实时摄入图像进行边框检测

  • ps:项目为练手项目,有许多未经完善和优化的地方,可自行clone后进行改造或优化
moduel 说明
opencvlib 实现输入图像并检测图像中符合边框区域
camera 实现摄像头预览功能,并回调实时摄入图像数据
app 使用示例

截图:

Alt text

实现简介:

ImageCropAreaView持有camera返回的实时摄入图像数据,开启线程轮询检测,根据检测结果绘制边框区域。

OpencvTestBridge实现java与opencv桥接

  • convertBytesToBmp 根据输入流输出图片
  • findCropArea 查找边框区域
  • doCrop 进行裁剪

开发环境:

  • as 2.3.3
  • ndk 14r
  • opencv 2.4.11

更新日志:

  • 2018-08-23
  • 等比缩放裁剪区域,可自主控制对识别区域的放大缩小(适用场景类似对证件完整度比较高要求,可预留部分区域容错)
  • 降级适用Camera1,Camera2在部分机型适配有问题,待后续完善。

感谢和参照:

SmartCropper

cameraview

opencv 实现对摄像头输入图像中文件及证件等的实时跟踪,四边形检测及提取

opencvtest's People

Contributors

lhlhlh111000 avatar

Watchers

James Cloos avatar  avatar

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.