Questions tagged [camera-view]
51 questions
0
votes
1 answer
Taken photo is bigger than the preview in cameraview
I'm facing a problem using a Samsung J1 device here.
But the image taken is bigger than the preview one.
This is the preview that I got:
and this is the final bitmap result:
I'm calling camera view with this…

LMaker
- 1,444
- 3
- 25
- 38
0
votes
0 answers
Playing video on different devices and having the same look/size
I am trying to make an app where users post videos and see the posted videos in a feed ( like facebook). It all works. I am using cameraview for capturing video and Exoplayer for playing it. It works fine but the issue is that if video is posted by…

Snake
- 14,228
- 27
- 117
- 250
0
votes
0 answers
Camera view angle (Vertical and Horizontal)
I am using this code simulate real camera to capture 3D object:
patch(ax, Object3D, 'FaceColor', 'flat');
camva(ax, rad2deg(VerticalAOV)); % Set the camera field of view
camup(ax, [0 -1 0]);
campos(ax, [CameraPosition.X CameraPosition.Y…

Humam Helfawi
- 19,566
- 15
- 85
- 160
0
votes
0 answers
CameraView.setLifecycleOwner(this) callback in fragment
I am trying to integrate this library in my fragment. In this tutorial they have said to call fragment.viewLifecycleOwner instead of this in camera.setLifecycleOwner(this). I have followed all the process to start video recording. I tried to debug…

gaurav tiwari
- 1,093
- 1
- 9
- 28
0
votes
1 answer
Fotoapparat: Why does landscape CameraView captures in portrait mode?
I have implenented the Fotoapparat library to my app. To operate the whole app with one hand, I am trying to make the CameraView in a portrait mode parents ConstraintLayout. As you can see in the following screenshot, the CameraView itself is…

Tranquillo
- 235
- 2
- 13
0
votes
0 answers
RuntimeException: Fail to connect to camera service using Fotoapparat in fragment
Need help to resolve a Fotoapparat library issue.
io.fotoapparat.exception.camera.CameraException: Failed to open camera with lens position: io.fotoapparat.characteristic.LensPosition$Back@31c3b8a2 and id: 0
When I open the first time It will work…

Devangi
- 365
- 2
- 10
0
votes
0 answers
Screenshot saved as a blank image [Android]
I am trying to make a "camera" application that is nothing but a fullscreen viewfinder that will capture an image via screenshot when the user clicks anywhere on the screen. I know this will take a terrible picture, but I have a very specific…

usr-local-bin
- 43
- 8
0
votes
2 answers
Upload byte[] image to server via multipart
I am working on image upload functionality on Android, I am using these two libraries:
https://github.com/natario1/CameraView
https://github.com/gotev/android-upload-service
So, according to CameraView library I can get my picture like…

yerassyl
- 2,958
- 6
- 42
- 68
0
votes
1 answer
react-native-camera build error on android
Hi I'm using the following stack:
- react-native-camera 1.1.1
- react-native 0.55.3
- gradle 3.1.2
I did all the steps described in the docs for linking the project (https://github.com/react-native-community/react-native-camera).
The gradle sync…

emma93
- 177
- 2
- 12
0
votes
2 answers
find if camera has attached or detached keyboard control to canvas in Babylonjs
I have a program in BabylonJS that has multiple cameras (free camera, scene, follow, and sometimes an arc camera). I set the active camera(s) and attach control (keyboard based movement) using the following:
scene.activeCameras[0] =…

Dr. Aaron Dishno
- 1,859
- 1
- 29
- 24
0
votes
0 answers
Cordova-Wikitude - Plugin or Functions for Capturing Images from Camera Feed
Are there standard plugin options or existing functions to support capturing images from the camera feed in a Cordova with Wikitude implementation? We’ve been researching using the Wikitude Plugins API with Cordova but have not found a solution…

r-John
- 11
- 2
0
votes
0 answers
CameraView (SurfaceView) preview is black after hiding the fragment
I'm using CameraView, which uses SurfaceView on the API I'm currently testing for, in a fragment to allow the user to take photos with a live preview in my app.
Then, when the photo is taken (and saved to a file), the fragment is hidden, and a…

Dino
- 139
- 1
- 10
0
votes
2 answers
CameraView black on when being used for second time
I am using CameraView library for showing a viewfinder and taking snaps from it.
I have two buttons, one for opening the view and another button for closing the view.
Both the buttons click will call the following method with true and false…

Harish Vishwakarma
- 480
- 1
- 5
- 14
0
votes
0 answers
android opencv capture just a part of entire camera view
i am a beginner on android.
My question is simple, i need to capture a video frame from my device but i need to capture just a part of the entire camera view. For example, if my camera view display my frame on the entire screen i need to cut half…

Valerio Testa
- 3
- 1
0
votes
1 answer
Customizing Camera View after a button in collection view is tapped
I would like to customize my camera view like the screenshot instead of the default one.
http://imgur.com/QNoto5F
Any suggestion?

Happiehappie
- 1,084
- 2
- 13
- 26