Pro camera: The pro custom camera‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Pro camera is made with the latest Android camera 2 API which gives access to more features and stability than the camera 1 API. This extension was written long ago :sweat_smile:

Features:

  • Camera Filters
  • Noise reduction mode
  • Enhance mode for camera output
  • Camera focus lock/unlock
  • Manual focus distance (which currently works with just a few devices such as Samsung)
  • Other things which the camera have

Documentation

Explaining how each block work and their features

Fired when camera focus is locked successfully.


8d7b7c11d4e78cbefb3c987c61c9a3debf07910f

Fired when the user zooms by pinch

ZoomByPinch

zoomTypeIncrease: Whether the zoom has been increased


8a1ea455b75143eb242d75dc0fec406593fe7135
Fired when camera preview is touched


d1762b77d0807c66c68414fb354e889ea3482340_2_517x126

Fired when camera focus is unlocked successfully


:information_source: If the events FocusLocked or FocusUnlocked is not fired then the phone dosent supports locking camera focus in API.


b58fc93f656e0183bb70385ab974fa81a25b8956_2_517x139

Fired when camera layout or the camera preview is initialized


3db428f80b36dc4aed25e683786884c1049b3b53_2_517x115

Fired when camera and camera’s settings are refreshed is live state


6b9dba4028e149096a8c23b46c909491d19529bc_2_517x135
Fired when the photo is saved successfully into the internal storage


b28c75e1412f80cfa160f7f010830d8bf8daa912_2_517x124

Fired when zoom of camera is changed


c0e1a15621e1d0e2c03758a64841d7a3c2e22fe9_2_517x196

Initialize the camera view to the component (arrangement) given.

Initialize

component: Arrangement to initialize the camera
cameraType: Camera type, front-camera or rear-camera


focus

Focus on the given distance unit measured in diopters. Just google it.

:warning: This feature may not work on some devices, no way to check if supported and may throw error. Learn more: StackOverFlow

Focus

distance: Distance needs to be focused in diopeters


0025685f156b90e008127cd6d1dd90527fc794de_2_517x61

Check if the extension is supported on the device

Return Type: True / False | boolean


d0e3ede111197523bb2022d9d965c7c286d611f7_2_517x79

Locks the camera focus the currently focusing object

Fires event: when FocusLocked


d5eaca5d28ebbf1227a54899e32230ab4c54e09c_2_517x73

Unlocks the camera focus from the object

Fires event: when FocusUnlocked


9ac150157e2eb2855dedff5ebd5098af90ee5331_2_517x69

Refreshes the camera along with all settings applied

Fires event: when RefreshedCamera


34c93a8afb881584017e13e6784e69733ae7d3b9_2_517x75

Destroys the camera layout and resets the camera


2796966579a42502a11132cd657f11c502ac74db_2_517x63

Takes the picture and saves in the path given

Fires event: when SavedPhoto


06b21d602993de5343846a2a960958d2fe83712d_2_517x72

Saves the preview picture

:white_check_mark: Stable and recommended way to save pictures.

Fires event: when SavedPhoto


1ff12022d9421666563b1997b2090d8f04334894
Adds the given arrangement inside the camera view


07238f08cc1c598721ca169e6775b53c7d81fc08

Sets the zoom of the camera preview

Fires event: when ZoomChanged


4e2f1b4ebd0d6f113470eb5a5fd704618fc09552

Check if the camera view is active (visible)

Return Type: True / False | boolean


Work: Sets the camera filter, input values in numbers


315699f471039f05bcb9f7bf45d029e2e0b6a17a_2_517x61

Returns: Current camera filter in numbers


bc678277d8ddac8ceede20670727e92132fa0e17_2_517x66

Returns: Default camera filter value 0


87c32eae4526fa1abc055a661785dec99debd058_2_517x66

Returns: Mono camera filter value 1

ab8c5ee31c3b49088e9ab0eb11aabc10075e6fa3_2_517x61

Returns: Negative camera filter value 2


4dd382b052d1862654f1dbcefa296bad1476ec59_2_517x64

Returns: Solarize camera filter value 3


79abe9fc770fa3412b522d9c7870a7967a196da7_2_517x67

Returns: Sepia camera filter value 4


e751db4e6440a741cbe7e077d7771d1319bae7e7_2_517x63

Returns: Posterize camera filter value 5


abf3ab6c1d20119301986ee364dad38c036edbd1_2_517x63
Returns: Whiteboard camera filter value 6


