cleanlab / cleanlab/cleanvision

Show difference maps for near duplicate images in report

Open
#173 0 comments 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
Python
Stars
1.2k
Forks
83
PR merge metrics
No merged PRs in 30d

Description

The diff image should look like this
![Screenshot 2023-05-10 at 9 30 05 AM](https://github.com/cleanlab/cleanvision/assets/7639432/df64d648-bc99-4fbd-b202-e5775455b111)
```
base_image_gray = cv2.cvtColor(np.array(base_image), cv2.COLOR_RGB2GRAY)
near_duplicate_img_gray = cv2.cvtColor(np.array(near_duplicate_img), cv2.COLOR_RGB2GRAY)
diff_map = cv2.absdiff(base_image_gray, near_duplicate_img_gray)
```
Also, need to keep in mind, how to show differences if there are more than 2 images

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.