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
1
vote
0 answers

Increase zoom in android app using camera api

Is there any solution to increase max camera zoom in android-camera api? I Know there is camera limitation but some of the application available on playstore able to increase max zoom using android camera api 1
Coolalien
  • 49
  • 1
  • 1
  • 7
1
vote
0 answers

Preview is stretched on CameraX PreviewView

i am exciting to use CameraX on my app., my reference from google officialy CameraX on github, but something wrong., please help me., this my code to set aspect ratio private fun aspectRatio(width: Int, height: Int): Int { val previewRatio =…
1
vote
0 answers

How to Save Captured Image to file manager in react Native expo

i am beginner to react-native Expo i have started an expo Camera Application. But i am facing many issues when i captured image it gives me object but i want to store it to file manager of my mobile . but i don't know how it is possible please…
1
vote
1 answer

Adjust Brightness, Contrast using Camera.Parameters

I were trying to make a camera application, I'm unable to find a way to change camera brightness, contrast using Camera.Parameters So my question is how to add Brightness and contrast feature to increase/decrease brightness/contrast. For example if…
user10407482
1
vote
1 answer

How to display text detected from ML Kit and display it on the actual location of the word

I am working on an OCR app for android and am using Camera2Api.I am using android-camera2basic as a boiler plate code and i used ml kit for text recognition. Am facing a strange problem the GraphicOverlay Is not scaling properly its only covering…
1
vote
0 answers

Video Recording through MediaRecorder throws IllegalStateException on onStop()

I am trying to create a background video recorder in android. For this, I have created a Service class to implement the video recording. When I press button to start recording, it starts successfully but when I stop it, I get the following…
1
vote
0 answers

Camera Api : camera capturing shows tile images

Android Version 4.4.2 Samsung Note 8: I have made a custom camera using surface view. I may able to capture image and store it in SDcard. It looks perfect in all devices I checked i.e Nexus 7, Micromax Turbo, Canvas Hd, Moto G, Moto E. But In…
1
vote
0 answers

Failed to connect to camera service / Camera server died

I need some help. We are created an app that uses the front facing camera only. However on some devices we are facing a problem. So on certain devices the Camera.open() method throws an exception: Failed to connect to camera service. The log…
0
votes
0 answers

Kotlin Camera ID visible, but can not get preview (For secondary camera)

I'm trying to create custom camera app with API2, but stuck with such problem, main and front cameras are giving normal preview, but secondary infrared camera present in list, but when i'm switching to it, i don't get any preview, just stucked…
Ivan
  • 325
  • 3
  • 9
0
votes
1 answer

insta360 X2 OSC (open spherical camera) api call failed in preflight angular

I am trying to send get call to the camera http://192.168.42.1/osc/info from angular ionic application . This request stuck in preflight. I suspect this might be the CORS issue and I had tried below code but this did not work. getinfo() { …
Pavan
  • 337
  • 5
  • 23
0
votes
2 answers

in foreground service, check if any other app is using camera?

I am using camera to take pictures in the foreground service, which can be used long term like 5 to 10 hours. The problem is when another app starts using camera while the foreground service is running it stop taking pictures and user have to…
0
votes
1 answer

Camera intent opens camera but does not show tick and cross page when click image

I used similar code in different apps but still this time I am getting a problem. upon calling startActivityForResult(CamIntent, Integer.parseInt(code)); camera open but when I click image nothing happens it keeps clicking the image but does not…
0
votes
1 answer

How to fix the Camera API?

Hi i am trying to open a camera and i saw the documentation of android on how to use it. so i just copy paste it to my code, and i already set the permission of it, but when i am clicking the button, the camera is not opening. @Override …
Janessa Bautista
  • 294
  • 1
  • 13
0
votes
1 answer

How do I get rid of those ambiguous call errors with GoogleARCore Wrappers (CS0121)

One error that Unity is pointing to is with GoogleARCore CameraApi with the following lines: public TrackingState GetTrackingState(IntPtr cameraHandle) { ApiTrackingState apiTrackingState = ApiTrackingState.Stopped; …
0
votes
1 answer

Canon Edsdk 3.09 reset image counter/number

Is there a way in Canon's Edsdk to reset the file numbering to 1? I take images in shutter mode and have to reset after a given time.
daniel
  • 34,281
  • 39
  • 104
  • 158