Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detect object in image and change background of image

To implement an android project in which camera takes photo .

i want to change the background of the image .

what steps need to be done to detect the object in the image and crop the object to apply different background

OR

Simply change the background .

Is it require image processing .Is their any library for image processing available.

Thanks

like image 394
Mohammad Sadiq Shaikh Avatar asked Oct 22 '25 05:10

Mohammad Sadiq Shaikh


1 Answers

The best library for image processing with android (only arm support yet) is JavaCV, it's a Java interface for OpenCV which is the standard library for image processing in C++.

Here is an example of face detection in Android, with all the configuration hints for your AndroidManifest.xml.

EDIT : here is an example using contour detection.

like image 155
Julien Avatar answered Oct 23 '25 20:10

Julien



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!