Giter Site home page Giter Site logo

milinddeore / mediapipe-face-detector-cpp Goto Github PK

View Code? Open in Web Editor NEW
33.0 2.0 6.0 2.22 MB

Mediapipe face detector tflite model running, without using mediapipe framework, c++ implementation.

License: MIT License

C++ 99.02% Shell 0.98%
face-detection mediapipe tensorflow-lite cpp standalone-library linux tensorflow-lite-library c-plus-plus opencv

mediapipe-face-detector-cpp's Introduction

mediapipe-face-detector-cpp:

Mediapipe face detector tflite model running, without using mediapipe framework, c++ implementation.

Build standalone Tensorflow Lite library for Linux OR MacOS:

Using the instruction mentioned in the following repo. Such that your tensorflow lite library is ready for your platform. I have tested it on MacOS, it should work perfectly on Linux too.

Build Face Detection project:

Standalone setup means you have all the included files at one place i.e. 3rdparty folder and libtensroflowlite.dylib(for MacOS) OR libtensroflowlite.so (for Linux) library ready for linking under libs folder. Run make.sh file to compile your project. make.sh file essentially, compile and link the project as:

I am also using opencv library so make sure all the includes and libraries are present on your machine: pkg-config --cflags opencv and pkg-config --libs opencv.

g++ -std=c++11 '-Wl,-rpath,$$ORIGIN/lib'  face_detect.cpp -o face_detector -L../3rdparty/libs -ltensorflowlite -I ../3rdparty/tensorflow/    
lite/tools/make/downloads/flatbuffers/include  -I ../3rdparty/tensorflow/lite/tools/make/downloads/absl  -I ../3rdparty/include -I ../       
3rdparty/ `pkg-config --cflags opencv` `pkg-config --libs opencv`  -lstdc++ -ldl -lpthread -lm -lz

Run the project:

./face_detector

ScreenShot

mediapipe-face-detector-cpp's People

Contributors

milinddeore 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mediapipe-face-detector-cpp's Issues

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.