flutter_arcore_plugin
一個用於 Android 的 Flutter 外掛,可透過 ARCore 實現圖像識別
- 星標
- 87
- 分支
- 26
- 最近推送(UTC)
- 2020年12月14日
- 專案狀態
- 未封存
原始 README
以下為英文專案原文快照,最新內容請造訪 GitHub。
arcore_plugin
A Flutter plugin for Android allowing to recongize images via ARCore
- USES ARCore version 1.8.0
Features
[x] Displaying live ARCamera Feed
[x] Recognizing images via ARCore (for more information see: https://developers.google.com/ar/develop/c/augmented-images/)
[ ] Placing Objects
[ ] In-App training of the imgdb file
Installation
Android
- For Setup make sure you migrated your App to AndroidX
- in app/build.gradle set minSdkVersion to 24 and compileSdkVersion 28
defaultConfig {
...
minSdkVersion 24
...
}
and
android {
compileSdkVersion 28
...
}
- In the main function you have to you need to ensure that the binding is initialized before calling
/// ensure that the binding is initialized
WidgetsFlutterBinding.ensureInitialized();
...
- you also have to load file from asset folder and save it into cache
Future<void> _onArCoreViewCreated(ArCoreViewController controller) async {
arCoreViewController = controller;
await arCoreViewController.loadImgdbFromAssets(
tempFilePath:
'/data/user/0/com.peqas.arcorepluginexample/cache/image_database.imgdb');
await controller.getArCoreView();
}
For more information checkout the Example project
# Very important!
* AS FOR NOW THE PLUGIN DOES NOT SUPPORT IN APP TRAINING OF THE IMGDB FILE
* The IMGDB File has to be PRETRAINED and saved in a Temp Directory before the ArCoreView is created
* The IMGDB File name hast to be image_database.imgdb
* you can find a pretained imgdb file under example/assets. The images that the imgdb file is trained with are found under example/assets/tester_images
* for more info about ARCore imgdb files see : https://developers.google.com/ar/develop/c/augmented-images/arcoreimg
Note: This plugin is still under development, and some APIs might not be available yet. Feedback welcome and Pull Requests are most welcome!
語言JavaGLSLDartRubyObjective-C
使用的依賴
依賴清單 2 項
- flutter
{"sdk":"flutter"} - lint
^1.2.0
如何選擇適合專案的儲存庫?
先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
- 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
- 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
- 使用前在 GitHub 確認 README、授權條款與 Issues。
來源與維護
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