# Android Camerax Mlkit

> Seamless integration of CameraX with Google ML Kit for vision tasks.

- Skill: `prasad-vennam/android-camerax-mlkit` (Agent Skill)
- Install (CLI): `npx skillmds@latest add prasad-vennam/android-camerax-mlkit`
- Raw SKILL.md: https://api.skillmd.com/api/skills/prasad-vennam/android-camerax-mlkit/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: prasad-vennam (https://skillmd.com/u/prasad-vennam)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/prasad-vennam/android-camerax-mlkit

---


# CameraX & ML Kit Vision Integration 📸

Efficient real-time image analysis.

## ⚡ When to Use
- When asked to build barcode scanners, text recognition, or live face detection.

## 🏗️ Core Rules / Pillars

### 1. ImageAnalysis UseCase
- **Pattern**: ALWAYS use CameraX's `ImageAnalysis` use case bound to the lifecycle.
- **Implementation**: Pipe the `ImageProxy` directly to an `InputImage` for ML Kit, ensuring you call `imageProxy.close()` inside the `.addOnCompleteListener`.

## 🚧 Critical Anti-Hallucination Guards
- **Trap**: NEVER hold references to `ImageProxy` outside the analyzer scope to avoid out-of-memory errors!

