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

How to clean up AVCaptureSession in applicationDidEnterBackground?

I have an app that uses AVCaptureSession to process video. I like to write with zero memory leaks, and proper handling of all objects. That's why this post - How to properly release an AVCaptureSession - was tremendously helpful - Since [session…
Oded Ben Dov
  • 9,936
  • 6
  • 38
  • 53
4
votes
2 answers

iOS - Creating multiple time-delayed live camera preview views

I have done a ton of research, and haven't yet been able to find a viable solution, for many reasons, which I will outline below. Problem In my iOS app, I want three views that indefinitely show a delayed-live preview of the device's camera. For…
cohenadair
  • 2,072
  • 1
  • 22
  • 38
4
votes
1 answer

Android: activity.getResources().getConfiguration().orientation returning wrong value on Samsung galaxy devices

For my Android app, the value returned for activity.getResources().getConfiguration().orientation is always 1 (ORIENTATION_PORTRAIT), even when the device is in landscape mode. This is happening specifically on Samsung galaxy devices. This is…
4
votes
1 answer

Sample camera images as bitmap Android

I am trying to create an app which periodically samples an image in the camera(preview?) and then does some processing on this image (i.e. face detection). I think this is the way to go about this., I have looked into OpenCV but don't think my…
SamRowley
  • 3,435
  • 7
  • 48
  • 77
4
votes
1 answer

macOS App using iPhone camera

I am trying to build a simple swift (4) macOS app to use an iPhone camera connected to my Mac. I have started an blank macOS template app and have turned on sandbox to allow camera, mic and USB and added the following code to my ViewController.…
adamprocter
  • 856
  • 1
  • 15
  • 31
4
votes
1 answer

App freeze on Camera.Release()

I recieved an error log for my app in the android market developer console. It is reporting a freeze with the cause of "ANR keyDispatchingTimedOut" I traced it back to a line of code after the user accepts the image when the camera gets released.…
Matt
  • 2,650
  • 4
  • 36
  • 46
4
votes
1 answer

How can I access a laptop built-in camera?

Is it possible to access the camera in a Macbook with REALbasic? I'd like to allow a user to capture an image from the camera.
daustin777
  • 12,478
  • 8
  • 25
  • 25
4
votes
2 answers

Change default webcam image in genymotion

I want to change the default dummy webcam image and instead play a video/gif. Below is the default dummy webcam video/gif - Is it possible or is there any alternative. My purpose is that if I open any app I can use that video instead of dummy…
Karma5
  • 273
  • 3
  • 8
  • 23
4
votes
3 answers

How to detect if android phone has dual back camera

How do I detect if android phone has dual back camera I tried CameraManager manager = (CameraManager) context.getSystemService(Context.CAMERA_SERVICE); try { for(String id: manager.getCameraIdList()) Log.e("dualtest", id); …
user5511158
4
votes
2 answers

Reproduce the new scanning feature in iOS 11 Notes

Does anyone know how to reproduce the new Notes new scanning feature in iOS 11?? Is AVFoundation used for the camera? How is the camera detecting the shape of the paper/document/card? How do they place the overlay over in real time? How does the…
R.Radev
  • 81
  • 7
4
votes
1 answer

Optimizing the stereo calibration process on multiple cameras

Background: For simplicity, I have 3 Cameras. Each one of them is calibrated by its own (its interstice parameters are known and accurate enough) They all share almost the same view. I want to use this system of 3 Cameras for 3D reconstruction. I…
4
votes
1 answer

Applying filter to real time camera preview - Swift

I'm trying to follow the answer given here: https://stackoverflow.com/a/32381052/8422218 to create an app which uses the back facing camera and adds a filter, then displays it on the screen in real time here is my code: // // …
nopassport1
  • 1,821
  • 1
  • 25
  • 53
4
votes
2 answers

What is the difference between capture="user" and capture="camera" in input type file tag?

There is no capture="camera" attribute for input type="file" tag in official w3.org documentation. Ironically on so many places I found capture="camera" is used. Example here or here or here and so many other places. Not a single tutorial with…
4
votes
3 answers

open cv close camera

I am using OpenCv to capture image from webcam. It works fine I just don't know how to close the camera. from cv2 import * # initialize the camera cam = VideoCapture(0) # 0 -> index of camera s, img = cam.read() if s: # frame captured without…
Akshay Kadidal
  • 515
  • 1
  • 7
  • 15
4
votes
2 answers

Android Camera 2 API 1fps using setRepeatingRequest

I want to take 1fps still captures using Camera 2 API's setRepeatingRequest() mode. I set the CONTROL_AE_MODE to CONTROL_AE_MODE_OFF and SENSOR_FRAME_DURATION to 1. However I still receive a very high frame rate of 20fps with the below code. I tried…
avenger
  • 131
  • 2
  • 11