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
33
votes
5 answers

How to get the latest frame from capture device (camera) in opencv

I want to connect to a camera, and only capture a frame when an event happens (e.g. keypress). A simplified version of what I'd like to do is this: cap = cv2.VideoCapture(device_id) while True: if event: img = cap.read() …
memo
  • 3,554
  • 4
  • 31
  • 36
33
votes
3 answers

What exactly are eye space coordinates?

As I am learning OpenGL I often stumble upon so-called eye space coordinates. If I am right, you typically have three matrices. Model matrix, view matrix and projection matrix. Though I am not entirely sure how the mathematics behind that works, I…
danijar
  • 32,406
  • 45
  • 166
  • 297
32
votes
5 answers

Overlay images onto Camera preview SurfaceView

I have a SurfaceView that is being used to draw images, and I would like to overlay them onto a live-feed from the phone's camera. Currently, the SurfaceView that contains the images have a white-background, but if I were to overlay them onto the…
GobiasKoffi
  • 4,014
  • 14
  • 59
  • 66
32
votes
6 answers

How to play native camera sound on Android

I would like to play native camera shutter sound clip on camera preview capture. I'm referring to the sound clip played when takePicture() is called. How could I that? Can someone walk me through the steps?
Hussein Yapit
  • 323
  • 1
  • 3
  • 6
31
votes
4 answers

OpenCV with GigE Vision Cameras

I need to use OpenCV with a GigE Vision Ethernet Camera, but I couldn't find much useful information on how to do this, any pointers, documents and example code? I need to read frames from the camera.
Dr. Snoopy
  • 55,122
  • 7
  • 121
  • 140
30
votes
6 answers

How to get raw preview data from Camera object at least 15 frames per second in Android?

I need to obtain raw preview data from Camera object at least 15 frame per second, but I can only get a frame in 110 milliseconds which means I can get only 9 frames per second. I brief my code below. Camera mCamera =…
EricOops
  • 449
  • 1
  • 5
  • 5
30
votes
3 answers

How to mock a picture in Android Emulator Camera?

Is there a way to set a static picture as the photo been taken by the emulator camera? I would like to test ir with zxing barcode reader on emulator.
JoaoGalli
  • 465
  • 2
  • 5
  • 13
30
votes
4 answers

Android camera unexplainable rotation on capture for some devices (not in EXIF)

What I'm doing seems like it should be simple, but I'm still lost after I've read every possible Stackoverflow answer I can find and Googled every article I can find. I'm using a preview SurfaceView and capturing an image from an activity that is…
Scott Merritt
  • 1,284
  • 2
  • 13
  • 24
30
votes
3 answers

NativeScript : custom camera view

I am working on an iOS and Android application with a custom camera view (that's why I won't use camera module http://docs.nativescript.org/ApiReference/camera/README) I need to have my own UI above the camera preview. Can I do this with…
30
votes
8 answers

didFinishPickingMediaWithInfo return nil photo

I am working to capture an image that is returned in 4.0 using - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { [[picker parentViewController]…
Rob Bonner
  • 9,276
  • 8
  • 35
  • 55
30
votes
4 answers

Get ID of currently open camera

How can I get the ID of the currently open android camera from an android camera instance? I can't see it in the parameters and getCameraInfo requires the id as a parameter.
mbdavis
  • 3,861
  • 2
  • 22
  • 42
30
votes
4 answers

Compress camera image before upload

I am using this code (from www.internetria.com) to take a photo and upload to a server: onCreate: Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); Uri output = Uri.fromFile(new File(foto)); intent.putExtra(MediaStore.EXTRA_OUTPUT,…
David
  • 315
  • 1
  • 4
  • 8
29
votes
2 answers

Capture video with flutter

Hi I am in the process of developing an app with flutter with video recording functionality. I have come across 2 plugins with ability to capture/save an image as a file with flutter: Camera v0.0.2 and Image_picker v0.2.1 , they work well and are…
Nissim
  • 639
  • 1
  • 6
  • 14
29
votes
2 answers

How to use AVCaptureSession with Slide Over and Split View in iOS 9?

My team is developing a set of SDKs for barcode scanning, ID scanning and OCR. We use device's camera, specifically, AVCaptureSession, to obtain video frames on which we perform our processing. We're exploring new iOS 9 multitasking features Slide…
Cerovec
  • 1,273
  • 10
  • 19
29
votes
4 answers

OpenGL rotating a camera around a point

In OpenGL I'm trying to rotate a camera around a point, with camera being distance r from the point and facing the point when it rotates. In other words, I want the camera to move along the circumference of a circle at a radius r from the center,…
Bryan Denny
  • 27,363
  • 32
  • 109
  • 125