8c9c191b3d07276e3734a2b76ac85676b4beec27_2_517x60

Returns: Blackboard camera filter value 7


f8d72294a7fadf4daf0ec2c6423c0319a2c339d4_2_517x69

Returns: Aqua camera filter value 8


Work: Sets the camera ehnhance mode, input values in True / False | boolean


71a6caa7a0ce1c8446405e8405c193892c15fc1d_2_517x70

Returns: Current value of enhance mode


Work: Sets the camera flash mode, input values in True / False | boolean


191918a431e6725c7e56e021cf0bb2006dc25fe5

Returns: Current value of flash mode


Work: Sets the camera visible / invisible, input values in True / False | boolean


923c8335309905889a2d5386a6888d941a9bb957

Returns: Current value of is visible


Work: Sets the camera output image, input values in Text


Returns: Current value of output image


Work: Sets the camera noise reduction mode, input values in numbers



Returns: Current value of noise reduction mode


Returns: Default noise reduction mode value 0


Returns: Fast noise reduction mode value 1


Returns: Hign quality noise reduction mode value 2


Returns: Minimal noise reduction mode value 3


Returns: No shutter lag noise reduction mode value 4


Returns: Camera type front value 0


Returns: Camera type rear value 1


Returns: Camera’s max zoom


Work: Enables or disables the feature to pinch to zoom, input values in True / False | boolean

081a4bf247f1dd48068c6534d410600182477a9b (1)

Returns: Current value of pinch to zoom


d3e2db440b629ba3089e4202ad46ff4255703255 (1)

Returns: Current value of camera zoom


Work: Sets the focus mode type, input value in numbers


b3a60925de2dbe4b993bacae127e7937f050a46a

Returns: FaceFocusMode simple value 0


9c73850b5c3c34ec58e21a4838c34b3bf0db3c2a

Returns: FaceFocusMode high value 2


Note: The extension was updated before posted here.

Pro camera: 2.0 changed

SharedScreenshot

Fired when the user zooms by pinch

ZoomByPinch

zoomTypeIncrease: Whether the zoom has been increased


SharedScreenshot4
Fired when camera preview is touched

Work: Enables or disables the feature to pinch to zoom, input values in True / False | boolean

SharedScreenshot3

Returns: Current value of pinch to zoom


SharedScreenshot3
Adds the given arrangement inside the camera view


SharedScreenshot3

Check if the camera view is active (visible)


Work: Sets the focus mode type, input value in numbers


SharedScreenshot

Returns: FaceFocusMode simple value 0


SharedScreenshot

Returns: FaceFocusMode high value 2


zoom

Returns: Current value of camera zoom


Internal changes


  • Fixed minor issues & done modifications
  • Fixed issue where extension failed to take the photo.

Thanks to all the beta testers :heartpulse:

Output


Note that the camera layout size of more than 70% may look stretched.

Download

Open source

Feel free to contribute to the source!


Any suggestions or improvements are appreciated! Lemme know if you face any issue!

42 Likes

Such Nice extension with so many functions.
@Xoma Thanks for the extension.

Great extension and work. Keep your work always like this :+1::+1:

i love it :star_struck: :star_struck:

Really I can’t express you, how i am feeling now :heart:

Thank you @Sumit1334 , @sneha_sharma, @ramrajput200021, @luv.ak.tech, and @Raja_HarshVardhanSolanki!

2 Likes

Wow… Another Wounderful extension from @Xoma :clap: :clap: :clap: :clap: :clap:

But the mobile phone should have high quality pixel then only even upon zoom image wont get broken.

1 Like

I have updated the aix, changed the icon file to a local file. So the size is much larger.

4 Likes

Yes, the extension does Digital zoom. The quality will decrease. You can apply noise reduction and enhance mode to make it better.

1 Like

Amazing extension

1 Like

nice extension :100: :100: :100:

1 Like

Great :heavy_check_mark: :100:

1 Like

Here are the example blocks, Initializing and taking a picture.

3 Likes

Amazing Extension

1 Like

Best Extension @Xoma

1 Like

The best thing about your extensions is that they are free. Thanks

4 Likes

Oh! very good camera extension. I very like it. zoom, filters… very good :grinning:

1 Like

Hii Please Add Video Recoding System On This Extension

1 Like

Great extension

1 Like

what is the difference of save pic and save preview pic ?