Questions tagged [android-camera]

The Android framework includes support for various cameras and camera features available on devices, allowing you to capture pictures and videos in your applications.

Filter by
Sorted by
Tagged with
0 votes
0 answers
22 views

Android Studio only reads defined QR codes in Java

I don't want Android Studio to scan QR codes other than those defined in the application and I want to do this with CameraView. Instead of downloading or installing a library, I want to scan the ...
CrazyProgrammer's user avatar
0 votes
0 answers
13 views

Kivy Camera rotated 90 degrees

I've used Camera from kivy library and on Windows it appears correctly, but when I try it on the Android platform it seems to be rotated for 90 degrees. I have tried method with canvas rotation Push ...
Yurben's user avatar
  • 1
0 votes
0 answers
26 views

Android emulator crashes:

I recently upgraded my MacOS M1 version to macOS Sonoma 14.0. Before the update and upgrade the camera of my flutter android emulator worked very well. But after the update, whenever I open my camera ...
EBENEZER OCANSEY's user avatar
0 votes
0 answers
14 views

Android app with an external camera integration

I want to create a mobile application in which I want launch an external camera (cheaper one) from my mobile app. Any suggestions?
JavaTechWith Ashish's user avatar
0 votes
0 answers
13 views

Crop image obtained from ImageCapture use case in CameraX

I have a PreviewView with CameraX and an ImageView that acts as a frame on top of a full-screen PreviewView. When I try to crop the image I received with ImageCapture, I face the problem that the area ...
d.popovych's user avatar
-2 votes
0 answers
18 views

Unable to allow camera access using robot framework

This camera allow button not accessible/clickable I am trying to allow camera access using the robot framework but am unable to access it. How can I handle this scenario in a robot framework?
Priyanka Patil's user avatar
0 votes
0 answers
8 views

How to add the mobile camera opening option in react native with expo

What are the npm expo or react native libraries I want to install in VS Code terminal I want to open mobile front camera when I press the button of 'Select Profile Picture' in my mobile UI I want to ...
Tiranya Nirmani's user avatar
0 votes
1 answer
52 views

How to crop an image from camera and gallery directly in Jetpack Compose

I would like to implement a functionality where the user can choose between the camera and gallery options when they click on a button. Once the user selects an image from either option, I want to ...
propeace's user avatar
1 vote
1 answer
78 views

Video recording and Frame processing at same time in Android using CameraX

I am working on an app, my goal is to detect face, detect eyes blinking and recording video at the same time. So for this, I need to record video and at the same time I want to process frames to ...
Faizan Ahmad's user avatar
1 vote
1 answer
34 views

Blur CameraX preview

I am using CameraX library to build the camera preview for a layout and I want to blur the preview. I search a lot of methods but most of them are outdated or too complicated. Now I am trying to refer ...
Ka hei Tong's user avatar
-3 votes
0 answers
13 views

What is a default speed of zoom in camera ios\android?

I can't find what is a default speed of zoom in camera ios for example. I know that on different android smartphones are different speed of zoom in camera I try to search in forums or else, but it ...
teenrage's user avatar
0 votes
0 answers
30 views

How to get Preview image from Opencamera camera1 api in android(java) application

We have android camera based application ,in that we have used opencamera camera2 api's preview image .Recently we started using Moto g62 5g android phone, in this phone we are not getting proper ...
Praveen Kumar's user avatar
0 votes
0 answers
21 views

Accessing raw image sensor buffer with android NDK at different resolutions

I'm trying to write a simple camera app for android that is able to record raw videos, I'm using the NDK camera api and a codec written in c++ that can save the raw (bayer filter array) images. The ...
bose's user avatar
  • 1
0 votes
0 answers
19 views

How can I connect an external camera to my phone and make it work like the built-in camera of the phone?

I am testing the scan function, and currently, I can only manually take pictures of QR codes for testing. I am trying to use Raspberry Pi as a virtual camera to read video files and output to the ...
Winnietheking's user avatar
-1 votes
0 answers
67 views

.NET MAUI: App Crashes when I am taking pictures on Android devices(Samsung tab and mobile)

https://learn.microsoft.com/en-us/dotnet/maui/platform-integration/device-media/picker?tabs=android#take-a-photo Followed these steps to capture image in my android device(Samsung tablet and Samsung ...
Albin Lukose's user avatar
0 votes
1 answer
44 views

Qt/QML Android: Camera was detected but ImageCapture send "Camera is not ready." error

