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.12-cp39-abi3-win_amd64.whl (195.3 MB view details)

Uploaded CPython 3.9+Windows x86-64

rusty_manga_image_translator-0.8.12-cp39-abi3-manylinux_2_38_aarch64.whl (18.3 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.38+ ARM64

rusty_manga_image_translator-0.8.12-cp39-abi3-manylinux_2_35_x86_64.whl (187.3 MB view details)

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

rusty_manga_image_translator-0.8.12-cp39-abi3-macosx_15_0_arm64.whl (21.4 MB view details)

Uploaded CPython 3.9+macOS 15.0+ ARM64

rusty_manga_image_translator-0.8.12-cp39-abi3-macosx_13_0_x86_64.whl (41.4 MB view details)

Uploaded CPython 3.9+macOS 13.0+ x86-64

File details

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

File metadata

File hashes

Hashes for rusty_manga_image_translator-0.8.12-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 84e6c58b16e2060b55a19f5cb142e4ed2530ac0a7063b8d146fbfcaca101dfc2
MD5 a1e8fb62ed6d7bcda95e48c57d841544
BLAKE2b-256 afd2d078fc81c3585691369aeb171595b4485eb22f8ec2a64989e83ab701c4a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_manga_image_translator-0.8.12-cp39-abi3-manylinux_2_38_aarch64.whl
Algorithm Hash digest
SHA256 f880a550b3dc3c6c1091cc264a1189d156b02ecdb448958743e7ee80592cf514
MD5 7219c66732ff95d0c5c8e67cde51cb15
BLAKE2b-256 48245e828d6ec5b9ecf4eb7ef2a38937058e228874815483ba35df18a15fe636

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_manga_image_translator-0.8.12-cp39-abi3-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 5e36af1a379f65a334413b0889c4811b375b349a247b183fd9290f27726f4252
MD5 14707827559c2b8f5e9ec4ba4f9cf4a0
BLAKE2b-256 22dc8b8de301ec91846edd4597b46d82a6784cef234911d1e6beb45cd0f4c400

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_manga_image_translator-0.8.12-cp39-abi3-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 b8497fb7fb98a26756a77040889372667a54f2544eabe7d4b5b5672bc5af370f
MD5 3e092b87de4266804ae1fe7d154673f4
BLAKE2b-256 dbaa0a83b682c61fc6baf5a77738eeb72e367d8347591ff5bc950fb4c387e19f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rusty_manga_image_translator-0.8.12-cp39-abi3-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 987912f315d0c664cf318993cd836c5be036040bb6c07372c95add6893589330
MD5 b4026a76402547e141945ad3f183b850
BLAKE2b-256 0ff2d0e7eda7c0001b4c316003789b7c099fb45b6ecc34ca82ef07dcecb2ff05

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