{"id":22208985,"url":"https://github.com/heyfoz/nodejs-mediapipe","last_synced_at":"2026-03-10T04:31:44.445Z","repository":{"id":251864946,"uuid":"838639047","full_name":"heyfoz/nodejs-mediapipe","owner":"heyfoz","description":"This project integrates MediaPipe Solutions with Node.js and Express for real-time computer vision tasks. It showcases examples of image segmentation, hand and face detection, and pose detection, with a combined example for all three types of landmark detection.","archived":false,"fork":false,"pushed_at":"2024-12-03T05:57:39.000Z","size":37980,"stargazers_count":13,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-13T04:32:01.508Z","etag":null,"topics":["express","image-segmentation","javascript","js","mediapipe","mediapipe-face-detection","mediapipe-facemesh","mediapipe-hands","mediapipe-holistic","mediapipe-pose","node-js","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heyfoz.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-08-06T04:09:39.000Z","updated_at":"2025-07-11T21:24:37.000Z","dependencies_parsed_at":"2024-09-12T00:13:07.847Z","dependency_job_id":"5cac82d0-a099-488c-90fd-b22eec2c80ea","html_url":"https://github.com/heyfoz/nodejs-mediapipe","commit_stats":null,"previous_names":["ffm5113/mediapipe-node","heyfoz/nodejs-mediapipe"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/heyfoz/nodejs-mediapipe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heyfoz%2Fnodejs-mediapipe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heyfoz%2Fnodejs-mediapipe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heyfoz%2Fnodejs-mediapipe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heyfoz%2Fnodejs-mediapipe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heyfoz","download_url":"https://codeload.github.com/heyfoz/nodejs-mediapipe/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heyfoz%2Fnodejs-mediapipe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30324405,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T01:36:58.598Z","status":"online","status_checked_at":"2026-03-10T02:00:06.579Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["express","image-segmentation","javascript","js","mediapipe","mediapipe-face-detection","mediapipe-facemesh","mediapipe-hands","mediapipe-holistic","mediapipe-pose","node-js","nodejs"],"created_at":"2024-12-02T19:28:09.621Z","updated_at":"2026-03-10T04:31:44.421Z","avatar_url":"https://github.com/heyfoz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nodejs-mediapipe\n\n\u003cimg src=\"Hand-Face-Example.jpg\" alt=\"Hand-Face Example\" /\u003e\n\nThis project integrates MediaPipe Solutions with Node.js and Express for real-time computer vision tasks. It showcases examples of image segmentation, hand and face detection, and pose detection, with a combined example for all three types of landmark detection. \n\nUtilizing MediaPipe's client-side JavaScript APIs, the project performs video processing directly in the browser, minimizing server-side computation. Additionally, it features logging for hand and face gestures, tracking interactions both in the console and a text file in the server logs directory.\n\n## Project Structure\n\n```plaintext\nmediapipe-node/\n├── server.js\n├── package.json\n├── package-lock.json\n├── public/\n│   ├── css/\n│   │   ├── full_detection_styles.css\n│   │   ├── hand_face_detection_styles.css\n│   │   ├── image_segmentation_styles.css\n│   │   ├── main.css\n│   │   └── pose_styles.css\n│   ├── images/\n│   │   ├── face_landmark.png\n│   │   ├── face_landmarker_keypoints.png\n│   │   ├── hand-landmarks.png\n│   │   ├── hand_landmark.png\n│   │   ├── pose_detector.png\n│   │   └── pose_landmarks_index.png\n│   ├── js/\n│   │   ├── full_detection.js\n│   │   ├── hand_face_detection.js\n│   │   ├── image_segmentation.js\n│   │   └── pose_detection.js\n│   └── json/\n│       ├── blendshape_map.json\n│       ├── hand_map.json\n│       ├── gesture_map.json\n│       └── pose_map.json\n├── models/\n│   ├── hand_landmarker.task\n│   ├── face_landmarker.task\n│   ├── pose_landmarker_full.task\n│   └── selfie_multiclass_256x256.tflite\n└── templates/\n    ├── full_detection.html\n    ├── hand_face_detection.html\n    ├── image_segmentation.html\n    ├── index.html\n    └── pose_detection.html\n```\n\n## Setup Instructions\n\n1. **Install Node.js**\n\n   Follow the instructions on the [Node.js official website](https://nodejs.org/) to download and install Node.js. This will also install npm (Node Package Manager), which is required to manage project dependencies.\n\n2. **Clone the Repository**\n\n    ```sh\n    git clone https://github.com/heyfoz/nodejs-mediapipe.git\n    cd mediapipe-node\n    ```\n\n3. **Install Dependencies**\n\n    Install the necessary Node.js packages:\n\n    ```sh\n    npm install express\n    npm install express-validator\n    ```\n\n4. **Run the Application**\n\n    Start the server by running:\n\n    ```sh\n    node server.js\n    ```\n\n5. **Access the Application**\n\n    Open your browser and navigate to `http://localhost:3000` to view the homepage.\n\n## Project License\n\nThis project is licensed under the Apache 2.0 License. See the [LICENSE](LICENSE) file for details.\n\n## MediaPipe License\n\nThe MediaPipe models and code included in this project are licensed under the Apache License, Version 2.0. See the [LICENSE_MediaPipe](LICENSE_MediaPipe) file for details. \n\n## Documentation\n\n**Express:**\n- [Express Official Site](https://expressjs.com)\n\n**MediaPipe Documentation:**\n\n- **Hand Landmark Documentation:**\n  - [Hand Landmark Documentation](https://ai.google.dev/edge/mediapipe/solutions/vision/hand_landmarker)\n  - [Hand Landmark Code Example](https://codepen.io/mediapipe-preview/pen/gOKBGPN)\n  - [Hands Lite/Full Model Card](https://storage.googleapis.com/mediapipe-assets/Model%20Card%20Hand%20Tracking%20(Lite_Full)%20with%20Fairness%20Oct%202021.pdf)\n\n- **Face Landmark Documentation:**\n  - [Face Landmark Documentation](https://ai.google.dev/edge/mediapipe/solutions/vision/face_landmarker)\n  - [Face Landmark Code Example](https://codepen.io/mediapipe-preview/pen/OJBVQJm)\n  - [Blendshape V2 Model Card (November 11, 2022)](https://storage.googleapis.com/mediapipe-assets/Model%20Card%20Blendshape%20V2.pdf)\n  - [BlazeFace Short Range Model Card (June 9, 2021)](https://storage.googleapis.com/mediapipe-assets/MediaPipe%20BlazeFace%20Model%20Card%20(Short%20Range).pdf)\n  - [Face Mesh V2 Model Card](https://storage.googleapis.com/mediapipe-assets/Model%20Card%20MediaPipe%20Face%20Mesh%20V2.pdf)\n\n- **Pose Landmarker Documentation:**\n  - [Pose Landmarker Documentation](https://ai.google.dev/edge/mediapipe/solutions/vision/pose_landmarker)\n  - [Pose Landmarker Code Example](https://codepen.io/mediapipe-preview/pen/abRLMxN)\n  - [BlazePose GHUM 3D Landmarker Model Card (April 16, 2021)](https://storage.googleapis.com/mediapipe-assets/Model%20Card%20BlazePose%20GHUM%203D.pdf)\n\n- **Image Segmentation Documentation:**\n  - [Image Segmentation Documentation](https://ai.google.dev/edge/mediapipe/solutions/vision/image_segmenter)\n  - [Image Segmentation Code Example](https://codepen.io/mediapipe-preview/pen/xxJNjbN)\n  - [Multiclass Segmentation Model Card (May 10, 2023)](https://storage.googleapis.com/mediapipe-assets/Model%20Card%20Multiclass%20Segmentation.pdf)\n\n**Input Shapes:**\n- FaceDetector: 192 x 192\n- FaceMesh-V2: 256 x 256\n- Blendshape: 1 x 146 x 2\n- HandLandmarker (Full): 192 x 192, 224 x 224\n- Pose detector (Full): 224 x 224 x 3\n- Pose landmarker (Full): 256 x 256 x 3\n- SelfieMulticlass: 256 x 256\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheyfoz%2Fnodejs-mediapipe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheyfoz%2Fnodejs-mediapipe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheyfoz%2Fnodejs-mediapipe/lists"}