Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Thanks for the work! I am working on a similar project for myself, your code is handy, but manual alignment can be tedious.
I wrote a Python script that utilize OpenCV GUI module that can capture mouse click event and help users align the eyes easily.
The script assumes users has already run the main.py and only require the input directory
Then the image that not aligned (that
lx
is null) would be read by OpenCV and opened in a window, user just need to click the left eye and right eye in order.The new alignment file would replace the original one and the original one would be backup to .eyelign.bak
Hope this can help!
![Xnip2022-12-29_15-53-27](https://user-images.githubusercontent.com/28731294/210022104-24407528-ba9c-4932-a4f9-d6a74ffe696a.jpg)