Skip to content

LegeApp/usls-doc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Last update - layout detection now works right out of the box with the docstructbench1024 onnx model, but I can't get OCR to work with SVTR/DB, or TROCR, with this repo, so I stopped updating it.

This repo is being used for document layout processing, because of its excellent Rust support for ONNX, to include Paddle and Yolo models. Do not use this repo if you want all the features of the main branch, because this does not have them, and will keep diverging from the main as more changes are made. If you are doing layout processing and/or OCR you might find the finished product useful.

usls

Rust Continuous Integration Badge usls Version Rust MSRV ONNXRuntime MSRV CUDA MSRV TensorRT MSRV Crates.io Total Downloads

Examples usls documentation

usls is a Rust library integrated with ONNXRuntime, offering a suite of advanced models for Computer Vision and Vision-Language tasks, including:

⛳️ Cargo Features

By default, none of the following features are enabled. You can enable them as needed:

  • auto: Automatically downloads prebuilt ONNXRuntime binaries from Pyke’s CDN for supported platforms.

  • ffmpeg: Adds support for video streams, real-time frame visualization, and video export.

    • Powered by video-rs and minifb. For any issues related to ffmpeg features, please refer to the issues of these two crates.
  • cuda: Enables the NVIDIA TensorRT provider.

  • trt: Enables the NVIDIA TensorRT provider.

  • mps: Enables the Apple CoreML provider.

🎈 Example

  • Using CUDA

    cargo run -r -F cuda --example yolo -- --device cuda:0
    
  • Using Apple CoreML

    cargo run -r -F mps --example yolo -- --device mps
    
  • Using TensorRT

    cargo run -r -F trt --example yolo -- --device trt
    
  • Using CPU

    cargo run -r --example yolo
    

🥂 Integrate Into Your Own Project

Add usls as a dependency to your project's Cargo.toml

cargo add usls -F cuda

Or use a specific commit:

[dependencies]
usls = { git = "https://github.com/nazeling/usls-doc", rev = "commit-sha" }

🥳 If you find this helpful, please give it a star ⭐

📌 License

This project is licensed under LICENSE.

About

A Rust library integrated with ONNXRuntime, specializing in document layout processing and OCR.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Rust 100.0%