Giter Club home page Giter Club logo

ncnn-android-yolov4-tiny-custom's Introduction

ncnn-android-yolov4-tiny-custom

Face Mask Detection

Model trained by AlexeyAB/darknet,which implement the YOLOv4-tiny algorithm, Model converted and deployed by Tencent/NCNN.

Introduction

  • APP对人脸是否佩戴口罩进行目标检测;
  • 模型在darknet上训练;
  • 数据集包含12,373 张图片,训练集与测试集比例为8:2;
  • 使用yolov4-tiny,并在yolov4-tiny.conv.29上进行预训练;
  • 通过NCNN完成模型转换与安卓平台部署,可在Android端调用摄像头实时检测,在骁龙865设备上可达20FPS。

Build

  • Using Android Studio to build this project.
  • You need install Android SDK , Android NDK and CMake additional in Android Studio.

Enjoy it!

  • releases (In order to reduce .apk size, apk retain the environment of arm64 only.)

Example(Original Version)

img


Reference:

ncnn-android-yolov4-tiny-custom's People

Contributors

sunnygrocery 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

Watchers

 avatar  avatar

ncnn-android-yolov4-tiny-custom's Issues

camera preview issues on lower end phones

Hi @SunnyGrocery ,

This is an amazing project!
It's working fine on my 4gb ram phone , but on my 1gb ram device with 1.3ghz cpu , it is having some issues.
Green lines are appearing on the imageview instead of the proper camera preview.
Hope you could suggest a fix, to get a proper camera preview output on the imageview.

I've attached a screenshot of the issue with the camera preview.

Screenshot from 2021-06-24 14-09-13

camera

How to fix camera preview freeze

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.