BeeAR libraries 0.4.0
Reusable web and Android libraries for virtual try-on (glasses / accessories).
Artifacts
| File | Platform | Install |
|---|---|---|
beear-tryon-0.4.0.js |
Browser / WebView | <script src="…"> → window.BeeARTryOn |
beear-tryon-*.tgz |
Node / bundlers | npm install ./beear-tryon-*.tgz or from GitHub Release |
beear-webview-0.4.0.aar |
Android | implementation(files("libs/beear-webview-0.4.0.aar")) |
Web — @beear/tryon
<script src="beear-tryon-0.4.0.js"></script>
<script>
const fit = BeeARTryOn.estimateFit(frame, { pupilDistancePx: 64, faceWidthPx: 180 });
console.log(BeeARTryOn.VERSION); // 0.4.0
</script>ESM (from package):
import { estimateFit, drawGlassesOverlay } from "@beear/tryon";Android — beear-webview
// build.gradle.kts
implementation(files("libs/beear-webview-0.4.0.aar"))
// + androidx.activity / fragment / appcompat (see packages/android/beear-webview/build.gradle.kts)
val view = BeeARWebView(this)
setContentView(view)
view.attach(this, BeeARConfig.loopback()) // or BeeARConfig.offlineAssets()
view.loadTryOn()Offline assets are bundled inside the AAR (file:///android_asset/beear/).
Verify
sha256sum -c CHECKSUMS.sha256Source
- JS:
packages/tryon-js - Android:
packages/android/beear-webview - Repo: https://github.com/mergeos-bounties/BeeAR
Tag: libs-v0.4.0 · MIT · MergeOS / ThanhTrucSolutions