2022-08-12T04:36:28,640 Created temporary directory: /tmp/pip-ephem-wheel-cache-92svzqwa 2022-08-12T04:36:28,646 Created temporary directory: /tmp/pip-build-tracker-6_f4dkii 2022-08-12T04:36:28,647 Initialized build tracking at /tmp/pip-build-tracker-6_f4dkii 2022-08-12T04:36:28,647 Created build tracker: /tmp/pip-build-tracker-6_f4dkii 2022-08-12T04:36:28,648 Entered build tracker: /tmp/pip-build-tracker-6_f4dkii 2022-08-12T04:36:28,649 Created temporary directory: /tmp/pip-wheel-hg1ghbxy 2022-08-12T04:36:28,723 Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple 2022-08-12T04:36:28,731 2 location(s) to search for versions of cvlearn: 2022-08-12T04:36:28,731 * https://pypi.org/simple/cvlearn/ 2022-08-12T04:36:28,731 * https://www.piwheels.org/simple/cvlearn/ 2022-08-12T04:36:28,732 Fetching project page and analyzing links: https://pypi.org/simple/cvlearn/ 2022-08-12T04:36:28,733 Getting page https://pypi.org/simple/cvlearn/ 2022-08-12T04:36:28,737 Found index url https://pypi.org/simple 2022-08-12T04:36:28,935 Skipping link: No binaries permitted for cvlearn: https://files.pythonhosted.org/packages/ec/68/4f61c181834dd1510c6b348918550ed0d8fe5199f17d3cd8165a3ebeea3d/cvlearn-0.0.5-py3-none-any.whl#sha256=86bb8fba0ba84c1679640a2e1ddfb3809850388cdfa8c30272779e494f093e34 (from https://pypi.org/simple/cvlearn/) 2022-08-12T04:36:28,936 Found link https://files.pythonhosted.org/packages/78/4a/6fe350174300e9fe867e88c90290264c43fca660f44148c079f47164d9c9/cvlearn-0.0.5.tar.gz#sha256=dbee24a0cdc32df2fe19e20f473c15e28b263bdde35e020d73022f896a8a7b31 (from https://pypi.org/simple/cvlearn/), version: 0.0.5 2022-08-12T04:36:28,937 Skipping link: No binaries permitted for cvlearn: https://files.pythonhosted.org/packages/7c/72/9ed1c07df5c15a3c000abb36bf7d37592746aaf287e0919c7cf2ba09affb/cvlearn-0.0.6-py3-none-any.whl#sha256=560ed7c9f687030fbbb6ba6b3a5d46776558a6af1159f1bdc241379d092cd9e3 (from https://pypi.org/simple/cvlearn/) 2022-08-12T04:36:28,937 Found link https://files.pythonhosted.org/packages/86/f2/4d93c9edd656285861946ce916bec06e2614de3881adbd6d2ca5ce27058f/cvlearn-0.0.6.tar.gz#sha256=e9e29067e9870cd40117366fe33e76bc108f69dec1b6a72086d7d7b6bca3b488 (from https://pypi.org/simple/cvlearn/), version: 0.0.6 2022-08-12T04:36:28,938 Skipping link: No binaries permitted for cvlearn: https://files.pythonhosted.org/packages/22/e4/754ebce956c408a36ae589bd63f235aa6f5b50548e2b2e2de288906df7a5/cvlearn-0.0.7-py3-none-any.whl#sha256=f8f1052fc78b3be8ea7a9596f16e91a4afde92c0b818d1d0e857799645848096 (from https://pypi.org/simple/cvlearn/) 2022-08-12T04:36:28,939 Found link https://files.pythonhosted.org/packages/2d/ff/5342e6c093d8b00e0c1cd984711eaa4f753f6edc9fd74eb975d0245c5905/cvlearn-0.0.7.tar.gz#sha256=c5663accdabfde0cc2cf5acfe564db89070687af6fee81011ed65d834f161851 (from https://pypi.org/simple/cvlearn/), version: 0.0.7 2022-08-12T04:36:28,940 Skipping link: No binaries permitted for cvlearn: https://files.pythonhosted.org/packages/fd/de/971cfe31375de6218ad39617befa054200630fe86e64299919caace8d427/cvlearn-0.0.8-py3-none-any.whl#sha256=e16a53fcae53b03968773d7a851f372091cbc2bec21c73d6995ba5e84dda717f (from https://pypi.org/simple/cvlearn/) 2022-08-12T04:36:28,940 Found link https://files.pythonhosted.org/packages/58/24/176c3969b4e227c8ec83715a89f3885a85d000b0a16513d25f9416a22d40/cvlearn-0.0.8.tar.gz#sha256=f6f5fa6e7567a68f4771be4cb74bbeed0d4afbdbc2afe090cb126ac384dec602 (from https://pypi.org/simple/cvlearn/), version: 0.0.8 2022-08-12T04:36:28,941 Skipping link: No binaries permitted for cvlearn: https://files.pythonhosted.org/packages/04/4e/12570e6e9d039f74407975d30507d0731648daa37ea4b64a034c51e714f1/cvlearn-0.0.9-py3-none-any.whl#sha256=d209d53dfda32b5a645340e958dc8065ad01ffd7f19d85f15d25173befead0ab (from https://pypi.org/simple/cvlearn/) 2022-08-12T04:36:28,941 Found link https://files.pythonhosted.org/packages/8d/4a/f35ee1541c205e754c8263935fd8d142f73018afc91df8071ab56bac25cb/cvlearn-0.0.9.tar.gz#sha256=9832eec73491c97e6f3ebd89b02c8772355579564cc616bf1991769c44800243 (from https://pypi.org/simple/cvlearn/), version: 0.0.9 2022-08-12T04:36:28,942 Skipping link: No binaries permitted for cvlearn: https://files.pythonhosted.org/packages/f1/16/5896673c1fdd52390c58851980148f7b347912447b85d7c4f95bd84a6bfe/cvlearn-0.1.0-py3-none-any.whl#sha256=56340882ff9d8f653f7880a54a9a9f6bc260a36e4f7fa10abb3da1fb432c28a7 (from https://pypi.org/simple/cvlearn/) 2022-08-12T04:36:28,943 Found link https://files.pythonhosted.org/packages/a4/7d/0d53cec05d64e825a7fb991d3c98dc4b5d856ed1296fab5ab6b8d2eca630/cvlearn-0.1.0.tar.gz#sha256=a71b0896700cc5285c7a5a10f68aed845cb9253fb7d67549ef8e06b35c41142f (from https://pypi.org/simple/cvlearn/), version: 0.1.0 2022-08-12T04:36:28,943 Skipping link: No binaries permitted for cvlearn: https://files.pythonhosted.org/packages/fd/7b/6913ee3afd01f8817e9269136d0932c909e5c468004fb868f6ed47bd67ba/cvlearn-0.1.1-py3-none-any.whl#sha256=f57293fbd8e0db6886b183f80dae20d92eaaafc1a68f898e048104f67f899b5b (from https://pypi.org/simple/cvlearn/) 2022-08-12T04:36:28,944 Found link https://files.pythonhosted.org/packages/a7/61/f6c3c826841188720817d701a532b2393aee2238a96e65d7d617b337a2a2/cvlearn-0.1.1.tar.gz#sha256=53da5db9eb1d0a4093460f8b177cec03f95529d074fb2ba7902df1b82f887a53 (from https://pypi.org/simple/cvlearn/), version: 0.1.1 2022-08-12T04:36:28,945 Skipping link: No binaries permitted for cvlearn: https://files.pythonhosted.org/packages/8d/bb/f68f19bea9987d8cf37d73231952a70bcdc761a5bb18ca51dd20678385f4/cvlearn-0.1.2-py3-none-any.whl#sha256=2768928d5b2fa8d06655fb56774ca6a4ac926d8f46157c78b81abe4b3647b347 (from https://pypi.org/simple/cvlearn/) 2022-08-12T04:36:28,945 Found link https://files.pythonhosted.org/packages/43/08/1b0875dbc76ad9759ecda11eecf279aad96fd43f975623f66fb22149236d/cvlearn-0.1.2.tar.gz#sha256=5d35b01e0fa9b8c62d323355b9c02cf61c9eee8526953d2e513446b5d83f816b (from https://pypi.org/simple/cvlearn/), version: 0.1.2 2022-08-12T04:36:28,946 Skipping link: No binaries permitted for cvlearn: https://files.pythonhosted.org/packages/67/e1/0e8ddbfe66637f36b55fa87744614317c3251bdbb0a093772fad549f08a5/cvlearn-0.1.3-py3-none-any.whl#sha256=d47db345245cf4e86cf3132391c83b3cc66e16abd261ae022fd3a5f93b53a982 (from https://pypi.org/simple/cvlearn/) 2022-08-12T04:36:28,947 Found link https://files.pythonhosted.org/packages/a3/c6/7af10853916310d4cb36f2f3cd11cca848689a3c8d1215d95cf5e56d4a99/cvlearn-0.1.3.tar.gz#sha256=915f4b416ea13d7065b9f9ff1591758f0fa114cce075ffa8587b5ab663d28b94 (from https://pypi.org/simple/cvlearn/), version: 0.1.3 2022-08-12T04:36:28,948 Fetching project page and analyzing links: https://www.piwheels.org/simple/cvlearn/ 2022-08-12T04:36:28,948 Getting page https://www.piwheels.org/simple/cvlearn/ 2022-08-12T04:36:28,950 Found index url https://www.piwheels.org/simple 2022-08-12T04:36:29,179 Skipping link: No binaries permitted for cvlearn: https://www.piwheels.org/simple/cvlearn/cvlearn-0.1.2-py3-none-any.whl#sha256=368e9b4f5c4d3d9da5f4054d4c0835c86d1a48044cb9676affda523590f501ea (from https://www.piwheels.org/simple/cvlearn/) 2022-08-12T04:36:29,180 Skipping link: No binaries permitted for cvlearn: https://www.piwheels.org/simple/cvlearn/cvlearn-0.1.1-py3-none-any.whl#sha256=3dd007bb5120ac870ff31fca65567e9fb71ffa2c78c29133958cd3b4acb08d52 (from https://www.piwheels.org/simple/cvlearn/) 2022-08-12T04:36:29,180 Skipping link: No binaries permitted for cvlearn: https://www.piwheels.org/simple/cvlearn/cvlearn-0.1.0-py3-none-any.whl#sha256=48090c91ad52174d33d17a3ffe1f0c57ea8f52367c0d12888e2c3ce9ab7e9d6b (from https://www.piwheels.org/simple/cvlearn/) 2022-08-12T04:36:29,181 Skipping link: No binaries permitted for cvlearn: https://www.piwheels.org/simple/cvlearn/cvlearn-0.0.9-py3-none-any.whl#sha256=b991f5758343a1090841f10da171aa26c3ed8a8c40e55b13fd4c59fe93b1c988 (from https://www.piwheels.org/simple/cvlearn/) 2022-08-12T04:36:29,181 Skipping link: No binaries permitted for cvlearn: https://www.piwheels.org/simple/cvlearn/cvlearn-0.0.8-py3-none-any.whl#sha256=fe8df48908e4afe4f2793f4e5590b304729ec8dbdb948354d8e5502b7a79ca5f (from https://www.piwheels.org/simple/cvlearn/) 2022-08-12T04:36:29,182 Skipping link: No binaries permitted for cvlearn: https://www.piwheels.org/simple/cvlearn/cvlearn-0.0.7-py3-none-any.whl#sha256=a9ff9822b1e1aafaa8d2e9244984b040ff17e93c9e61554891ff0181d9d0ff31 (from https://www.piwheels.org/simple/cvlearn/) 2022-08-12T04:36:29,183 Skipping link: No binaries permitted for cvlearn: https://www.piwheels.org/simple/cvlearn/cvlearn-0.0.6-py3-none-any.whl#sha256=ffbd20d84f960f6e23313597f8086df2bcea4f44590a44ef2cc78e96a1103843 (from https://www.piwheels.org/simple/cvlearn/) 2022-08-12T04:36:29,183 Skipping link: No binaries permitted for cvlearn: https://www.piwheels.org/simple/cvlearn/cvlearn-0.0.5-py3-none-any.whl#sha256=31e38c665892fbab0e8e12e54e77d484563f60306379a50bdde6f8516bdf2064 (from https://www.piwheels.org/simple/cvlearn/) 2022-08-12T04:36:29,184 Skipping link: not a file: https://www.piwheels.org/simple/cvlearn/ 2022-08-12T04:36:29,184 Skipping link: not a file: https://pypi.org/simple/cvlearn/ 2022-08-12T04:36:29,221 Given no hashes to check 1 links for project 'cvlearn': discarding no candidates 2022-08-12T04:36:29,251 Collecting cvlearn==0.1.3 2022-08-12T04:36:29,256 Created temporary directory: /tmp/pip-unpack-qmm66s8_ 2022-08-12T04:36:29,484 Downloading cvlearn-0.1.3.tar.gz (7.0 kB) 2022-08-12T04:36:29,572 Added cvlearn==0.1.3 from https://files.pythonhosted.org/packages/a3/c6/7af10853916310d4cb36f2f3cd11cca848689a3c8d1215d95cf5e56d4a99/cvlearn-0.1.3.tar.gz#sha256=915f4b416ea13d7065b9f9ff1591758f0fa114cce075ffa8587b5ab663d28b94 to build tracker '/tmp/pip-build-tracker-6_f4dkii' 2022-08-12T04:36:29,575 Running setup.py (path:/tmp/pip-wheel-hg1ghbxy/cvlearn_037deb80e3c849b4a9f05a1ed47c4edc/setup.py) egg_info for package cvlearn 2022-08-12T04:36:29,576 Created temporary directory: /tmp/pip-pip-egg-info-22p9ifr2 2022-08-12T04:36:29,577 Preparing metadata (setup.py): started 2022-08-12T04:36:29,579 Running command python setup.py egg_info 2022-08-12T04:36:36,925 # cvlearn 2022-08-12T04:36:36,927 An easy to use package which helps to do hand tracking, face detection, etc. with use of opencv module. 2022-08-12T04:36:36,927 # Installation 2022-08-12T04:36:36,928 - Use Python 3.x 2022-08-12T04:36:36,928 - Open cmd/terminal and type: 2022-08-12T04:36:36,929 ```bash 2022-08-12T04:36:36,929 pip install cvlearn 2022-08-12T04:36:36,929 ``` 2022-08-12T04:36:36,930 # Dependencies 2022-08-12T04:36:36,930 - python 3.x 2022-08-12T04:36:36,931 - opencv-python 2022-08-12T04:36:36,931 - numpy 2022-08-12T04:36:36,931 - mediapipe 2022-08-12T04:36:36,932 # Examples 2022-08-12T04:36:36,932 **Hand Tracking:** 2022-08-12T04:36:36,933 ```bash 2022-08-12T04:36:36,933 from cvlearn import HandTrackingModule as handTracker 2022-08-12T04:36:36,934 import cv2 2022-08-12T04:36:36,934 cap = cv2.VideoCapture(0) 2022-08-12T04:36:36,934 detector = handTracker.handDetector() 2022-08-12T04:36:36,935 while True: 2022-08-12T04:36:36,935 ret, img = cap.read() 2022-08-12T04:36:36,935 img = detector.findHands(img) 2022-08-12T04:36:36,936 cv2.imshow("Result", img) 2022-08-12T04:36:36,936 cv2.waitKey(1) 2022-08-12T04:36:36,937 ``` 2022-08-12T04:36:36,937 ### **Result:** 2022-08-12T04:36:36,938 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/handTracking.jpg) 2022-08-12T04:36:36,939 **Face Detection:** 2022-08-12T04:36:36,939 ```bash 2022-08-12T04:36:36,939 from cvlearn import FaceDetection as faceDetector 2022-08-12T04:36:36,940 import cv2 2022-08-12T04:36:36,940 cap = cv2.VideoCapture(0) 2022-08-12T04:36:36,941 detector = faceDetector.FaceDetector() 2022-08-12T04:36:36,941 while True: 2022-08-12T04:36:36,941 ret, img = cap.read() 2022-08-12T04:36:36,942 img = detector.findFaces(img) 2022-08-12T04:36:36,942 cv2.imshow("Result", img) 2022-08-12T04:36:36,943 cv2.waitKey(1) 2022-08-12T04:36:36,943 ``` 2022-08-12T04:36:36,943 ### **Result:** 2022-08-12T04:36:36,943 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/faceDetection.jpg) 2022-08-12T04:36:36,944 # 2022-08-12T04:36:36,944 # 2022-08-12T04:36:36,944 **SideView:** 2022-08-12T04:36:36,945 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/faceDetection2.jpg) 2022-08-12T04:36:36,945 **Drawing face mesh:** 2022-08-12T04:36:36,946 ```bash 2022-08-12T04:36:36,946 from cvlearn import FaceMesh as fms 2022-08-12T04:36:36,947 import cv2 2022-08-12T04:36:36,947 cap = cv2.VideoCapture(0) 2022-08-12T04:36:36,947 detector = fms.FaceMeshDetector() 2022-08-12T04:36:36,947 while True: 2022-08-12T04:36:36,948 ret, img = cap.read() 2022-08-12T04:36:36,948 img, face = detector.findFaceMesh(img) 2022-08-12T04:36:36,949 cv2.imshow("Result", img) 2022-08-12T04:36:36,949 cv2.waitKey(1) 2022-08-12T04:36:36,950 ``` 2022-08-12T04:36:36,950 ### **Result:** 2022-08-12T04:36:36,950 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/faceMesh.jpg) 2022-08-12T04:36:36,951 # 2022-08-12T04:36:36,951 # 2022-08-12T04:36:36,952 **Finger Counting** 2022-08-12T04:36:36,952 ```bash 2022-08-12T04:36:36,952 from cvlearn import FingerCounter as fc 2022-08-12T04:36:36,953 import cvlearn.HandTrackingModule as handTracker 2022-08-12T04:36:36,953 import cv2 2022-08-12T04:36:36,954 cap = cv2.VideoCapture(0) 2022-08-12T04:36:36,954 detector = handTracker.handDetector(maxHands=1) 2022-08-12T04:36:36,955 counter = fc.FingerCounter() 2022-08-12T04:36:36,955 while True: 2022-08-12T04:36:36,955 ret, frame = cap.read() 2022-08-12T04:36:36,956 frame = cv2.flip(frame, 180) 2022-08-12T04:36:36,956 frame = detector.findHands(frame) 2022-08-12T04:36:36,957 lmList, bbox = detector.findPosition(frame) 2022-08-12T04:36:36,957 if lmList: 2022-08-12T04:36:36,958 frame1 = counter.drawCountedFingers(frame, lmList, bbox) 2022-08-12T04:36:36,958 cv2.imshow("res", frame) 2022-08-12T04:36:36,959 key = cv2.waitKey(1) 2022-08-12T04:36:36,959 if key == 27: 2022-08-12T04:36:36,959 break 2022-08-12T04:36:36,960 cv2.destroyAllWindows() 2022-08-12T04:36:36,960 ``` 2022-08-12T04:36:36,961 ### **Result:** 2022-08-12T04:36:36,961 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/fingerCounter.jpg) 2022-08-12T04:36:36,962 # 2022-08-12T04:36:36,962 # 2022-08-12T04:36:36,962 **Two Hands Finger Counting** 2022-08-12T04:36:36,963 ```bash 2022-08-12T04:36:36,963 from cvlearn import TwoHandsFingerCounter as fc 2022-08-12T04:36:36,963 import cv2 2022-08-12T04:36:36,964 cap = cv2.VideoCapture(0) 2022-08-12T04:36:36,964 counter = fc.FingerCounter() 2022-08-12T04:36:36,965 while True: 2022-08-12T04:36:36,965 ret, frame = cap.read() 2022-08-12T04:36:36,966 frame1 = counter.drawCountedFingers(frame) 2022-08-12T04:36:36,966 cv2.imshow("res", frame) 2022-08-12T04:36:36,967 key = cv2.waitKey(1) 2022-08-12T04:36:36,967 if key == 27: 2022-08-12T04:36:36,967 break 2022-08-12T04:36:36,967 cv2.destroyAllWindows() 2022-08-12T04:36:36,968 ``` 2022-08-12T04:36:36,968 ### **Result:** 2022-08-12T04:36:36,969 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/MultipleHandsFingerCounter.jpg) 2022-08-12T04:36:36,969 running egg_info 2022-08-12T04:36:36,970 creating /tmp/pip-pip-egg-info-22p9ifr2/cvlearn.egg-info 2022-08-12T04:36:37,686 writing /tmp/pip-pip-egg-info-22p9ifr2/cvlearn.egg-info/PKG-INFO 2022-08-12T04:36:38,293 writing dependency_links to /tmp/pip-pip-egg-info-22p9ifr2/cvlearn.egg-info/dependency_links.txt 2022-08-12T04:36:41,308 writing requirements to /tmp/pip-pip-egg-info-22p9ifr2/cvlearn.egg-info/requires.txt 2022-08-12T04:36:41,915 writing top-level names to /tmp/pip-pip-egg-info-22p9ifr2/cvlearn.egg-info/top_level.txt 2022-08-12T04:36:41,919 writing manifest file '/tmp/pip-pip-egg-info-22p9ifr2/cvlearn.egg-info/SOURCES.txt' 2022-08-12T04:36:42,981 reading manifest file '/tmp/pip-pip-egg-info-22p9ifr2/cvlearn.egg-info/SOURCES.txt' 2022-08-12T04:36:42,989 writing manifest file '/tmp/pip-pip-egg-info-22p9ifr2/cvlearn.egg-info/SOURCES.txt' 2022-08-12T04:36:43,209 Preparing metadata (setup.py): finished with status 'done' 2022-08-12T04:36:43,220 Source in /tmp/pip-wheel-hg1ghbxy/cvlearn_037deb80e3c849b4a9f05a1ed47c4edc has version 0.1.3, which satisfies requirement cvlearn==0.1.3 from https://files.pythonhosted.org/packages/a3/c6/7af10853916310d4cb36f2f3cd11cca848689a3c8d1215d95cf5e56d4a99/cvlearn-0.1.3.tar.gz#sha256=915f4b416ea13d7065b9f9ff1591758f0fa114cce075ffa8587b5ab663d28b94 2022-08-12T04:36:43,222 Removed cvlearn==0.1.3 from https://files.pythonhosted.org/packages/a3/c6/7af10853916310d4cb36f2f3cd11cca848689a3c8d1215d95cf5e56d4a99/cvlearn-0.1.3.tar.gz#sha256=915f4b416ea13d7065b9f9ff1591758f0fa114cce075ffa8587b5ab663d28b94 from build tracker '/tmp/pip-build-tracker-6_f4dkii' 2022-08-12T04:36:43,231 Created temporary directory: /tmp/pip-unpack-lso52wom 2022-08-12T04:36:43,233 Building wheels for collected packages: cvlearn 2022-08-12T04:36:43,242 Created temporary directory: /tmp/pip-wheel-po7wfg_u 2022-08-12T04:36:43,243 Building wheel for cvlearn (setup.py): started 2022-08-12T04:36:43,245 Destination directory: /tmp/pip-wheel-po7wfg_u 2022-08-12T04:36:43,245 Running command python setup.py bdist_wheel 2022-08-12T04:36:46,088 # cvlearn 2022-08-12T04:36:46,090 An easy to use package which helps to do hand tracking, face detection, etc. with use of opencv module. 2022-08-12T04:36:46,090 # Installation 2022-08-12T04:36:46,091 - Use Python 3.x 2022-08-12T04:36:46,091 - Open cmd/terminal and type: 2022-08-12T04:36:46,092 ```bash 2022-08-12T04:36:46,092 pip install cvlearn 2022-08-12T04:36:46,092 ``` 2022-08-12T04:36:46,093 # Dependencies 2022-08-12T04:36:46,093 - python 3.x 2022-08-12T04:36:46,094 - opencv-python 2022-08-12T04:36:46,094 - numpy 2022-08-12T04:36:46,094 - mediapipe 2022-08-12T04:36:46,095 # Examples 2022-08-12T04:36:46,095 **Hand Tracking:** 2022-08-12T04:36:46,096 ```bash 2022-08-12T04:36:46,096 from cvlearn import HandTrackingModule as handTracker 2022-08-12T04:36:46,097 import cv2 2022-08-12T04:36:46,097 cap = cv2.VideoCapture(0) 2022-08-12T04:36:46,097 detector = handTracker.handDetector() 2022-08-12T04:36:46,098 while True: 2022-08-12T04:36:46,098 ret, img = cap.read() 2022-08-12T04:36:46,098 img = detector.findHands(img) 2022-08-12T04:36:46,099 cv2.imshow("Result", img) 2022-08-12T04:36:46,099 cv2.waitKey(1) 2022-08-12T04:36:46,100 ``` 2022-08-12T04:36:46,100 ### **Result:** 2022-08-12T04:36:46,100 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/handTracking.jpg) 2022-08-12T04:36:46,102 **Face Detection:** 2022-08-12T04:36:46,102 ```bash 2022-08-12T04:36:46,102 from cvlearn import FaceDetection as faceDetector 2022-08-12T04:36:46,103 import cv2 2022-08-12T04:36:46,103 cap = cv2.VideoCapture(0) 2022-08-12T04:36:46,103 detector = faceDetector.FaceDetector() 2022-08-12T04:36:46,104 while True: 2022-08-12T04:36:46,104 ret, img = cap.read() 2022-08-12T04:36:46,104 img = detector.findFaces(img) 2022-08-12T04:36:46,105 cv2.imshow("Result", img) 2022-08-12T04:36:46,105 cv2.waitKey(1) 2022-08-12T04:36:46,105 ``` 2022-08-12T04:36:46,106 ### **Result:** 2022-08-12T04:36:46,106 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/faceDetection.jpg) 2022-08-12T04:36:46,106 # 2022-08-12T04:36:46,106 # 2022-08-12T04:36:46,107 **SideView:** 2022-08-12T04:36:46,107 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/faceDetection2.jpg) 2022-08-12T04:36:46,108 **Drawing face mesh:** 2022-08-12T04:36:46,108 ```bash 2022-08-12T04:36:46,108 from cvlearn import FaceMesh as fms 2022-08-12T04:36:46,109 import cv2 2022-08-12T04:36:46,109 cap = cv2.VideoCapture(0) 2022-08-12T04:36:46,109 detector = fms.FaceMeshDetector() 2022-08-12T04:36:46,110 while True: 2022-08-12T04:36:46,110 ret, img = cap.read() 2022-08-12T04:36:46,110 img, face = detector.findFaceMesh(img) 2022-08-12T04:36:46,111 cv2.imshow("Result", img) 2022-08-12T04:36:46,111 cv2.waitKey(1) 2022-08-12T04:36:46,112 ``` 2022-08-12T04:36:46,112 ### **Result:** 2022-08-12T04:36:46,112 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/faceMesh.jpg) 2022-08-12T04:36:46,113 # 2022-08-12T04:36:46,113 # 2022-08-12T04:36:46,114 **Finger Counting** 2022-08-12T04:36:46,114 ```bash 2022-08-12T04:36:46,114 from cvlearn import FingerCounter as fc 2022-08-12T04:36:46,114 import cvlearn.HandTrackingModule as handTracker 2022-08-12T04:36:46,115 import cv2 2022-08-12T04:36:46,115 cap = cv2.VideoCapture(0) 2022-08-12T04:36:46,116 detector = handTracker.handDetector(maxHands=1) 2022-08-12T04:36:46,116 counter = fc.FingerCounter() 2022-08-12T04:36:46,117 while True: 2022-08-12T04:36:46,117 ret, frame = cap.read() 2022-08-12T04:36:46,117 frame = cv2.flip(frame, 180) 2022-08-12T04:36:46,118 frame = detector.findHands(frame) 2022-08-12T04:36:46,118 lmList, bbox = detector.findPosition(frame) 2022-08-12T04:36:46,119 if lmList: 2022-08-12T04:36:46,119 frame1 = counter.drawCountedFingers(frame, lmList, bbox) 2022-08-12T04:36:46,119 cv2.imshow("res", frame) 2022-08-12T04:36:46,120 key = cv2.waitKey(1) 2022-08-12T04:36:46,120 if key == 27: 2022-08-12T04:36:46,120 break 2022-08-12T04:36:46,121 cv2.destroyAllWindows() 2022-08-12T04:36:46,121 ``` 2022-08-12T04:36:46,122 ### **Result:** 2022-08-12T04:36:46,122 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/fingerCounter.jpg) 2022-08-12T04:36:46,123 # 2022-08-12T04:36:46,123 # 2022-08-12T04:36:46,123 **Two Hands Finger Counting** 2022-08-12T04:36:46,123 ```bash 2022-08-12T04:36:46,124 from cvlearn import TwoHandsFingerCounter as fc 2022-08-12T04:36:46,124 import cv2 2022-08-12T04:36:46,124 cap = cv2.VideoCapture(0) 2022-08-12T04:36:46,125 counter = fc.FingerCounter() 2022-08-12T04:36:46,125 while True: 2022-08-12T04:36:46,126 ret, frame = cap.read() 2022-08-12T04:36:46,126 frame1 = counter.drawCountedFingers(frame) 2022-08-12T04:36:46,127 cv2.imshow("res", frame) 2022-08-12T04:36:46,127 key = cv2.waitKey(1) 2022-08-12T04:36:46,128 if key == 27: 2022-08-12T04:36:46,128 break 2022-08-12T04:36:46,128 cv2.destroyAllWindows() 2022-08-12T04:36:46,129 ``` 2022-08-12T04:36:46,129 ### **Result:** 2022-08-12T04:36:46,129 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/MultipleHandsFingerCounter.jpg) 2022-08-12T04:36:49,991 running bdist_wheel 2022-08-12T04:36:50,432 running build 2022-08-12T04:36:50,433 running build_py 2022-08-12T04:36:51,170 creating build 2022-08-12T04:36:51,171 creating build/lib 2022-08-12T04:36:51,172 creating build/lib/cvlearn 2022-08-12T04:36:51,174 copying cvlearn/HandTrackingModule.py -> build/lib/cvlearn 2022-08-12T04:36:51,178 copying cvlearn/FingerCounter.py -> build/lib/cvlearn 2022-08-12T04:36:51,182 copying cvlearn/__init__.py -> build/lib/cvlearn 2022-08-12T04:36:51,185 copying cvlearn/TwoHandsFingerCounter.py -> build/lib/cvlearn 2022-08-12T04:36:51,190 copying cvlearn/FaceDetection.py -> build/lib/cvlearn 2022-08-12T04:36:51,193 copying cvlearn/FaceMesh.py -> build/lib/cvlearn 2022-08-12T04:36:51,197 copying cvlearn/Utils.py -> build/lib/cvlearn 2022-08-12T04:36:51,941 /usr/local/lib/python3.7/dist-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. 2022-08-12T04:36:51,942 setuptools.SetuptoolsDeprecationWarning, 2022-08-12T04:36:52,674 installing to build/bdist.linux-armv7l/wheel 2022-08-12T04:36:52,674 running install 2022-08-12T04:36:52,735 running install_lib 2022-08-12T04:36:53,468 creating build/bdist.linux-armv7l 2022-08-12T04:36:53,469 creating build/bdist.linux-armv7l/wheel 2022-08-12T04:36:53,472 creating build/bdist.linux-armv7l/wheel/cvlearn 2022-08-12T04:36:53,474 copying build/lib/cvlearn/HandTrackingModule.py -> build/bdist.linux-armv7l/wheel/cvlearn 2022-08-12T04:36:53,478 copying build/lib/cvlearn/FingerCounter.py -> build/bdist.linux-armv7l/wheel/cvlearn 2022-08-12T04:36:53,481 copying build/lib/cvlearn/__init__.py -> build/bdist.linux-armv7l/wheel/cvlearn 2022-08-12T04:36:53,484 copying build/lib/cvlearn/TwoHandsFingerCounter.py -> build/bdist.linux-armv7l/wheel/cvlearn 2022-08-12T04:36:53,489 copying build/lib/cvlearn/FaceDetection.py -> build/bdist.linux-armv7l/wheel/cvlearn 2022-08-12T04:36:53,492 copying build/lib/cvlearn/FaceMesh.py -> build/bdist.linux-armv7l/wheel/cvlearn 2022-08-12T04:36:53,496 copying build/lib/cvlearn/Utils.py -> build/bdist.linux-armv7l/wheel/cvlearn 2022-08-12T04:36:53,498 running install_egg_info 2022-08-12T04:36:54,993 running egg_info 2022-08-12T04:36:55,722 writing cvlearn.egg-info/PKG-INFO 2022-08-12T04:36:56,309 writing dependency_links to cvlearn.egg-info/dependency_links.txt 2022-08-12T04:36:59,225 writing requirements to cvlearn.egg-info/requires.txt 2022-08-12T04:36:59,859 writing top-level names to cvlearn.egg-info/top_level.txt 2022-08-12T04:37:00,014 reading manifest file 'cvlearn.egg-info/SOURCES.txt' 2022-08-12T04:37:00,022 writing manifest file 'cvlearn.egg-info/SOURCES.txt' 2022-08-12T04:37:00,025 Copying cvlearn.egg-info to build/bdist.linux-armv7l/wheel/cvlearn-0.1.3-py3.7.egg-info 2022-08-12T04:37:00,044 running install_scripts 2022-08-12T04:37:00,191 creating build/bdist.linux-armv7l/wheel/cvlearn-0.1.3.dist-info/WHEEL 2022-08-12T04:37:00,196 creating '/tmp/pip-wheel-po7wfg_u/cvlearn-0.1.3-py3-none-any.whl' and adding 'build/bdist.linux-armv7l/wheel' to it 2022-08-12T04:37:00,200 adding 'cvlearn/FaceDetection.py' 2022-08-12T04:37:00,203 adding 'cvlearn/FaceMesh.py' 2022-08-12T04:37:00,206 adding 'cvlearn/FingerCounter.py' 2022-08-12T04:37:00,208 adding 'cvlearn/HandTrackingModule.py' 2022-08-12T04:37:00,212 adding 'cvlearn/TwoHandsFingerCounter.py' 2022-08-12T04:37:00,214 adding 'cvlearn/Utils.py' 2022-08-12T04:37:00,216 adding 'cvlearn/__init__.py' 2022-08-12T04:37:00,220 adding 'cvlearn-0.1.3.dist-info/METADATA' 2022-08-12T04:37:00,222 adding 'cvlearn-0.1.3.dist-info/WHEEL' 2022-08-12T04:37:00,224 adding 'cvlearn-0.1.3.dist-info/top_level.txt' 2022-08-12T04:37:00,225 adding 'cvlearn-0.1.3.dist-info/RECORD' 2022-08-12T04:37:00,227 removing build/bdist.linux-armv7l/wheel 2022-08-12T04:37:00,475 Building wheel for cvlearn (setup.py): finished with status 'done' 2022-08-12T04:37:00,482 Created wheel for cvlearn: filename=cvlearn-0.1.3-py3-none-any.whl size=8899 sha256=016eba76a56ebf753be166af7f09a437655c77f1e422115e847b182a57da55bc 2022-08-12T04:37:00,484 Stored in directory: /tmp/pip-ephem-wheel-cache-92svzqwa/wheels/6c/96/ef/4e885929ac6d71e97a45c395fe3f241037202731314e793219 2022-08-12T04:37:00,515 Successfully built cvlearn 2022-08-12T04:37:00,523 Removed build tracker: '/tmp/pip-build-tracker-6_f4dkii'