Questions tagged [camera-api]

The Android framework supports capturing images and video through the android.hardware.camera2 API or camera Intent. Use this tags for questions about accessing camera of getting a camera preview or accessing specific features like recording, auto-focus, time lapse etc.

54 questions
0
votes
1 answer

Custom camera new captured image overwrites the old one

I have created a custom camera which snaps a picture and stores it in a folder in the internal storage of the phone. But whenever I snap a new picture, it over writes the old one. MainActivity public class MainActivity extends AppCompatActivity…
0
votes
2 answers

Start camera preview using API2 with surfaceview and delay

I am running into an issue using camera 2 API and surface view. This is for an old embedded system and I HAVE to use surfaceview for reasons I can't explain here. I found this sample where it is shown how it can be…
gmmo
  • 2,577
  • 3
  • 30
  • 56
0
votes
1 answer

how can i access camera and take picture using phonegap framework7 template?

I Need Camera Access To Take. i've use framework7 template. I've Tried some different ways but failed.
Bappi
  • 3
  • 1
0
votes
1 answer

Fotoapparat: Why does landscape CameraView captures in portrait mode?

I have implenented the Fotoapparat library to my app. To operate the whole app with one hand, I am trying to make the CameraView in a portrait mode parents ConstraintLayout. As you can see in the following screenshot, the CameraView itself is…
0
votes
2 answers

Unable to create a surfaceview camera app that supports android 4.0 and above.

I'm planning to make a camera app that you can take a photo with a background image. I guess there will be a need to use a Surfaceview? But the main problem is since the Camera is deprecated there might be a need to use camera2 for android. I want…
Nancy
  • 129
  • 2
  • 13
0
votes
1 answer

Camera preview is not full size/stretched 2018

I have got a task to develop a library, which uses Camera preview (Android Camera API 1). I have done all the hard work, which relates to the library(can't share, I have the agreement). However, the problem is severe.. camera preview stretches on…
Viktor Vostrikov
  • 1,322
  • 3
  • 19
  • 36
0
votes
1 answer

Camera API- How to focus on center of a polygon in images?

Whats the issue? I am taking pictures with resolution, let's say 4096x3072. Now, I have a polygon inside this picture with some co-ordinates {(x1,y1),(x2,y2),(x3,y3),(x4,y4)}. I want the focus of my camera in the center of this polygon. Anything on…
sonudelhikkc
  • 134
  • 10
0
votes
1 answer

scale shape coordinates from custom view to adapt different screen sizes

I'm working on an app to detect objects in real time using the camera preview and then take a picture and display it in an other activity and a bounding box (most cases a polygon) will be drawn over the detected object. I managed to do that and…
user 007
  • 821
  • 10
  • 31
0
votes
0 answers

Camera Face detection listener not working when camera is zoomed

I have added FaceDetection listener to my camera after preview is started. So when face is detecting, I am getting callback and and upon which, i calculate ratio of the area of face and the preview screen. Upon some value if the percentage is lower…
Rahul
  • 395
  • 5
  • 20
0
votes
1 answer

Saving camera api videos in internal storage directory

I am building an app which record videos with camera API. I followed a tutorial from android developers site after the video records, It is saved in an external storage directory. How do I save in internal storage instead of external storage. …
Jude
  • 41
  • 7
0
votes
1 answer

Image Listener unable to pick image from the fragment

Image available listener picks up an image of the fragment and onimageavailble() is invoked continuously as soon as the image is available. An instance of the code is as below: protected void onCreate(final Bundle savedInstanceState) { …
0
votes
1 answer

CameraActivity life Cycle camera release throwing error

I am creating a custom camera app using surface view and Camera 1 API, there is some kind of problem in the lifecycle and i just cannot get it to work, but basically I am releasing the camera and then calling it again : Camera is being used after…
Jhonycage
  • 759
  • 3
  • 16
  • 36
0
votes
0 answers

How to implement camera effect on image capture using camera api in android?

I am designing a camera app using camera api not camera2 api, which open back camera and on button click it capture image but does not show any effect as like my phone camera app. How can i implement effect when start capturing image it slightly…
Abhishek Joshi
  • 361
  • 1
  • 7
  • 17
0
votes
1 answer

Camera API is deprecated in Zxing library

When I checked my Zxing library, Camera API is deprecated. I am curious that whether the API is usable or not. If it is not usable, do i need to use Camera API 2 instead of Camera API?
An Jin
  • 31
  • 5
0
votes
0 answers

How to work with android camera app using external/internal storage?

I am working on android camera app in which i have to capture selfie image/video and send to the server. I have used intent to open the camera. I have implemented the code at below but this code is working fine for those devices who have external…