Git Product home page Git Product logo

tflite-win-c's Introduction

tflite-win-c

This is an ssd object detection and deeplab image segmentation demo project using TensorFlow Lite C API on windows with Visual Studio C++.

There's also a YouTube

Setup

OpenCV

The project make use of OpenCV:

  1. Download and extract opencv to some folder, e.g c:\tools\opencv
  2. Define global environment variable OPENCV_DIST pointing the opencv install dir. The project reference opencv build\include dir and build\x64\vc15\lib dirs as follow: $(OPENCV_DIST)\build\include and $(OPENCV_DIST)\build\x64\vc15\lib, so make sure OPENCV_DIST points to the right place.
  3. During runtime, the app will need to load opencv dll, make sure to have opencv build\x64\vc15\bin dir in the path.

tflite-dist

The project need TensorFlow Lite headers, C lib and C dll, either download them from here or build it yourself. Eventually there should be a "tflite-dist" as follow:

+- tflite-dist
+---+ include
+-------+ tenslorflow\lite\c (all c headers)
+---+ libs\windows_x86_64\tensorflowlite_c.dll.if.lib
+---+ libs\windows_x86_64\tensorflowlite_c.dll

The project refernce these files using a TFLITE_DIST environment variable:

  1. Define a global environment variable that points to your tflite-dist folder.
  2. Make sure to select the "Release/x64" build configuration
  3. During runtime, the app will need to load tensorflowlite_c.dll, make sure to have tflite-dist\libs\windows_x86_64 dir in the path.

License

MIT

tflite-win-c's People

Contributors

valyouw 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.