2022-04-06T15:55:28,796 Created temporary directory: /tmp/pip-ephem-wheel-cache-za_d1sdg 2022-04-06T15:55:28,803 Created temporary directory: /tmp/pip-req-tracker-si33st_6 2022-04-06T15:55:28,804 Initialized build tracking at /tmp/pip-req-tracker-si33st_6 2022-04-06T15:55:28,804 Created build tracker: /tmp/pip-req-tracker-si33st_6 2022-04-06T15:55:28,805 Entered build tracker: /tmp/pip-req-tracker-si33st_6 2022-04-06T15:55:28,806 Created temporary directory: /tmp/pip-wheel-n61v55vv 2022-04-06T15:55:28,875 Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple 2022-04-06T15:55:28,879 2 location(s) to search for versions of cvlearn: 2022-04-06T15:55:28,879 * https://pypi.org/simple/cvlearn/ 2022-04-06T15:55:28,879 * https://www.piwheels.org/simple/cvlearn/ 2022-04-06T15:55:28,880 Fetching project page and analyzing links: https://pypi.org/simple/cvlearn/ 2022-04-06T15:55:28,882 Getting page https://pypi.org/simple/cvlearn/ 2022-04-06T15:55:28,886 Found index url https://pypi.org/simple 2022-04-06T15:55:29,216 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-04-06T15:55:29,217 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-04-06T15:55:29,218 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-04-06T15:55:29,219 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-04-06T15:55:29,220 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-04-06T15:55:29,220 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-04-06T15:55:29,221 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-04-06T15:55:29,222 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-04-06T15:55:29,223 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-04-06T15:55:29,223 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-04-06T15:55:29,224 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-04-06T15:55:29,225 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-04-06T15:55:29,225 Fetching project page and analyzing links: https://www.piwheels.org/simple/cvlearn/ 2022-04-06T15:55:29,226 Getting page https://www.piwheels.org/simple/cvlearn/ 2022-04-06T15:55:29,229 Found index url https://www.piwheels.org/simple 2022-04-06T15:55:29,450 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-04-06T15:55:29,451 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-04-06T15:55:29,452 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-04-06T15:55:29,452 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-04-06T15:55:29,453 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-04-06T15:55:29,484 Given no hashes to check 1 links for project 'cvlearn': discarding no candidates 2022-04-06T15:55:29,515 Collecting cvlearn==0.1.0 2022-04-06T15:55:29,519 Created temporary directory: /tmp/pip-unpack-t9xtzr5k 2022-04-06T15:55:29,755 Downloading cvlearn-0.1.0.tar.gz (6.7 kB) 2022-04-06T15:55:29,864 Added cvlearn==0.1.0 from https://files.pythonhosted.org/packages/a4/7d/0d53cec05d64e825a7fb991d3c98dc4b5d856ed1296fab5ab6b8d2eca630/cvlearn-0.1.0.tar.gz#sha256=a71b0896700cc5285c7a5a10f68aed845cb9253fb7d67549ef8e06b35c41142f to build tracker '/tmp/pip-req-tracker-si33st_6' 2022-04-06T15:55:29,866 Running setup.py (path:/tmp/pip-wheel-n61v55vv/cvlearn_92342e8f110945fb80db4b81940ce735/setup.py) egg_info for package cvlearn 2022-04-06T15:55:29,867 Created temporary directory: /tmp/pip-pip-egg-info-ehfhty1w 2022-04-06T15:55:29,868 Running command python setup.py egg_info 2022-04-06T15:55:31,967 # cvlearn 2022-04-06T15:55:31,968 An easy to use package which helps to do hand tracking, face detection, etc. with use of opencv module. 2022-04-06T15:55:31,970 # Installation 2022-04-06T15:55:31,970 - Use Python 3.x 2022-04-06T15:55:31,971 - Open cmd/terminal and type: 2022-04-06T15:55:31,972 ```bash 2022-04-06T15:55:31,973 pip install cvlearn 2022-04-06T15:55:31,973 ``` 2022-04-06T15:55:31,975 # Dependencies 2022-04-06T15:55:31,975 - python 3.x 2022-04-06T15:55:31,976 - opencv-python 2022-04-06T15:55:31,976 - numpy 2022-04-06T15:55:31,977 - mediapipe 2022-04-06T15:55:31,978 # Examples 2022-04-06T15:55:31,979 **Hand Tracking:** 2022-04-06T15:55:31,980 ```bash 2022-04-06T15:55:31,981 from cvlearn import HandTrackingModule as handTracker 2022-04-06T15:55:31,982 import cv2 2022-04-06T15:55:31,983 cap = cv2.VideoCapture(0) 2022-04-06T15:55:31,983 detector = handTracker.handDetector() 2022-04-06T15:55:31,984 while True: 2022-04-06T15:55:31,985 ret, img = cap.read() 2022-04-06T15:55:31,985 img = detector.findHands(img) 2022-04-06T15:55:31,986 cv2.imshow("Result", img) 2022-04-06T15:55:31,987 cv2.waitKey(1) 2022-04-06T15:55:31,988 ``` 2022-04-06T15:55:31,989 ### **Result:** 2022-04-06T15:55:31,990 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/handTracking.jpg) 2022-04-06T15:55:31,992 **Face Detection:** 2022-04-06T15:55:31,993 ```bash 2022-04-06T15:55:31,993 from cvlearn import FaceDetection as faceDetector 2022-04-06T15:55:31,995 import cv2 2022-04-06T15:55:31,995 cap = cv2.VideoCapture(0) 2022-04-06T15:55:31,996 detector = faceDetector.FaceDetector() 2022-04-06T15:55:31,996 while True: 2022-04-06T15:55:31,997 ret, img = cap.read() 2022-04-06T15:55:31,997 img = detector.findFaces(img) 2022-04-06T15:55:31,999 cv2.imshow("Result", img) 2022-04-06T15:55:31,999 cv2.waitKey(1) 2022-04-06T15:55:31,1000 ``` 2022-04-06T15:55:32,000 ### **Result:** 2022-04-06T15:55:32,001 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/faceDetection.jpg) 2022-04-06T15:55:32,002 # 2022-04-06T15:55:32,002 # 2022-04-06T15:55:32,003 **SideView:** 2022-04-06T15:55:32,003 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/faceDetection2.jpg) 2022-04-06T15:55:32,005 **Drawing face mesh:** 2022-04-06T15:55:32,005 ```bash 2022-04-06T15:55:32,006 from cvlearn import FaceMesh as fms 2022-04-06T15:55:32,007 import cv2 2022-04-06T15:55:32,008 cap = cv2.VideoCapture(0) 2022-04-06T15:55:32,008 detector = fms.FaceMeshDetector() 2022-04-06T15:55:32,009 while True: 2022-04-06T15:55:32,010 ret, img = cap.read() 2022-04-06T15:55:32,010 img, face = detector.findFaceMesh(img) 2022-04-06T15:55:32,012 cv2.imshow("Result", img) 2022-04-06T15:55:32,012 cv2.waitKey(1) 2022-04-06T15:55:32,013 ``` 2022-04-06T15:55:32,014 ### **Result:** 2022-04-06T15:55:32,015 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/faceMesh.jpg) 2022-04-06T15:55:32,016 # 2022-04-06T15:55:32,016 # 2022-04-06T15:55:32,018 **Finger Counting** 2022-04-06T15:55:32,018 ```bash 2022-04-06T15:55:32,019 from cvlearn import FingerCounter as fc 2022-04-06T15:55:32,019 import cvlearn.HandTrackingModule as handTracker 2022-04-06T15:55:32,020 import cv2 2022-04-06T15:55:32,021 cap = cv2.VideoCapture(0) 2022-04-06T15:55:32,022 detector = handTracker.handDetector(maxHands=1) 2022-04-06T15:55:32,023 counter = fc.FingerCounter() 2022-04-06T15:55:32,024 while True: 2022-04-06T15:55:32,024 ret, frame = cap.read() 2022-04-06T15:55:32,025 frame = cv2.flip(frame, 180) 2022-04-06T15:55:32,026 frame = detector.findHands(frame) 2022-04-06T15:55:32,027 lmList, bbox = detector.findPosition(frame) 2022-04-06T15:55:32,028 if lmList: 2022-04-06T15:55:32,029 frame1 = counter.drawCountedFingers(frame, lmList, bbox) 2022-04-06T15:55:32,030 cv2.imshow("res", frame) 2022-04-06T15:55:32,031 key = cv2.waitKey(1) 2022-04-06T15:55:32,031 if key == 27: 2022-04-06T15:55:32,032 break 2022-04-06T15:55:32,033 cv2.destroyAllWindows() 2022-04-06T15:55:32,035 ``` 2022-04-06T15:55:32,035 ### **Result:** 2022-04-06T15:55:32,036 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/fingerCounter.jpg) 2022-04-06T15:55:32,037 # 2022-04-06T15:55:32,038 # 2022-04-06T15:55:32,038 **Two Hands Finger Counting** 2022-04-06T15:55:32,039 ```bash 2022-04-06T15:55:32,040 from cvlearn import TwoHandsFingerCounter as fc 2022-04-06T15:55:32,040 import cv2 2022-04-06T15:55:32,042 cap = cv2.VideoCapture(0) 2022-04-06T15:55:32,043 counter = fc.FingerCounter() 2022-04-06T15:55:32,043 while True: 2022-04-06T15:55:32,044 ret, frame = cap.read() 2022-04-06T15:55:32,046 frame1 = counter.drawCountedFingers(frame) 2022-04-06T15:55:32,047 cv2.imshow("res", frame) 2022-04-06T15:55:32,048 key = cv2.waitKey(1) 2022-04-06T15:55:32,049 if key == 27: 2022-04-06T15:55:32,049 break 2022-04-06T15:55:32,050 cv2.destroyAllWindows() 2022-04-06T15:55:32,051 ``` 2022-04-06T15:55:32,052 ### **Result:** 2022-04-06T15:55:32,052 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/MultipleHandsFingerCounter.jpg) 2022-04-06T15:55:32,053 running egg_info 2022-04-06T15:55:32,054 creating /tmp/pip-pip-egg-info-ehfhty1w/cvlearn.egg-info 2022-04-06T15:55:32,055 writing /tmp/pip-pip-egg-info-ehfhty1w/cvlearn.egg-info/PKG-INFO 2022-04-06T15:55:32,055 writing top-level names to /tmp/pip-pip-egg-info-ehfhty1w/cvlearn.egg-info/top_level.txt 2022-04-06T15:55:32,056 writing dependency_links to /tmp/pip-pip-egg-info-ehfhty1w/cvlearn.egg-info/dependency_links.txt 2022-04-06T15:55:32,056 writing requirements to /tmp/pip-pip-egg-info-ehfhty1w/cvlearn.egg-info/requires.txt 2022-04-06T15:55:32,057 writing manifest file '/tmp/pip-pip-egg-info-ehfhty1w/cvlearn.egg-info/SOURCES.txt' 2022-04-06T15:55:32,399 reading manifest file '/tmp/pip-pip-egg-info-ehfhty1w/cvlearn.egg-info/SOURCES.txt' 2022-04-06T15:55:32,407 writing manifest file '/tmp/pip-pip-egg-info-ehfhty1w/cvlearn.egg-info/SOURCES.txt' 2022-04-06T15:55:32,544 Source in /tmp/pip-wheel-n61v55vv/cvlearn_92342e8f110945fb80db4b81940ce735 has version 0.1.0, which satisfies requirement cvlearn==0.1.0 from https://files.pythonhosted.org/packages/a4/7d/0d53cec05d64e825a7fb991d3c98dc4b5d856ed1296fab5ab6b8d2eca630/cvlearn-0.1.0.tar.gz#sha256=a71b0896700cc5285c7a5a10f68aed845cb9253fb7d67549ef8e06b35c41142f 2022-04-06T15:55:32,546 Removed cvlearn==0.1.0 from https://files.pythonhosted.org/packages/a4/7d/0d53cec05d64e825a7fb991d3c98dc4b5d856ed1296fab5ab6b8d2eca630/cvlearn-0.1.0.tar.gz#sha256=a71b0896700cc5285c7a5a10f68aed845cb9253fb7d67549ef8e06b35c41142f from build tracker '/tmp/pip-req-tracker-si33st_6' 2022-04-06T15:55:32,557 Created temporary directory: /tmp/pip-unpack-m5sdncqy 2022-04-06T15:55:32,558 Building wheels for collected packages: cvlearn 2022-04-06T15:55:32,567 Created temporary directory: /tmp/pip-wheel-mzkom8cg 2022-04-06T15:55:32,568 Building wheel for cvlearn (setup.py): started 2022-04-06T15:55:32,569 Destination directory: /tmp/pip-wheel-mzkom8cg 2022-04-06T15:55:32,569 Running command /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-n61v55vv/cvlearn_92342e8f110945fb80db4b81940ce735/setup.py'"'"'; __file__='"'"'/tmp/pip-wheel-n61v55vv/cvlearn_92342e8f110945fb80db4b81940ce735/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-mzkom8cg 2022-04-06T15:55:34,296 # cvlearn 2022-04-06T15:55:34,299 An easy to use package which helps to do hand tracking, face detection, etc. with use of opencv module. 2022-04-06T15:55:34,301 # Installation 2022-04-06T15:55:34,301 - Use Python 3.x 2022-04-06T15:55:34,302 - Open cmd/terminal and type: 2022-04-06T15:55:34,303 ```bash 2022-04-06T15:55:34,304 pip install cvlearn 2022-04-06T15:55:34,304 ``` 2022-04-06T15:55:34,305 # Dependencies 2022-04-06T15:55:34,306 - python 3.x 2022-04-06T15:55:34,307 - opencv-python 2022-04-06T15:55:34,307 - numpy 2022-04-06T15:55:34,308 - mediapipe 2022-04-06T15:55:34,309 # Examples 2022-04-06T15:55:34,310 **Hand Tracking:** 2022-04-06T15:55:34,311 ```bash 2022-04-06T15:55:34,312 from cvlearn import HandTrackingModule as handTracker 2022-04-06T15:55:34,313 import cv2 2022-04-06T15:55:34,313 cap = cv2.VideoCapture(0) 2022-04-06T15:55:34,314 detector = handTracker.handDetector() 2022-04-06T15:55:34,315 while True: 2022-04-06T15:55:34,315 ret, img = cap.read() 2022-04-06T15:55:34,316 img = detector.findHands(img) 2022-04-06T15:55:34,317 cv2.imshow("Result", img) 2022-04-06T15:55:34,318 cv2.waitKey(1) 2022-04-06T15:55:34,319 ``` 2022-04-06T15:55:34,320 ### **Result:** 2022-04-06T15:55:34,320 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/handTracking.jpg) 2022-04-06T15:55:34,323 **Face Detection:** 2022-04-06T15:55:34,323 ```bash 2022-04-06T15:55:34,324 from cvlearn import FaceDetection as faceDetector 2022-04-06T15:55:34,325 import cv2 2022-04-06T15:55:34,326 cap = cv2.VideoCapture(0) 2022-04-06T15:55:34,326 detector = faceDetector.FaceDetector() 2022-04-06T15:55:34,327 while True: 2022-04-06T15:55:34,327 ret, img = cap.read() 2022-04-06T15:55:34,328 img = detector.findFaces(img) 2022-04-06T15:55:34,329 cv2.imshow("Result", img) 2022-04-06T15:55:34,330 cv2.waitKey(1) 2022-04-06T15:55:34,331 ``` 2022-04-06T15:55:34,331 ### **Result:** 2022-04-06T15:55:34,332 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/faceDetection.jpg) 2022-04-06T15:55:34,332 # 2022-04-06T15:55:34,333 # 2022-04-06T15:55:34,334 **SideView:** 2022-04-06T15:55:34,334 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/faceDetection2.jpg) 2022-04-06T15:55:34,335 **Drawing face mesh:** 2022-04-06T15:55:34,336 ```bash 2022-04-06T15:55:34,336 from cvlearn import FaceMesh as fms 2022-04-06T15:55:34,337 import cv2 2022-04-06T15:55:34,338 cap = cv2.VideoCapture(0) 2022-04-06T15:55:34,338 detector = fms.FaceMeshDetector() 2022-04-06T15:55:34,339 while True: 2022-04-06T15:55:34,339 ret, img = cap.read() 2022-04-06T15:55:34,340 img, face = detector.findFaceMesh(img) 2022-04-06T15:55:34,341 cv2.imshow("Result", img) 2022-04-06T15:55:34,341 cv2.waitKey(1) 2022-04-06T15:55:34,343 ``` 2022-04-06T15:55:34,343 ### **Result:** 2022-04-06T15:55:34,344 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/faceMesh.jpg) 2022-04-06T15:55:34,345 # 2022-04-06T15:55:34,345 # 2022-04-06T15:55:34,346 **Finger Counting** 2022-04-06T15:55:34,347 ```bash 2022-04-06T15:55:34,348 from cvlearn import FingerCounter as fc 2022-04-06T15:55:34,348 import cvlearn.HandTrackingModule as handTracker 2022-04-06T15:55:34,349 import cv2 2022-04-06T15:55:34,350 cap = cv2.VideoCapture(0) 2022-04-06T15:55:34,351 detector = handTracker.handDetector(maxHands=1) 2022-04-06T15:55:34,352 counter = fc.FingerCounter() 2022-04-06T15:55:34,353 while True: 2022-04-06T15:55:34,353 ret, frame = cap.read() 2022-04-06T15:55:34,354 frame = cv2.flip(frame, 180) 2022-04-06T15:55:34,355 frame = detector.findHands(frame) 2022-04-06T15:55:34,356 lmList, bbox = detector.findPosition(frame) 2022-04-06T15:55:34,357 if lmList: 2022-04-06T15:55:34,357 frame1 = counter.drawCountedFingers(frame, lmList, bbox) 2022-04-06T15:55:34,359 cv2.imshow("res", frame) 2022-04-06T15:55:34,359 key = cv2.waitKey(1) 2022-04-06T15:55:34,360 if key == 27: 2022-04-06T15:55:34,360 break 2022-04-06T15:55:34,362 cv2.destroyAllWindows() 2022-04-06T15:55:34,363 ``` 2022-04-06T15:55:34,363 ### **Result:** 2022-04-06T15:55:34,364 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/fingerCounter.jpg) 2022-04-06T15:55:34,365 # 2022-04-06T15:55:34,366 # 2022-04-06T15:55:34,366 **Two Hands Finger Counting** 2022-04-06T15:55:34,367 ```bash 2022-04-06T15:55:34,368 from cvlearn import TwoHandsFingerCounter as fc 2022-04-06T15:55:34,368 import cv2 2022-04-06T15:55:34,369 cap = cv2.VideoCapture(0) 2022-04-06T15:55:34,371 counter = fc.FingerCounter() 2022-04-06T15:55:34,371 while True: 2022-04-06T15:55:34,372 ret, frame = cap.read() 2022-04-06T15:55:34,373 frame1 = counter.drawCountedFingers(frame) 2022-04-06T15:55:34,374 cv2.imshow("res", frame) 2022-04-06T15:55:34,375 key = cv2.waitKey(1) 2022-04-06T15:55:34,376 if key == 27: 2022-04-06T15:55:34,376 break 2022-04-06T15:55:34,377 cv2.destroyAllWindows() 2022-04-06T15:55:34,378 ``` 2022-04-06T15:55:34,378 ### **Result:** 2022-04-06T15:55:34,379 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/MultipleHandsFingerCounter.jpg) 2022-04-06T15:55:34,729 running bdist_wheel 2022-04-06T15:55:34,746 running build 2022-04-06T15:55:34,747 running build_py 2022-04-06T15:55:35,081 creating build 2022-04-06T15:55:35,082 creating build/lib 2022-04-06T15:55:35,083 creating build/lib/cvlearn 2022-04-06T15:55:35,086 copying cvlearn/FaceMesh.py -> build/lib/cvlearn 2022-04-06T15:55:35,091 copying cvlearn/HandTrackingModule.py -> build/lib/cvlearn 2022-04-06T15:55:35,095 copying cvlearn/TwoHandsFingerCounter.py -> build/lib/cvlearn 2022-04-06T15:55:35,101 copying cvlearn/FingerCounter.py -> build/lib/cvlearn 2022-04-06T15:55:35,107 copying cvlearn/FaceDetection.py -> build/lib/cvlearn 2022-04-06T15:55:35,113 copying cvlearn/__init__.py -> build/lib/cvlearn 2022-04-06T15:55:35,128 installing to build/bdist.linux-armv7l/wheel 2022-04-06T15:55:35,129 running install 2022-04-06T15:55:35,131 running install_lib 2022-04-06T15:55:35,138 creating build/bdist.linux-armv7l 2022-04-06T15:55:35,139 creating build/bdist.linux-armv7l/wheel 2022-04-06T15:55:35,143 creating build/bdist.linux-armv7l/wheel/cvlearn 2022-04-06T15:55:35,145 copying build/lib/cvlearn/FaceMesh.py -> build/bdist.linux-armv7l/wheel/cvlearn 2022-04-06T15:55:35,149 copying build/lib/cvlearn/HandTrackingModule.py -> build/bdist.linux-armv7l/wheel/cvlearn 2022-04-06T15:55:35,154 copying build/lib/cvlearn/TwoHandsFingerCounter.py -> build/bdist.linux-armv7l/wheel/cvlearn 2022-04-06T15:55:35,159 copying build/lib/cvlearn/FingerCounter.py -> build/bdist.linux-armv7l/wheel/cvlearn 2022-04-06T15:55:35,163 copying build/lib/cvlearn/FaceDetection.py -> build/bdist.linux-armv7l/wheel/cvlearn 2022-04-06T15:55:35,168 copying build/lib/cvlearn/__init__.py -> build/bdist.linux-armv7l/wheel/cvlearn 2022-04-06T15:55:35,172 running install_egg_info 2022-04-06T15:55:35,221 running egg_info 2022-04-06T15:55:35,224 writing requirements to cvlearn.egg-info/requires.txt 2022-04-06T15:55:35,227 writing dependency_links to cvlearn.egg-info/dependency_links.txt 2022-04-06T15:55:35,229 writing cvlearn.egg-info/PKG-INFO 2022-04-06T15:55:35,234 writing top-level names to cvlearn.egg-info/top_level.txt 2022-04-06T15:55:35,243 reading manifest file 'cvlearn.egg-info/SOURCES.txt' 2022-04-06T15:55:35,251 writing manifest file 'cvlearn.egg-info/SOURCES.txt' 2022-04-06T15:55:35,254 Copying cvlearn.egg-info to build/bdist.linux-armv7l/wheel/cvlearn-0.1.0-py3.5.egg-info 2022-04-06T15:55:35,281 running install_scripts 2022-04-06T15:55:35,479 creating build/bdist.linux-armv7l/wheel/cvlearn-0.1.0.dist-info/WHEEL 2022-04-06T15:55:35,690 Building wheel for cvlearn (setup.py): finished with status 'done' 2022-04-06T15:55:35,694 Created wheel for cvlearn: filename=cvlearn-0.1.0-py3-none-any.whl size=9852 sha256=48090c91ad52174d33d17a3ffe1f0c57ea8f52367c0d12888e2c3ce9ab7e9d6b 2022-04-06T15:55:35,695 Stored in directory: /tmp/pip-ephem-wheel-cache-za_d1sdg/wheels/2c/bc/27/58fb9c5ff5d209c63594ace2f1015026289ed722a01f0cfe75 2022-04-06T15:55:35,712 Successfully built cvlearn 2022-04-06T15:55:35,719 Removed build tracker: '/tmp/pip-req-tracker-si33st_6'