{"id":19312074,"url":"https://github.com/weblineindia/aiml-pupil-detection","last_synced_at":"2025-06-13T17:33:01.967Z","repository":{"id":129984321,"uuid":"276847839","full_name":"weblineindia/AIML-Pupil-Detection","owner":"weblineindia","description":"The Pupil Detection AI ML program is used to get the co-ordinates of eyes and detect the pupil region. It only works with human face images.","archived":false,"fork":false,"pushed_at":"2023-12-27T07:55:47.000Z","size":98578,"stargazers_count":37,"open_issues_count":0,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T13:35:38.769Z","etag":null,"topics":["ai-ml","aiml","aiml-pupil-detection","artificial-intelligence","artificial-intelligence-algorithms","dlib","dlib-face-detection","dlib-face-recognition","eye-corner-points","eye-detection","eye-detection-using-opencv","face-detection","face-detection-using-opencv","houghcircles","machine-learning","opencv","opencv-library","opencv-python","pupil-detection","python"],"latest_commit_sha":null,"homepage":"https://www.weblineindia.com/communities.html","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/weblineindia.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-03T08:25:12.000Z","updated_at":"2025-04-02T08:33:24.000Z","dependencies_parsed_at":"2024-11-10T00:42:44.548Z","dependency_job_id":null,"html_url":"https://github.com/weblineindia/AIML-Pupil-Detection","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/weblineindia/AIML-Pupil-Detection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FAIML-Pupil-Detection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FAIML-Pupil-Detection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FAIML-Pupil-Detection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FAIML-Pupil-Detection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weblineindia","download_url":"https://codeload.github.com/weblineindia/AIML-Pupil-Detection/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FAIML-Pupil-Detection/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259688381,"owners_count":22896398,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-ml","aiml","aiml-pupil-detection","artificial-intelligence","artificial-intelligence-algorithms","dlib","dlib-face-detection","dlib-face-recognition","eye-corner-points","eye-detection","eye-detection-using-opencv","face-detection","face-detection-using-opencv","houghcircles","machine-learning","opencv","opencv-library","opencv-python","pupil-detection","python"],"created_at":"2024-11-10T00:32:37.248Z","updated_at":"2025-06-13T17:32:56.952Z","avatar_url":"https://github.com/weblineindia.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pupil Detection using Dlib face landmark detector\n\nThe code is used to get the co-ordinates of eyes and detect the pupil region accurately.\n\nIt works with human face images. Dlib's facial landmark detector is used for extracting the coordinates from the eye region.\nThe eye corner points are collected and it check for dark colored region between the detected eye corner points of each eye.\nIt uses OpenCV's houghcircles for detecting circle in a gray scaled image. Thus the pupil is calculated as the midpoint of the circle.\n\n\n## Table of contents\n\n- [Getting started](#getting-started)\n- [Installation](#installation)\n- [Features](#features)\n- [Usage](#usage)\n- [Results](#results)\n- [Want to Contribute?](#want-to-contribute)\n- [Need Help / Support?](#need-help)\n- [Collection of Other Components](#collection-of-components)\n- [Changelog](#changelog)\n- [Credits](#credits)\n- [License](#license)\n- [Keywords](#Keywords)\n\n## Getting started\n\nPrerequisites for running the code are:\n\n- Python = 3.5\n- python-opencv = 4.2.0\n\nWe have tested our program in above version, however you can use it in other versions as well.\n\n## Installation\n\nFrom terminal run this \n```\npip install numpy\npip install imutils\npip install scikit-image\npip install argparse\npip install opencv-python\npip install opencv-contrib-python\n```\n## dlib installation for ubuntu\n\n### Step:1\n\tpip install dlib\n\t\nIf above command doesn't work then follow below steps\n\n### Step:2 Install system dependencies\n\n    sudo apt-get install -y --fix-missing \\\n        build-essential \\\n        cmake \\\n        gfortran \\\n        git \\\n        wget \\\n        curl \\\n        graphicsmagick \\\n        libgraphicsmagick1-dev \\\n        libatlas-dev \\\n        libavcodec-dev \\\n        libavformat-dev \\\n        libgtk2.0-dev \\\n        libjpeg-dev \\\n        liblapack-dev \\\n        libswscale-dev \\\n        pkg-config \\\n        python3-dev \\\n        python3-numpy \\\n        software-properties-common \\\n        zip \\\n        \u0026\u0026 apt-get clean \u0026\u0026 rm -rf /tmp/* /var/tmp/*\n\n### Step:3 Clone dlib\n\n    git clone -b 'v19.9' --single-branch https://github.com/davisking/dlib.git\n    cd dlib\n\n### Step:4\nRun below command if system supports AVX instructions \n```\nsudo python setup.py install --yes USE_AVX_INSTRUCTIONS\n```\nOr\n```\nsudo pyhton setup.py install\n```\n\n## Features\n\n- Accurately detects the eye pupil on human face.\n- HoughCircles is used to detect circles.\n\n## Usage\n\nInside the project directory run:\n\n```\npython pupil_detection.py -i path-to-directory-of-input-images -o path-to-output-directory\n```\nYou can find sample images in image folder and result images in output folder.\n\n### Results\n\n\u003cimg src=\"output/1.jpg\" width = \"300\" height = \"280\"/\u003e \u003cimg src=\"output/2.jpg\" width = \"300\" height = \"280\"/\u003e\n\u003cimg src=\"output/3.jpg\" width = \"300\" height = \"280\"/\u003e \u003cimg src=\"output/4.jpg\" width = \"300\" height = \"280\"/\u003e\n\n## Want to Contribute?\n\n- Created something awesome, made this code better, added some functionality, or whatever (this is the hardest part).\n- [Fork it](http://help.github.com/forking/).\n- Create new branch to contribute your changes.\n- Commit all your changes to your branch.\n- Submit a [pull request](http://help.github.com/pull-requests/).\n\n-----\n\n## Need Help? \n\nWe also provide a free, basic support for all users who want to use this AI ML based pupil detection techniques for their projects. In case you want to customize this Pupil detection technique for your development needs, then feel free to contact our [AI ML developers](https://www.weblineindia.com/ai-ml-dl-development.html).\n\n-----\n\n## Collection of Components\n\nWe have built many other components and free resources for software development in various programming languages. Kindly click here to view our [Free Resources for Software Development](https://www.weblineindia.com/communities.html).\n\n------\n\n## Changelog\n\nDetailed changes for each release are documented in [CHANGELOG.md](./CHANGELOG.md).\n\n## Credits\n\nRefered dlib face detection lib [Dlib](http://dlib.net/python/index.html).\n\n## License\n\n[MIT](LICENSE)\n\n[mit]: https://github.com/miguelmota/is-valid-domain/blob/e48e90f3ecd55431bbdba950eea013c2072d2fac/LICENSE\n\n## Keywords\n\nPupil-detection, face-detection, eye-detection, opencv-image-processing, dlib, HoughCircles, artificial-intelligence, machine-learning, ai-ml\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweblineindia%2Faiml-pupil-detection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweblineindia%2Faiml-pupil-detection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweblineindia%2Faiml-pupil-detection/lists"}