مهاجرت از Google Mobile Vision
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
Google Mobile Vision منسوخ شده است و ما از توسعه دهندگان می خواهیم که به ML Kit SDK که جایگزین آن است، مهاجرت کنند. مهاجرت به SDK جدید تضمین می کند که بهترین عملکرد، پایداری و آخرین ویژگی ها را دریافت کنید. علاوه بر این، کیت ML نه تنها برای Vision، بلکه برای موارد استفاده از زبان طبیعی، API های اضافی با قدرت ML ارائه می دهد.
اگر امروز از اسکن بارکد، تشخیص متن یا APIهای تشخیص چهره Mobile Vision در برنامه خود استفاده میکنید، لطفاً با دنبال کردن راهنمای انتقال ML Kit برای Android و راهنمای انتقال ML Kit برای iOS ، به SDK جدید ML Kit مهاجرت کنید.
سوالات متداول
چگونه بفهمم برنامه من از Mobile Vision استفاده می کند؟
در Android، بررسی کنید که فایل Gradle ماژول (سطح برنامه) شما (معمولا app/build.gradle
) حاوی این وابستگی است:
-
com.google.android.gms:play-services-vision:xxx
در iOS، بررسی کنید که آیا پادفایل حاوی یکی از این وابستگیها است:
-
pod 'GoogleMobileVision/FaceDetector', '8.0.0'
-
pod 'GoogleMobileVision/BarcodeDetector', '8.0.0'
-
pod 'GoogleMobileVision/TextDetector', '8.0.0'
چه مزایایی از مهاجرت به ML Kit SDK دارم؟
از آنجایی که API های موجود ارائه شده توسط Mobile Vision SDK منسوخ شده اند، دیگر به روز رسانی دریافت نخواهند کرد. مهاجرت به کیت ML تضمین می کند که برنامه شما از آخرین رفع اشکال و بهبود APIها، از جمله مدل های به روز شده ML و شتاب سخت افزاری بهره مند می شود.
علاوه بر این، API های کیت ML مزایای دیگری نیز ارائه می دهند:
- انواع جدید همراه APIها در Android که به شما امکان می دهد ML Kit SDK را به صورت ایستا با برنامه خود پیوند دهید.
بهبودهای خاص API، به عنوان مثال:
پشتیبانی از Android Jetpack Lifecycle به همه API ها اضافه شده است. اکنون میتوانید از addObserver
برای مدیریت خودکار شروع و حذف APIهای ML Kit با چرخش یا بسته شدن برنامه توسط کاربر / سیستم استفاده کنید. این کار ادغام با CameraX را آسان تر می کند.
فهرست کاملی از آخرین تغییرات را میتوانید در یادداشتهای انتشار ML Kit SDK بیابید.
آیا APIهای کیت ML عملکردی مشابه با APIهای Mobile Vision دارند؟
APIهای اسکن بارکد، تشخیص متن و تشخیص چهره، عملکرد و قابلیتهای مشابهی را ارائه میدهند.
یک استثنا این است که آشکارسازهای چندگانه، چند پردازنده و پردازشگرهای متمرکز در Mobile Vision دیگر در کیت ML پشتیبانی نمیشوند. در صورت تمایل، همان عملکرد را می توان به راحتی توسط توسعه دهنده پیاده سازی کرد.
کمک گرفتن
اگر با مشکلی مواجه شدید، صفحه انجمن ما را بررسی کنید، جایی که ما کانال های موجود برای تماس با ما را مشخص می کنیم.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-08-29 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-08-29 بهوقت ساعت هماهنگ جهانی."],[[["\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."]]