ZETIC MLange Extension is a cross-platform extension library for AI runtime environments, providing ready-to-use mobile deployment solutions with seamless integration of input/output processing capabilities and neural network inference pipelines built on the ZETIC.MLange framework.
ZETIC MLange Extension bridges the gap between AI research and mobile production deployment by offering a unified, cross-platform interface for common preprocessing, postprocessing, and inference operations. Our core C/C++ implementation ensures optimal performance while providing native bindings for Edge AI environments, making it easy to deploy AI pipelines directly on edge devices.
- Native Android Support: Ready-to-use Kotlin/Java packages for Android development
- Native iOS Support: Swift packages optimized for iOS deployment
- Cross-Platform Support: Flutter, React-Native packages
- Cross-Platform Core: High-performance C/C++ implementation with platform-specific bindings
- Device Optimization: Memory and compute optimizations for mobile hardware constraints
- ZETIC.MLange Integration: Native support for ZETIC.MLange framework inference
- Pipeline Orchestration: Configurable multi-stage processing pipelines
- Memory Optimization: Efficient memory management for resource-constrained environments
- Caching: Intelligent caching for repeated operations
implementation("com.zeticai:mlange:ext:0.0.1")github.com/zetic-ai/zetic_mlange_ext.git
- java19
- NDK ($ANDROID_NDK)
(Ser environment varialbe for ANDROID_NDK)- Build
third-partylibraries by runbuild_third-party.sh. - Build android or ios project using Android Studio or Xcode.
- Android(Kotlin)
val objectDetectionPipeline = ZeticMLangePipeline(
feature = ObjectDetection(this),
inputSource = CameraSource(this, surface.holder, preferredSize),
)
objectDetectionPipeline.loop { runOnUiThread {
yolo.visualize(YOLOResult(it.value), preferredSize, true)
}}- iOS(Swift)
GeometryReader { geometry in
ZStack {
if let previewLayer = cameraSource.previewLayer {
CameraPreviewView(previewLayer: previewLayer)
}
if let detections = pipeline.latestResult {
DetectionsView(detectionResult: detections, cameraResolution: cameraSource.resolution)
}
}
}
.onAppear {
pipeline.startLoop()
}
.onDisappear {
pipeline.stopLoop()
}- ZETIC.MLange is specifically designed for real-world mobile applications, not just research prototypes. While other frameworks focus on training or server deployment, ZETIC.MLange excels at bringing AI models to resource-constrained mobile devices with consistent performance and reliability.
- Our C/C++ core delivers superior performance compared to Python-based alternatives or framework-specific mobile solutions. ZETIC.MLange leverages platform-specific optimizations (ARM NEON, GPU acceleration, NPU utilization) to maximize inference speed while minimizing battery consumption and memory usage.
- Unlike other frameworks that only handle inference, ZETIC.MLange provides end-to-end pipeline management including preprocessing (OpenCV, tokenizers), inference, and postprocessing in a single, cohesive package. This eliminates the complexity of integrating multiple libraries and ensures optimal data flow between pipeline stages.
- Write your AI pipeline once in C/C++ and deploy everywhere. ZETIC.MLange automatically generates native bindings for Android (Kotlin/Java), iOS (Swift) and Cross Platform(Flutter, React Native), ensuring your code feels natural on each platform while maintaining identical inference results and performance characteristics.
- ZETIC.MLange is built for production environments with robust error handling, memory management, and graceful degradation. Our architecture prevents common mobile AI pitfalls like memory leaks, crashes from large models, and inconsistent inference results across devices.
- Simple, intuitive APIs that hide complexity without sacrificing control. Whether you're a mobile developer new to AI or an ML engineer moving to mobile, ZETIC.MLange's clean interfaces and comprehensive documentation get you productive quickly.
- Built with modularity in mind, ZETIC.MLange makes it easy to add custom processors, integrate new model formats, or extend functionality without modifying core components. The plugin architecture ensures your extensions work seamlessly across all supported platforms.