detypify-service
TypeScript icon, indicating that this package has built-in type declarations

0.2.4 • Public • Published

Detypify Service

Let you integrate Detypify into your own projects easily.

Getting Started

  1. Install it as a dependency.

    $ bun add detypify-service
  2. This javascript module has only 2 exports:

    • ortEnv: Re-export of onnxruntime-web.env. Used to configure onnxruntime.

      Note: ONNX Runtime Web will request wasm files on the fly. Default URLs are unlikely to match yours. You might need to configure ortEnv.wasm.wasmPaths.

    • Detypify: The main type.

      • Use Detypify.create() to create an instance.

      • Use instance.candidates(strokes, k) to inference top k candidates.

Vite is recommended. I'm not sure whether other build tools can resolve bundled assets or not.

/detypify-service/

    Package Sidebar

    Install

    npm i detypify-service

    Weekly Downloads

    53

    Version

    0.2.4

    License

    MIT

    Unpacked Size

    1.38 MB

    Total Files

    7

    Last publish

    Collaborators

    • quarticcat