Questions tagged android-camera

Explore the latest questions and answers asked by our top developers.

Best way to call suspend coroutine from Executor(ThreadPoolExecutor)

I am currently developing face detection with with a camera library & mlkit. Camera library provides a FrameProcessor in which I am getting Frame in a stream manner. I have written FrameProcessingTask inside a suspend function. Inside cameralib FrameProcessor is called inside a ThreadPoolExecutor mFrameProcessingExecutor.execute(new Runnable() { @Override public void run() { for (FrameProcessor processor […]

By Sayem
Categorized as android, android-camera, kotlin-coroutines

Opencv Camera/javacameraview to remove gray bar

I’m newbie in using opencv and I’m currently developing an app. I want to remove the gray bars (shown below) to fully achieve the full screen camera. center camera but there is a grey bar I tried using this code but nothing happened. this.requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); Source: Android Questions

By ysf
Categorized as android, android-camera, java, opencv, opencv4android

How to enable fullscreen view in android camera setting

I’m using camera to capture images using following code, android.content.Intent cameraIntent = new android.content.Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); cameraIntent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT,; startActivityForResult(cameraIntent, CAMERA_RESULT); It is working fine without any issue. I want enable full screen view in camera. Is it possible?. Source: Android Questions

By Suresh
Categorized as android, android-camera, android-camera-intent

Android Jetpack CameraX – Transparent App After Camera Switch

On second call startCamera() fun (after switching LensFacing) I got some sort of glitch, when whole app is transparent and I can see my homescreen for 0.3-0.5 sec before PreviewView with new camera is ready. There is a way to put some placeholder just like black screen? Start camera fun: @SuppressLint("RestrictedApi", "UnsafeOptInUsageError") private fun startCamera() […]

Android Camera2: How To Get the Current Auto-Exposure and Auto-ISO Values?

How do I get the current auto-exposure and auto-iso values for an Android Camera2 camera session? I am not looking for SENSOR_EXPOSURE_TIME and SENSOR_SENSITIVITY – these return non-auto exposure and iso. I am looking for the auto exposure and iso values. Source: Android Questions

By poppy
Categorized as android, android-camera, android-camera2, camera, java

.putExtra(MediaStore.EXTRA_OUTPUT,photoURI) but is null – Android Kotlin [duplicate]

I want to get the data in putExtra() but it returns null in I refered to other solutions but they are either quite old or they are in Java. I’ve check photoURI in Log.d and it does have a string in it, meaning the photoURI is not null. lateinit var photoURI: Uri photoFile?.also { […]

By AhChing11
Categorized as android, android-camera, android-intent, kotlin

Shift in captured images while capturing images in manual exposure

I want to capture image with a given value of exposure time. I start with opening the camera through the method below: public boolean openCamera(@NonNull final AutoFitTextureView textureView) throws InterruptedException { this.textureView = textureView; if (isOpened()) { Timber.i("Camera is already open"); return false; } final CameraManager manager = (CameraManager) this.context.getSystemService(Context.CAMERA_SERVICE); try { if (!this.cameraOpenCloseLock.tryAcquire(CAMERA_LOCK_TIMEOUT_MS, TimeUnit.MILLISECONDS)) […]

By shubham sharma
Categorized as android, android-camera, android-camera2, exposure

Android surface with flutter

I play with android ndk camera api. Does flutter allow to use surfaces, witch I can use in camera Api, without using java. if yes it would be nice to see an example. Thanks. Source: Android Questions

Categorized as android, android-camera, android-ndk, flutter

Android ndk camera access

can I use the camera with just cpp on my rooted phone via command line?I just want it to open the camera and take a photo and i will read it from adb shell and detect the object on it.I don’t want another method, I’m just wondering i can do this… Source: Android Questions

By wejopa5747
Categorized as android, android-camera, android-camera2, android-ndk

Android emulator camera with Flutter canvas

Now Iam playing with android camera2ndk lib with flutter GUI. lib side open camera and send data to flutter side in JPEG (uint8_t* array) A flutter side recieve data in Pointer. I need to show that video in flutter canvas, but stuck with the how transform Pointer array im memory to ui.Image, that canvas use. […]

Categorized as android, android-camera, flutter
1 2 3 45

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us