Giter VIP home page Giter VIP logo

deep-learning-for-mobile's Introduction

deep-learning-for-mobile

1. mobilenet for iOS by ncnn

(1)新建一个 mobilefacenet 的项目

File -> New -> Project -> Single View App -> Next -> Create

(2)Frameworks 文件和模型文件的导入

  • 建立一个 Frameworks 文件夹,导入**ncnn.frameworkopemp.frameworkopencv.framework** 三个文件
  • 在主目录下面建一个 models 文件夹用来存放模型文件,导入8个模型文件。
  • 在主目录下新建一个 img 存放一张测试图片,命名为 test.jpg

(3)创建四个文件 NCNNWrapper.mm、NCNNWrapper.h、PrefixHeader.pch、mobilefacenet-ios-Briding-Header.h

(4) 复制ios相关三个文件:DetectionViewController.swift、MainViewController.swift、Main.storyboard

(5) 配置文件修改

  • 修改enable_bitcode 为 No 即可

  • 在 info.plist 里面添加如下行,用以调用 相机

    <key>NSCameraUsageDescription</key>
    <string>Camera</string>

(6) 如果有语法错误,适当修改语法即可(本项目主要适配Xcode10.2/swift 5.0/iphone7)

速度:iphone7上, mtcnn+facenet:25ms以内

deep-learning-for-mobile's People

Contributors

polariszhao avatar

Watchers

 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.