I have bellow codes, the Camera in Qt/QML android app detected correctly but ImageCapture send "Camera is not ready." error. import QtQuick import QtQuick.Controls import QtMultimedia /*! **...
Mohsen Kondori's user avatar
0 votes
1 answer
31 views

Android Studio , Camera Manager turnOnTorchWithStrengthLevel throw exception. How to resolve?

I'm using api 34 for my android phone galaxy. everything was working fine until I tried to use the Camera Manager turnOnTorchWithStrengthLevel. The code: package com.example.myflashlight import ...
Simon's user avatar
  • 55
0 votes
1 answer
30 views

getting data null on registerForActivityResult

So everything is worling good camera is opening and also permission dialog is opening if there i no permission, but the image is not getting displayed in the image view. because i am getting null on ...
Laser's user avatar
  • 17
0 votes
0 answers
16 views

Camera.PreviewCallback cannot get video frame callback data

When I use the camera, I use Camera.PreviewCallback to get the callback frame data. It works well at the beginning without any problems, but at a certain time the onPreviewFrame(byte[] data, Camera ...
user19211785's user avatar
-1 votes
1 answer
166 views

Access external USB camera in Android application

Is there any official android library to access external USB camera in android? I have gone through all the android/camera-samples. The issue is external USB camera can not be detected/listed in the ...
Rumit Patel's user avatar
  • 9,200
10 votes
2 answers
315 views

Camera2 Pass Images from ImageReader to MediaRecorder

I'm trying to create a Camera2 CameraCaptureSession that is capable of four outputs: On-screen preview (SurfaceView, up to 1080p) Photo capture (ImageReader, up to 8k photos) Video Capture (...
mrousavy's user avatar
  • 893
0 votes
0 answers
18 views

How can I convert kelvin to RggbChannelVector object and pass it to Camera

How can I convert kelvin to RggbChannelVector object and pass it to Camera Currently, my code is like this val c2cc = Camera2CameraControl.from(camera.cameraControl) c2cc....
LazyIonEs's user avatar
0 votes
0 answers
48 views

How can I get the Flutter "camera" package example to recognise cameras when embedded in a project?

I have been trying to use the example from the flutter "camera" package: https://github.com/flutter/packages/blob/main/packages/camera/camera/example/lib/main.dart. This works perfectly as a ...
user8016440's user avatar
0 votes
0 answers
90 views

MediaRecorder - java.io.IOException: prepare failed - for 4K resolutions on some devices

So I noticed the following exception on some devices (usually Chinese-brand devices only, especially Realme and Vivo but also Motorola as well and some Samsung devices of A serires) when using 4K ...
user924's user avatar
  • 8,409
0 votes
0 answers
23 views

File Picker not working, also camera not opening in webview

@Override protected void onActivityResult(int requestCode, int resultCode, Intent intent) { super.onActivityResult(requestCode, resultCode, intent); if (Build.VERSION.SDK_INT >= 30) { ...
Saqib Nisar's user avatar
0 votes
0 answers
17 views

Is there a more accurate and guaranteed method to get Focal Length in 35mm in Android?

I am using exift data with "ExifInterface.TAG_FOCAL_LENGTH_IN_35MM_FILM" to get Focal Length in 35mm on Android. However, TAG_FOCAL_LENGTH_IN_35MM_FILM data cannot be received for every ...
Sina's user avatar
  • 31
0 votes
0 answers
27 views

Camera2 - Set ISO manually while keeping the FLASH_MODE as FLASH_MODE_TORCH

I am trying to set ISO 100 while keeping the Flash on as I can do with OpenCamera and HedgeCam2 In order to do this I have to set(CaptureRequest.CONTROL_AE_MODE, CaptureRequest.CONTROL_AE_MODE_OFF) ...
kallis's user avatar
  • 83
1 vote
0 answers
31 views

CameraX blurry when setting LinearZoom below 0.5f and fails to focus on Pixel 6a/7

Why is the camera preview blurry when cameraControl#setLinearZoom is called with a value of less than 0.5? I'm testing on a Pixel 6a and Pixel 7. As soon as I hardcode this to 0.5f, the camera preview ...
VIN's user avatar
  • 6,426
2 votes
0 answers
44 views

About the correctness of focal Lengths, sensor Height, sensor Width taken with Android Camerax

with the android camerax, I get the focalLengths, hFov, vFov , cameraSensorHeight and cameraSensorWidth values from the corresponding camera of the phone as follows. val maxFocus = characteristics....
Sina's user avatar
  • 31
1 vote
0 answers
26 views

Firefox doesn't show option to use camera as file upload

I am creating a form in Microsoft Forms that has the option to add an image, taken using the camera app at the moment of filling in the form. I am using Firefox to fill in the form as Firefox has the ...
koolmees's user avatar
  • 2,735
0 votes
1 answer
62 views

How to check if a hidden camera id can be used to open camera? (Camera2 API)

So many devices (especially brand-Chinese ones) hide some camera ids for non-native applications. There is still a solution to access some more cameras: for (id in 0..511) { try { val ...
user924's user avatar
  • 8,409
0 votes
0 answers
24 views

Use camera and accelerometer to work like gyroscope

recently I installed HomeTheaterVR on my android device , in which i noticed this feature which uses camera and accelerometer to work like gyroscope. It is built with unity. Im trying to replicate ...
ANDuser's user avatar
  • 91
0 votes
0 answers
35 views

The screen on the phone freezes after trying to record a video on the app

class MainActivity : AppCompatActivity() { // Thread handlers for Camera2 API threads lateinit var handler: Handler lateinit var handlerThread: HandlerThread lateinit var ...
dhruvk's user avatar
  • 1
0 votes
0 answers
48 views

How to fix low camera preview in ARCore android studio

I am developing an image detection android app using android studio(java) and arcore .It has two class that MainActivity.java and CustomArFragment.java . when my app run the camara preview not ...
bandara12's user avatar
0 votes
0 answers
9 views

How to use either endroid camera or emulator camera to record a specific portion of screen?

Essentially I'm wondering if there is a way to use either a IRL phone camera or an emulator to record a portion of a computer screen or have it so that the camera sees that portion of the computer ...
TheKingGamer117's user avatar
0 votes
1 answer
49 views

MediaRecorder stop() function fails

class MainActivity : AppCompatActivity() { // Thread handlers for Camera2 API threads lateinit var handler: Handler lateinit var handlerThread: HandlerThread lateinit var ...
Derek Wu's user avatar
2 votes
2 answers
191 views

FFmpeg command to capture Audio from Android mobile

I'm trying to capture Audio from my Android mobile using FFmpeg. Tried the below commands and the recorded clip has no Audio in it, it's just a dark black screen with no audio/video. Basically, I want ...
Uday's user avatar
  • 1,639
0 votes
0 answers
40 views

Opentok react native cannot switch or open Back Camera

"react": "18.2.0", "react-native": "0.71.10", "react-native-camera": "^4.2.1", "opentok-react-native": "^0.21.4", ...
Syed Hamza Hoda's user avatar
0 votes
1 answer
189 views

Request camera permission if user does not allow in kotlin jetpack compose?

I want to enable the user to take a photo using the camera, actually, it is something that is done everywhere and is not very difficult, but I could not do some of it here. If the user gives ...
NewPartizal's user avatar
0 votes
0 answers
38 views

Rotate camera when its tablet[XAMARIN FORMS]

I need the camera to rotate to portrait when I'm using a tablet. I need this to become this I have tried changing the SetTransform method below, but with no luck at all. All the attempts resulted ...
Mario Segalla's user avatar
0 votes
0 answers
43 views

Changing exposure time and/or sensor ISO in microsoft visual studio(xamarin)

I currently have code that takes two pictures and displays them on the main screen of the app. Is there a way that I can change the exposure from the first picture to the second picture? Here is my ...
Deniz Karakus's user avatar
0 votes
0 answers
126 views

Flutter image package copyCrop results in rotated image

I'm trying to capture and save a cropped imaged. Im using image: ^3.3.0 This is the code: import 'dart:typed_data'; import 'package:camera/camera.dart'; import 'package:flutter/material.dart'; import ...
Orly's user avatar
  • 101
1 vote
0 answers
65 views

How to use NFC and Camera at the same time?

How to use NFC and Camera at the same time Each Service(NFC, Camera) work well seperatly But if i use both on same activity NFC reader is not work nfc reader polling is automatically disabled when ...
Roy's user avatar
  • 41
1 vote
0 answers
124 views

Can't record video using expo-camera

I'm designing an app in react-native using expo. Now I'm trying to record a short video sequence using expo-camera. On most devices(Android, any Galaxy S type) the function works without problems. But ...
CSAlex's user avatar
  • 65
0 votes
0 answers
40 views

Why Am I getting Canvas: trying to draw too large bitmap android error

I have an android app with a fragment with one imagebutton, another button and one imageview to take a photo using camera device but in Galaxy A33 I'm getting this error java.lang.RuntimeException - ...
Marisol patito's user avatar
0 votes
0 answers
65 views

Android 11 and above pose compatibility issues when attempting to use the native camera app within Unity to capture photos

fellow developers! I'm currently working on an Android app using Unity 2021.3.14f1. In order to capture photo and manage it on my application, I've been utilizing the following code snippet to launch ...
yunus emre yk's user avatar
1 vote
0 answers
171 views

Error: Unable to create photo on disk on Android - Ionic using Capacitor Camera Plugin

I am trying to use the Capacitor Camera Plugin in Ionic (v7) for an Android App (have not tested in iOS, but no issue on Web). This is the code to get the image: const image = await Camera.getPhoto({ ...
BarBarBinks's user avatar
4 votes
0 answers
90 views

React - Camera sometimes not loading after user allows camera permission - code with all comments

Edit: The code works fine if I remove the useeffect, but I want to know when the camera permissions are allowed or not I have a react component where the user is first asked permissions to access ...
Surbhi Jain's user avatar
0 votes
0 answers
48 views

Python capture RAW camera image with Android phone connected to Linux via USB

Is there a way to capture a 14-bit raw camera image from a Python script on a Linux computer connected to an Android phone via USB (Google Pixel 4a to be specific)? Basically like a USB Webcam, but ...
user3925668's user avatar
0 votes
2 answers
79 views

How can I take a photo of a specific area on the camera screen in Android using CameraX?

I want to take photo of a specific area on the camera screen I've tried to calculate and crop the photo I take I've tried some libraries but nothing I do is worked so I need your help because I'm ...
Kaljal's user avatar
  • 3

1
2 3 4 5
131