I'm using Erel's example for Camera2: https://www.b4x.com/android/forum/threads/camera2-still-images-and-videos.83920/
I made only one change: #SupportedOrientations: unspecified
When I rotate the phone in landscape mode, the preview (for both video and still image) is stretched vertically.
in riferimento a questa libreria
Sapete dirmi se ha qualche funzione di "FACE DETECTION" .
Per essere sinceri , non mi intessa riconoscere il volto e nemmeno rilevamento dei movimenti, ma solamente se...
as Erel stated in this post the zoom in CamEx2 Class effects only the preview but not the capture of the photo taken: https://www.b4x.com/android/forum/threads/camera2-still-images-and-videos.83920/page-3#post-557317
To change this behavior I added in CamEx2.setPreviewCropRegion a line...
I want to take a picture when the PanelCamera is visible. But I can not initialize the camera. When I pressed on the BtnCamera, it just showed a black screen and return start camera false. But when I tried on a new project, it's work. I don't why, please help.. :(
iI have found that the system camera app (of a new Android 9 device) can see another angle than my app based on CameraEx v.1.x - system camera shows wider picture vertically.
And the sys app has 2 settings for this angle view.
I'd like to reach the same max view angle.
My App using Camera2 occasionally crashes by going into Activity_Pause.
I have created a watchdog attached, but I cannot get the activity to restart or resume.
I have included MANAGE_OVERLAY_PERMISSION and also added it to the manifest, that part is working.
The timer is also working as it is...
Here is the example of SlowMo video capture using Camera2 API and CamEX2 class. This is the code for recording slow-motion video which you can find at the bottom of CamEX2 Class of attached example,
Public Sub getHighSpeedVideoSizesAndFPS As List
Dim scMap As...
Strange situation with Camera2 usage for the video recording:
1) Debug version works fully OK: preview is restarted OK after each file saving.
2) But Release compilation shows the preview only for the very first time, and later the preview is not visible, but capturing is anyway OK.
I'm writing a timelapse app using a foreground service to keep the process running and all is fine until the display "goes to sleep".
When the Main Activity is re-awakened by a CallSubDelayed from my foreground service, there is no response from the line "Wait For Camera_SurfaceReady" in...
Hi all, i'm working on an app at work to test the cameras on a product we are developing, i was using the CameraEx class, but read somewhere that it was recommended to use the Camera2 library, i am able to deploy the apk just fine and am also able to see the camera preview, the issue i just...
i will use the camera 2 but it gave me an error.
my device have 5.0.2 API 21 19. Dezember 2014
and it should work and i believe i tested it long ago and it worked.
at my tablet device with android 6.0 it works.
at os 5 the example said: Failed to open camera
Sub OpenCamera (front As...
i use this example, because there is the error too.
If you swtich to video mode and then to the front camera, then record a video and stop the video. The Error is on line 134 in the "CamEx2" class.
The following error message:
Logger connected to: samsung SM-G935F
In CamEx2 the Camera2 PreviewTaken (Image As Object) event is commented:
'Private Sub Camera_PreviewTaken (Image As Object)
I tried uncommenting the Sub, but the event never happens: :(
Private Sub Camera_PreviewTaken (Image As Object)