camera

JavaFX 8 - How to set NearClip and FarClip on a Parallel Camera?

六月ゝ 毕业季﹏ 提交于 2021-02-10 22:51:50
问题 I am part of a team building an application that manipulates a visual model using JavaFX 8 3D. We use both a Perspective Camera and a Parallel Camera. The Perspective Camera is working as expected. It is currently working with isEyeAtCameraZero false. This was done for maximum compatibility with the Parallel Camera. The Perspective Camera behaves correctly when camera.setNearClip() and camera.setFarClip() are called. The Parallel Camera does not appear to respond to camera.setNearClip() and

Unity: Texture2D ReadPixels for specific Display

£可爱£侵袭症+ 提交于 2021-02-10 06:21:15
问题 Unity has had support for multiple display outputs for a while now (up to 8). With the ReadPixels function, you can specify an area to read from, and an origin coordinate. But I cannot specify a display number to perform the read on. I need to be able to read pixels from a specific display (1-8) with a specific area and origin point. How can I do this, please? 回答1: You can achieve ReadPixels for a specific screen/display. You have to do the following: Before I start, I assume you have a

Xcode 10 Main Thread Checker: Cordova Camera Plugin

↘锁芯ラ 提交于 2021-02-10 05:31:47
问题 Following iOS13 release, I'm testing a hybrid app using Cordova. Launching the camera is very slow and generates the following: ================================================================= Main Thread Checker: UI API called on a background thread: -[UIImagePickerController init] PID: 1347, TID: 618928, Thread name: (none), Queue name: com.apple.root.default-qos, QoS: 0 Backtrace: 4 0x0000000100f1bba0 +[CDVCameraPicker createFromPictureOptions:] + 124 5 0x0000000100f15d54 -[CDVCamera

What does disabling `CV_CAP_PROP_CONVERT_RGB` do?

放肆的年华 提交于 2021-02-08 07:28:37
问题 I'm attempting to get raw camera output with opencv. If I read an image normally I get a 640x480x3 image: >>> import cv2 >>> cap = cv2.VideoCapture(2) >>> _, im = cap.read() >>> im.shape (480, 640, 3) If I disable cv2.CAP_PROP_CONVERT_RGB then I get a strangely sized array, the end of which is always zeros: >>> cap.set(cv2.CAP_PROP_CONVERT_RGB, False) True >>> _, im = cap.read() >>> im.shape (1, 614400) >>> cv2.imshow('im', im.reshape((960, 640))); cv2.waitKey(0) The resulting 'image' is:

What does disabling `CV_CAP_PROP_CONVERT_RGB` do?

依然范特西╮ 提交于 2021-02-08 07:28:36
问题 I'm attempting to get raw camera output with opencv. If I read an image normally I get a 640x480x3 image: >>> import cv2 >>> cap = cv2.VideoCapture(2) >>> _, im = cap.read() >>> im.shape (480, 640, 3) If I disable cv2.CAP_PROP_CONVERT_RGB then I get a strangely sized array, the end of which is always zeros: >>> cap.set(cv2.CAP_PROP_CONVERT_RGB, False) True >>> _, im = cap.read() >>> im.shape (1, 614400) >>> cv2.imshow('im', im.reshape((960, 640))); cv2.waitKey(0) The resulting 'image' is:

Setting the background of an xml layout to camera in android

半世苍凉 提交于 2021-02-08 06:56:21
问题 I have a project, where i have a xml layout, with buttons and all of that in it, and i need the background to be the camera , so the preview is behind the buttons , how can i do that? 回答1: Here is xml from my project: <?xml version="1.0" encoding="UTF-8"?> <!-- Copyright (C) 2008 ZXing authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses

Text (date) stamp on photo

随声附和 提交于 2021-02-07 20:52:04
问题 Is it possible merge text and photo taken from camera? I would like to stamp date and time on photo but I don't find anything on Google. 回答1: Use below code to achieve what you required. Bitmap src = BitmapFactory.decodeResource(getResources(), R.drawable.cuty); // the original file is cuty.jpg i added in resources Bitmap dest = Bitmap.createBitmap(src.getWidth(), src.getHeight(), Bitmap.Config.ARGB_8888); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); String dateTime =

Text (date) stamp on photo

爱⌒轻易说出口 提交于 2021-02-07 20:48:32
问题 Is it possible merge text and photo taken from camera? I would like to stamp date and time on photo but I don't find anything on Google. 回答1: Use below code to achieve what you required. Bitmap src = BitmapFactory.decodeResource(getResources(), R.drawable.cuty); // the original file is cuty.jpg i added in resources Bitmap dest = Bitmap.createBitmap(src.getWidth(), src.getHeight(), Bitmap.Config.ARGB_8888); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); String dateTime =

Text (date) stamp on photo

半世苍凉 提交于 2021-02-07 20:47:27
问题 Is it possible merge text and photo taken from camera? I would like to stamp date and time on photo but I don't find anything on Google. 回答1: Use below code to achieve what you required. Bitmap src = BitmapFactory.decodeResource(getResources(), R.drawable.cuty); // the original file is cuty.jpg i added in resources Bitmap dest = Bitmap.createBitmap(src.getWidth(), src.getHeight(), Bitmap.Config.ARGB_8888); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); String dateTime =

Camera2 full screen preview and image capture

五迷三道 提交于 2021-02-07 19:23:12
问题 I am using the sample code for Camera2, and I was wondering how I can make the preview and captured image in full screen? This SO question seems to solve it in video mode, but I can't find any solution for image captures. The sample fragment has a blue area at the bottom and also has the status bas. I want to hide both of these and use the entire screen to show the preview, and also capture the image in full screen size. 回答1: Eddy is correct about the aspect ratio.The camera sensor is 4:3.