Pro camera: The pro custom camera

Hello,

I had try your extension with appinventor.
But the quality of the image is very very poor.
In fact I had made a program to take picture each 5s and enable flash befaore and close after.
But focus is very bad, quality is very bad, lot of snow pixel on the image.
So do you have solution to have very good picture as I use normaly my camera in the same condition.
In fact I take picture in dark condition dans enable the flash just befaire taking the picture and disable the flash just after.

Thanks to help.
Regards.
JL

Ok, we need to set the nosereductionmode, but I don't know why we have to set this command. I Set nothing special on my camera to set this paramater?
Same thing thing exposure when using flash in dark situation.
Thanks.
JL

For a better resolution set the layout height to 70% of the screen. Since this uses camera 2 API, I couldn't find any solutions for the auto-focus like in the built-in camera.

NoiseReductionMode calls the camera API, and its effect varies on different devices.
If your device can set focus distance, then there is a block for that. That will throw an error if that functionality doesn't exist.

1 Like

Hello canalrun - what exactly prevents you from using the current camera library?

Hi.
Seems so cooool!!!
But I'm sorry I'm unable to find the Component "HorizontalArrangement1" block.
So I can't try it :frowning:
Any Help?
Thanks and best regards.

@starsky I think you should learn some basics first.
And with a simple Google search, you could have found the solution quickly.

2 Likes

Thanks! :grin: :grin: :grin:
I just was searching in the proCamera pane :grin: :grin: :grin:

Very nice component. I would like (if possible of course) use it to recognize by OCR a password in the form AH1F5-U98X9-BRODY-7F78C printed on a bookmark and unfortunately near to a text and a QR code. So I would like, if possible, to take a "restricted" picture, the user should frame the pasword inside a rectangular object (that is a part of what the camera sees) that may be a HorizontalArrangement. I made a quick trial .but seems to me that I can not simply fix the size of the component I use as the output of the camera because the camera displays all what it sees in that component. Is there a way to do what I want using your nice component?

Reading above, it is suggested to use TakePreviewPicture which captures the arrangement, and use the Zoom or PinchToZoom feature as well

1 Like

Remix: added output to base64 string functionality

uk.co.metricrat.procambase64_FINAL.aix (32.0 KB)

image

Extension built using RUSH by @Shreyash

6 Likes

I tried Procamera extension for appinventor version 01-may-2021. The objective is very simple, to take pictures in the dark. So the solution is basic, turn the flash ON, take a picture, and turn off the flash at regular intervals. But it doesn't work properly. I see serious buggs with your extension, there are obviously problems between the commands to turn on and off the flash and taking pictures. Attached is an example of a program that does not work. Thanks for your help.


prisevuetest.aia (44.8 KB)

The problem lies in your blocks coding, not the camera extension.

Put the Flash = false in the savedPhoto event

2 Likes

I tried Procamera extension for appinventor version September 28 2021- September 28 2021. To take pictures but it doesn't work and when we press the button for the Procamera to active, the screen closes and goes out of the app. What have I forgotten and not added in the program code? Please Help.

Hi, can you share a screenshot of how it looks? Also, did you gave it the necessary permissions to work with?

1 Like

use Do it to debug your blocks...
it looks like there is a / missing in the output path...

Taifun

2 Likes

And is the TakePicture block on another button?

doh, not important... yet :wink:

3 Likes

I think this problem was solved by adding a CAMERA permit. Thanks.

2 Likes

I will be rewriting the extension for sake of stability and improvements.

7 Likes

Is it possible to make this work for video recording as well ?

1 Like

Yeah, I had actually completed it for both things, for some reason it couldn't work on the latest Android, so I never released it.