Sample Android Code for moving an image behind a selection box - android

I am looking for a sample code/app that can take a picture with the camera and then have the ability to crop it, specifically using the method of moving/zooming the image behind a selector box like the current google photos editor does.
bonus points if you can find something for xamarin :)
i found this, but i am looking for a more complete example.

Related

how to blur the image in selected area in android?

Hi.
I am trying to implement a feature in the app that blurs some part of an image based on users (selection/touch) the selected area. I have implemented the code for whole image. But I am unable to find any example for the specified area of an image. So, please help me which type of example will use.
Just search before posting here :
Use this to blur your photo :
https://futurestud.io/blog/how-to-blur-images-efficiently-with-androids-renderscript
And use this to select the area you want
http://code.tutsplus.com/tutorials/capture-and-crop-an-image-with-the-device-camera--mobile-11458
Use this to blur image sample example:
http://javatechig.com/android/how-to-create-bitmap-blur-effect-in-android-using-renderscript
I found it by the below link:
http://trickyandroid.com/advanced-blurring-techniques/
Now i am going to develop this link to drag and drop the selected blur area. But i am not getting to drop this blur in other area. please help for this.

Add to Camera preview a frame showing position in Android

I need to add to user interface in Android application using Camera API a frame showing ID card position with specific dimension on the screen, when the user is taking a picture.
like this:
Any suggestion?
Thank you.
You will have to make your own camera and process each frame to find and highlight edges.
It's not an easy task :)
https://www.tensorflow.org/ or OpenCV might be of interest to you.
I think you cant use android API (Android.Camera) for doing that. You can use the OpenCV to do anything in your application.

Could anyone tell the skill name is what?

I want to realise and implement a function. But I do not know what the skill name is what.
I reference the Gallery APP in android I found that Gallery have a function is when user browse the picture, the picture will display and dismiss automatically when it reach screen edge.
Just like the picture I draw, picture will show when it reach the screen edge.
It's called Horizontal ScrollView.I also reecomend this library to you: https://github.com/lucasr/twoway-view Have a look here too: https://www.airpair.com/android/horizontal-image-galleries-android-studio
There is a library on github may be also helpful: AndroidImageSlider

Select photo from camera and show crop option with fixed size android

my requirement is to crop image with fixed size in android.. I am getting image from gallery or camera and now want to show fixed size of crop option on that image so that user just drag the rectangle box and set anywhere on the image and save.
Please google your question before asking them on StackOverflow...
There are plenty of libraries which are doing what you want. I use this one which is stable, clear and easy to use but you'll find plenty of others just by looking on Github with a search like this.
For the fixed size, there is maybe an option directly implemented in the API of the library I proposed you (never had this requirement), but if not, you just have to change the draw method of the transparent rectangle.

Capture a certain part on a full screen camera

Lets say this picture below is a full screen custom camera, how could I capture a square photo from the inside of that red square?
I chose this approach on custom camera to avoid THIS kind of problem which results to a squashed preview for square camera. After the process the output should be like this :
I just want to try the solution that Instagram used to prevent that squashed-image-from-square-camera issue, I read it from the accepted answer of #xramos from THIS LINK also.
Here's what he said :
Please help me fellow prgrammers :) Thank you and have a good day :D

Categories

Resources