Pro camera: The pro custom camera

Could you add a block that returns bytes[ ] from the camera as an Object? And the height and width of the returned image?

1 Like

Hey @Kumaraswamy , I'm confused, is this a paid or free extension? If free where can I find the compiled .aix file?
Thank you very much!

Look towards the bottom of the first post in this topic, a direct download link is there.

Also see here for a forked version of the extension:

28 posts were split to a new topic: Some questions about ProCamera and File extensions

is it possible to add a option to rotate and flip/mirror the preview and saved image file

Currently no, there will be updates in the coming months.

1 Like

Hi
I tried a bit of everything that has been done and suggested to have a simple app that at the click of a button takes the photo and shows it to me on the screen with its Path to be able to send it via App, but no solution has given good results with my android 11 EXCEPT "proCamera_3.apk" would it be possible to have the .aia file to be able to study it, understand it and adapt it to my project? Thank you very much

Piero

Show your current blocks, and your save path

1 Like

Try this example ([EDIT] permissions will be required for a compiled app - see post below)

procamShare.aia (35.0 KB)

1 Like

thank you so much!! when I try to emulate it with "AI Companion" it works! but if I generate the apk and install it on my smartphone after clicking the "Init" button it freezes and the message "ProcamShare not responding" appears!
how can I solve it?
when the problem is solved and there is a working apk,
can I put all the blocks included in Button3 in screen1 initialize?

Yes, sorry, I left out the permissions needed for the compiled app (they are already included in the companion app). Add these blocks:

image

When asked for images access chose ALL ACCESS.

You may need to ask for different file access permissions depending on your android version.

The user will only be asked this first time of use.

Depending on your device, you may need to rotate the device to landscape, to take the picture, for the image to maintain the correct orientation.

Hi TIMAI2, I am tryingo to develop and APP using Pro Camera Extension. It is working fine, but I have an issue with my phone Pixel 8 pro. When I get close to an object, it switches the camera, in the live preview it looks perfect, but when I call ProCamera.TakePicture, it swaps back to the "default" camera and took the picture. Any advise?

The only way around this is to go out to the default camera app on the phone and take the picture there.

If you do not need a high resolution image, try with the preview picture taking, but you should set noise reduction to high quality:

(Also for me, no need to rotate the device)

Hi, I need to take photos programatically without user interaction and save them, I lack knowledge so can you instruct me on how can I do this? AIA project explaining it would be appreciated. Also these photos need to have best quality possible. Thanks in advance.

In this part, TakePicture block should be swapped for non-interactive photo taking and saving it.

You will need a workflow something like this:

  • setup the camera and the output, and set the interval required
  • start the clock
  • when the clock fires, take the picture, and stop the clock
  • once the picture is saved, start the clock
  • repeat

sir i use this program.but it give erorr.please look at it." could you help me?sir.

Thanks! I tried to implement what you sent me.


For some reason it wont save the picture, it opens camera view but never proceeds from there, as my microcontroller waits for info back that photo is taken and saved.
image
Here is how my setup of this extension looks. What could be a problem here?
On the BT connection I am pretty sure everything is fine (tested with bt serial monitor app and previous version of this), I am most definitely missing something about the extension.

There is an issue with the companion app currently
Try this version

Remember: 2.73d1u is intended for ai2, not ai2-test and you will need the click the "Not Now" button.

Taifun

thank you

image

If you do a ReceiveText(-1) without any bytes available, the app will hang until there are bytes available.

That's why each receiveText should be guarded by an if/then bytesAvailable > 0

1 Like