Questions tagged [camera]

-2

votes
0

answer
23

Views

Displaying Flir camera output on an MFC app

I am working with the FLIR USB3 BlackFly area scan camera. I need to display camera output in continuous mode on the dialog box of an MFC application without using OpenGL. I have gone through the FlyCapture SDK but the examples given there are only for OpenGL.
Akshay
0

votes
0

answer
6

Views

How access pictures after they have been taken by camera used by other app

I have an idea for an android service, and I need to be able to access pictures before they're being taken, to save GPSlocation, moreover, I need also an access to the picture immediately afterwards. Is there any proper way to do it ?
adam17238
1

votes
1

answer
476

Views

Is there a way to convert CMSampleBuffer into CVImageBuffer?

I am using a framework (MoodMe) to detect faces on iPhone camera and I need to pass a image or frame to MoodMe instance. I have converted the camera output into a UIImage but the framework does not detect any face. (I think it) So I want to pass to my buffer to framework, it is asking me for a CVIm...
Igor Custodio
0

votes
0

answer
25

Views

Changing camera Back to front while capturing the video cause a weird issue

I am creating camera app which capture video using SCRecorder. I am trying to apply multiple filters to a video. I am changing Recorder's video configuration as below func swipeableFilterView(_ swipeableFilterView: SCSwipeableFilterView, didScrollTo filter: SCFilter?) { selectedFilter = filter! reco...
Khush
1

votes
1

answer
1k

Views

Android app crashes when calling any explicit intent (like camera/gallery, call or share) on Samsung galaxy s3

