Questions tagged [front-camera]

Mostly a camera which is near the display on the front side. Thus allowing to preview the image to be taken.

Wikipedia:

A front-facing camera is a feature of cameras, mobile phones and similar mobile devices that allows taking a self-portrait photograph or video while looking at the display of the device, usually showing a live preview of the image.

A camera on the front of the phone, facing the user. This enables two-way video calls (such as Google Hangouts, Apple FaceTime, or Skype), and is also useful for capturing self-portraits ("selfies").

76 questions
2
votes
1 answer

How to get activity in full screen (immersive) also over the front camera hole area?

My app is immersive and full screen, but in new devices running android 9 + with front camera hole on screen - there is a black line instead of the status bar. (the status bar used to be where the camera hole is). I want to get all of the screen…
Udi Reshef
  • 1,083
  • 1
  • 11
  • 14
2
votes
0 answers

ARCore - Does Augmented Image detection work on the Front Camera?

I'm trying to modify the sample "augmentedimage" application within the sceneform SDK to enable image tracking on the front camera instead of the back camera. I've added an override function for "getSessionFeatures" in the AugmentedImageFragment…
Dave Parks
  • 403
  • 1
  • 4
  • 4
2
votes
1 answer

Disable front facing camera in application created with Cordova?

My Sencha touch hybrid application provides user the ability to take photos from application using the device native camera with Cordova plugin. But I want to disable the front facing camera. User should not be able to switch between front and rear…
jass
  • 21
  • 2
2
votes
1 answer

Camera Preview Stretched on Front Facing Camera

Hello there I am working on an android custom camera app and facing a problem of the camera preview stretching on the following device on their front camera: huawei Honor 4c (only on front facing camera) HTC One M7 (only on front facing…
Java Nerd
  • 958
  • 3
  • 19
  • 51
2
votes
2 answers

Front Camera opening in the side in small view - Android

I am implementing android-gpuimage library in my code. https://github.com/CyberAgent/android-gpuimage I used the camera code of the sample project. Everyting works fine, but whenever I switch the camera, front camera opens in the side in a small…
S.Khan
  • 167
  • 2
  • 12
2
votes
1 answer

ios 9 AVCaptureDevice setting focus point

I'm trying to set point of focus with front camera. override func touchesBegan(touches: Set, withEvent event: UIEvent?) { let screenSize = cameraView.bounds.size let frameSize:CGSize = view.frame.size if let touchPoint =…
gkhanacer
  • 575
  • 7
  • 25
2
votes
2 answers

how to detect front and back camera in window tablet in winforms C#

I'm using aforge in winforms for video recording. I wanna to record video both (front and back camera) in window tablet. I have able to find list of Video Capture Device but not identify which is front or rear camera. Name space whose I use: using…
surendra Kandira
  • 587
  • 2
  • 5
  • 22
2
votes
1 answer

Android Front Camera image is not being saved properly

I am trying to make selfie application. I captured image and saved it from front camera. But in gallery or from file manager image is not being open. "cannot load image" this message is coming. If i change flag from front camera to back camera it…
sajal
  • 169
  • 10
2
votes
1 answer

Front Camera Video Capturing Distortion - Android

I am working on Video capturing App. It is working fine for back camera. But when i switch to front CAM the video made is very blur (just some line across the video). mediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER); …
BASEER ULHASSAN
  • 461
  • 4
  • 22
2
votes
1 answer

java.lang.RuntimeException: start failed(Front camera recording)

I am getting below excetion while trying to record video from front camera.However back camera recording works fine.Crash is on line mMediaRecorder.start(); java.lang.RuntimeException: start failed. at…
user3904345
1
vote
1 answer

How to flip camera with imagebutton in kotlin

Hey there I want to flip my camera with an image button (e.g. btn_switch_camera) from back to front and vice-versa, help me!, this beautiful code has all basic things but no camera flip option so I want a flip camera imagebutton in this camera app ,…
user19697344
1
vote
0 answers

open front camera using kivy python on android

I want open front android camera using kivy .in kivy document written index =0 is for back camera and index=1 is for front camera .when I use index=0 and covert code by buildozer to apk it is ok and app not crashed but when I change index=1 and…
Ali Ostadi
  • 11
  • 2
1
vote
0 answers

android after click on positive button of camera permission dialog, camera not open in surfaceview

I want to show a permission dialog before showing my front camera in surfaceview. but the problem is when I click on allow button after the permission dialog showed, the camera is not opened and the surfaceview shows only black unless I restart my…
1
vote
0 answers

Android - Start front camera to capture by Intent

I tried other questions' methods, but for me, these methods do not work . I want to use intent to start front camera. I try to do it Intent intent = new…
Anh Vinh Huỳnh
  • 181
  • 5
  • 18
1
vote
2 answers

Filter app for front camera devices only

I am building an app that requires a front camera to work, I can check in runtime the list of available cameras with CameraManager.getCameraCharacteristics(cameraId) and compare with CameraCharacteristics.LENS_FACING_FRONT But is there a way in the…
adriandleon
  • 110
  • 1
  • 8