camera

Camera and video control with HTML5 form android webview

左心房为你撑大大i 提交于 2021-02-19 08:37:05
问题 I use this guide : Camera and video control with HTML5 This example work excellent on Google Chrome but i can not make it work on Android webview. I also use permission : android.permission.CAMERA. 回答1: Did you remember to add this to your onCreate WebSettings webSettings = myWebView.getSettings(); webSettings.setJavaScriptEnabled(true); webSettings.setAllowFileAccessFromFileURLs(true); webSettings.setAllowUniversalAccessFromFileURLs(true); You are probably missing the last two lines in your

Change real camera resolution in OpenCV

天大地大妈咪最大 提交于 2021-02-19 03:40:19
问题 I'm trying to take 4k pictures using OpenCV, but when I change the resolution, the pictures just look resized instead of better quality. I'm using OpenCV version 4, Python 3.6, Logitech BRIO 4k webcam and Windows 10. If I don't change the camera resolution, it defaults to 640 x 480. If I change the resolution, the pictures just look blurred like they have been resized and not actually better quality. I can use the "Camera" app on Windows 10 to verify that the camera works with 4k resolution.

android camera2 associate TotalCaptureResult with Frame

非 Y 不嫁゛ 提交于 2021-02-18 12:49:10
问题 this is regarding Android's Camera2 APIs. Since capture result and output frame are produced asynchronously, one could get capture result much before the actual frame. Is there a good way to associate produced frame with the corresponding capture result ? 回答1: Assuming you are talking about a frame that is sent to an ImageReader or SurfaceTexture upon capture (as in the ubiquitous camera2basic example), the trick is to compare unique timestamps identifying the images. Save the

Get ID of currently open camera

只谈情不闲聊 提交于 2021-02-18 08:52:54
问题 How can I get the ID of the currently open android camera from an android camera instance? I can't see it in the parameters and getCameraInfo requires the id as a parameter. 回答1: There isn't a way to get the id of the currently open android camera. I ended up storing the id when I opened it. 回答2: It is just a number of the camera, so you loop through looking for the camera you want. Here is a snippet to find the front-facing camera: int cameraId = -1; int numberOfCameras = Camera

Matlab Stereo Camera Calibration Scene Reconstruction Error

大兔子大兔子 提交于 2021-02-18 07:44:27
问题 I am trying to use the Computer Vision System Toolbox to calibrate the pair of cameras below in order to be able to generate a 3-D point cloud of a vehicle at a range between 1 to 5m. The output image size was approximately 1 MB per image for the checkerboard calibration images and the checkerboard square size was 25 mm. The cameras used were a pair of SJ4000 HD1080P cameras. The cameras were placed as parallel to each other as possible with no angle in the vertical axis. The checkboard

Add images taken with camera package to pdf

人盡茶涼 提交于 2021-02-11 13:33:09
问题 I am using camera package in order to take images from my phone. Now I want to convert those images to one single pdf file by clicking on a button. For that I am using pdf package. The problem is, when I take an image/images and click on the button I am always getting this exception: Exception: This widget created more than 20 pages. This may be an issue in the widget or the document I have read many suggestions here: #145, #146 and here stack but nothing helped in my case. Only case where I

ARKit Calc euler angles from rotation matrix in YXZ world

三世轮回 提交于 2021-02-11 13:00:25
问题 I need help in math in general for euler angles and specifically in ARKit. I looked at many references for calculation of euler angles but I wondered why apple in its tutorial calculated yaw from atan2(r11, r12) as follow: let yaw = atan2f(camera.transform.columns.0.x, camera.transform.columns.1.x) If I need to calculate pitch or roll, for example how? I need to understand yaw and why they not always depends on yaw = camera.eularAngle.y Please check this code and questions in comments, I'm

threejs - Reset camera position/rotation when using PointerLockControls

眉间皱痕 提交于 2021-02-11 12:32:31
问题 well i wants to reset the position and the rotation, when i am using the PointerLockControls. Currently i use controls.getObject().position.set( -30, 10, 80 ); controls.getObject().position.y = 10; for the position. But how can i reset the rotation? I tried different things like: camera.lookAt(new THREE.Vector3(1,0,0)); camera.rotation.x = - Math.PI / 2; controls.getObject().rotation.x = 0; controls.getObject().rotation.y = 0; controls.updateProjectionMatrix(); ... Have you an idea? Greeting,

Is it possible to take a snapshot of combined views including the camera?

纵然是瞬间 提交于 2021-02-11 08:43:28
问题 My app has a button that should take a screenshot of whatever is on the screen by calling "takeSnapShot" (see code below). I have two views and one of them is a picker view that I use for the camera, so in the screen I see the image coming from the camera and next to it another view with images. The thing is that I capture the screen but it doesn't capture the image coming from the camera. Also, I think I render the view.layer but the debugger keeps saying> "Snapshotting a view that has not

Is it possible to take a snapshot of combined views including the camera?

喜你入骨 提交于 2021-02-11 08:42:16
问题 My app has a button that should take a screenshot of whatever is on the screen by calling "takeSnapShot" (see code below). I have two views and one of them is a picker view that I use for the camera, so in the screen I see the image coming from the camera and next to it another view with images. The thing is that I capture the screen but it doesn't capture the image coming from the camera. Also, I think I render the view.layer but the debugger keeps saying> "Snapshotting a view that has not