تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
توفّر Camera2 وCameraX واجهة برمجة تطبيقات للإضافات تتيح لتطبيقك الوصول إلى الإضافات التالية التي نفّذها المورّدون على أجهزة Android:
تلقائي: يضبط وضع الإضافة وفقًا لخلفية المشهد الحالية،
التي تعتمد على تنفيذ مكتبة المورّد. على سبيل المثال، في سيناريوهات الإضاءة المنخفضة، يتم التبديل إلى الوضع "ليلي" تلقائيًا لالتقاط صورة. بالنسبة إلى صور البورتريه، يتم تلقائيًا تطبيق ميزة "تجميل الوجه" أو "تأثير البوكيه".
الخلفية الضبابية: تعمل على إبراز العنصر الرئيسي في المقدمة وتمويه الخلفية.
تُستخدَم عادةً لالتقاط صور أشخاص مع خلفية ناعمة وغير واضحة.
تجميل الوجه: تعمل هذه الميزة على تحسين مظهر البشرة ودرجة اللون تحت العينين وغير ذلك.
النطاق العالي الديناميكية (HDR): توسّع هذه الميزة نطاق التعرض للضوء، ما يؤدي إلى التقاط صور أكثر حيوية. في وضع HDR، تلتقط الكاميرا عدة صور بقيم تعرّض مختلفة للضوء
وتدمجها في صورة واحدة.
الليل: يعمل على زيادة سطوع الصور في حالات الإضاءة المنخفضة. تلتقط الكاميرا عدة صور بقيم تعرّض مختلفة وتدمجها في صورة واحدة. قد تستغرق هذه العملية عدة ثوانٍ، ويجب أن يثبِّت المستخدم الهاتف أثناء التقاط الكاميرا للصور.
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ Java وOpenJDK هما علامتان تجاريتان مسجَّلتان لشركة Oracle و/أو الشركات التابعة لها.
تاريخ التعديل الأخير: 2025-08-27 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2025-08-27 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# Camera extensions\n\n[Camera2](/training/camera2) and [CameraX](/training/camerax) provide an Extensions\nAPI that lets your app access the following extensions that vendors have implemented\non Android devices:\n\n- **Auto:** adjusts the extension mode according to the current scene background, which depends on the vendor library implementation. For example, in low light scenarios, Auto switches to Night to take a picture. For portrait photos, Auto applies Face Retouch or Bokeh.\n- **Bokeh:** sharpens the foreground subject and blurs the background. Usually used to take portrait photos of people with a soft, out-of-focus background.\n- **Face Retouch:** touches up skin texture, under-eye tone, and more.\n- **HDR (High Dynamic Range):** widens exposure range, resulting in more vivid photos. In HDR mode, the camera takes several photos with various exposure values and merges them into one.\n- **Night:** brightens photos in low-light situations. The camera takes several photos at various exposure values and merge them into one. This process can take several seconds, and the user should hold the phone still while the camera captures photos.\n\nThe [Camera2](/training/camera2/extensions-api) and\n[CameraX](/training/camerax/extensions-api) Extension APIs expose the same set\nof extensions, which are available on many\n[supported devices](/training/camera/supported-devices).\n| **Note:** Camera2 and CameraX extensions are only available for the preview and image capture use cases, not video capture.\n\nSupported devices\n-----------------\n\nNot all devices support extensions, and even if a device has\nextensions support, it does not support all extensions.\n\nFor a list of known devices that support extensions,\nsee [Supported devices](/training/camera/supported-devices). To check if\nan extension is available on your device, see the\n[Camera2 Extensions API](/training/camera2/extensions-api) and\n[CameraX Extensions API](/training/camerax/extensions-api)\ndocumentation, respectively.\n\nNext steps\n----------\n\nLearn how to enable camera extensions for your app:\n\n- [Camera2 Extensions API documentation](/training/camera2/extensions-api).\n- [CameraX Extensions API documentation](/training/camerax/extensions-api)."]]