pub struct ImageToTextRequest {
pub image_bytes: Vec<u8>,
pub module_name: Option<TextModule>,
pub threshold: Option<u8>,
pub case: Option<bool>,
pub numeric: Option<bool>,
pub math: Option<bool>,
}Expand description
Text-on-image captcha (ImageToTextTask).
Fields§
§image_bytes: Vec<u8>Raw image bytes (PNG/JPEG/…); sent base64-encoded as body.
module_name: Option<TextModule>§threshold: Option<u8>Minimum recognition confidence, 0..=100.
case: Option<bool>Case-sensitive text.
numeric: Option<bool>Only digits (sent as 0/1).
math: Option<bool>The image contains an arithmetic expression to calculate.
Implementations§
Source§impl ImageToTextRequest
impl ImageToTextRequest
pub fn new(image_bytes: impl Into<Vec<u8>>) -> Self
pub fn with_module_name(self, value: TextModule) -> Self
pub fn with_threshold(self, value: u8) -> Self
pub fn with_case(self, value: bool) -> Self
pub fn with_numeric(self, value: bool) -> Self
pub fn with_math(self, value: bool) -> Self
Trait Implementations§
Source§impl CaptchaRequest for ImageToTextRequest
impl CaptchaRequest for ImageToTextRequest
Source§fn timeouts(&self) -> GetResultTimeouts
fn timeouts(&self) -> GetResultTimeouts
Polling schedule recommended for this captcha type.
Source§impl Clone for ImageToTextRequest
impl Clone for ImageToTextRequest
Source§impl Debug for ImageToTextRequest
impl Debug for ImageToTextRequest
Auto Trait Implementations§
impl Freeze for ImageToTextRequest
impl RefUnwindSafe for ImageToTextRequest
impl Send for ImageToTextRequest
impl Sync for ImageToTextRequest
impl Unpin for ImageToTextRequest
impl UnsafeUnpin for ImageToTextRequest
impl UnwindSafe for ImageToTextRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more