Metadata-Version: 2.4
Name: rusty-manga-image-translator
Version: 0.12.1
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Rust
Classifier: Operating System :: OS Independent
Requires-Dist: numpy>1
Summary: Rust implementation of manga-image-translator with py-bindings
Keywords: manga,image-processing,rust,python,translator
Author-email: Frederik <termite_pilgrim04@icloud.com>
Requires-Python: >=3.9
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Homepage, https://github.com/frederik-uni/manga-image-translator-rust
Project-URL: Repository, https://github.com/frederik-uni/manga-image-translator-rust
Project-URL: Issues, https://github.com/frederik-uni/manga-image-translator-rust/issues
Project-URL: Changelog, https://github.com/frederik-uni/manga-image-translator-rust/blob/master/CHANGELOG.md

# Python interface for manga-image-translator rust runtime

[Feel free to contribute](https://github.com/frederik-uni/manga-image-translator-rust)

```py
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()

```

