![NatDevice - Media Device API](https://assetstorev1-prd-cdn.unity3d.com/key-image/8c098b7e-0517-4864-ab8e-6a2d48706f8b.jpg)
High performance, cross-platform camera and microphone streaming for Unity Engine.NatDevice is a cross-platform media device API for iOS, Android, macOS, and Windows. NatDevice provides powerful abstractions for using hardware cameras and microphones through a concise .NET API. Features include:- High Resolution Camera Preview. NatDevice exposes device cameras that allow for full HD previews and higher where supported.- Low Latency Microphone Recording. NatDevice exposes microphones that stream audio data to your code on a dedicated audio thread.- High Resolution Photo Capture. NatDevice cameras support high-res photo capture with flash.- Camera Focus. NatDevice cameras support setting the focus point and focus lock (disabling autofocus).- Camera Exposure. NatDevice cameras support setting the exposure point, exposure bias, exposure lock, and manual exposure (exposure duration and ISO).- Camera Zoom. NatDevice cameras support optical zoom.- Camera White Balance Lock. NatDevice cameras can lock the white balance if the device supports it.- Microphone Format Control. NatDevice microphones can record in mono or stereo; at different sample rates; and with echo cancellation.- Torch Control. On mobile platforms, NatDevice cameras support torch control, even when camera preview is not running.- NatML Integration. NatDevice has developed to seamlessly integrate with NatML for building high performance machine learning-powered apps.- NatCorder Integration. NatDevice tightly integrates with our video recording API NatCorder, which supports recording MP4 videos, animated GIF images, WAV audio files, and so on.- OpenCV Integration. NatDevice has seamless integration with OpenCVForUnity. Check out the official example.******NOTE: Using NatDevice requires an active NatML Cloud subscription. Read more here.******Install NatDevice from GitHub (recommended).Join the NatML community on Discord.Check out the NatDevice documentation.See more NatML projects on GitHub.Read the NatML blog.Discuss NatDevice on Unity Forums.Contact us at hi@natml.ai.Supported Platforms- Android API Level 24+- iOS 13+- macOS 10.15+ (Apple Silicon and Intel)- Windows 10+ (64-bit only)
UnityEngine用の高性能なクロスプラットフォームのカメラとマイクのストリーミング。
説明
NatDeviceは、iOS、Android、macOS、およびWindows用のクロスプラットフォームメディアデバイスAPIです。NatDeviceは、簡潔な.NET APIを介して、ハードウェアカメラとマイクを使用するための強力な抽象化を提供します。機能は次のとおりです。
-高解像度カメラプレビュー。NatDeviceは、サポートされている場合、フルHDプレビュー以上を可能にするデバイスカメラを公開します。
-低遅延マイク録音。NatDeviceは、オーディオデータを専用のオーディオスレッド上のコードにストリーミングするマイクを公開します。
-高解像度写真キャプチャ。NatDeviceカメラは、フラッシュを使用した高解像度の写真キャプチャをサポートしています。
-カメラフォーカス。NatDeviceカメラは、フォーカスポイントとフォーカスロックの設定(オートフォーカスの無効化)をサポートしています。
-カメラの露出。NatDeviceカメラは、露出ポイント、露出バイアス、露出ロック、および手動露出(露出時間とISO)の設定をサポートしています。
-カメラズーム。NatDeviceカメラは光学ズームをサポートしています。
-カメラのホワイトバランスロック。デバイスがホワイトバランスをサポートしている場合、NatDeviceカメラはホワイトバランスをロックできます。
-マイクフォーマットコントロール。NatDeviceマイクは、モノラルまたはステレオで録音できます。さまざまなサンプルレートで。エコーキャンセレーション付き。
-トーチコントロール。モバイルプラットフォームでは、NatDeviceカメラは、カメラプレビューが実行されていない場合でも、トーチ制御をサポートします。
-NatML統合。NatDeviceは、 NatMLとシームレスに統合して、高性能の機械学習を利用したアプリを構築するために開発されました。
-NatCorder統合。NatDeviceは、MP4ビデオ、アニメーションGIF画像、WAVオーディオファイルなどの記録をサポートするビデオ記録APINatCorderと緊密に統合されています。
-OpenCV統合。NatDeviceは、 OpenCVForUnityとシームレスに統合されています。公式の例をご覧ください。
******
注:NatDeviceを使用するには、アクティブなNatMLクラウドサブスクリプションが必要です。詳細はこちらをご覧ください。
******
GitHubからNatDeviceをインストールします(推奨)。
DiscordでNatMLコミュニティに参加してください。
NatDeviceのドキュメントを確認してください。
GitHubで他のNatMLプロジェクトを参照してください。
NatMLブログを読んでください。
UnityフォーラムでNatDeviceについて話し合う。
hi@natml.aiまでお問い合わせください。
技術的な詳細
サポートされているプラットフォーム
-AndroidAPIレベル24以上
-iOS13以降
--macOS 10.15以降(AppleシリコンおよびIntel)
-Windows 10以降(64ビットのみ)