Skip to main content

Rust implementation of manga-image-translator with py-bindings

Project description

Python interface for manga-image-translator rust runtime

Feel free to contribute

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

rusty_manga_image_translator-0.8.13-cp39-abi3-win_amd64.whl (198.4 MB view details)

Uploaded CPython 3.9+Windows x86-64

rusty_manga_image_translator-0.8.13-cp39-abi3-manylinux_2_38_aarch64.whl (24.3 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.38+ ARM64

rusty_manga_image_translator-0.8.13-cp39-abi3-manylinux_2_35_x86_64.whl (192.8 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.35+ x86-64

rusty_manga_image_translator-0.8.13-cp39-abi3-macosx_15_0_arm64.whl (24.8 MB view details)

Uploaded CPython 3.9+macOS 15.0+ ARM64

rusty_manga_image_translator-0.8.13-cp39-abi3-macosx_13_0_x86_64.whl (49.7 MB view details)

Uploaded CPython 3.9+macOS 13.0+ x86-64

File details

Details for the file rusty_manga_image_translator-0.8.13-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for rusty_manga_image_translator-0.8.13-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 826068c2d0360d122d8087f86e9464f9b9a16c7d3079402f090ffbec80d1f374
MD5 505278e8f912b6ab1bcef682cc5d776b
BLAKE2b-256 03d27ea66090df9b23934e428c4cc644b0eaf5acecc1f0c8be3e8e4e5999649e

See more details on using hashes here.

File details

Details for the file rusty_manga_image_translator-0.8.13-cp39-abi3-manylinux_2_38_aarch64.whl.

File metadata

File hashes

Hashes for rusty_manga_image_translator-0.8.13-cp39-abi3-manylinux_2_38_aarch64.whl
Algorithm Hash digest
SHA256 e52cdfdd303fde091efffbb3213baad7d30097109647a2b88e869b5cecd21847
MD5 905e72f9ecbbe608a36ec0b2b78dc508
BLAKE2b-256 de6e3227ad886ed131c1254b7373dd4d97d8c2490c4d5bf29b19908054088f90

See more details on using hashes here.

File details

Details for the file rusty_manga_image_translator-0.8.13-cp39-abi3-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for rusty_manga_image_translator-0.8.13-cp39-abi3-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 4d27922ab243b122896dd810c69fd9f7287bc7bc225869a32e4db55ab9afe802
MD5 11b89e2224566f8c49726d07346a7803
BLAKE2b-256 30e9aa73cbe6a09b0ad6fc140de269a4c31a120bf6a4ed33990a6209ffd8b8fe

See more details on using hashes here.

File details

Details for the file rusty_manga_image_translator-0.8.13-cp39-abi3-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for rusty_manga_image_translator-0.8.13-cp39-abi3-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 60c2d15f6ad3cc7692b828cc5ccabba383e94c6a91e6525eff9d4caeee24d50f
MD5 7dc9ddade8036044589052134cff2e22
BLAKE2b-256 f882711f925a9e92a5af3fc7713ad7aba6b8138e89987ab94b2a57dd56685d5f

See more details on using hashes here.

File details

Details for the file rusty_manga_image_translator-0.8.13-cp39-abi3-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for rusty_manga_image_translator-0.8.13-cp39-abi3-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 38680d39caa994fa8b87c8be5614670f929a9f8d161de138a828bcf597cb187c
MD5 9b692fceb879c259794d8b1637af6992
BLAKE2b-256 cfcb37a116f0f673d0d375e63b228accca8c0df89324d6a4ce3a218e9c5802c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page