Asadullah-Dal17 / iris-Segmentation-mediapipe-python

Iris tracking MediaPipe Video Tutorial Source code
Apache License 2.0
36 stars 10 forks source link

Iris Segmentation mediapipe #1

Open BhuvaneshDeveloper opened 1 year ago

BhuvaneshDeveloper commented 1 year ago

Eye opened circle will found, eyes closed circle will also found and how to over come this ,if possible how to measure the iris diameter in python?

Asadullah-Dal17 commented 1 year ago

it's due to the MediaPpipe detecting the Iris while the eyes are closed. use blinking detection to over come this issue, when eyes are close just don't draw the iris etc.

BhuvaneshDeveloper commented 1 year ago

Hi sir, Is it possible for measuring iris diameter and can I get source code for that?

Asadullah-Dal17 commented 1 year ago

https://github.com/Asadullah-Dal17/iris-Segmentation-mediapipe-python/blob/d2cd4efc63c97a4628c3406d8f5e894f83d52fd4/main.py#L32C13-L32C83 here we are calculating the radius of iris[in Pixel] basically you can use that to calculate the diameter.

BhuvaneshDeveloper commented 1 year ago

Hi sir, How to modify this code for slit lamp ,it works well on web cam

On Mon, 26 Jun 2023, 07:37 Asadullah Dal, @.***> wrote:

https://github.com/Asadullah-Dal17/iris-Segmentation-mediapipe-python/blob/d2cd4efc63c97a4628c3406d8f5e894f83d52fd4/main.py#L32C13-L32C83 here we are calculating the radius of iris[in Pixel] basically you can use that to calculate the diameter.

— Reply to this email directly, view it on GitHub https://github.com/Asadullah-Dal17/iris-Segmentation-mediapipe-python/issues/1#issuecomment-1606431401, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6TURCULZLAU7BACYWO64ODXNDVH5ANCNFSM6AAAAAAZRM42OA . You are receiving this because you authored the thread.Message ID: <Asadullah-Dal17/iris-Segmentation-mediapipe-python/issues/1/1606431401@ github.com>

Asadullah-Dal17 commented 1 year ago

I haven't used it, so I have no idea how to deal with it.

BhuvaneshDeveloper commented 1 year ago

I tried with eye blinking detection it is also same what before happened eye closed circle will detect and open circle will also detect

Asadullah-Dal17 commented 1 year ago

you can use the eyes blinking detection, to check if eyes are close, then avoid estimating the position of eyes.