FAQ Database Discussion Community


How to fix inverted camera preview when switching from landscape to reverse landscape

java,android,camera,orientation-changes
I'm working on implementing the camera into my app. Everything works well except for one thing, when rotating the display from landscape to reversed landscape, the surfaceview is not updated (same when rotated from reversed landscape to normal landscape). surfaceChanged is not called, therefor, the preview shows upside down. If...

Android: How to get images from camera without storing a file?

android,camera,storage,ram
I'm using the system's activity to get an image from camera. Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(intent, REQUEST); When the user accept the photo I use this callback @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == REQUEST && resultCode == RESULT_OK) {...

THREE.js Raycasting from a child camera to the scene

javascript,camera,three.js,raycasting
I am trying to raycast the mouse from my camera to do some hover and click events on meshes in my scene. My problem is, that my camera is currently the child object of another mesh (for easier camera movement/rotation) and now my raycasting doesn't work (I assume because the...

How to crop an image and set to imageVeiw

android,camera,crop
Im trying to crop an image taken from a camera and store it to an imageview - i m not sure how target my cropped image, it seems to be stored in gallery which im not bothered if it is or not. Problem: my crop method which works puts the...

Swift Sprite Kit Camera Movement

ios,swift,camera,sprite-kit
I made a Camera in Sprite Kit focusing on a SKSpriteNode. There is a great Document by Apple: Apple Document However, the camera as it now is follows the SKSpriteNode immediately, while I want to have a little leeway. For e.g. the SKSpriteNode moves up and down after a touch...

Orbit camera lookAt change

javascript,camera,three.js
Is there any possibility to change the lookAt target of Orbit camera? I have it set for my 'static' camera, but when activating the orbit camera it always looks at (0,0,0)....

How to update the “forward” movement in OpenGL

c++,opengl,camera,fps
I have a problem with my OpenGL application that you can clearly see in this gif. Basically I would like to move in the direction pointed by the cursor, but this doesn't happen and instead the "forward" direction remains the same. For example if I turn 180° and press "w"...

How does one initialize/move a camera in a SpriteKit program using Swift?

ios,swift,camera,sprite-kit,draggable
I have a map and it's bigger than the device's screen size, so I want the user to be able to navigate around the map by dragging the screen, similar to Clash of Clans. How can I create a camera view so I can drag the camera around the map?...

Picture File on RESULT_CANCELED

java,android,camera,google-glass
I want to be able to track image file names when a picture has been taken with the default Camera Glassware. This is so I can delete them when finished. I have the following code: ... Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(intent, TAKE_PICTURE_REQUEST); } @Override protected void onActivityResult(int requestCode, int...

Image shown when taken by front camera but not visible when taken by Back camera

android,camera,android-camera
I am using native camera in my app. And after taking picture I am showing it to user on next activity in the Imageview. Now the problem is, when I save picture taken by front camera, the picture shows up in the next activity's imageview but not in the case...

Camera listener service?

android,camera,actionlistener
I am looking for a way to run a service process in the background of a device, that listens for camera actions. Is this possible? I have been reading a lot of forums that are around launching the native camera from within an activity, and I can already do this....

iOS Swift camera mode- how to indicate photo is captured

ios,swift,camera,photo,capture
In Camera mode (AVCaptureVideoPreviewLayer) I manage to capture a photo successfully. I would like to indicate this fact to the user- meaning to show him a sudden black flash and a click sound- similar to what he would experience when taking a photo himself. How do I do that? Is...

Lock Camera orientation to portrait

android,camera,orientation
How can I prevent the android camera to switch orientation to landscape if I start the camera like this: Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); File imageFolder = new File (Environment.getExternalStorageDirectory(), Environment.DIRECTORY_DCIM); imageFile = new File (imageFolder, UUID.randomUUID().toString()+".png"); Uri uriImage = Uri.fromFile(imageFile); intent.putExtra(MediaStore.EXTRA_OUTPUT, uriImage); startActivityForResult(intent, 0); So I don't have a...

