Aus öffentlichen Paketdaten erstellte Orientierung.
ar_core ist ein Flutter-Plugin, das Augmented-Reality-(AR)-Funktionen in mobilen Anwendungen für iOS und Android ermöglicht, mit Unterstützung für Echtzeit-Kamera-Zugriff und Platzierung von 3D-Objekten. Es ermöglicht Entwicklern, AR-Erlebnisse mithilfe einfacher APIs direkt in ihre Apps zu integrieren. Das Plugin nutzt native AR-Fähigkeiten auf jeder Plattform und ist so konzipiert, dass es nahtlos über Geräte hinweg funktioniert. Obwohl es derzeit keine Unterstützung für Web-AR bietet, liefert es eine solide Grundlage für die Entwicklung interaktiver AR-Funktionen in Flutter-Anwendungen.
Anwendungsfälle
Interaktive Produktvorschauen erstellen
AR-Spiele entwickeln
Verbesserung von Bildungs-Apps mit 3D-Modellen
Visualisierung architektonischer Entwürfe
Virtuelle Anprobierfunktion aktivieren
Hauptmerkmale
Echtzeit-Kamera-Integration
Platzierung von 3D-Objekten im AR-Raum
Plattformübergreifende Unterstützung (iOS und Android)
Einfaches Flutter API
Nutzung des nativen AR-Frameworks
Geeignet für
Entwickler mobiler AR-Anwendungen
Projekte zur Bildungstechnologie
E-Commerce-Produktvisualisierung
Spielerentwickler, die AR-Funktionen suchen
UX-Designer erkunden immersive Schnittstellen
Hinweise
Keine Unterstützung der Webplattform
Gerät mit AR-Fähigkeit erforderlich
Beschränkte Dokumentation verfügbar
Abhängig von nativen AR-Frameworks
Kann zusätzliche Einstellungen für komplexe Szenen erfordern
Original-README
Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.
ar_core Flutter Package for Augmented Reality
ar_core is an augmented reality mobile application kit for mobile devices that enables the creation of augmented reality applications.
Many thanks to Arslan Raza for the ar_core, he served as a great basis and starting point for this project.
Features
Display live camera preview in a widget.
Custom Camera, Place anywhere on the Screen.
Choose Asset, Network or 3d objects in png.
Drag, Resize, Rotate, Zoom in and out objects.
Add access to the image stream from Dart.
Getting Started
Installing
Add the Flutter package to your project by running:
flutter pub add ar_core
Or manually add this to your pubspec.yaml file (and run flutter pub get):
dependencies:ar_core:^0.0.1
iOS
The camera plugin functionality works on iOS 10.0 or higher. If compiling for any version lower than 10.0,
make sure to programmatically check the version of iOS running on the device before using any camera plugin features.
The device_info_plus plugin, for example, can be used to check the iOS version.
Add two rows to the ios/Runner/Info.plist:
one with the key Privacy - Camera Usage Description and a usage description.
and one with the key Privacy - Microphone Usage Description and a usage description.
Or in text format add the key:
<key>NSCameraUsageDescription</key><string>Can I use the camera please?</string><key>NSMicrophoneUsageDescription</key><string>Can I use the mic please?</string>
Android
Change the minimum Android sdk version to 21 (or higher) in your android/app/build.gradle file.
minSdkVersion 21
It's important to note that the MediaRecorder class is not working properly on emulators, as stated in the documentation: https://developer.android.com/reference/android/media/MediaRecorder. Specifically, when recording a video with sound enabled and trying to play it back, the duration won't be correct and you will only see the first frame.
Importing
Add this to your code:
import'package:ar_core/ar_core.dart';
Usage or How to Use
Replace your Scaffold to Augmented(), and it will handle all your view. if you want to pass an image just pass an image as a constructor.