Skip to content

Asher-1/VisionEngine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VisionEngine

This is a simple visionEngine project, it depends on ncnn library and opencv

https://github.com/Tencent/ncnn

https://github.com/nihui/opencv-mobile

How to use

1. download the models from baiduyun: baidu(code: 8mhn)

2. put models to directory: VisionEngine/data/models

  • Download ncnn-YYYYMMDD-platform-vulkan.zip or build ncnn for your platform yourself
  • Extract ncnn-YYYYMMDD-platform-vulkan.zip into lib/ and change the ncnn_DIR path to yours in src/CMakeLists.txt
  • Download opencv-mobile-XYZ-platform.zip
  • Extract opencv-mobile-XYZ-platform.zip into lib/ and change the OpenCV_DIR path to yours in src/CMakeLists.txt

5. compile the project and enjoy!

>> cd VisionEngine && mkdir build && cd build && cmake .. && make -j4 

5. run the project:

>> cd src && ./face && ./object && ./classifier

some notes

  • All models are manually modified to accept dynamic input shape
  • Most small models run slower on GPU than on CPU on Mobile platform, this is common
  • FPS may be lower in dark environment because of longer camera exposure time

6. result

face detector result:

图片

face landmark result:

图片

mask result:

图片

object result:

图片

classifier result:

图片

pose result:

图片

segment result:

图片

ocr result:

图片

7. Deploy:

  • Linux deploy
  • Windows deploy
  • Aandroid deploy
  • IOS deploy

8. TODO:

  • optimize the speed by using block strategy
  • refactor the project

9. references

About

visionEigen system based on NCNN including classification, face, object detection and so on

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Packages

 
 
 

Contributors