{"id":21894899,"url":"https://github.com/rajputrockstar/kazier","last_synced_at":"2026-01-17T15:31:06.955Z","repository":{"id":251965381,"uuid":"835564511","full_name":"RAJPUTRoCkStAr/Kazier","owner":"RAJPUTRoCkStAr","description":"This is Modules aims to help you with your opencv Project to make it easier for your to focus on Project ","archived":false,"fork":false,"pushed_at":"2024-08-06T19:07:00.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-09T13:22:05.782Z","etag":null,"topics":["ai","computervision","mediapipe","opencv","opencv-python","pypi","pypi-package","python","pythonprojects"],"latest_commit_sha":null,"homepage":"","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/RAJPUTRoCkStAr.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}},"created_at":"2024-07-30T05:16:44.000Z","updated_at":"2024-08-06T19:07:04.000Z","dependencies_parsed_at":"2024-08-06T22:26:13.688Z","dependency_job_id":null,"html_url":"https://github.com/RAJPUTRoCkStAr/Kazier","commit_stats":null,"previous_names":["rajputrockstar/kazier"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RAJPUTRoCkStAr%2FKazier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RAJPUTRoCkStAr%2FKazier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RAJPUTRoCkStAr%2FKazier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RAJPUTRoCkStAr%2FKazier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RAJPUTRoCkStAr","download_url":"https://codeload.github.com/RAJPUTRoCkStAr/Kazier/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246659364,"owners_count":20813324,"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","computervision","mediapipe","opencv","opencv-python","pypi","pypi-package","python","pythonprojects"],"created_at":"2024-11-28T13:29:24.048Z","updated_at":"2025-04-01T14:44:18.726Z","avatar_url":"https://github.com/RAJPUTRoCkStAr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kaizer Package\n\nKaizer is a comprehensive package for face detection, hand tracking, pose estimation, and more using MediaPipe. It is designed to simplify your project development.\n\n## Features\n- **Face Detection**: Efficient and accurate face detection.\n- **Hand Tracking**: Real-time hand tracking and gesture recognition.\n- **Pose Estimation**: Full-body pose estimation.\n- **FPS Calculation**: Measure frames per second for performance evaluation.\n- **Utilities**: Additional tools to streamline your project work.\n\n## Installation\n\nYou can install the package using pip:\n\n```bash\npip install kaizer\n```\n\n## Usage\n### Using Face Detection\n```bash\nfrom KAZIER import FaceDetector \nimport cv2\n\ncap = cv2.VideoCapture(0)\ndetector = FaceDetector()\nwhile True:\n    success, img = cap.read()\n    if not success:\n        break\n    img, bboxs = detector.find_faces(img)\n    if bboxs:\n        for _, bbox, _ in bboxs:\n            img = detector.imp_draw(img, bbox)\n        print(\"Bounding boxes:\", bboxs)\n    img, faces = detector.find_face_mesh(img)\n    if faces:\n        print(f\"Number of faces detected: {len(faces)}\")\n        p1 = faces[0][33]  # Example: left eye landmark\n        p2 = faces[0][263] # Example: right eye landmark\n        length, info, img = detector.findDistance(p1, p2, img)\n        print(f\"Distance between points: {length}, Info: {info}\")\n    cv2.imshow('Image', img)\n    if cv2.waitKey(1) \u0026 0xFF == ord('q'):\n        break\ncap.release()\ncv2.destroyAllWindows()\n```\n\n\n### Using fps\n```bash\nfrom KAZIER import FPS\nimport cv2\n\nfps_counter = FPS()\ncap = cv2.VideoCapture(0)\nwhile True:\n    ret, frame = cap.read()\n    if not ret:\n        break\n    fps = fps_counter.showfps(frame, writetext=True, text_pos=(10, 50),\n                            fthickness=2,tcolor=(0,255,250),\n                            Fstyle=cv2.FONT_HERSHEY_DUPLEX,fscale=2,)\n    cv2.imshow('Frame', frame)\n    if cv2.waitKey(1) \u0026 0xFF == ord('q'):\n        break\ncap.release()\ncv2.destroyAllWindows()\n```\n\n### Using HAND DETECTION\n```bash\nfrom KAZIER import HandStar\nimport cv2\n\ncap = cv2.VideoCapture(0)\ndetector = HandStar(maxHands=2)\nwhile True:\n    success, img = cap.read()\n    if not success:\n        break\n    img = detector.detect_hands(img)\n    lmList = detector.get_hand_positions(img)\n    if len(lmList) != 0:\n        fingersList = detector.get_fingers_status()\n        for i, fingers in enumerate(fingersList):\n            length, img, lineInfo = detector.calculate_distance(4, 8, img, handNo=i)\n    cv2.imshow('Image', img)\n    if cv2.waitKey(1) == ord('q'):\n        break\ncap.release()\ncv2.destroyAllWindows()\n```\n\n### Using Pose Module\n```bash\nfrom KAZIER import PoseDetector\nimport cv2\n\ncap = cv2.VideoCapture(0)\ndetector = PoseDetector()\nwhile True:\n    success, img = cap.read()\n    img = cv2.resize(img, (680, 680))\n    img = detector.findPose(img)\n    lmList = detector.findPosition(img)\n    if lmList:\n        cv2.circle(img, (lmList[14][1], lmList[14][2]), 10, (250, 0, 0), cv2.FILLED)\n        length, img, info = detector.findDistance(lmList[11][1:3], lmList[15][1:3], img=img, color=(255, 0, 0), scale=10)\n    cv2.imshow(\"image\", img)\n    if cv2.waitKey(1) == ord('q'):\n        break\n```\n\n### Using Utils\n```bash\nfrom KAZIER import Helper\nimport cv2\n\n# Initialize the Helper class\nutils = Helper()\n\n# Download the image from URL\nimage_url = 'https://image.shutterstock.com/image-vector/dotted-spiral-vortex-royaltyfree-images-600w-2227567913.jpg'\nimage = utils.download_image_from_url(image_url)\n\n# Make the background black\nblack_background_image = utils.make_background_black(image)\ncv2.imshow('Black Background Image', black_background_image)\n\n# Rotate the image by 45 degrees\nrotated_image = utils.rotate_image(image, 45)\ncv2.imshow('Rotated Image', rotated_image)\n\n# Read another image from local filesystem\nimg2 = cv2.imread('med/ig.jpg')\n\n# Stack images horizontally and vertically\nhstacked_image = utils.hstack_images(image, img2)\ncv2.imshow('Horizontally Stacked Image', hstacked_image)\n\nvstacked_image = utils.vstack_images(image, img2)\ncv2.imshow('Vertically Stacked Image', vstacked_image)\n\n# Detect the color green in the image\ndetected_color = utils.detect_color(image, 'green')\ncv2.imshow('Detected Color Image', detected_color)\n\n# Detect corners in the image\nimage_with_corners = utils.detect_corners(image)\ncv2.imshow('Image with Corners', image_with_corners)\n\n# Add text to the image\nimage_with_text_left = utils.add_text(image, 'Hello World', (50, 50), font_name='hershey_triplex', color_name='blue', align='left')\ncv2.imshow('Image with Text', image_with_text_left)\n\n# Wait for a key press and then close all OpenCV windows\ncv2.waitKey(0)\ncv2.destroyAllWindows()\n\n```\n## License\n- This project is licensed under the MIT License. See the LICENSE file for details.\n\n## Contributing\n- Contributions are welcome! Please open an issue or submit a pull request.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajputrockstar%2Fkazier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frajputrockstar%2Fkazier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajputrockstar%2Fkazier/lists"}