camera

How can i create Flashlight app in uwp C#

两盒软妹~` 提交于 2020-04-10 06:01:15
问题 I have Lumia 830 and i've tried to create flashlight app in UWP C#. my device Flashlight works great but i don't know why i can't create my own app turn on / off Torch of my phone. I use Lamp class : var lamp = await Lamp.GetDefaultAsync(); if (lamp == null) { ShowErrorMessage("No Lamp device found"); return; } lamp.IsEnabled = true; when run this code on my phone "lamp" is null and it couldn't find my FlashLED. I've got this code from MSDN.Microsoft.com and thay said If the returned object

Android Camera 模块分析(二)

纵饮孤独 提交于 2020-03-24 21:46:20
3 月,跳不动了?>>> 2.4 头文件ICamera.h ICamera.h描述的内容是一个实现Camera功能的接口,其定义如下所示: class ICamera: public IInterface { public: DECLARE_META_INTERFACE(Camera); virtual void disconnect() = 0; virtual status_t setPreviewDisplay(const sp<ISurface>& surface) = 0; virtual void setHasFrameCallback(bool installed) = 0; virtual status_t startPreview() = 0; virtual void stopPreview() = 0; virtual status_t autoFocus() = 0; virtual status_t takePicture() = 0; virtual status_t setParameters(const String8& params) = 0; virtual String8 getParameters() const = 0; }; class BnCamera: public BnInterface<ICamera> { public:

iOS + AVFoundation. Different photo brightness with the same manual exposure settings

China☆狼群 提交于 2020-03-22 09:48:08
问题 I use AVFoundation to take photos. Trouble is that even with constant settings of exposure duration, ISO and white balance I get photos with different brightness. Torch, flash and all possible stabilizations are disabled. This issue is also presented in standard Apple app introducing working with camera: https://developer.apple.com/library/ios/samplecode/AVCam/Introduction/Intro.html#//apple_ref/doc/uid/DTS40010112 This is the video I filmed via this app containing no changes except setting

Can PWA access contacts, gps or use the phone camera?

我的梦境 提交于 2020-03-20 01:58:42
问题 Can PWA access contacts, gps or use the phone camera? Is this possible in any system (ios, android) ? Is there any plan in development to implement any of these features ? 回答1: There are some restrictions that cannot be overcome with a PWA: - you cannot access the contacts list on a phone. - On the other hand, you can take photos and use GPS location. On whatwebcando.today web site you can have a list of APIs available via browser compared to native apps. If you click on one feature, you can

Unable to control raspberry pi camera remotely using MQTT

谁说我不能喝 提交于 2020-03-06 11:06:29
问题 I am trying to start and stop the recording of camera attached to a Raspberry Pi Zero W (client) using MQTT. Below is the specific part of the code which I am trying to use to achieve this: continueRecording = 1 def shopRecording(): global shop_record_flag_start, camera, continueRecording print("Starting Recording") while 1: print(shop_record_flag_start) with picamera.PiCamera() as camera: camera.resolution = (640, 480) camera.framerate = 20 camera.start_recording("/home/pi/camera-recording

Android 10 Acces WideAngle Camera not working

夙愿已清 提交于 2020-03-06 09:20:28
问题 I try to acces to my device WideAngle camera on Android 10. My device : Honor 20 lite. When i do this : CameraManager cm = (CameraManager) getSystemService(CAMERA_SERVICE); String strings[] = cm.getCameraIdList(); I can get a list of my for camera : 1 front, 3 back. But Camera.getNumberOfCameras(); return only 2 cameras. How can I access of my Wideangle camera ? Thanks in advance :) 来源: https://stackoverflow.com/questions/60409090/android-10-acces-wideangle-camera-not-working

Control of Orthographic camera position and orientation from Euler Angles

梦想的初衷 提交于 2020-03-06 04:05:44
问题 Attempting to control orthorgraphic camera position (x,y,z) and up vector (top of camera) from euler angles. I have a real world device with an IMU that outputs rotation along each axis (x,y,z). I'm trying to translate these angles into camera eye position and up vector direction. If the physical device is altered, the change in orientation should be reflected in the change in position of the camera. I'm having a hard time with the math behind this mapping, and have not had a ton of luck in

iPhone 11 Pro Max with iOS 13 Camera permission issue

社会主义新天地 提交于 2020-03-04 23:10:34
问题 My iOS App need to take photos from camera or need to select from photo library. I have the entries in the plist and do the " AVCaptureDevice.requestAccess " to request permissions. And App is working fine so far in all iPhones except iPhone 11 pro max. in iPhone 11 Pro max It does not prompt user for camera permissions and also in the settings it doesn't show and entry like below. If any one has an Idea to fix this issue you are welcome to answer. iPhone 8 with iOS13.3 shows the camera

iPhone 11 Pro Max with iOS 13 Camera permission issue

ぃ、小莉子 提交于 2020-03-04 23:08:29
问题 My iOS App need to take photos from camera or need to select from photo library. I have the entries in the plist and do the " AVCaptureDevice.requestAccess " to request permissions. And App is working fine so far in all iPhones except iPhone 11 pro max. in iPhone 11 Pro max It does not prompt user for camera permissions and also in the settings it doesn't show and entry like below. If any one has an Idea to fix this issue you are welcome to answer. iPhone 8 with iOS13.3 shows the camera

Orbit around a gameobject in unity

丶灬走出姿态 提交于 2020-03-04 23:04:57
问题 In Unity I have a camera with the following structure GameObject Pan => GameObject Rotation => GameObject Zoom => GameObject Camera (the component that have the camera script) I have an object target GameObject target; I want to rotate in all the direction around that object. Like if it's a flying plane, so I can rotate up down left right. I have the following code void ChangePosition() { if(Input.GetAxis("Horizontal") != 0 || Input.GetAxis("Vertical") != 0) { if (target) { transform