attempt for issue #614 to extract the portion of active window that is different and combine with similar image
Summary
Trying to extract the portion of the active window that is different (i.e. greater than some tolerance) from the window retrieved, this can be used later to segment + describe this portion rather than the full thing.
reference image segments
new image segments
non-matching image section
matching image section
non-matching image section segments
matching image section segments
combined matching image section segments with non-matching image section segments
Final result
Checklist
[x] My code follows the style guidelines of OpenAdapt
[x] I have performed a self-review of my code
[x] If applicable, I have added tests to prove my fix is functional/effective
[ ] I have linted my code locally prior to submission
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation (e.g. README.md, requirements.txt)
[ ] New and existing unit tests pass locally with my changes
What kind of change does this PR introduce?
attempt for issue #614 to extract the portion of active window that is different and combine with similar image
Summary
Trying to extract the portion of the active window that is different (i.e. greater than some tolerance) from the window retrieved, this can be used later to segment + describe this portion rather than the full thing.
reference image segments![Screenshot 2024-06-29 165925](https://github.com/OpenAdaptAI/OpenAdapt/assets/60042503/37416249-b107-47b3-95f9-de8f570eff43)
new image segments![Screenshot 2024-06-29 165952](https://github.com/OpenAdaptAI/OpenAdapt/assets/60042503/32f793e9-ea25-43c6-9a88-eeaf26006d98)
non-matching image section![Screenshot 2024-06-29 170036](https://github.com/OpenAdaptAI/OpenAdapt/assets/60042503/28896c53-407f-4665-a882-1f1e70354178)
matching image section![Screenshot 2024-06-29 210741](https://github.com/OpenAdaptAI/OpenAdapt/assets/60042503/13fca3cf-6709-4bdd-b55d-9a6549607069)
non-matching image section segments![Screenshot 2024-06-29 170048](https://github.com/OpenAdaptAI/OpenAdapt/assets/60042503/0f90b082-ec04-4f56-8df8-13089a5e4e27)
matching image section segments![Screenshot 2024-06-29 210803](https://github.com/OpenAdaptAI/OpenAdapt/assets/60042503/04c4a22d-1bf3-463a-a240-73dbb417cdc0)
combined matching image section segments with non-matching image section segments
Final result
Checklist
How can your code be run and tested?
try to run
experiments/visualizing_segments.py