Giter Site home page Giter Site logo

ncnn-webassembly-ocrlite's Introduction

ncnn-webassembly-ocrlite

Requirements

Build

  1. Install emscripten
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install 2.0.8
./emsdk activate 2.0.8
./emsdk_env.sh
  1. Download and extract ncnn & OpenCV
Directory Tree

├─assets
├─demo
├─include
├─ncnn-static
│  └─webassembly
│      ├─basic
│      ├─simd
│      ├─simd-threads
│      └─threads
├─opencv-static
│  └─webassembly
│      ├─bin
│      ├─include
│      ├─lib
│      └─share
└─src

and

Get missing opencv2/imgcodecs.hpp Link
Path: opencv-static/webassembly/include/opencv2

  1. Build
mkdir build
cd build
cmake -DCMAKE_TOOLCHAIN_FILE=/PATH_TO_EMSDK/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_BUILD_TYPE=Release -DOCR_STATIC=ON ..
make

Demo

demo/index.html

Demo

demo/arknights.html

Demo-ArkNights-HR

References

ncnn-webassembly-ocrlite's People

Contributors

sg4dylan avatar

Stargazers

 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-webassembly-ocrlite's Issues

万能的up大佬,帮忙看一下这个错吧,谢谢

image
如上图,make的时候报错,【wasm-ld: error: unknown file type: alloc.cpp.o】,可能是什么原因呢?非常感谢,opencv我是先解压opencv-3.4.13-staticLib_3.7z,然后把opencv-mobile webassembly 3.4.13中basic目录下的文件copy到上一步解压的opencv目录中,然后再按照readme中目录层次调整的名称。

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.