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
55
votes
6 answers

Ionic 2: Cordova is not available. Make sure to include cordova.js or run in a device/simulator (running in emulator)

I just set up my first ionic 2 app (I've used ionic 1 fairly extensively). I'm trying to use the ionic-native camera preview plugin. The setup was pretty straight forward: npm install -g ionic cordova ionic start timesnap --v2 ionic platform add…
Lenny
  • 5,663
  • 2
  • 19
  • 27
53
votes
9 answers

Access camera from a browser

Is it possible to access the camera (built-in on Apples) from a browser? Optimal solution would be client-side javascript. Looking to avoid using Java or Flash.
Justin
  • 42,716
  • 77
  • 201
  • 296
48
votes
10 answers

Is it possible to measure distance to object with camera?

Is it possible to measure distance to object with phone camera? I mean, in my application I start the camera, facing the camera to the object (lets say house) and then press the button and it calculates the distance and shows me in screen. If it's…
evilone
  • 22,410
  • 7
  • 80
  • 107
47
votes
7 answers

How to use AVCapturePhotoOutput

I have been working on using a custom camera, and I recently upgraded to Xcode 8 beta along with Swift 3. I originally had this: var stillImageOutput: AVCaptureStillImageOutput? However, I am now getting the warning: 'AVCaptureStillImageOutput'…
Pranav Wadhwa
  • 7,666
  • 6
  • 39
  • 61
47
votes
6 answers

How can I set camera preview size to squared aspect ratio in a squared SurfaceView (like Instagram)

I'm trying to develop my own camera activity, but I have a problem that I'm not unable to solve... What I want, is something very similiar to instagram photo frame, and this is what I get: When I should get something like this: and... when I…
cesards
  • 15,882
  • 11
  • 70
  • 65
46
votes
3 answers

android.os.FileUriExposedException: file.jpg exposed beyond app through ClipData.Item.getUri()

I try to do a button that open the camera and take picture. my code is here //for imports check on bottom of this code block public class HomeProfileActivity extends AppCompatActivity { //Button camera public static final String TAG =…
Omer
  • 832
  • 1
  • 9
  • 10
46
votes
2 answers

How to capture picture with AVCaptureSession in Swift?

I have a UIViewController in which I use AVCaptureSession to show the camera and it is working just fine and fast. I placed a UIButton object on top of this camera view and added a IBAction for the button. This is how it looks like right now: Now I…
rodrigoalvesvieira
  • 7,895
  • 15
  • 63
  • 84
46
votes
4 answers

Where can I get the Android camera application source code?

I'm referring to the camera application that is already installed on my G1, not the camera API source code. How do I get the source code?
user121196
  • 30,032
  • 57
  • 148
  • 198
45
votes
6 answers

How to measure height, width and distance of object using camera?

I referred lot many links but still I am not able to get any point from that I can start my development. I want to measure my image height, width and distance using camera. I found this app . I want to make this type of application not exactly same…
anddev
  • 3,144
  • 12
  • 39
  • 70
45
votes
5 answers

Camera preview image data processing with Android L and Camera2 API

I'm working on an android app that is processing the input image from the camera and displays it to the user. This is fairly simple, I register a PreviewCallback on the camera object with the setPreviewCallbackWithBuffer. This is easy and works…
bubo
  • 591
  • 1
  • 6
  • 11
44
votes
17 answers

Flutter camera appears stretched

I've been playing around with flutter an i'm loving it so far, but I'm having an issue getting the camera working. I follow the directions on this page https://pub.dartlang.org/packages/camera and it works. However, the camera is stretched so that…
Angus Allman
  • 511
  • 1
  • 6
  • 10
44
votes
3 answers

Android save view to jpg or png

I would like to write an android app that basically layers an overlay on image on another image and then I would like to save the picture with the overlay as a jpg or png. Basically this will be the whole view that I would like to save. Sample code…
shaneburgess
  • 15,702
  • 15
  • 47
  • 66
43
votes
9 answers

QR code (2D barcode) coding and decoding algorithms?

Looking for free/opensource code or description of algorithms to code (simple) and decode (hard) the 2D barcode QR code. It doesn't seem like a trivial problem, but it's so popular in Japan that there must be something already available...
Adam Davis
  • 91,931
  • 60
  • 264
  • 330
43
votes
2 answers

Fingerprint Scanner using Camera

Working on fingerprint scanner using camera or without, its possibility and its success rate?, I came across one of open source SDK named FingerJetFX its provide feasibilty with android too. The FingerJetFX OSE fingerprint feature extractor is…
RobinHood
  • 10,897
  • 4
  • 48
  • 97
43
votes
3 answers

iPhone: Camera Preview Overlay

How do I add an overlay (UIImageView) to the camera preview and handle touches on this? My previous attempts to do this (e.g. use UIImagePickerController and add the image as a subview) have failed.
Stefan
  • 28,843
  • 15
  • 64
  • 76