I have compileSdkVersion and targetSdkVersion 23 and testing on Samsung galaxy s3. But whenever i open any third party app (explicit intent) like camera/gallery app or share intent (gmail, email) or dialer app and comeback to my app by pressing back button or (in case of camera/gallery app by select...
Nouman Bhatti
1

votes
0

answer
9

Views

camera.activeFormat not getting applied

we are trying to set a specific camera frame resolution in our iOS application (written in Objective-C) which is not defined in the AVCaptureSessionPreset. With the following code we would like to set the frame dimensions to a specific width: for ( AVCaptureDeviceFormat *format in [self.camera forma...
Entertain
1

votes
2

answer
4.2k

Views

React-Native call function inside .then async function

I am trying to call a function after the user has taken a picture. I try to do so in the following way: export default class LA extends Component { constructor(props) { super(props); this.doSomething = this.doSomething.bind(this); } takePicture() { this.camera.capture() .then(function(data) { doSome...
user7639007
1

votes
2

answer
180

Views

I can access iOS Photo Library without requesting permission

I am trying to access the photo library for a new app that I am writing. I have an actionSheet that allows the user to choose between their camera and their photo library. When opening the camera, it asks the user for permission but when opening the photo library it does not. Despite this, it still...
Bob Samuels
1

votes
1

answer
33

Views

Camera intent with image only option

I am trying to add camera intent to my app, I would like to give the user only option to take pictures (Not video), is there a way to hide the video button from the camera: Intent intent = new Intent('android.media.action.IMAGE_CAPTURE'); only disables the button but its still being shown, Thanks!
Coder123
1

votes
0

answer
200

Views

how do I reduce the size of the video captured using camera

How do I reduce the size of the video captured using cordova media plugin. Current Resolution and file size for 2-minute duration in Samsung Galaxy Tab S in 3 different resolutions is mentioned below. I tried quality option in captureVideo method but that is depending on the device resolution. (640...
Sharon
1

votes
0

answer
632

Views

Xamarin Android live stream video/audio from device in c#

I am challenged with the task to stream video and audio (camera and mic) from my android API 19 devices directly to a server. Displaying (on the device) is also optional. Following this link I learned that you can use Mediarecorder with a socket instead of an output file. But they describe this meth...
b.holz
1

votes
0

answer
564

Views

Logitech c270 access camera driver from OpenCV in C++

is there a way to access the camera driver from OpenCV to disable an image optimization? When I started playing around with the camera I wrote a simple application to measure the FPS rate, but I was receiving only 15 frames instead of 30 FPS with 640x480 resolution as indicated in camera’s specifi...
anmi
1

votes
0

answer
75

Views

How to set camera of android device as source type for javascript?

So, I am making an AR-application and have some basic code which runs fine on a pc-browser. The piece of code that activates the webcam is the following: //handle arToolkitSource var arToolkitSource = new THREEx.ArToolkitSource({ // to read from the webcam sourceType : 'webcam', }) When I use an...
Kanerva Peter
1

votes
0

answer
43

Views

How to slowdown the camera PreviewCallback frequency?

I am working on a long-run service in Android phone to monitor user behavior via front camera. The Camera.PreviewCallback() interface wastes to much battery, cpu cycles and memory on 30 fps. How can I slow down the callback frequency to 1 fps? I suppose there are two approaches to achieve the goal...
Leo Chen
1

votes
0

answer
308

Views

Android camera2 dummy surface does not work

From Camera2Basic, I made a very small change that is to replace the texture surface with a dummy one: private SurfaceTexture mDummyPreview = new SurfaceTexture(10); private Surface mDummySurface = new Surface(mDummyPreview); ......... mPreviewRequestBuilder.addTarget(mDummySurface); and it doesn't...
Bob DV
1

votes
1

answer
42

Views

Unity rendering

Hello so i want to ask a question i have a sniper and in most games wen you zoom with sniper the gun is gone but i and most people use 2 cameras 1 is for the world and the other is for only weapons so we have a layer weapon and wen i zoom in and lets say i disable the gunCamera (camera that only ren...
drugsandwich
1

votes
0

answer
97

Views

Camera intent not working: it enters catch block and says “could not create file!”

problem in opening camera intent in android import android.app.Activity import android.content.Intent import android.graphics.Bitmap import android.graphics.BitmapFactory import android.os.Bundle import android.os.Environment import android.provider.MediaStore import android.support.v4.content.Fil...
Master Guy
1

votes
0

answer
108

Views

Is there any way to record video with AVCaptureMovieFileOutput and change cameras?

I want to record a video with AVFoundation and AVCaptureSession using AVCaptureMovieFileOutput. I want to record a video like Instagram Stories, so I want to change the camera while the video is recording. The problem with AVCaptureMovieFileOutput is that when I change the captureDevice in the capt...
croigsalvador
1

votes
1

answer
51

Views

Find light on camera

Is it possible to check if there is flashlight turned on on another device with camera( find strong light) ? I didn't find any interesting things on internet.
Marcel Barski
1

votes
1

answer
452

Views

On some devices, Google Mobile Visions CameraSource returns low resolution image after calling takePicture

After I call: cameraSource.takePicture(null, pictureCallback); in the callback: private CameraSource.PictureCallback pictureCallback = new CameraSource.PictureCallback() { @Override public void onPictureTaken(byte[] bytes) { try { Log.d(DEBUG_TAG, 'On picture taken.'); if (bytes == null) { return;...
V.Bhat
1

votes
1

answer
301

Views

Continuously take still photo with android Camera2

From Camera2Basic example, I modified the code to make the program continuously takes still photo every 2 seconds. It runs fine but after a while it enters the same statecallback condition and does not take picture anymore: case STATE_WAITING_PRECAPTURE: { // CONTROL_AE_STATE can be null on some dev...
Bob DV
1

votes
0

answer
24

Views

android device overrides flash mode when takePicture is called

I have a strange problem with android phone iGet Blackview BV6000s. I need to set flash mode into torch mode during preview and actual photographing. Unfortunately it looks like, something is overriding my code and when takePicture is called, flash goes off and than behaves like regular flash. Could...
Vladislav Vodicka
1

votes
0

answer
44

Views

How to get iOS nativeURI from fileURI or fileURI from nativeURI

I am using the Cordova camera plugin to get a photo, however I need both the nativeURI and the fileURI. The nativeURI contains the EXIF location information, and the FileURI is a JPEG rather than a HEIF which cant be used in an img tag. So I need to somehow get both.
user3282010
1

votes
0

answer
169

Views

How to find the distance of the camera to an object with known physical size on iOS?

Assume that you have a square shaped and red coloured paper with a length of 5 centimetres. I can detect it's (good enough) size (bounding box) in pixels on the image that camera takes. I know the physical size. On the other hand, I do not know how to use the camera image's pixel size in the formula...
frankish
1

votes
0

answer
42

Views

blank page during taking a photo

I'm trying to do taking photo app (tutorial here ) but my camera doesn't want to work - it's only blank page, probably it's problem with Manifest or file-path but i can't figure out where i made a mistake. Important code in Manifest: android:maxSdkVersion='18' /> file_paths: and finally Activity cla...
martin123154
1

votes
0

answer
722

Views

android add_service([email protected]) fails- /dev/vndbinder permission denied

I'm working on HiKey aosp installed running on Linux 16.04, trying to connect v4l2 camera and use it. Currently, I've added the device drivers for v4l2 and usbcamera, and added the camera-hal to ~/(aosp)/device/linaro/hikey/camera directory. media_profiles.xml is contained in this directory. I'm fac...
wonderer
1

votes
0

answer
38

Views

How to attach photo with better resolution when sending mail Android

Hi so i made an application in wich i take a picture whit camera intent and save it in a bitmap and after that i compress it and take the path of the image and attach it but after testing it and send a test email i observed that the image is rather small (something like height:100px && width: 50px b...
1

votes
0

answer
49

Views

pygame camera initialization fails with NotImplementedError

On a Linux computer with pygame 1.9.3 I am puzzled by the implementation of the initialization of the pygame camera. The code below demonstrates the surprising behavior: In the first call to Camera (pygame.camera.Camera) the camera will be initialized, while the second call (Camera) raises a NotImpl...
Finn Årup Nielsen
1

votes
0

answer
80

Views

iOS Wifi Camera Box EAAccessory Connection

I have a Wifi Box connected to a camera via a cable. The iPhone is connected to this boxes wifi. In the suggested (pre built) iOS app it connects and displays the feed. How do I connect to the device inside my own app.(Objective c) I have setup EAAccessory with the notification [[NSNotificationCente...
Malcolmn Roberts
1

votes
0

answer
334

Views

React-Native-Camera can't compile to android emulator

I am busy trying to implement camera functionality into an app I am writing in react-native. I have installed react-native-camera via npm and have this working solidly in IOS. When I try and run on android, the project does not build and throws below error node_modules/react-native-camera/android/s...
SashaStojanovic
1

votes
0

answer
297

Views

USB camera is not getting detected

I am working on Qualcomm 820 board, On which I am interfacing one USB web camera VF0250 with android Nougat Source code. I am able to load the uvc driver, and when I am connecting the USB camera, a node is getting created named /dev/video2, but when I am using an application named HAL3-test-app whi...
goldy
1

votes
0

answer
141

Views

Parallel plane retrieval from chessboard with pose in OpenCV

I'm using OpenCV on Python3, and I'd like to get the positions of the corners of a chessboard with dimensions pattern_size on a plane parallel to the one of a chessboard that I have at disposition, vertically displaced by a certain value fdz (in chessboard side units). In order to achieve that, I mo...
Eggman
1

votes
0

answer
209

Views

FileObserver not working with intent

I need to use camera intent and keep track of the new images taken by the intent. As I need to take multiple photos at a time, I used the intent MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA. Here is my code: package com.arko.cameraintent; import android.content.Intent; import android.os.Environment;...
Preetom Saha Arko
1

votes
1

answer
411

Views

cordova navigator.camera is undefined

I have installed cordova-plugin-camera. Although, it gives me the following error. navigator.camera is not defined. Here is the code snippet. Thanks in advance! document.addEventListener('deviceready', onDeviceReady, false); function onDeviceReady() { console.log(typeof navigator.camera); } window.o...
Ege Koloğlu
1

votes
2

answer
255

Views

ImageReader acquireLastestImage of different resolution than ImageReader itself on Galaxy S6

I'm trying to read an image from an ImageReader set to a particular resolution (obtained from CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP of course), but the ImageReader.acquireLastestImage returns an image of a different resolution! Note: This only happens (so far as I've seen) on Samsung...
Roy Shilkrot
1

votes
0

answer
207

Views

Hide preview screen after picture captured in Xamarin.Forms

Please tell me how can I hide preview screen after I take picture using Camera. Like, I have button on screen that open camera, then I do take picture, and finally image gets displayed in my app. After I take photo it shows me picture and ask me for 'OK' or 'RETRY' (basically preview screen), can a...
Pro-n-apps
1

votes
0

answer
108

Views

How to remove the camera feed in ARSCNView?

I'd like to replace the camera feed in ARSCNView as the camera quality is not as good as the native camera feed. Does anyone know how to remove the camera feed in ARSCNView?
Hexagons
1

votes
0

answer
134

Views

iOS - Get color of UIImage pixel from front camera

I'm trying to get the color of a pixel from a UIImage, using a scroll view to scroll around an image imported from the photos library, or taken from the camera. Similar to this thread, here's the code I'm using to get the color of a certain pixel: var image: UIImage? private var imageData: CFData? p...
Chris
1

votes
1

answer
264

Views

Google Vision API CameraSourcePreview FPS

I am trying to develop android face recognition app. Starting from Google Vision API FaceTracker example - how can I get camera preview FPS value? I understand that I can set requested FPS on CameraSource.Builder() with setRequestedFps(), but I want actual FPS value updated every second or every ne...
Sleepwalker
1

votes
0

answer
194

Views

Android - Taking photo without user interaction

I am creating an Android app and need a feature that takes photos without user interaction. I simply want a class, for example, 'CameraService.java' that has a constructor that takes camera settings (eg. quality, res, etc) and a public function called 'takePhoto' which returns the image via type bit...
SillySam

View additional questions