Custom camera view Swift iOS 8 iPhone xCode 6.1

ios,iphone,xcode,swift,camera
I would like use camera in my iPhone inside of View. I don't want use typical full screen camera view, but my own. For example I would like have a square 200x200 at the middle of the screen and there have a camera preview. Below this square I would like...

How can i take a picture with custom camera and display it on another activity?

android,android-activity,camera,photo
Please help me how to take a picture from a custom camera and display it on another activity, please give me more detailed answer, what code should i put, and where, please tell me if what kind of variables, int, strings, booleans should i create, here is my code :...

Intent to another activity not happening

android,android-intent,camera
So I have a camera intent where you create a picture about yourself, and then go straight to the secondactivity, passing the last took camera picture, in extra, but my app is not starting the another activity, what is the problem? I create the picture, and I get back to...

GStreamer 1.0 “autovideosink” does not open the display

camera,ip,gstreamer,rtsp
Using the default GStreamer 0.10 installed in my ubuntu 14.04 I can capture my IP camera: gst-launch-0.10 rtspsrc location=rtsp://admin:[email protected]:554/mpeg4cif latency=0 ! decodebin ! ffmpegcolorspace ! autovideosink It has the problem that the capture in the display stops after a while. Although the camera is still sending rtsp packets until I...

android: camera is not taking a picture

