Package com.codename1.ai.vision
package com.codename1.ai.vision
Vendor-neutral on-device vision APIs for still images and live camera frames.
The automatic backend uses Apple Vision/Core Image on iOS and Mac
Catalyst and ML Kit on Android. Unsupported ports report that through
isSupported(). Optional backends are selected with
VisionBackends.
Each analyzer is a separate build-time feature. Referencing one analyzer
causes the builder to retain only its platform adapter and native
dependency. VisionPipeline safely copies
callback-owned camera frames and drops stale pending frames under load.
-
ClassDescriptionPortable barcode observation.Creates reusable still-image or live-frame barcode analyzers.Creates reusable document-boundary and perspective-correction analyzers.Corrected document pages returned as encoded images.Portable face observation.Creates reusable on-device face analyzers.Portable image classification label.Creates reusable on-device image classifiers.Portable body-pose result.Creates reusable body-pose analyzers.Per-pixel foreground confidence mask.Creates reusable foreground/person segmentation analyzers.OCR output with a portable block-level structure.Creates reusable on-device OCR analyzers.Reusable, closable analyzer for still images or camera frames.Identifies a vision implementation.Vision backend selectors.Failure reported by an on-device vision backend.Features understood by the shared vision backend.Immutable vision input.Optional backend identity and backend-specific string values attached to a vision result.Common analyzer options; feature-specific options may extend this class.Connects a camera frame stream to an analyzer with keep-only-latest backpressure.Receives live vision results and recoverable analysis failures on the EDT.Immutable point normalized to a top-left-origin 0..1 coordinate space.Immutable normalized rectangle using a top-left origin.