Issue
Since i'm not much into image processing in PHP, however being familiar about OCR & OMR, i'm having a unique requirement. Here's the Scenario:
- Image 1: A garden
- Image 2: Same Garden with a person standing
Required Output: Separate out the person standing
Any technical pointers towards the topic will be much appreciated.
Thanks.
Solution
You can use Imagick Compare function .. this can help you identify the slightest difference between images
compare a.png a1.png diff.png
Compare

Result

Run
convert diff.png -matte ( +clone -fuzz 5% -transparent #f3303e ) -compose DstOut -composite red-channel.png

Answered By - Baba Answer Checked By - Dawn Plyler (sql.easybugfix Volunteer)
Post a Comment
Post a Comment