camera

surface view does not show camera after i gave permission

让人想犯罪 __ 提交于 2020-05-29 03:43:07
问题 public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_camera, container, false); cameraId = Camera.CameraInfo.CAMERA_FACING_BACK; flipCamera = view.findViewById(R.id.flipCamera); flashCameraButton = view.findViewById(R.id.flash); captureImage = view.findViewById(R.id.captureImage); surfaceView = view.findViewById(R.id.surfaceView); surfaceHolder = surfaceView.getHolder(); surfaceHolder

surface view does not show camera after i gave permission

守給你的承諾、 提交于 2020-05-29 03:42:47
问题 public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_camera, container, false); cameraId = Camera.CameraInfo.CAMERA_FACING_BACK; flipCamera = view.findViewById(R.id.flipCamera); flashCameraButton = view.findViewById(R.id.flash); captureImage = view.findViewById(R.id.captureImage); surfaceView = view.findViewById(R.id.surfaceView); surfaceHolder = surfaceView.getHolder(); surfaceHolder

surface view does not show camera after i gave permission

☆樱花仙子☆ 提交于 2020-05-29 03:42:45
问题 public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_camera, container, false); cameraId = Camera.CameraInfo.CAMERA_FACING_BACK; flipCamera = view.findViewById(R.id.flipCamera); flashCameraButton = view.findViewById(R.id.flash); captureImage = view.findViewById(R.id.captureImage); surfaceView = view.findViewById(R.id.surfaceView); surfaceHolder = surfaceView.getHolder(); surfaceHolder

surface view does not show camera after i gave permission

别说谁变了你拦得住时间么 提交于 2020-05-29 03:41:49
问题 public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_camera, container, false); cameraId = Camera.CameraInfo.CAMERA_FACING_BACK; flipCamera = view.findViewById(R.id.flipCamera); flashCameraButton = view.findViewById(R.id.flash); captureImage = view.findViewById(R.id.captureImage); surfaceView = view.findViewById(R.id.surfaceView); surfaceHolder = surfaceView.getHolder(); surfaceHolder

How to display preview camera behind a frame and take picture include frame

可紊 提交于 2020-05-28 07:58:25
问题 I'm trying build a camera app in android using camera API. I follow the instructions: https://examples.javacodegeeks.com/android/core/hardware/camera-hardware/android-camera-example/ and I have built one camera app Now i need to display preview camera inside a frame and take picture include the frame Please see the two pictures below: Frame in resource folder : https://i.stack.imgur.com/AaNIQ.png The photo I want to achieve: https://i.stack.imgur.com/UWXcq.jpg Anyone can give me suggestions

How to display preview camera behind a frame and take picture include frame

五迷三道 提交于 2020-05-28 07:58:07
问题 I'm trying build a camera app in android using camera API. I follow the instructions: https://examples.javacodegeeks.com/android/core/hardware/camera-hardware/android-camera-example/ and I have built one camera app Now i need to display preview camera inside a frame and take picture include the frame Please see the two pictures below: Frame in resource folder : https://i.stack.imgur.com/AaNIQ.png The photo I want to achieve: https://i.stack.imgur.com/UWXcq.jpg Anyone can give me suggestions

Image captured from camera not displaying in imageview android

≡放荡痞女 提交于 2020-05-17 04:24:10
问题 I have a problem, that when i have taken an image from camera, image not displaying in imageview. I created the code by referring the following link http://developer.android.com/training/camera/photobasics.html I am posting my code, please have a look, public void takeImage(View v) { Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); if (takePictureIntent.resolveActivity(getPackageManager()) != null) { File photoFile = null; try { photoFile = createImageFile(); } catch

Ubuntu 19.10: Enabling and using Raspberry Pi Camera Module v2.1

拟墨画扇 提交于 2020-05-16 22:00:20
问题 I have installed Ubuntu 19.10 on my raspberry pi. I know raspbian would be the better choice, but I have to use Ubuntu for some other reasons. I also have installed opencv4 and tested it with loading and showing an image. Works fine! I then wanted to configure my raspi camera with sudo raspi-config , but not command was found, so I tried it via: sudo apt-get install raspi-config . This results in "Unable to locate package raspi-config". I read through the internet. Next I tried to include

How to use a previewview in camerax?

谁说胖子不能爱 提交于 2020-05-16 02:31:06
问题 i can't find out in CameraX how to use the PreviewView . i get this problem e/camera unable to configure camera 0 timeout 回答1: Could you post your code sample please? I had the same timeout error, but even after setting the implementation mode it still remains.. 回答2: i find out that the code miss this method previewView.setsetImplementationMode that is not mention in android guide document PreviewView previewView = view.findViewById(R.id.preview_view); previewView.setImplementationMode

Displaying multiple camera images to Grid view

假装没事ソ 提交于 2020-05-16 02:24:13
问题 i want to display multiple images capture by camera to Grid view. i go through many questions how to do but non perfectly work for me. i use This to implement. but using this i am able to get the image in my image view but whenever i capture new image that image replace my older image. and now i am clue less what should i do to add camera images one after another. anyone know how to implement this then please help me with sample code. thank you in advance. 回答1: Use the comment provided in the