Skip to content

Add GUI alignment tool#17

Open
hujunhan wants to merge 2 commits intodullage:masterfrom
hujunhan:master
Open

Add GUI alignment tool#17
hujunhan wants to merge 2 commits intodullage:masterfrom
hujunhan:master

Conversation

@hujunhan
Copy link
Copy Markdown

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

@dullage
Copy link
Copy Markdown
Owner

dullage commented Dec 31, 2022

I like this idea, great job 👍🏻. When I get some time I'll work this into the main app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants