FaceDetector-cc


NameFaceDetector-cc JSON
Version 0.0.2 PyPI version JSON
download
home_pagehttps://github.com/Chexa12cc/FaceDetector-cc
SummarySimple python package to simply use mediapipe face detection.
upload_time2022-12-11 12:48:09
maintainerChanchal Roy
docs_urlNone
authorChanchal Roy
requires_python>=3.6
licenseMIT
keywords mediapipe opencv face detection python
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# FaceDetector-cc Module

Simple python package to simply use mediapipe face detection.


## Author Details

#### Name : [Chanchal Roy](https://github.com/Chexa12cc)
#### Email : [croy7667@gmail.com](https://mail.google.com/mail/u/0/#inbox?compose=GTvVlcSKjDXfbgxPqzlHGlKdhgKgDfbxZMfwLWHzBDlSCTsRdSrZxkGcgLHSwmlbGpKmVPcLfKxWQ)


## GitHub Project Details

#### Project : [FaceDetector-cc](https://github.com/Chexa12cc/FaceDetector-cc)


## Installation

Install FaceDetector-cc with pip

```bash
  pip install FaceDetector-cc
```


## Usage

```python
import FaceDec
import time

RED = (0, 0, 255)
YELLOW = (0, 255, 255)
timeS, timeE = 0, 0

obj = FaceDec.FaceDetector()
cam = obj.init_cam()

while cam.isOpened():
    success, frame = cam.read()

    if not success: continue

    face_lm, face_bbox = obj.detect_face(frame)
    print(face_lm, face_bbox, sep='\n', end='\n\n')

    timeE: float = time.time()
    fps = int(1 / (timeE - timeS))
    timeS = timeE
    c.putText(frame, str(f'FPS : {fps}'), (10, 30), 0, 1, YELLOW, 2)

    c.imshow('Face Detection : Chanchal Roy', frame)

    if c.waitKey(1) & 0xff == ord('q'): break

cam.release()
c.destroyAllWindows()
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Chexa12cc/FaceDetector-cc",
    "name": "FaceDetector-cc",
    "maintainer": "Chanchal Roy",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "croy7667@gmail.com",
    "keywords": "Mediapipe,Opencv,Face Detection,Python",
    "author": "Chanchal Roy",
    "author_email": "croy7667@gmail.com",
    "download_url": "https://pypi.org/project/FaceDetector-cc/",
    "platform": null,
    "description": "\r\n# FaceDetector-cc Module\r\n\r\nSimple python package to simply use mediapipe face detection.\r\n\r\n\r\n## Author Details\r\n\r\n#### Name : [Chanchal Roy](https://github.com/Chexa12cc)\r\n#### Email : [croy7667@gmail.com](https://mail.google.com/mail/u/0/#inbox?compose=GTvVlcSKjDXfbgxPqzlHGlKdhgKgDfbxZMfwLWHzBDlSCTsRdSrZxkGcgLHSwmlbGpKmVPcLfKxWQ)\r\n\r\n\r\n## GitHub Project Details\r\n\r\n#### Project : [FaceDetector-cc](https://github.com/Chexa12cc/FaceDetector-cc)\r\n\r\n\r\n## Installation\r\n\r\nInstall FaceDetector-cc with pip\r\n\r\n```bash\r\n  pip install FaceDetector-cc\r\n```\r\n\r\n\r\n## Usage\r\n\r\n```python\r\nimport FaceDec\r\nimport time\r\n\r\nRED = (0, 0, 255)\r\nYELLOW = (0, 255, 255)\r\ntimeS, timeE = 0, 0\r\n\r\nobj = FaceDec.FaceDetector()\r\ncam = obj.init_cam()\r\n\r\nwhile cam.isOpened():\r\n    success, frame = cam.read()\r\n\r\n    if not success: continue\r\n\r\n    face_lm, face_bbox = obj.detect_face(frame)\r\n    print(face_lm, face_bbox, sep='\\n', end='\\n\\n')\r\n\r\n    timeE: float = time.time()\r\n    fps = int(1 / (timeE - timeS))\r\n    timeS = timeE\r\n    c.putText(frame, str(f'FPS : {fps}'), (10, 30), 0, 1, YELLOW, 2)\r\n\r\n    c.imshow('Face Detection : Chanchal Roy', frame)\r\n\r\n    if c.waitKey(1) & 0xff == ord('q'): break\r\n\r\ncam.release()\r\nc.destroyAllWindows()\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Simple python package to simply use mediapipe face detection.",
    "version": "0.0.2",
    "split_keywords": [
        "mediapipe",
        "opencv",
        "face detection",
        "python"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "eab8af8ef827d64087249fbb95ebf56e",
                "sha256": "b84511c69ae7884eeb3d24dd7547468f1e2e52a1476a627eac7c99ea498033f9"
            },
            "downloads": -1,
            "filename": "FaceDetector_cc-0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "eab8af8ef827d64087249fbb95ebf56e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 4069,
            "upload_time": "2022-12-11T12:48:09",
            "upload_time_iso_8601": "2022-12-11T12:48:09.047136Z",
            "url": "https://files.pythonhosted.org/packages/3b/fa/7115db21cf8630045594aabac76dd4e82ca9c80ff482b36ac0611fb648fc/FaceDetector_cc-0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-11 12:48:09",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "Chexa12cc",
    "github_project": "FaceDetector-cc",
    "lcname": "facedetector-cc"
}
        
Elapsed time: 0.01633s