android,camera
The idea is simple: My App should create a camera object, show a preview and take a picture (without pressing any button) and close the camera afterwards. Unfortunately it is not even taking any pictures. (Means: My callback code which should be executed after the picture is taken is never...

How to use existing camera app(not create one using MediaCapture) and take picture in windows phone 8.1(WinRT)?

c#,camera,windows-runtime,windows-phone-8.1
I know how to implement a camera capture using a MediaCapture in windows phone 8.1. But the question is can't we just launch the existing camera app using a launchUriAsync() and get back the path of the file or the file itself in the form of an argument? Example: Like...

Camera position based on model size?

c#,wpf,camera
in C# WPF how to automatically set camera Position based on 3DModel size. For example if I load small model,position be closer and if I load large model camera position be longer. What I thought was to get the Max and Min Point3D from model from each side. -Find Max...

Camera live View in apple watch

camera,watchkit
On 3/9 apple demo. They show how to use apple watch to see the camera live view and open the garage door. I think they should integrate with HomeKit to control the garage door, but how to get the camera live view?? Do these live view images come from iphone...

calling dispatchTakePictureIntent leads to Camera Error: Cant Connect to Camera - Performing stop of activity that is not resumed

android,camera
When I click the action button to take a picture a pop up dialog appears and tells me "Cant Connect to Camera." Stack trace: 06-06 21:45:26.753: E/ActivityThread(25688): Performing stop of activity that is not resumed: {com.example.dselfies/com.example.dselfies.MainActivity} 06-06 21:45:26.753: E/ActivityThread(25688): java.lang.RuntimeException: Performing stop of activity that is not resumed: {com.example.dselfies/com.example.dselfies.MainActivity}...

How to detect orientation of recorded video in android

android,video,camera,orientation
Hello friends I am new in android developing and i am facing some problem while i am working with camera in my app. I am developing app and in this app i am using the inbuilt functionality of camera. In my app camera will perform the task to capture video...

Error with image view when displaying an image by camera capturing

java,android,camera,imageview
i am new to android and i am trying to make my phone cam take a picture and display it in an image view. When the image is captured, it is saved correctly but after that the app stops working when the image should be displayed in an image view....

ORB - object needs to be very close to camera

opencv,camera,computer-vision,object-recognition,orb
I have a program that takes a video feed from RSTP and checks for an object. The only problem is that the object needs to be about 6" from the camera but when I use a wired webcam the object can be a few feet away. Both camera are transmitting...

Convert raw image from JAI GigE camera to bitmap in C#

c#,bitmap,camera,aforge,gige-sdk
I'm using a JAI GigE Vision camera for image acquisition, but I want to use the AForge Library in C# for the image analysis to create a camera independent solution. Jai_FactoryWrapper.ImageInfo localImageInfo = new Jai_FactoryWrapper.ImageInfo(); image = (Bitmap)localImageInfo; But it gives back an error: Cannot convert type 'Jai_FactoryDotNET.Jai_FactoryWrapper.ImageInfo' to 'System.Drawing.Bitmap'...

Getting Image from camera registers

c#,image,camera
I'm working on a simple imaging software for my University, and I ran into annoying problem while getting image from camera. There is an .dll COM library for camera Apogee Alta U57 (Library and documentation is here: http://www.ccd.com/downloads.html) and there are two possible ways of getting image from camera (provided...

How to use the camera with images?

android,background,camera
I want to make an application that contains an image and the background you can use the device camera. I know how to launch the camera but not how put the image forward. An example would be this application: https://play.google.com/store/apps/details?id=com.kat.police.photosuit.montage Anybody know any tutorial explaining how to do it or...

Android camera: stopPreview vs releaseCamera

android,camera
I am making an application where I have a camera inside of a viewPager. I am wondering what would best be suited to "pause" and "resume" the camera so it doesn't hog resources when it is pre-loaded. I have the feeling that stopPreview is better suited for this as it...

exiftool rename photos with camera model and date

bash,shell,camera,exif,exiftool
I have been sorting my family photos, including some from a recovered backup drive my dad had. many of the photos were named file000268.jpg etc so I looked into renaming utilities, and ended up going with exiftool because I can use it in the shell and write scripts based around...

Pinhole camera projection matrix explained

math,graphics,camera,projection
I'm trying to solve the attached question after reading some material about pinhole cameras and how their projection matrix are set and I'm still not sure I understand all the math. in the attached question, when moving the COP of the camera to -2Zp as I understand I basically increase...

Android camera: Threads? Which should do what

java,android,multithreading,camera
I am trying to figure out which threads should do what in Android. The only thing I have found stated in the official documentation is that camera.open() should be put into its own thread. What about: camera.startPreview() camera.stopPreview() camera.release() It doesn't state which thread they need. Must they be run...

The camera in a side-scrolling tile based game in moving slower than the character

c#,camera,side-scroller
In my side scroller game, when the character is moving past a specific zone (on the left side of the world) the camera should start moving until the character is past the next zone (on the right side of the world). However, when I cross the first zone and is...

AVFoundation video preview is darker than the native Camera app

ios,camera,avfoundation
I am using AVFoundation to produce video frames. The problem is that the frames look darker than in the native camera app, especially in dark areas. As I see, the native camera app (iOS 8) makes some adjustments (ISO, shutter speed) all the time and continuously adopts itself to the...

Android: How to return huge byte array as activity's result?

android,android-intent,camera,return,onactivityresult
private void returnImage(byte[] array) { Intent intent = new Intent(); intent.putExtra(RETURNING_MESSAGE, array); setResult(RESULT_OK, intent); finish(); } I get that byte array by Camera via these callbacks @Override public void onClick(View v) { mCamera.takePicture(null, null, new Camera.PictureCallback() { @Override public void onPictureTaken(byte[] data, Camera camera) { mCamera.release(); returnImage(data); } }); }...

setPreviewSize doesn't work propertly only in some devices

android,opencv,camera,jni,android-camera
I'm developing a application using OpenCV native, and opening the camera in Java. My app works propertly in a MotoG, but when I use other devices, it fails. My preview callback send the image and I got this Error: E/Camera-JNI(22013): Callback buffer was too small! Expected 3110400 bytes, but got...

Capture face area by camera

python,opencv,camera,capture
I am having problems getting face detection and cropping an image to the face working, below is my code. import cv2 class Crop: #constructor def __init__(self, image): self.data = image def facechop(self): # read xml for training data facedata = "haarcascade_frontalface_default.xml" cascade = cv2.CascadeClassifier(facedata) # read image file img =...

Uncompressed size of images taken with the camera phonegap

angularjs,cordova,camera,ionic-framework
I'm up to my server images, images taken from the camera of my device but the truth weigh much to be exact 5.4 MB and in very good quality. I wondered if there was some kind of parameter to be declared for the quality or at least the weight of...

Color Image in the Google Tango Leibniz API

android,c,camera,yuv,google-project-tango
I am trying to capture the image data in the onFrameAvailable method from a Google Tango. I am using the Leibniz release. In the header file it is said that the buffer contains HAL_PIXEL_FORMAT_YV12 pixel data. In the release notes they say the buffer contains YUV420SP. But in the documentation...

Experiment on displaying a Bitmap retrieved from a camera on a Picturebox

c#,opencv,bitmap,camera,picturebox
In my code I retrieve frames from a camera with a pointer to an unmanaged object, make some calculations on it and then I make it visualized on a picturebox control. Before I go further in this application with all the details, I want to be sure that the base...

Setting ImageView after Crop not working

android,image,camera,imageview
I've created a basic activity with an imageView and two buttons. 1 Button opens the gallery, the other opens the camera. Both of which pass the result into a image cropping library. The cropped image is saved and shown in the imageView. The first I do this with either button,...

Background OpenGL ES thread with camera preview on Android

android,multithreading,opengl-es,camera
Is there a way to have a background thread access the camera preview using an OpenGL ES texture? It is perfectly fine to access the camera preview using OpenGL ES within a view that is visible to the user. I need to access the camera frame within a background thread...

Libgdx camera not working

java,camera,libgdx
I am creating a game where a player is moving upwards constantly and i want the camera to follow this player, i have tried this by using this code: sb.setProjectionMatrix(cam.combined); cam.position.x = p.getPosition().x; cam.position.y = p.getPosition().y; cam.update(); But it does not work. Here is the initizalizaion of the camera aswell:...

Camara not save image

ios,cordova,camera,ionic
Community'm trying to hold the camera in my iOS application with Ionic, I access the camera and have held multiple codes to display the image and everything works perfectly, the problem is to save the image. I can not keep it on the device and do not know how, I...

Slow to send camera images via UDP

android,python,camera,udp,raspberry-pi2
I am trying to stream images from a Camera on my Raspberry Pi via UDP. I'm receiving / displaying them on an Android device. According to my calculations, my application sends at a maximum rate of 10fps, but I need 25 fps. Does anyone know how to speed my solution...

Using android.hardware.camera2

android,camera
For some reason Android Studio doesn't find the new camera library: android.hardware.camera2 Do you have any suggestions? The code looks like this: ...

Is it possible to load UIImagePickerController.Camera with attribute of silent shutter sound

ios,swift,camera,uiimagepickercontroller
I've just learned to implement setting CameraModeFlash.Off when presenting UIImagePickerController.Camera. Is there any way to make the default shutter sound silent??...

LibGDX multiple cameras

java,fonts,camera,libgdx,bitmap-fonts
So, I am working with LiBGDX and Box2D, using the PixelsPerMeter conversion, and I have a camera that follows the player around, but when I turn debug mode on I need to be able to draw a font with the fps on screen, so I always can see it in...

login with facebook and capture photo via Camera and share on own wall

java,android,facebook,camera
I searched many sites, but I still can't solve this issue, the problem is that I can't seem to be able to post the data. My code: public class MainActivity extends Activity { // Your Facebook APP ID private static String APP_ID = "397909153726269"; // Replace with your App ID...

CWAC-Camera lag

android,camera,lag,commonsware-cwac
I'm using the cwac-camera and it seems to work fine. The only problem is when I hit the back button. I'm getting some lag when returning to the previous fragment. I've tried to change the CameraFragment class by putting the code on the onPause method in an Async task, but...

Transfer images using sony camera API

camera,sony
We would like to use an sony camera in an installation, but is transferring the recorded movie files from the camera only possible using one of the following camera's: HDR-AZ1 HDR-AS200 FDR-X1000 See the following overview: https://developer.sony.com/develop/cameras/ Any chance that the newer models will ever support this feature?...

getting the current duration of recorded video using PBJVision

ios,video,camera
How can I get the length of the video session in seconds? I understand that I may have to do some sort of conversion of CMTime in didCaptureVideoSampleBuffer, but I can't seem to find the right property...

Android ACTION_IMAGE_CAPTURE restarts application

android,android-intent,camera
When I take a picture with the camera in my app the app/activity restarts (and all other activities are closed too) when I save the picture I took. Also when I debug the app, the debugger disconnects after taking the picture. Intent i = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); File file = getOutputMediaFile(1);...

Visualization on Camera Image

android,camera,visualization
I want to implement visualization on camera image. For Example: if in camera view there is any wall and closed surface you can color that surface by choosing color from colorPicker. For a reference you can see dulux visualizer. Can anyone suggest me how to implement visualizer that I have...

AVFoundation: toggle camera fails at CanAddInput

ios,swift,camera,toggle,avfoundation
I am trying to add a rotate camera function with AVFoundation to allow the user to toggle between the front-facing and back-facing cameras. As shown in the code below, I've put in some println() statements and all the values seem legit but the code always drops to the failed else-clause...

Turn on/off camera flashlight on Android

java,android,camera,xamarin,flashlight
Is it possible to switch between on and off multiple times in a short time the camera flashlight of an Android device? If so, how? I am trying to create an app that is able to send data over the flashlight blinks....

How can the auto-focus of camera be explained using pinhole camera model?

camera,computer-vision,autofocus
Shifting the auto-focus in real-world camera doesn't change the focal length, rotation, or any other camera parameter in pinhole camera model. However, it does shift the image plane and affect the depth of field. How is this possible? I understand that complex mechanism of real-world camera cannot be easily explained...

W/CameraBase﹕ An error occurred while connecting to camera: 0

java,android,camera,runtime-error,android-camera
There was a similar question but it went unresolved: W/CameraBase﹕ An error occurred while connecting to camera: 0 on camera.open() call I have an app which (naturally) is using the camera. Its been working fine. However with no code changes, between builds, the app started crashing (verified no code changes...

RTS touch camera movement

c#,unity3d,camera,touch,movement
I've been trying to get my head around a solution for my camera movement. These are the parameters it needs to work by and some thoughts I had tried: Camera movement / not world movement Raycast to move camera accurately along terrain Touch movement works by "grabbing" the terrain towards...

Create Custom Camera view using Ionic

android,cordova,camera,ionic-framework,ionic
I want to create a Photo Capture app using Ionic. I have gone through Cordova Camera Plugin and the examples only shows how to open native camera on button click. Is there a way to load the Camera view directly in the app (like default camera app, snapchat etc.)? I...

Microsoft Kinect for Windows Camera driver not found

camera,driver,kinect
I'm working with Microsoft Kinect for Windows using SDK 1.8. It automatically finds all of the drivers required, except for the Kinect Camera driver. Because of this, whenever I run a progra,m it gives an exception at: sensor.Colorstream.Enable(); When I use Xbox 360 instead it works perfectly fine. Can anyone...

OpenCV on OSX - how to use a secondary camera rather than the default one

osx,opencv,camera,apple,webcam
In my processing code, I use opencv.loadImage(video); to load the image from the video source. This works well for the default camera on the MacBook Air. But I would like to use a USB camera. In PhotoBooth I can switch camera. What is the OpenCV command to direct the source...

UICollectionView not showing images from CameraImage - Objective C

objective-c,camera,uiimageview,uicollectionview
Searched the forum and could not find a suitable answer that works. I suspect something is wrong with the code. I am taking pictures with a camera and trying to show them in a UICollectionView. The collectionView has a cell with a UIImageView inside of it. Even when setting a...

Objective-C AVCaptureDevice Front Camera

ios,objective-c,camera,avcapturedevice,avcapture
I have followed a tutorial that guided through a way to make a custom but simple camera app, almost exactly to the needs of the use I would like it. I actually have two issues that I need changing but I will focus on this first one for now. The...

Unity detecting GameObjects behind Camera

math,unity3d,3d,camera
I have a map gameobject, that has 8x8 childs, set up in rows and columns. The hero can go circular on the edges, ie from [0,0] to [8,0]. That part works good, but you can't see where are you going on the edge, so I've set up a script, that...

Is it possible to interact with an arbitrary client peripheral from a webapp?

javascript,browser,camera,peripherals
I know a webapp can access media devices like microphones and webcams, and other hardware like a smartphone's GPS. As far as I know, that's done with tightly constrained protocols for each specific type of device. However, I have an advanced scientific camera. It is only useful with a computer...

Make Camera LookDirection look front face

c#,wpf,3d,camera
How to look at the front of 3D Model in WPF? I am confused to set X Y Z for LookDirection. I don't know what happens when I set xyz and I don't know where camera is looking at. I don't know the same thing for UpDirection. Below is my...

How can I zoom a camera in the direction it is facing?

swift,matrix,3d,camera,scenekit
I am making a 3d game in swift using scenekit. I have a pinch gesture recognizer so that the user can zoom in/out when they pinch. I can easily access the current x,y,z coordinates as well as the rotation around each axis. My problem is actually working out where to...

Open Camera or Gallery from “ inappbrowser ” in Apache Cordova

cordova,camera,cordova-plugins,hybrid-mobile-app,inappbrowser
I have a hybrid application developed using Apache Cordova, within that application I am using " inappbrowser ". Now the requirement is to open Camera or Gallery from the inappbrowser, I am not able to figure out how to achieve this. For developing this application I am using backbone.js, JQuery,...

C# WPF uEye Camera capture video

c#,wpf,camera
I have program to capture video from camera. Application is in windows form and I want use this code to WPF application but it is not working. I use handle to capture image from uEye camera. In windows form is it displayHandle = PictureBox.Handle But when I use handle in...

saving a photo and using it straight away swift - webservice

ios,swift,camera,photo,alamofire
I have the following code for taking a photo and saving it to the camera roll. I need to be able to use it there and then after saving without having to go back into the gallery and selecting it. I haven't found any examples on how to do this....

Firewire 1394 camera with OpenCV

c++,opencv,camera,nvidia,firewire
I am trying to run face detection demo from OpenCV using firewire 1394 camera. While doing so I got the following error. Unable to stop the stream.: Bad file descriptor In capture ... VIDIOC_STREAMON: Inappropriate ioctl for device Unable to stop the stream.: Inappropriate ioctl for device Here is the...

Cropper returns null Uri

android,android-intent,camera,gallery
My app has possibility to change user avatar (with latter uploading it to web service). But on some devices Cropper ("com.android.camera.action.CROP" Intent) starts, but returns null Uri. Could u point me what i've done wrong? 1st user picks photo with: public static void pickPhoto(final Context context) { Intent pickImageIntent =...

How do I grab CCTV DVR's broadcast for custom application

javascript,cordova,camera,cctv
I have 16 analog cameras feeding in to my Defender DVR. I'm able to access the camera feeds locally by going to a specific port and entering login details using an ActiveX control in IE. I can also view them through apps from the Apple apps tore on my iPad...

Ionic app image upload from camera / photo library

ios,camera,ionic-framework,file-transfer,ngcordova
I'm working on a ionic chatapp where the user can upload a photo as part of his message. I'm looking for a way to upload the image to my webhost server so I can retrieve it later via a url The problem is that I'm not able to get it...

How to rotate an object from its center when using Object3d.lookAt()

camera,three.js
I'm drawing texts and computing their bounding boxes. I always want the texts to show their face to the camera and so I'm using following lines: textArr.forEach(function(text) { var textGeo = d.geometry; text.lookAt(camera.position) }) It's working fine but it rotates from top left corner and I can't change the axis...

Best way to check if Camera exists on Android device?

android,camera,android-camera,android-5.0-lollipop,cwac-camera
There is the cwac-camera library, there is also the android.hardware.camera that was deprecated in Lollipop. Now there is android.hardware.camera2. With andorid.hardware.camera, the solution was as simple as checking if Camera.getNumOfCameras() <= 0. I don't know the solution with android.hardware.camera2. I do have the cwac-camera library included in my project, but...

Android onPictureTaken resulting in poor quality/wrong rotated images

android,image,camera
I have an issue when saving images in my application. I am using Android camera api 1 (pre api 21) on android version 4.4.4. Device is a OnePlus One. When I take a picture my in-built camera in my app in seems to save the images in poor quality and...

Cordova Camera Plugin, saveToPhotoAlbum option is not working in Android 5.0.1

android,cordova,camera,cordova-plugins
I want to save the picture in album after capturing the picture using Cordova Camera Plugin. So I tried with the camera option 'saveToPhotoAlbum' set to true, but this is not saving the captured image but the same is working in iOS. I set the following options: { quality :...

Create folder and store Image by camera

java,android,camera
please read my code ask solution how to create folder public class CameraActivity extends ActionBarActivity { private static final int ACTION_TAKE_IMAGE = 1; Button btnImage; ImageView imageView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_camera); imageView = (ImageView)findViewById(R.id.imageView); btnImage= (Button) findViewById(R.id.buttonCapture); btnImage.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) {...

How many mega pixel camera is required for Road sign Detection and Front car distance Estimation?

image-processing,camera
How much resolution camera is required for road sign detection and distance Estimation.

html5 mobile capture camera and generate a preview box

javascript,html5,camera,video-capture,mobile-browser
How can I capture the camera and start a 'live preview' on a little div on the on the page on mobile? In the past I encountered some javascript web audio api that can allow you to create sound, manipulate them, start recording audio, buffer etc.. So I hope there...

android camera2 associate TotalCaptureResult with Frame

android,api,camera
this is regarding Android's Camera2 APIs. Since capture result and output frame are produced asynchronously, one could get capture result much before the actual frame. Is there a good way to associate produced frame with the corresponding capture result ?

Takes 25+ Seconds To Save Bitmap From Camera To Phone

java,android,bitmap,camera,bytearray
I am making a camera app. There has been a host of issues getting orientation right because some phones don't write EXIF orientation data. Because of this, I get the bitmap, save it (since I don't think I should read EXIF data from the byte[]), then rotate the bitmap, then...

App android crash when opening camera on samsung galaxy s4 mini

android,camera,crash,photo
i just want to ask you something that i can't find a solution. I have a samsung galaxy s4 mini and i'm trying to do something with the camera, and sometimes it crashes, but it doesn't give me any error. I got this code: private void dispatchTakePictureIntent() { Intent takePictureIntent...

Camera intent doesn't show in intent chooser

android,android-intent,camera
String chooseTitle = activity.getString(R.string.select_or_take_picture); Intent getIntent = new Intent(); getIntent.setType("image/*"); getIntent.setAction(Intent.ACTION_GET_CONTENT); Intent galleryIntent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI); galleryIntent.setType("image/*"); PackageManager pm = activity.getApplicationContext().getPackageManager(); for (ResolveInfo ri: pm.queryIntentActivities(galleryIntent, PackageManager.MATCH_DEFAULT_ONLY)) { Intent intent =...

Centering the camera on the character

ios,swift,camera
I am a beginner and I have started my first project. It should be a little game where you can run to the left and to the right. But I don't know how to set the camera settings. I'd be very thankful if you could help me, tell me how...

Android - Camera App passed null surface

android,service,camera,surfaceview
I have tried every possible solutions given on stackoverflow and still haven't reach what I want. I want to take a picture with the Camera API with a service. The picture should be taken when user light the screen, but the screen is still lock. I saw different post about...

Smooth camera rotation unity

unity3d,camera,rotation,unityscript
I create third person with camera. The camera will move in sync with the mouse move. I create script for camera move, its work but when the speed is high then everything starts to shake. How force the camera move smooth? Vector3 rotation = new Vector3(); rotation = this.transform.rotation.eulerAngles; float...

OpenGl view matrix - wrong “camera” orientation and position

opengl,3d,camera
The symptom is, that the "position of the camera" seems to be mirrored around the x axis (negative z instead of positive z) and the "orientation of the camera" is opposing to the expected. In other words, I have to rotate the camera by 180 degrees and move it forwards...

SurfaceView on top of SurfaceView

android,android-layout,camera,surfaceview
I am building an application using two MjpegView (custom view that extends SurfaceView). The issue is sometimes I don`t see the second camera view as it behind the first camera view. The streaming working without any problems, I tried to change the location of the camera views inside the layout...

Change a picture inside app using camera

android,android-intent,camera,contact,implicit
Excuse me everyone. I'm sorry if my english not good, I can't speak english well :) . I want to make an android app and its look like contact app. When opening the app there are some people's name. When I click a name it will open details activity. Inside...

Android Simple Camera Control App crashes when returning from Stopped

android,camera,android-lifecycle
I was working through the developer.Android Tutorials on building a Camera App but I always encounter the following problem: When my app is put into the background, i.e. Stopped according to the activity lifecycle, and I try to return to it it crashes, telling me the App has stopped working....

Getting surveillance camera footage streamed to phone

android,iphone,mobile,camera
I am studying computer programming, but I feel that at school we are doing only stuff that work on a computer without having any connection to the outside world and it isn't all that interesting, so I gave myself a challenge. I want to make a program that streams footage...

Get picture of from camera

java,android,io,camera
I have an Activity that can take a picture. That works. However, I have no clue how I can get these picture (not the thumbnail). I read the articles from Android Developer and this way does not work. My Code: public class CreateOfferActivity extends ActionBarActivity { private static final int...

Displaying image with PhoneGap

cordova,camera
I am trying to display an image in #smallImage. function onSuccess(imageData) { var smallImage = document.getElementById('smallImage'); smallImage.style.display = 'block'; smallImage.src = "data:image/jpeg;base64," + imageData; } function capturePhotoWithData() { var options = { quality: 50 }; navigator.camera.getPicture(onSuccess, onFail, options); } function onFail(message) { alert('Failed because: ' + message); } alert(imageData) is...

Can I open Google Camera App at activity?

android,camera
In my activity I want to open the Google Camera App to take a photo and setResult to my Activity. I'm using startActivityForResult() Can I do that? https://play.google.com/store/apps/details?id=com.google.android.GoogleCamera...

AVMutableComposition missing frames recorder with difference cameras of iPad

ios,camera,avfoundation,avmutablecomposition
I use the well known PBJVision to record videos which then must be combined together. I use AVMutableComposition to combine videos using insertTimeRange(_:ofAsset:atTime:error:). It works well if the videos have been taken with the same camera. But for example if one is taken with back camera then take another using...

Camera crashes due to crop code one line, how to crop in standard way

android,camera,crop
My app crashes due to camera.putExtra("crop", "true"); Im assuming this is due to some stupid inconsistent vendor camera drivers or something... joys of fragmented market i guess. How can i crop if this doesn't work? preferably have crop square on screen to guide user. Is there a standard ~99% proof...

I can't fix camera to any object in a 2D Matrix

c#,matrix,camera,xna,viewport
Problem description: I am trying to develop some 2D game with terrain collision in C# using XNA framework. I have already completed simple terrain generating and object, for example car, can move on this terrain. But now, I get a problem with camera fix to that car. I tried to...