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

CameraManager gives only 2 camera ids, but a device has three physical cameras. Why?

I have Samsung Galaxy S9 and I see two rear physical cameras on the device. Still, cameraManager.cameraIdList gives only two camera ID-s, one for facing camera and one for rear. How to resolve the third camera? Is it even possible?
nyarian
  • 4,085
  • 1
  • 19
  • 51
4
votes
1 answer

unable to switch camera (front to rear) in react application using webrtc MediaDevices

This is the sample demonstration of what I'm intended to do. If anyone has any idea about this fix to make it work or any new logic please do share. This demonstration is implemented by using mediaStream API and using react-webcam library which…
user8450606
4
votes
2 answers

How to Remove duplicated picture in gallery when using android camera?

I use the Android camera to take a picture in my activity : Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); intent.putExtra(MediaStore.EXTRA_OUTPUT, getImagePath()); startActivityForResult(intent, TAKE_PHOTO_CODE); When I leave the…
Thibault J
  • 4,336
  • 33
  • 44
4
votes
1 answer

React Native - Overlay in Camera

I'm developing an app in react native and I will take some pictures. I need to have a grid over my camera, and when the user take the picture, my app will save the image and the grid together. Does anyone know how I solve this problem? Thanks This…
Gabriel Arantes
  • 102
  • 2
  • 8
4
votes
2 answers

how to set framelayout to landscape even if my activity is in portrait mode in android 2.3.1

i have an activity where i am opening a camera. i am using framelayout for camera preview. but i have to open camera in portrait mode which creating lot many problem, like small screen, rotation problem, can i set my framelayout to landscape even if…
Sunil Pandey
  • 7,042
  • 7
  • 35
  • 48
4
votes
3 answers

I can access iOS Photo Library without requesting permission

I am trying to access the photo library for a new app that I am writing. I have an actionSheet that allows the user to choose between their camera and their photo library. When opening the camera, it asks the user for permission but when opening the…
Bob Samuels
  • 385
  • 2
  • 6
  • 16
4
votes
1 answer

How to implement alt+MMB camera rotation like in 3ds max?

PREREQUISITES Let me start the question by providing some boilerplate code we'll use to play around: mcve_framework.py: from OpenGL.GL import * from OpenGL.GLU import * from OpenGL.GLUT import * import glm from glm import cross, normalize,…
BPL
  • 9,632
  • 9
  • 59
  • 117
4
votes
1 answer

How to overcome emulator's camera?

Each time when I try to use emulator's camera in video capturing mode - I receive: Sorry! The application Camera (process com.android.camera) has stopped unexpectedly. Please try again. I heard a lot of discussions around this issue, saying that…
Barmaley
  • 16,638
  • 18
  • 73
  • 146
4
votes
1 answer

Convert flutter CameraImage to File

Im trying to run face recognition and need a stream of images/files from the camera. I decided to use Flutters own camera library camera: 0.2.9+1. The method CameraController.startImageStream(Function(CameraImage) onAvailable) seams promising but I…
Joel Broström
  • 3,530
  • 1
  • 34
  • 61
4
votes
3 answers

How to invoke native camera in Delphi Android application?

I'm using Delphi 10.3 Community Edition to write a simple Android app and trying to invoke native device camera, but getting an error instead. I'm following the official Delphi guide: On the Form Designer, select the button (for taking a photo). …
Kromster
  • 7,181
  • 7
  • 63
  • 111
4
votes
1 answer

Ionic App shows blank screen when I add QRScanner

As soon as I add the QrScanner module to my Ionic App i just get a plain white screen. I installed the Plugin by running the following two commands: $ ionic cordova plugin add cordova-plugin-qrscanner $ npm install --save…
CiVe
  • 43
  • 3
4
votes
1 answer

2D to 3D Projection with given Z in world

I'm sorry if it has been ask before but I couldn't find the proper answer to my question. For a better understanding, let me briefly explain the context of my problem Context I have two images (A and B) with non planar object on it. I would like to…
geko
  • 51
  • 5
4
votes
3 answers

Issues when capturing Multiple Photos: app stops responding, camera preview turns to green and no picture is saved

I have successfully captured the single photo using camera in Android. But when I tried to capture 5 photos at once, app stops responding, camera preview turns to green and no picture is saved. What I saw in stack trace is as follows…
Mudassir
  • 13,031
  • 8
  • 59
  • 87
4
votes
1 answer

Ionic Camera Attempt to invoke virtual method

We installed the Camera Plugin for Ionic and are facing this error: Attempt to invoke virtual method 'android.content.res.XmlResourceParser android.content.pm.ProviderInfo.loadXmlMetaData(android.content.pm.PackageManager, java.lang.String)' on a…
4
votes
2 answers

Request camera permissions in macOS Mojave

Initializing an AVCaptureDeviceInput for a camera fails in macOS Mojave if the user has not granted permissions. When trying to initialize, the system automatically presents the permission request dialog. There seems to be no way though to get…
mirkokiefer
  • 3,347
  • 4
  • 20
  • 25