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
36
votes
1 answer

Using the camera activity in Android

If you want to use the built-in camera activity which uses the native Android camera, simply do the following. Intent camera = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); this.startActivityForResult(camera, PICTURE_RESULT); You want to…
slrobert
  • 599
  • 1
  • 5
  • 6
36
votes
5 answers

Getting frames from Video Image in Android

I've implemented a simple application which shows the camera picture on the screen. What I like to do now is grab a single frame and process it as bitmap. From what I could find out to this point it is not an easy thing to do. I've tried using the…
Alexander Stolz
  • 7,454
  • 12
  • 57
  • 64
36
votes
9 answers

Reading the GPS data from the image returned by the camera in iOS iphone

I need to get the GPS coordinates of an image taken with the iOS device's camera. I do not care about the Camera Roll images, just the image taken with UIImagePickerControllerSourceTypeCamera. I've read many stackoverflow answers, like Get Exif data…
Paul Cezanne
  • 8,629
  • 7
  • 59
  • 90
35
votes
2 answers

Access the camera with iOS

It seems obvious that some people have been able to figure out how to access the iPhone camera through the SDK (Spore Origins, for example). How can this be done?
Jason Francis
  • 1,104
  • 2
  • 14
  • 25
35
votes
5 answers

How to capture an image and store it with the native Android Camera

I am having a problem capturing an image and storing it from the native camera app. Here is a sample of some of my code. _path = Environment.getExternalStorageDirectory() + "make_machine_example.jpg"; File file = new File( _path ); Uri…
35
votes
10 answers

Capturing video from two cameras in OpenCV at once

How do you capture video from two or more cameras at once (or nearly) with OpenCV, using the Python API? I have three webcams, all capable of video streaming, located at /dev/video0, /dev/video1, and /dev/video2. Using the tutorial as an example,…
Cerin
  • 60,957
  • 96
  • 316
  • 522
35
votes
4 answers

Camera access with Xamarin.Forms

Is anyone able to give a short, self-contained example on how to access the camera with Xamarin.Forms 1.3.x? Simply calling the native camera application and retrieving the resulting picture would be great. Displaying a live view on the…
Falko
  • 17,076
  • 13
  • 60
  • 105
35
votes
7 answers

How to fix "Fail to connect to camera service" exception in Android emulator

I'm getting a Fail to connect to camera service exception when I run my Android app in the emulator. I've read the various existing posts but none have fixed this. It is clearly the Camera.open() call which is failing. I would eventually like to…
Alyoshak
  • 2,696
  • 10
  • 43
  • 70
35
votes
7 answers

Is there a good tutorial for implementing an augmented reality iPhone application?

Are there any good tutorials or sample applications out there that demonstrate how to make an augmented reality iPhone application?
hardik
  • 385
  • 1
  • 4
  • 5
35
votes
9 answers

How to allow Chrome to access my camera on localhost?

I cloned a project about real-time image processing on a web browser from this link: Then I could not allow my browser to access my camera. I got this javascript alert: Uh-oh, the webcam didn't start. Do you have a webcam? Did you give it …
Methuz Kaewsai-kao
  • 1,176
  • 2
  • 10
  • 22
34
votes
5 answers

CamcorderProfile.QUALITY_HIGH resolution produces green flickering video

I haven't found any explanation for this so far. Basically I have a video recording class which works splendidly when setVideoSize() is set to 720 x 480 on my Samsung Galaxy S2. I want it to record in the highest possible resolution so using…
William Stewart
  • 841
  • 1
  • 14
  • 27
34
votes
3 answers

How to select proper backfacing camera in Javascript?

I am using navigator.mediaDevices.getUserMedia to open MediaStream from camera device within a web browser. My app wants to do some realtime image processing in WebAssembly and for that, I need to provide a live stream of images directly from the…
DoDo
  • 2,248
  • 2
  • 22
  • 34
34
votes
7 answers

How to properly release an AVCaptureSession

I'm using the AVFoundation classes to capture the live video stream from the camera and to process the video samples. This works nicely. However, I do have problems properly releasing the AVFoundation instances (capture session, preview layer, input…
Codo
  • 75,595
  • 17
  • 168
  • 206
34
votes
4 answers

Android how to fix camera orientation

Notice how the view of the camera (NOT THE CAPTURED IMAGE) was flipped to left (image above), the orientation of the Activity is correct, but the camera view is messed up, please help me guys :) thank you. Here is the XML layout file:
jofftiquez
  • 7,548
  • 10
  • 67
  • 121
33
votes
9 answers

PhoneGap camera restarts the application

I'm using PhoneGap's navigator.camera.getPicture function to retrieve a photo from the device's camera on Android. function onSuccess(imageData) { alert("Success!"); } function onFail(message) { alert('Failed because: ' +…
Alon Gubkin
  • 56,458
  • 54
  • 195
  • 288