Google Mobile Vision からの移行
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Google Mobile Vision は非推奨になりました。Google は、その代替となる ML Kit SDK への移行をデベロッパーに求めています。新しい SDK に移行すると、優れたパフォーマンス、安定性、最新機能を利用できます。さらに、ML Kit には、ビジョンだけでなく自然言語のユースケースにも使用できる、ML を活用した追加の API が用意されています。
アプリで Mobile Vision のバーコード スキャン、テキスト認識、顔検出 API を使用している場合は、Android 向け ML Kit 移行ガイドと iOS 向け ML Kit 移行ガイドに沿って、新しい ML Kit SDK に移行してください。
よくある質問
アプリがモバイル ビジョンを使用しているかどうかを確認するにはどうすればよいですか?
Android では、モジュール(アプリレベル)の Gradle ファイル(通常は app/build.gradle
)にこの依存関係が含まれているかどうかを確認します。
com.google.android.gms:play-services-vision:x.x.x
iOS では、Podfile に次のいずれかの依存関係が含まれているかどうかを確認します。
pod 'GoogleMobileVision/FaceDetector', '8.0.0'
pod 'GoogleMobileVision/BarcodeDetector', '8.0.0'
pod 'GoogleMobileVision/TextDetector', '8.0.0'
ML Kit SDK に移行するとどのようなメリットがありますか?
Mobile Vision SDK で提供されている既存の API は非推奨であるため、更新は行われなくなります。ML Kit に移行すると、最新のバグ修正と API の改善(ML モデルの更新やハードウェア アクセラレーションなど)をアプリケーションで利用できるようになります。
また、ML Kit API には次のようなメリットもあります。
最新の変更点の一覧については、ML Kit SDK リリースノートをご覧ください。
ML Kit API は Mobile Vision API と同じ機能を提供しますか?
バーコード スキャン API、テキスト認識 API、顔検出 API は、Mobile Vision の同等の API と同じ機能と機能を提供します。
ただし、Mobile Vision のマルチ検出機能、マルチプロセッサ、フォーカス プロセッサは ML Kit でサポートされなくなりました。必要に応じて、デベロッパーが同じ機能を比較的簡単に実装できます。
困ったときは
問題が発生した場合は、コミュニティ ページで、YouTube にお問い合わせいただけるチャネルをご確認ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-29 UTC。
[null,null,["最終更新日 2025-08-29 UTC。"],[[["\u003cp\u003eGoogle Mobile Vision is deprecated and developers should migrate to the ML Kit SDK for continued support and new features.\u003c/p\u003e\n"],["\u003cp\u003eML Kit offers enhanced performance, stability, and access to the latest machine learning advancements, including new APIs for Vision and Natural Language.\u003c/p\u003e\n"],["\u003cp\u003eMigration guides are available for both Android and iOS to assist developers in transitioning their apps from Mobile Vision to ML Kit.\u003c/p\u003e\n"],["\u003cp\u003eML Kit provides additional benefits like bundled variants on Android, API-specific improvements such as raw barcode output and Euler X angle in face detection, and Android Jetpack Lifecycle support for easier integration with CameraX.\u003c/p\u003e\n"]]],[],null,["Google Mobile Vision was deprecated and we are asking developers to migrate to the ML Kit SDK which is its replacement. Migrating to the new SDK ensures you get the best performance, stability and latest features. In addition, ML Kit provides additional ML-powered APIs, not only for Vision, but also Natural Language use cases.\n\nIf you are using Mobile Vision's barcode scanning, text recognition or face detection APIs in your app today, please migrate to the new ML Kit SDK, by following the\n**[ML Kit migration guide for Android](/ml-kit/mobile-vision-migration/android)** and the\n**[ML Kit migration guide for iOS](/ml-kit/mobile-vision-migration/ios)**.\n\nFrequently asked questions\n\nHow do I know if my app is using Mobile Vision?\n\nOn Android, check if your module (app-level) Gradle file (usually\n`app/build.gradle`) contains this dependency:\n\n- `com.google.android.gms:play-services-vision:x.x.x`\n\nOn iOS, check if you podfile contains one of these dependencies:\n\n- `pod 'GoogleMobileVision/FaceDetector', '8.0.0'`\n- `pod 'GoogleMobileVision/BarcodeDetector', '8.0.0'`\n- `pod 'GoogleMobileVision/TextDetector', '8.0.0'`\n\nWhat benefits do I get from migrating to the ML Kit SDK?\n\nSince the existing APIs offered by the Mobile Vision SDK are deprecated, they\nwill no longer receive updates. Migrating to ML Kit ensures your application\nbenefits from the latest bug fixes and improvements to the APIs, including\nupdated ML models and hardware acceleration.\n\nIn addition, the ML Kit APIs offer some other benefits:\n\n- New bundled variants of the APIs on Android that allow you to statically link the ML Kit SDK with your appplication.\n- API specific improvements, for example:\n\n - [Barcode Scanning API](/ml-kit/vision/barcode-scanning) now supports raw output\n - [Face Detection API](/ml-kit/vision/face-detection) now provides the Euler X angle\n- [Android Jetpack Lifecycle](https://developer.android.com/reference/androidx/lifecycle/Lifecycle)\n support is added to all APIs. You can now use `addObserver` to automatically\n manage the initiation and teardown of ML Kit APIs as the app goes through screen\n rotation or closure by the user / system. This makes integration with CameraX\n easier.\n\nA full list of the latest changes can be found in the [ML Kit SDK release\nnotes](/ml-kit/release-notes).\n\nDo the ML Kit APIs provide the same functionality as the Mobile Vision APIs?\n\nThe Barcode scanning, Text recognition and Face detection APIs provide the same\nfunctionality and capabilities as their Mobile Vision counter-parts.\n\nAn exception is that multi-detectors, multi-processors and focusing-processors in\nMobile Vision are no longer supported in ML Kit. The same functionality can be\nimplemented relatively easily by the developer if desired.\n\nGetting help\n\nIf you run into any issues, check out our [Community page](/ml-kit/community)\nwhere we outline the channels available for getting in touch with us."]]