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()
Metadata
Release files for rusty-manga-image-translator 0.12.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| rusty_manga_image_translator-0.12.1-cp39-abi3-win_amd64.whl | CPython 3.9 | abi3 | Windows x86-64 | Details |
| rusty_manga_image_translator-0.12.1-cp39-abi3-manylinux_2_38_aarch64.whl | CPython 3.9 | abi3 | Linux glibc 2.38+ ARM64 | Details |
| rusty_manga_image_translator-0.12.1-cp39-abi3-manylinux_2_35_x86_64.whl | CPython 3.9 | abi3 | Linux glibc 2.35+ x86-64 | Details |
| rusty_manga_image_translator-0.12.1-cp39-abi3-macosx_15_0_arm64.whl | CPython 3.9 | abi3 | macOS 15.0+ ARM64 | Details |
Total release size: 430.8 MB
Release files / rusty_manga_image_translator-0.12.1-cp39-abi3-win_amd64.whl
| Download URL | rusty_manga_image_translator-0.12.1-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 198.7 MB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
b3c771dc1458bad33f28e8c8610e140d983d273f7182d276878964a5a15da690
|
|
BLAKE2b-256 checksum How to use checksums |
8fd2cc342804841f7dbb4a525fe721d0ce45637b127aa24fb9e431732b165501
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.23
|
Release files / rusty_manga_image_translator-0.12.1-cp39-abi3-manylinux_2_38_aarch64.whl
| Download URL | rusty_manga_image_translator-0.12.1-cp39-abi3-manylinux_2_38_aarch64.whl |
|---|---|
| Size | 25.7 MB |
| Tags | CPython 3.9 Linux glibc 2.38+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
a08f950480a28aeac0e83e3537e7533594fb378e0a9043e4376cea4ba0db68b5
|
|
BLAKE2b-256 checksum How to use checksums |
6723b77e918e210bc837de9722d9f6ac4aee0f6536da1127521aaf04845741b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.23
|
Release files / rusty_manga_image_translator-0.12.1-cp39-abi3-manylinux_2_35_x86_64.whl
| Download URL | rusty_manga_image_translator-0.12.1-cp39-abi3-manylinux_2_35_x86_64.whl |
|---|---|
| Size | 192.3 MB |
| Tags | CPython 3.9 Linux glibc 2.35+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
1352faa6a27add47167a96278882d3b1efa6c7fd271a5b80625ebbcc94a418d8
|
|
BLAKE2b-256 checksum How to use checksums |
e4abe7297f68c6f21e587d4cfbdf4fa9167ef21a00c9be1c549e10064a5edb63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.23
|
Release files / rusty_manga_image_translator-0.12.1-cp39-abi3-macosx_15_0_arm64.whl
| Download URL | rusty_manga_image_translator-0.12.1-cp39-abi3-macosx_15_0_arm64.whl |
|---|---|
| Size | 14.1 MB |
| Tags | CPython 3.9 abi3 macOS 15.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
b20ee817ffdf5c688bed6180f73579db34bd84abf811adf46b4f636b000f129a
|
|
BLAKE2b-256 checksum How to use checksums |
9efae43d6f0e7c23f65d94efc3249d88bf960693caacd3daa870aac4a4e8d919
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.23
|