pub struct ImageAnalyzer { /* private fields */ }Implementations§
Source§impl ImageAnalyzer
impl ImageAnalyzer
pub fn new() -> Result<Self, VisionKitError>
pub fn is_supported() -> bool
pub fn supported_text_recognition_languages() -> Result<Vec<String>, VisionKitError>
pub fn analyze_image_at_path<P: AsRef<Path>>( &self, path: P, orientation: ImageOrientation, configuration: &ImageAnalyzerConfiguration, ) -> Result<ImageAnalysis, VisionKitError>
pub fn analyze_ns_image_at_path<P: AsRef<Path>>( &self, path: P, orientation: ImageOrientation, configuration: &ImageAnalyzerConfiguration, ) -> Result<ImageAnalysis, VisionKitError>
pub fn analyze_cg_image_at_path<P: AsRef<Path>>( &self, path: P, orientation: ImageOrientation, configuration: &ImageAnalyzerConfiguration, ) -> Result<ImageAnalysis, VisionKitError>
pub fn analyze_ci_image_at_path<P: AsRef<Path>>( &self, path: P, orientation: ImageOrientation, configuration: &ImageAnalyzerConfiguration, ) -> Result<ImageAnalysis, VisionKitError>
pub fn analyze_pixel_buffer_at_path<P: AsRef<Path>>( &self, path: P, orientation: ImageOrientation, configuration: &ImageAnalyzerConfiguration, ) -> Result<ImageAnalysis, VisionKitError>
Trait Implementations§
Source§impl Drop for ImageAnalyzer
impl Drop for ImageAnalyzer
Auto Trait Implementations§
impl Freeze for ImageAnalyzer
impl RefUnwindSafe for ImageAnalyzer
impl !Send for ImageAnalyzer
impl !Sync for ImageAnalyzer
impl Unpin for ImageAnalyzer
impl UnsafeUnpin for ImageAnalyzer
impl UnwindSafe for ImageAnalyzer
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