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 with normalized geometry.Creates reusable still-image or live-frame barcode analyzers.Creates reusable document-boundary and perspective-correction analyzers.Corrected document pages returned as encoded image data.Portable face observation.Creates reusable on-device face analyzers.Portable ranked image-classification label.Creates reusable on-device image classifiers.Portable body-pose result.One named body joint with normalized position and confidence.Creates reusable body-pose analyzers.Dense per-pixel foreground confidence mask.Creates reusable foreground/person segmentation analyzers.OCR output containing the complete recognized text and portable block-level geometry.One recognized text block with confidence and normalized bounds.Creates reusable on-device OCR analyzers.Reusable, closable on-device 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 input for encoded still images or raw camera pixels.Optional backend identity and backend-specific diagnostic strings attached to a vision result.Common analyzer configuration.Connects a camera frame stream to a reusable analyzer with keep-only-latest backpressure.Receives live vision results and recoverable analysis failures on the EDT.Immutable point in a normalized, top-left-origin coordinate space.Immutable normalized rectangle using a top-left origin.