Views
No views yet

arkhabbazan/ocr-captcha-routerarkhabbazan/ocr-math-captchaanuashok/ocr-captcha-v31from resolver import CaptchaResolver
2
3resolver = CaptchaResolver.from_pretrained(
4 "arkhabbazan/ocr-captcha-router",
5 token=True,
6 math_confidence_threshold=0.85,
7)
8print(resolver.predict("captcha.jpeg"))math_confidence_threshold accepts a value
from 0.0 to 1.0; it is the minimum router probability required to choose
the math result when both expert outputs match their valid formats.