{"id":24098481,"url":"https://github.com/matlab-deep-learning/mtcnn-face-detection","last_synced_at":"2025-05-07T19:25:11.211Z","repository":{"id":48991196,"uuid":"233823445","full_name":"matlab-deep-learning/mtcnn-face-detection","owner":"matlab-deep-learning","description":"Face detection and alignment using deep learning","archived":false,"fork":false,"pushed_at":"2021-07-01T20:04:09.000Z","size":4767,"stargazers_count":25,"open_issues_count":2,"forks_count":18,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-14T21:51:24.299Z","etag":null,"topics":["computer-vision","deep-learning","face-detection","matlab","mtcnn"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matlab-deep-learning.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-14T11:12:04.000Z","updated_at":"2024-12-16T17:06:51.000Z","dependencies_parsed_at":"2022-09-05T07:41:46.385Z","dependency_job_id":null,"html_url":"https://github.com/matlab-deep-learning/mtcnn-face-detection","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matlab-deep-learning%2Fmtcnn-face-detection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matlab-deep-learning%2Fmtcnn-face-detection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matlab-deep-learning%2Fmtcnn-face-detection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matlab-deep-learning%2Fmtcnn-face-detection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matlab-deep-learning","download_url":"https://codeload.github.com/matlab-deep-learning/mtcnn-face-detection/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252942356,"owners_count":21829055,"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":["computer-vision","deep-learning","face-detection","matlab","mtcnn"],"created_at":"2025-01-10T14:46:12.836Z","updated_at":"2025-05-07T19:25:11.191Z","avatar_url":"https://github.com/matlab-deep-learning.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Face Detection and Alignment MTCNN\n\n![circleci](https://circleci.com/gh/matlab-deep-learning/mtcnn-face-detection.svg?style=svg)\n[![codecov](https://codecov.io/gh/matlab-deep-learning/mtcnn-face-detection/branch/master/graph/badge.svg)](https://codecov.io/gh/matlab-deep-learning/mtcnn-face-detection)\n\n## [__Download the toolbox here__](https://github.com/matlab-deep-learning/mtcnn-face-detection/releases/latest/download/MTCNN-Face-Detection.mltbx)\n\nThis repository implements a deep-learning based face detection and facial landmark localization model using [multi-task cascaded convolutional neural networks (MTCNNs)](https://kpzhang93.github.io/MTCNN_face_detection_alignment/). \n\n- [📦 Installation](#installation)\n- [🏁 Getting Started](#getting-started)\n- [🔎😄 Usage](#usage)\n- [❓ About](#about)\n- [💬 Contribute](#contribute)\n\n_Note: This code supports inference using a pretrained model. Training from scratch is not supported. Weights are imported from the [original MTCNN model](https://kpzhang93.github.io/MTCNN_face_detection_alignment/) trained in Caffe._\n\n## Installation\n\n- Face Detection and Alignment MTCNN requires the following products:\n  - MATLAB R2019a or later (_now works in R2019a and later!_)\n  - Deep Learning Toolbox\n  - Computer Vision Toolbox\n  - Image Processing Toolbox\n- Download the [latest release](https://github.com/matlab-deep-learning/mtcnn-face-detection/releases/) of the Face Detection and Aligment MTCNN. To install, open the .mltbx file in MATLAB.\n\n## Getting Started\n\nTo get started using the pretrained face detector, import an image and use the `mtcnn.detectFaces` function:\n\n```matlab\nim = imread(\"visionteam.jpg\");\n[bboxes, scores, landmarks] = mtcnn.detectFaces(im);\n```\n\nThis returns the bounding boxes, probabilities, and five-point facial landmarks for each face detected in the image.\n\n![](doc/output1.jpg)\n\n## Usage\n\nThe `detectFaces` function supports various optional arguments. For more details, refer to the help documentation for this function by typing `help mtcnn.detectFaces` at the command window.\n\nTo get the best speed performance from the detector, first create a `mtcnn.Detector` object, then call its `detect` method on your image. Doing so ensures that the pretrained weights and options are loaded before calling detect:\n\n```matlab\ndetector = mtcnn.Detector();\n[bboxes, scores, landmarks] = detector.detect(im);\n```\n\nThe detector object accepts the same optional arguments as the `mtcnn.detectFaces` function.\n\nRefer to the MATLAB toolbox documentation or [click here](docs/getting_started.md) for a complete example.\n\n## About\n\nThe MTCNN face detector is fast and accurate. Evaluation on the [WIDER face benchmark](http://mmlab.ie.cuhk.edu.hk/projects/WIDERFace/WiderFace_Results.html) shows significant performance gains over non-deep learning face detection methods. Prediction speed depends on the image, dimensions, pyramid scales, and hardware (i.e. CPU or GPU). On a typical CPU, for VGA resolution images, a frame rates ~10 fps should be achievable.\n\nIn comparisson to MATLAB's built in `vision.CascadeObjectDetector` the MTCNN detector is more robust to facial pose as demonstrated in the image below.\n\n![](doc/output2.jpg)\n\n_Face detection from MTCNN in yellow, detections from the built in vision.CascadeObjectDetector in teal._\n\n\n## Contribute\n\nPlease file any bug reports or feature requests as [GitHub issues](https://github.com/matlab-deep-learning/mtcnn-face-detection/issues). In particular if you'd be interested in training your own MTCNN network comment on the following issue: [Support training MTCNN](https://github.com/matlab-deep-learning/mtcnn-face-detection/issues/1)\n\n_Copyright 2019 The MathWorks, Inc._\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatlab-deep-learning%2Fmtcnn-face-detection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatlab-deep-learning%2Fmtcnn-face-detection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatlab-deep-learning%2Fmtcnn-face-detection/lists"}