Rust implementation of manga-image-translator with py-bindings
Project description
Python interface for manga-image-translator rust runtime
from rusty_manga_image_translator import Session, PyPreprocessorOptions, PyDefaultOptions, PyImage
#import numpy as np
#from PIL import Image
# det = Session(["cuda", "directml", "tensorrt", "coreml"])
ses = Session(None)
# det = ses.convnext_detector()
det = ses.default_detector()
o1 = PyPreprocessorOptions(False, False, False, False)
o2 = PyDefaultOptions(2048, 2.3, 0.5, 0.7)
if (not det.loaded()):
det.load()
# img = PyImage.from_numpy(np.array(Image.open("./imgs/232264684-5a7bcf8e-707b-4925-86b0-4212382f1680.png")))
img = PyImage("./imgs/232264684-5a7bcf8e-707b-4925-86b0-4212382f1680.png")
import time
areas, mask = det.detect(img, o1, o2)
det.unload()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rusty_manga_image_translator-0.8.13-cp39-abi3-win_amd64.whl.
File metadata
- Download URL: rusty_manga_image_translator-0.8.13-cp39-abi3-win_amd64.whl
- Upload date:
- Size: 198.4 MB
- Tags: CPython 3.9+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
826068c2d0360d122d8087f86e9464f9b9a16c7d3079402f090ffbec80d1f374
|
|
| MD5 |
505278e8f912b6ab1bcef682cc5d776b
|
|
| BLAKE2b-256 |
03d27ea66090df9b23934e428c4cc644b0eaf5acecc1f0c8be3e8e4e5999649e
|
File details
Details for the file rusty_manga_image_translator-0.8.13-cp39-abi3-manylinux_2_38_aarch64.whl.
File metadata
- Download URL: rusty_manga_image_translator-0.8.13-cp39-abi3-manylinux_2_38_aarch64.whl
- Upload date:
- Size: 24.3 MB
- Tags: CPython 3.9+, manylinux: glibc 2.38+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e52cdfdd303fde091efffbb3213baad7d30097109647a2b88e869b5cecd21847
|
|
| MD5 |
905e72f9ecbbe608a36ec0b2b78dc508
|
|
| BLAKE2b-256 |
de6e3227ad886ed131c1254b7373dd4d97d8c2490c4d5bf29b19908054088f90
|
File details
Details for the file rusty_manga_image_translator-0.8.13-cp39-abi3-manylinux_2_35_x86_64.whl.
File metadata
- Download URL: rusty_manga_image_translator-0.8.13-cp39-abi3-manylinux_2_35_x86_64.whl
- Upload date:
- Size: 192.8 MB
- Tags: CPython 3.9+, manylinux: glibc 2.35+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d27922ab243b122896dd810c69fd9f7287bc7bc225869a32e4db55ab9afe802
|
|
| MD5 |
11b89e2224566f8c49726d07346a7803
|
|
| BLAKE2b-256 |
30e9aa73cbe6a09b0ad6fc140de269a4c31a120bf6a4ed33990a6209ffd8b8fe
|
File details
Details for the file rusty_manga_image_translator-0.8.13-cp39-abi3-macosx_15_0_arm64.whl.
File metadata
- Download URL: rusty_manga_image_translator-0.8.13-cp39-abi3-macosx_15_0_arm64.whl
- Upload date:
- Size: 24.8 MB
- Tags: CPython 3.9+, macOS 15.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60c2d15f6ad3cc7692b828cc5ccabba383e94c6a91e6525eff9d4caeee24d50f
|
|
| MD5 |
7dc9ddade8036044589052134cff2e22
|
|
| BLAKE2b-256 |
f882711f925a9e92a5af3fc7713ad7aba6b8138e89987ab94b2a57dd56685d5f
|
File details
Details for the file rusty_manga_image_translator-0.8.13-cp39-abi3-macosx_13_0_x86_64.whl.
File metadata
- Download URL: rusty_manga_image_translator-0.8.13-cp39-abi3-macosx_13_0_x86_64.whl
- Upload date:
- Size: 49.7 MB
- Tags: CPython 3.9+, macOS 13.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38680d39caa994fa8b87c8be5614670f929a9f8d161de138a828bcf597cb187c
|
|
| MD5 |
9b692fceb879c259794d8b1637af6992
|
|
| BLAKE2b-256 |
cfcb37a116f0f673d0d375e63b228accca8c0df89324d6a4ce3a218e9c5802c8
|