mi_virtual_background_kit 0.1.1
mi_virtual_background_kit: ^0.1.1 copied to clipboard
Real-time virtual background (blur, image, solid color) for flutter_webrtc camera tracks. Fully on-device, no network, no telemetry.
0.1.1 #
- Fix iOS Swift Package Manager build failure in consumer apps that resolve a
flutter_webrtcversion other than1.6.2+hotfix.4(issue #1):Package.swiftnow declares the dependency as the versionless../flutter_webrtcpath, which the Flutter tool (>= 3.47.2) rewrites to the app's resolvedflutter_webrtc-<version>before building. - Android blur now matches iOS strength: the single 3x3 pass (which offset
samples by only ~
radius/25texels, barely visible even at the maximum radius) is replaced by a progressive separable Gaussian on a half-res chain whose sigma equals theradiusin pixels — the same semantics as iOSCIImage.applyingGaussianBlur(sigma:). Verified side-by-side on SM-A135F and iPhone 15 at radius 5 / 20 / 50. - Fix displaced blurred copy of the person appearing behind them on Android (blur effect only): the composite sampled the blur chain with transform-baked camera coordinates instead of the chain's own texture coordinates.
0.1.0 #
- Initial release.
- Virtual background effects on local
flutter_webrtccamera tracks: blur, image (asset / file / bytes, fitcoverorcontain), solid color, and none (bypass). - Switch effects at runtime without restarting the camera track (
setEffect, idempotent; camera switch keeps the active effect). attachwithBackgroundQuality(segmentation width, edge smoothing, target fps) and runtimesetQuality; presetslow/balanced/high.statusStream(idle, initializing, active, error) andfallbackStreamwith typed errors;isSupported()checks device, GPU, and model.- Two-stage performance fallback: quality degraded below 14 fps, effect disabled below 10 fps (FR-12), no crash.
- Fully on-device processing (MediaPipe
selfie_segmenter.tflite, Apache-2.0, bundled; GPU compositing) — no network, no telemetry. - Android (minSdk 24) and iOS 15.0+.