android-camera

Scan QR code if multiple QR code showing on screen

守給你的承諾、 提交于 2020-01-23 12:24:25
问题 I am developing one android sample application as an academic project where I need to scan QR code, I used QR scan code library and I am able to detect QR code successfully if on screen there is only one QR code. Right I want to scan QR code although same QR code showing at multiple places on screen at a time. For an example, On my laptop screen QR code image looks like below mentioned images.All QR codes are same, there is no difference between them. Consider below images which are having 6

Render camera preview on a Texture with target GL_TEXTURE_2D

梦想的初衷 提交于 2020-01-23 08:04:50
问题 I'm trying to render the camera preview on an OpenGL Texture with target GL_TEXTURE_2D . I'm very well aware of SurfaceTexture but I cannot use it because it only works with GL_TEXTURE_EXTERNAL_OES . In the documentation of SurfaceTexture, it's written : Each time the texture is bound it must be bound to the GL_TEXTURE_EXTERNAL_OES target rather than the GL_TEXTURE_2D target I cannot use GL_TEXTURE_EXTERNAL_OES because, I'll have to make a lot of changes in my existing code. Is there a way to

android show rectangle on camera

北城余情 提交于 2020-01-22 10:33:12
问题 Hi I want to show a rectangle in camera so that when the user takes snap only the region inside the rectangle can be processed. Any idea how can I do it? And the rectangle size can be resized by dragging along the corners. I am not calling the camera application. I am using the camera API. 回答1: Hi I solved the problem using this tutorial, see here If the link goes missing some day I have kept a pdf here 回答2: You can see my open source application http://code.google.com/p/android-palmprint-api

android show rectangle on camera

寵の児 提交于 2020-01-22 10:33:09
问题 Hi I want to show a rectangle in camera so that when the user takes snap only the region inside the rectangle can be processed. Any idea how can I do it? And the rectangle size can be resized by dragging along the corners. I am not calling the camera application. I am using the camera API. 回答1: Hi I solved the problem using this tutorial, see here If the link goes missing some day I have kept a pdf here 回答2: You can see my open source application http://code.google.com/p/android-palmprint-api

Android auto focus when continuous auto focus modes are not supported

不想你离开。 提交于 2020-01-20 21:33:44
问题 I have a camera in my app and I want to make it auto focus continuously in the same way that the phone's camera does it. I found the modes FOCUS_MODE_CONTINUOUS_VIDEO and FOCUS_MODE_CONTINUOUS_PICTURE , but they are not supported by some of the HTC Gingerbread phones I'm testing on. This is what I'm doing to determine whether I can use these modes: Camera.Parameters parameters = mCamera.getParameters(); List<String> supportedFocusModes = parameters.getSupportedFocusModes(); if (android.os

Android auto focus when continuous auto focus modes are not supported

故事扮演 提交于 2020-01-20 21:33:12
问题 I have a camera in my app and I want to make it auto focus continuously in the same way that the phone's camera does it. I found the modes FOCUS_MODE_CONTINUOUS_VIDEO and FOCUS_MODE_CONTINUOUS_PICTURE , but they are not supported by some of the HTC Gingerbread phones I'm testing on. This is what I'm doing to determine whether I can use these modes: Camera.Parameters parameters = mCamera.getParameters(); List<String> supportedFocusModes = parameters.getSupportedFocusModes(); if (android.os

Converting YUV_420_888 to JPEG and saving file results distorted image

ⅰ亾dé卋堺 提交于 2020-01-19 10:09:11
问题 I've used the ImageUtil class provided in https://stackoverflow.com/a/40152147/2949966 within my git repo: https://github.com/ahasbini/cameraview/tree/camera_preview_imp (note the implementation is in camera_preview_imp branch) to implement a frame preview callback. An ImageReader is set to preview frames in the ImageFormat.YUV_420_888 format which will be converted into ImageFormat.JPEG using the ImageUtil class and send it to the frame callback. The demo app saves a frame from the callback

Converting YUV_420_888 to JPEG and saving file results distorted image

断了今生、忘了曾经 提交于 2020-01-19 10:08:28
问题 I've used the ImageUtil class provided in https://stackoverflow.com/a/40152147/2949966 within my git repo: https://github.com/ahasbini/cameraview/tree/camera_preview_imp (note the implementation is in camera_preview_imp branch) to implement a frame preview callback. An ImageReader is set to preview frames in the ImageFormat.YUV_420_888 format which will be converted into ImageFormat.JPEG using the ImageUtil class and send it to the frame callback. The demo app saves a frame from the callback

Skew image with aspect ratio of Camera Preview

我的梦境 提交于 2020-01-17 05:33:46
问题 I'm facing problem of skew image on camera preview. My aim is to scale and fill out camera preview on its container ( FrameLayout ). I'm very confusing that when I setPreviewSize() as 16:9 and when I try to stretch image on the FrameLayout by setting its size as 16:9 (this view may bigger than display screen size to fill out entire area of screen) image on camera preview start to skew. However, if I setPreviewSize() as 16:9 and FrameLayout as 4:3 image on camera preview not skew at all. Ex

Skew image with aspect ratio of Camera Preview

て烟熏妆下的殇ゞ 提交于 2020-01-17 05:33:07
问题 I'm facing problem of skew image on camera preview. My aim is to scale and fill out camera preview on its container ( FrameLayout ). I'm very confusing that when I setPreviewSize() as 16:9 and when I try to stretch image on the FrameLayout by setting its size as 16:9 (this view may bigger than display screen size to fill out entire area of screen) image on camera preview start to skew. However, if I setPreviewSize() as 16:9 and FrameLayout as 4:3 image on camera preview not skew at all. Ex