camera

v4l2 manual exposure not working compared to Windows 10

ⅰ亾dé卋堺 提交于 2021-01-29 06:20:20
问题 This question is very similar to V4L2 absolute exposure setting has (almost) not effect I have a UVC compliant camera that I am running on a Raspberry Pi CM3+ module. It appears as video0 . Using the tools/drivers v4l2-ctl , qv4l2 or guvcview the absolute exposure cannot be controlled, yet it can be controlled when using Amcap on Windows 10. The camera has two exposure modes manual and aperature controlled . When in aperature controlled the exposure levels in the image change dynamically,

Capture image with camera and hide additional camera settings

家住魔仙堡 提交于 2021-01-29 03:00:56
问题 I am using MediaStore.ACTION_IMAGE_CAPTURE intent to launch camera view and i am able to successfully capture the images and all working fine. Sample code written below, Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); fileUri = getOutputMediaFileUri(MEDIA_TYPE_IMAGE); intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri); // start the image capture Intent startActivityForResult(intent, CAMERA_CAPTURE_IMAGE_REQUEST_CODE); My concern is when camera is launched and there are additional

Scan a QR code and decode it using p:photoCam

半腔热情 提交于 2021-01-28 21:19:51
问题 I need to capture and read a QR Code while the camera is capturing, all of this in a JSF Application. I have already read a QR Code in a photo, but for now I have to make it "alive". Anyone has any suggestion? I'm trying to use the p:photoCam of PrimeFaces. This is the method, using Zxing to read the QR code: /** * * @param filePath * @param charset * @param hintMap * * @return Qr Code value * * @throws FileNotFoundException * @throws IOException * @throws NotFoundException */ public static

Read USB camera's input edit and send the output to a virtual camera on Windows

强颜欢笑 提交于 2021-01-28 10:35:53
问题 I am working on project where I need to read a USB camera's input, put some effects on it and then send that data to a virtual camera so it can be accessed by skype etc. I have compiled and used the vcam filter. I was also able to make a few changes in FillBuffer method. I now need to know that is it possible to send data to vcam filter from another application or do I need to write another filter. 回答1: The vcam project you currently have as a template is the interface to other video

How to know that camera is currently being used by another application with UWP?

早过忘川 提交于 2021-01-28 05:53:50
问题 I am trying to show error message "Cannot setup camera; currently being using" when there is already a process running the camera. I have the code that starts the preview using the MediaCapture and it works fine when running without another application using camera. I do get the exception 0x40080201: WinRT originate error (parameters: 0xC00D3704, 0x00000049, 0x10EFF1CC) in my logs but my try catch block doesn't catch the error. create_task(_mediaCapture->StartPreviewToCustomSinkAsync(encoding

Xamarin android - take picture from camera then pass it to other activity

柔情痞子 提交于 2021-01-28 05:27:04
问题 I am new to xamarin and I want to take a picture from the camera when I click on a button on my mainactivity and then, once the picture taken, display it in an imageView in an other activity. Can you help me? Here's what I have right now : MainActivity : costsButton.Click += delegate { Intent intent = new Intent(MediaStore.ActionImageCapture); StartActivityForResult(intent, 0); }; protected override void OnActivityResult(int requestCode, Result resultCode, Intent data) { base.OnActivityResult

How to add text on camera preview? [duplicate]

感情迁移 提交于 2021-01-28 03:19:28
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Overlay images onto Camera preview SurfaceView Hi I want to create a custom camera preview widget and display current time on preview. how to add text on preview and Record Video. Please give me some idea? 回答1: This question has already been answered. Refer this thread: Overlay images onto Camera preview SurfaceView Here's a blog post with sample code: http://android-er.blogspot.in/2010/12/add-overlay-on-camera

Face detection not working using methods from API14

南笙酒味 提交于 2021-01-28 01:48:04
问题 I have a problem with face detection methods from API14. I have not null camera object. I set to it listener using setFaceDetectionListener with very simple implementation of FaceDecectionListener. I next step I call camera.startFaceDetection() but inteface method onFaceDetection(Face[] faces, Camera camera) is never call... What's wrong with this simple method? Maybe there's a problem with camera? I tested this function on SGS3 and SGS4 and I have the same problem. 回答1: OK guys, issue solved

How to change camera exposure on android?

旧巷老猫 提交于 2021-01-27 20:42:59
问题 I want to perform image processing with OpenCV and android. In the first step, I need to change the camera properties like resolution, exposure, etc. By using OpenCV I only can change the resolution( mOpenCvCameraView.setMaxFrameSize(320,240); ) and cannot change exposure. By using OpenCV and camera2 When I run it, it is crashing(this code: pastebin.com/3XgvKGQN ). How can I change camera exposure? package com.williams.drew.opencvtest; import android.graphics.Paint; import android.hardware

ValueError: too many values to unpack python 2.7

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-27 13:16:43
问题 So I am trying to compile the following code but it's showing me the error on cv2.findContours. Though, I am using Python 2.7 version. Any reason as to why the error: too many values to unpack python 2.7 is coming? import cv2 import numpy as np import time #Open Camera object cap = cv2.VideoCapture(0) #Decrease frame size cap.set(cv2.CAP_PROP_FRAME_WIDTH, 1000) cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 600) def nothing(x): pass # Function to find angle between two vectors def Angle(v1,v2): dot = np