קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
Camera2 ו-CameraX מספקות Extensions API שמאפשר לאפליקציה שלכם לגשת לתוספים הבאים שהספקים הטמיעו במכשירי Android:
אוטומטי: מצב ההרחבה מותאם אוטומטית בהתאם לרקע הנוכחי של הסצנה,
שמשתנה בהתאם להטמעה של ספריית הספק. לדוגמה, בתרחישים של תאורה חלשה, המצלמה עוברת אוטומטית למצב לילה כדי לצלם תמונה. בתמונות דיוקן,
התכונה 'שיפור הפנים' או 'בוקה' מופעלות אוטומטית.
בוקה: חידוד של מושא הצילום בחזית וטשטוש של הרקע.
בדרך כלל משתמשים בו כדי לצלם תמונות דיוקן של אנשים עם רקע רך ולא בפוקוס.
ריטוש פנים: שיפור טקסטורת העור, גוון העור שמתחת לעיניים ועוד.
HDR (טווח דינמי גבוה): מרחיב את טווח החשיפה, וכך התמונות חיות יותר. במצב HDR, המצלמה מצלמת כמה תמונות עם ערכי חשיפה שונים וממזגת אותן לתמונה אחת.
לילה: הבהרת תמונות בתנאי תאורה חלשה. המצלמה מצלמת כמה תמונות בערכי חשיפה שונים ומשלבת אותן לתמונה אחת. התהליך הזה יכול להימשך כמה שניות, והמשתמש צריך להחזיק את הטלפון יציב בזמן שהמצלמה מצלמת תמונות.
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-08-27 (שעון UTC).
[null,null,["עדכון אחרון: 2025-08-27 (שעון UTC)."],[],[],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)."]]