सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
ar_core एक Flutter प्लगइन है जो iOS और Android दोनों के लिए मोबाइल एप्लिकेशन में ऑगमेंटेड रियलिटी (AR) कार्यक्षमता सुनिश्चित करता है, जिसमें रियल-टाइम कैमरा एक्सेस और 3D ऑब्जेक्ट प्लेसमेंट का समर्थन होता है। यह विकासकर्ताओं को सरल APIs के उपयोग से अपने एप्लिकेशन में AR अनुभवों को सीधे एम्बेड करने की अनुमति देता है। प्लगइन प्रत्येक प्लेटफॉर्म पर मूल एआर क्षमताओं का उपयोग करता है और उपकरणों के बीच बिना किसी बाधा के काम करने के लिए डिज़ाइन किया गया है। वर्तमान में वेब एआर का समर्थन नहीं करता है, लेकिन फ्लटर एप्लिकेशन में इंटरैक्टिव एआर फीचर्स बनाने के लिए एक ठोस बुनियादी ढांचा प्रदान करता है।
उपयोग
इंटरैक्टिव उत्पाद प्रीव्यू बनाना
AR खेल विकसित करना
3D मॉडल्स के साथ शैक्षिक ऐप्स को बढ़ावा देना
आर्किटेक्चरल डिजाइन का दृश्यीकरण
वर्चुअल ट्राई-ऑन को सक्षम करें
मुख्य विशेषताएँ
रियल-टाइम कैमरा एंटीग्रेशन
AR स्थान में 3D वस्तु स्थापना
क्रॉस-प्लेटफॉर्म समर्थन (iOS और Android)
सरल Flutter API
मूल एआर फ्रेमवर्क का उपयोग
इनके लिए उपयुक्त
मोबाइल एआर ऐप डेवलपर्स
शैक्षिक प्रौद्योगिकी परियोजनाएँ
ई-कॉमर्स उत्पाद विज़ुअलाइज़ेशन
AR फीचर्स की तलाश में गेम डेवलपर्स
अंतर्लीन इंटरफ़ेस का अन्वेषण कर रहे UX डिजाइनर
विचार योग्य बातें
कोई वेब प्लेटफॉर्म समर्थन नहीं
AR क्षमता वाले उपकरण की आवश्यकता है
उपलब्ध दस्तावेज़ सीमित हैं
मूल एआर फ्रेमवर्क पर निर्भर करता है
जटिल दृश्य के लिए अतिरिक्त सेटअप की आवश्यकता हो सकती है
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
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.