Spaces:
Sleeping
Sleeping
Upload captcha_solver/utils/__init__.py with huggingface_hub
Browse files
captcha_solver/utils/__init__.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Utilities (image, cache, detector, tesseract)."""
|
| 2 |
+
|
| 3 |
+
from captcha_solver.utils.image import (
|
| 4 |
+
decode_base64_image,
|
| 5 |
+
decode_base64_audio,
|
| 6 |
+
image_to_pil,
|
| 7 |
+
perceptual_hash,
|
| 8 |
+
)
|
| 9 |
+
from captcha_solver.utils.cache import SolveCache
|
| 10 |
+
from captcha_solver.utils.detector import detect_type
|
| 11 |
+
from captcha_solver.utils.tesseract_ocr import (
|
| 12 |
+
is_available as tesseract_available,
|
| 13 |
+
ocr_image as tesseract_ocr_image,
|
| 14 |
+
ocr_captcha_math,
|
| 15 |
+
ocr_captcha_text,
|
| 16 |
+
)
|
| 17 |
+
|
| 18 |
+
__all__ = [
|
| 19 |
+
"decode_base64_image",
|
| 20 |
+
"decode_base64_audio",
|
| 21 |
+
"image_to_pil",
|
| 22 |
+
"perceptual_hash",
|
| 23 |
+
"SolveCache",
|
| 24 |
+
"detect_type",
|
| 25 |
+
"tesseract_available",
|
| 26 |
+
"tesseract_ocr_image",
|
| 27 |
+
"ocr_captcha_math",
|
| 28 |
+
"ocr_captcha_text",
|
| 29 |
+
]
|