Questions tagged [camera]

In the real world, a camera is a device that takes physical or digital photos. In the virtual world, it is used to aim at virtual objects and or move through a virtual scene.

Physical Camera

A camera is a device that records images that can be stored directly, transmitted to another location, or both. These images may be still photographs or moving images such as videos or movies.

A digital camera is a kind of camera that takes video or still photographs by recording images on an electronic image sensor. Most cameras sold today are digital, and are incorporated into many devices ranging from PDAs and mobile phones to vehicles.

An Internet protocol camera, or IP camera, is a type of digital video camera commonly employed for surveillance, and which unlike analog closed circuit television (CCTV) cameras can send and receive data via computer network and the Internet.

A webcam is similar to an IP camera, but is normally connected directly to a computer via fast physical connection (USB, FireWire, etc).

Virtual Cameras

Much as real-life cameras provide a view of a scene in the real world, a virtual camera system provides a view of scene in virtual worlds. In 3D video games, a virtual camera system aims at controlling a camera or a set of cameras to display a view of a 3D virtual world. These virtual camera systems are often used in video games, where their purpose is to show the action at the best possible angle; more generally, they are used in 3D virtual worlds when a third person view is required.

Cameras in Computer Vision

An important application for cameras in the context of programming is in the field of computer vision. In particular, development of algorithms and code for the purpose of recognition, motion analysis, scene reconstruction, image restoration and so forth. The camera parameters, calibration and references to other cameras are significant factors in these algorithms.


References

14695 questions
42
votes
7 answers

iOS Heart rate detection Algorithm

I'm trying to implement heart beat recording functionality in an app i'm developing. The preferred method of doing this is by using the iPhone's camera with the light on, having the user place their finger on the lens, and detecting fluctuations in…
Sam
  • 1,343
  • 5
  • 18
  • 30
41
votes
9 answers

HTML5: camera access

I am quite new to HTML5. I try the following HTML5 code to access camera on my mobile phone. It always display "Native web camera not supported". It seems that my mobile browser (safari and android 2.1 web browser) does not support the camera.…
love sunset
  • 517
  • 1
  • 8
  • 10
40
votes
4 answers

Camera with Custom View

My Application uses camera, I would like to add overlay over the camera preview. For example, I want to use a picture frame when I use Camera, also I would like to add a custom bar for camera operations. Kindly help me to do the same.
cyclingIsBetter
  • 17,447
  • 50
  • 156
  • 241
40
votes
1 answer

getUserMedia() shim for PhoneGap/Cordova?

I have created a web app with Cordova and I need to show a live camera stream in my background. It seems that the Camera/Videos APIs from Cordova just open the native Camera/Video apps instead of returning live camera data. What I really need is…
Pipo
  • 5,623
  • 7
  • 36
  • 46
39
votes
6 answers

Android: Overlay on Android Camera Preview

I'm using Camera API and invoking the camera. I want to display a header (for branding) on the top of the camera preview. The header is a jpeg image. Is it possible? Any help appreciated. Thanks in advance. My code goes as below. public class…
Jay Mayu
  • 17,023
  • 32
  • 114
  • 148
39
votes
3 answers

How can I manipulate the camera preview?

There are several tutorials out there which explain how to get a simple camera preview up and running on an android device. But i couldn't find any example which explains how to manipulate the image before it's being rendered. What I want to do is…
whiskeysierra
  • 5,030
  • 1
  • 29
  • 40
39
votes
4 answers

Can you access the iPhone camera from Mobile Safari?

Is there a JavaScript API for accessing the the iPhone's camera from Mobile Safari?
kim3er
  • 6,306
  • 4
  • 41
  • 69
39
votes
3 answers

Android: Switch camera when button clicked

I have a method called switchCamera, I'm trying to switch camera from front to back on the click of a button, in one smooth transition. My application freezes when I call this method - I know I'm not doing something right. Can anyone help me out…
LKB
  • 1,020
  • 5
  • 22
  • 46
38
votes
4 answers

how to get Distance of Object from iPhone camera using image Exif meta data?

Edit: Sorry for late Edit, Without two parameter you cannot calculate it, So first need to fill user Camera height from ground. I have check a number of solutions but none of them helpful! I know that Working Distance = (Sensor Height + Subject…
9to5ios
  • 5,319
  • 2
  • 37
  • 65
37
votes
1 answer

UIImagePickerController - How do I access the front facing camera by default?

I am bringing up the camera with the following code from my ViewController: - (void)viewDidLoad { self.imgPicker = [[UIImagePickerController alloc] init]; self.imgPicker.sourceType = UIImagePickerControllerCameraDeviceFront; …
Albert Renshaw
  • 17,282
  • 18
  • 107
  • 195
37
votes
4 answers

XNA 2D Camera Engine That Follows Sprite

What is the best way to create a parallax effect in an XNA game? I would like the camera to follow my sprite as it moves across the world, that way I can build in effects like zoom, panning, shake, and other effects. Anybody have a solid example of…
Khalid Abuhakmeh
  • 10,709
  • 10
  • 52
  • 75
37
votes
5 answers

Can I change the LED intensity of an Android device?

Is there a way to set the LED intensity that I desire? I know that to turn on the LED I use: p.setFlashMode(Camera.Parameters.FLASH_MODE_TORCH); mycam.setParameters(p); But this code just turns on the LED. But is there a way to set…
Buda Gavril
  • 21,409
  • 40
  • 127
  • 196
36
votes
10 answers

How does CameraX library can turn ON/OFF the torch?

I am developing a feature with the possibility of switching the torch into ON/OFF states. Some days ago, we saw a new library from Google in io2019. I came up with an idea, why not use it. After some time, I don't see any possibilities to use the…
36
votes
4 answers

Taking photo with custom camera iOS 11.0 Swift 4. Update error

I have a custom camera in my app and it worked fine, but after the new update I am getting this error: 'jpegPhotoDataRepresentation(forJPEGSampleBuffer:previewPhotoSampleBuffer:)' was deprecated in iOS 11.0: Use -[AVCapturePhoto…
0ndre_
  • 3,577
  • 6
  • 26
  • 44
36
votes
12 answers

iPhone AVFoundation camera orientation

I've been tearing my hair out trying to get the AVFoundation camera to capture a picture in the correct orientation (i.e. the device orientation) but I can't get it to work. I have looked at tutorials, I've watched the WWDC presentation and I've…
Fogmeister
  • 76,236
  • 42
  • 207
  • 306