2022-05-25T06:42:40,091 Created temporary directory: /tmp/pip-ephem-wheel-cache-qf0zy0e5 2022-05-25T06:42:40,098 Created temporary directory: /tmp/pip-req-tracker-8btn5v1g 2022-05-25T06:42:40,099 Initialized build tracking at /tmp/pip-req-tracker-8btn5v1g 2022-05-25T06:42:40,099 Created build tracker: /tmp/pip-req-tracker-8btn5v1g 2022-05-25T06:42:40,099 Entered build tracker: /tmp/pip-req-tracker-8btn5v1g 2022-05-25T06:42:40,101 Created temporary directory: /tmp/pip-wheel-qlngvna9 2022-05-25T06:42:40,163 Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple 2022-05-25T06:42:40,166 2 location(s) to search for versions of cvlearn: 2022-05-25T06:42:40,166 * https://pypi.org/simple/cvlearn/ 2022-05-25T06:42:40,166 * https://www.piwheels.org/simple/cvlearn/ 2022-05-25T06:42:40,167 Fetching project page and analyzing links: https://pypi.org/simple/cvlearn/ 2022-05-25T06:42:40,169 Getting page https://pypi.org/simple/cvlearn/ 2022-05-25T06:42:40,173 Found index url https://pypi.org/simple 2022-05-25T06:42:40,425 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-05-25T06:42:40,426 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-05-25T06:42:40,427 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-05-25T06:42:40,428 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-05-25T06:42:40,429 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-05-25T06:42:40,430 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-05-25T06:42:40,431 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-05-25T06:42:40,431 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-05-25T06:42:40,432 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-05-25T06:42:40,433 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-05-25T06:42:40,434 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-05-25T06:42:40,434 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-05-25T06:42:40,435 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-05-25T06:42:40,436 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-05-25T06:42:40,437 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-05-25T06:42:40,438 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-05-25T06:42:40,438 Fetching project page and analyzing links: https://www.piwheels.org/simple/cvlearn/ 2022-05-25T06:42:40,439 Getting page https://www.piwheels.org/simple/cvlearn/ 2022-05-25T06:42:40,442 Found index url https://www.piwheels.org/simple 2022-05-25T06:42:40,682 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-05-25T06:42:40,683 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-05-25T06:42:40,683 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-05-25T06:42:40,684 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-05-25T06:42:40,684 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-05-25T06:42:40,685 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-05-25T06:42:40,685 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-05-25T06:42:40,718 Given no hashes to check 1 links for project 'cvlearn': discarding no candidates 2022-05-25T06:42:40,750 Collecting cvlearn==0.1.2 2022-05-25T06:42:40,753 Created temporary directory: /tmp/pip-unpack-igqns7aw 2022-05-25T06:42:40,971 Downloading cvlearn-0.1.2.tar.gz (5.9 kB) 2022-05-25T06:42:41,084 Added cvlearn==0.1.2 from https://files.pythonhosted.org/packages/43/08/1b0875dbc76ad9759ecda11eecf279aad96fd43f975623f66fb22149236d/cvlearn-0.1.2.tar.gz#sha256=5d35b01e0fa9b8c62d323355b9c02cf61c9eee8526953d2e513446b5d83f816b to build tracker '/tmp/pip-req-tracker-8btn5v1g' 2022-05-25T06:42:41,087 Running setup.py (path:/tmp/pip-wheel-qlngvna9/cvlearn_3bd07bb60c7e4322961c2238f099fb2a/setup.py) egg_info for package cvlearn 2022-05-25T06:42:41,090 Created temporary directory: /tmp/pip-pip-egg-info-1s031thk 2022-05-25T06:42:41,091 Running command python setup.py egg_info 2022-05-25T06:42:43,273 # cvlearn 2022-05-25T06:42:43,275 An easy to use package which helps to do hand tracking, face detection, etc. with use of opencv module. 2022-05-25T06:42:43,276 # Installation 2022-05-25T06:42:43,277 - Use Python 3.x 2022-05-25T06:42:43,278 - Open cmd/terminal and type: 2022-05-25T06:42:43,279 ```bash 2022-05-25T06:42:43,280 pip install cvlearn 2022-05-25T06:42:43,281 ``` 2022-05-25T06:42:43,282 # Dependencies 2022-05-25T06:42:43,282 - python 3.x 2022-05-25T06:42:43,283 - opencv-python 2022-05-25T06:42:43,284 - numpy 2022-05-25T06:42:43,284 - mediapipe 2022-05-25T06:42:43,285 # Examples 2022-05-25T06:42:43,286 **Hand Tracking:** 2022-05-25T06:42:43,288 ```bash 2022-05-25T06:42:43,288 from cvlearn import HandTrackingModule as handTracker 2022-05-25T06:42:43,289 import cv2 2022-05-25T06:42:43,290 cap = cv2.VideoCapture(0) 2022-05-25T06:42:43,291 detector = handTracker.handDetector() 2022-05-25T06:42:43,291 while True: 2022-05-25T06:42:43,292 ret, img = cap.read() 2022-05-25T06:42:43,293 img = detector.findHands(img) 2022-05-25T06:42:43,294 cv2.imshow("Result", img) 2022-05-25T06:42:43,294 cv2.waitKey(1) 2022-05-25T06:42:43,295 ``` 2022-05-25T06:42:43,296 ### **Result:** 2022-05-25T06:42:43,297 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/handTracking.jpg) 2022-05-25T06:42:43,299 **Face Detection:** 2022-05-25T06:42:43,300 ```bash 2022-05-25T06:42:43,300 from cvlearn import FaceDetection as faceDetector 2022-05-25T06:42:43,302 import cv2 2022-05-25T06:42:43,302 cap = cv2.VideoCapture(0) 2022-05-25T06:42:43,303 detector = faceDetector.FaceDetector() 2022-05-25T06:42:43,303 while True: 2022-05-25T06:42:43,304 ret, img = cap.read() 2022-05-25T06:42:43,305 img = detector.findFaces(img) 2022-05-25T06:42:43,306 cv2.imshow("Result", img) 2022-05-25T06:42:43,307 cv2.waitKey(1) 2022-05-25T06:42:43,307 ``` 2022-05-25T06:42:43,308 ### **Result:** 2022-05-25T06:42:43,308 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/faceDetection.jpg) 2022-05-25T06:42:43,309 # 2022-05-25T06:42:43,310 # 2022-05-25T06:42:43,310 **SideView:** 2022-05-25T06:42:43,311 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/faceDetection2.jpg) 2022-05-25T06:42:43,312 **Drawing face mesh:** 2022-05-25T06:42:43,313 ```bash 2022-05-25T06:42:43,313 from cvlearn import FaceMesh as fms 2022-05-25T06:42:43,314 import cv2 2022-05-25T06:42:43,315 cap = cv2.VideoCapture(0) 2022-05-25T06:42:43,316 detector = fms.FaceMeshDetector() 2022-05-25T06:42:43,316 while True: 2022-05-25T06:42:43,317 ret, img = cap.read() 2022-05-25T06:42:43,317 img, face = detector.findFaceMesh(img) 2022-05-25T06:42:43,318 cv2.imshow("Result", img) 2022-05-25T06:42:43,319 cv2.waitKey(1) 2022-05-25T06:42:43,320 ``` 2022-05-25T06:42:43,321 ### **Result:** 2022-05-25T06:42:43,322 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/faceMesh.jpg) 2022-05-25T06:42:43,323 # 2022-05-25T06:42:43,324 # 2022-05-25T06:42:43,325 **Finger Counting** 2022-05-25T06:42:43,326 ```bash 2022-05-25T06:42:43,327 from cvlearn import FingerCounter as fc 2022-05-25T06:42:43,327 import cvlearn.HandTrackingModule as handTracker 2022-05-25T06:42:43,328 import cv2 2022-05-25T06:42:43,329 cap = cv2.VideoCapture(0) 2022-05-25T06:42:43,331 detector = handTracker.handDetector(maxHands=1) 2022-05-25T06:42:43,332 counter = fc.FingerCounter() 2022-05-25T06:42:43,333 while True: 2022-05-25T06:42:43,334 ret, frame = cap.read() 2022-05-25T06:42:43,334 frame = cv2.flip(frame, 180) 2022-05-25T06:42:43,336 frame = detector.findHands(frame) 2022-05-25T06:42:43,336 lmList, bbox = detector.findPosition(frame) 2022-05-25T06:42:43,338 if lmList: 2022-05-25T06:42:43,339 frame1 = counter.drawCountedFingers(frame, lmList, bbox) 2022-05-25T06:42:43,340 cv2.imshow("res", frame) 2022-05-25T06:42:43,341 key = cv2.waitKey(1) 2022-05-25T06:42:43,341 if key == 27: 2022-05-25T06:42:43,342 break 2022-05-25T06:42:43,343 cv2.destroyAllWindows() 2022-05-25T06:42:43,345 ``` 2022-05-25T06:42:43,345 ### **Result:** 2022-05-25T06:42:43,346 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/fingerCounter.jpg) 2022-05-25T06:42:43,347 # 2022-05-25T06:42:43,348 # 2022-05-25T06:42:43,348 **Two Hands Finger Counting** 2022-05-25T06:42:43,349 ```bash 2022-05-25T06:42:43,350 from cvlearn import TwoHandsFingerCounter as fc 2022-05-25T06:42:43,350 import cv2 2022-05-25T06:42:43,352 cap = cv2.VideoCapture(0) 2022-05-25T06:42:43,353 counter = fc.FingerCounter() 2022-05-25T06:42:43,353 while True: 2022-05-25T06:42:43,354 ret, frame = cap.read() 2022-05-25T06:42:43,356 frame1 = counter.drawCountedFingers(frame) 2022-05-25T06:42:43,357 cv2.imshow("res", frame) 2022-05-25T06:42:43,358 key = cv2.waitKey(1) 2022-05-25T06:42:43,359 if key == 27: 2022-05-25T06:42:43,359 break 2022-05-25T06:42:43,360 cv2.destroyAllWindows() 2022-05-25T06:42:43,361 ``` 2022-05-25T06:42:43,362 ### **Result:** 2022-05-25T06:42:43,362 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/MultipleHandsFingerCounter.jpg) 2022-05-25T06:42:43,364 running egg_info 2022-05-25T06:42:43,364 creating /tmp/pip-pip-egg-info-1s031thk/cvlearn.egg-info 2022-05-25T06:42:43,365 writing dependency_links to /tmp/pip-pip-egg-info-1s031thk/cvlearn.egg-info/dependency_links.txt 2022-05-25T06:42:43,366 writing requirements to /tmp/pip-pip-egg-info-1s031thk/cvlearn.egg-info/requires.txt 2022-05-25T06:42:43,366 writing top-level names to /tmp/pip-pip-egg-info-1s031thk/cvlearn.egg-info/top_level.txt 2022-05-25T06:42:43,367 writing /tmp/pip-pip-egg-info-1s031thk/cvlearn.egg-info/PKG-INFO 2022-05-25T06:42:43,367 writing manifest file '/tmp/pip-pip-egg-info-1s031thk/cvlearn.egg-info/SOURCES.txt' 2022-05-25T06:42:43,726 reading manifest file '/tmp/pip-pip-egg-info-1s031thk/cvlearn.egg-info/SOURCES.txt' 2022-05-25T06:42:43,734 writing manifest file '/tmp/pip-pip-egg-info-1s031thk/cvlearn.egg-info/SOURCES.txt' 2022-05-25T06:42:43,879 Source in /tmp/pip-wheel-qlngvna9/cvlearn_3bd07bb60c7e4322961c2238f099fb2a has version 0.1.2, which satisfies requirement cvlearn==0.1.2 from https://files.pythonhosted.org/packages/43/08/1b0875dbc76ad9759ecda11eecf279aad96fd43f975623f66fb22149236d/cvlearn-0.1.2.tar.gz#sha256=5d35b01e0fa9b8c62d323355b9c02cf61c9eee8526953d2e513446b5d83f816b 2022-05-25T06:42:43,881 Removed cvlearn==0.1.2 from https://files.pythonhosted.org/packages/43/08/1b0875dbc76ad9759ecda11eecf279aad96fd43f975623f66fb22149236d/cvlearn-0.1.2.tar.gz#sha256=5d35b01e0fa9b8c62d323355b9c02cf61c9eee8526953d2e513446b5d83f816b from build tracker '/tmp/pip-req-tracker-8btn5v1g' 2022-05-25T06:42:43,891 Created temporary directory: /tmp/pip-unpack-2iw8qns0 2022-05-25T06:42:43,892 Building wheels for collected packages: cvlearn 2022-05-25T06:42:43,901 Created temporary directory: /tmp/pip-wheel-ap92zkcu 2022-05-25T06:42:43,902 Building wheel for cvlearn (setup.py): started 2022-05-25T06:42:43,903 Destination directory: /tmp/pip-wheel-ap92zkcu 2022-05-25T06:42:43,904 Running command /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-qlngvna9/cvlearn_3bd07bb60c7e4322961c2238f099fb2a/setup.py'"'"'; __file__='"'"'/tmp/pip-wheel-qlngvna9/cvlearn_3bd07bb60c7e4322961c2238f099fb2a/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-ap92zkcu 2022-05-25T06:42:45,684 # cvlearn 2022-05-25T06:42:45,686 An easy to use package which helps to do hand tracking, face detection, etc. with use of opencv module. 2022-05-25T06:42:45,687 # Installation 2022-05-25T06:42:45,688 - Use Python 3.x 2022-05-25T06:42:45,689 - Open cmd/terminal and type: 2022-05-25T06:42:45,690 ```bash 2022-05-25T06:42:45,691 pip install cvlearn 2022-05-25T06:42:45,691 ``` 2022-05-25T06:42:45,693 # Dependencies 2022-05-25T06:42:45,693 - python 3.x 2022-05-25T06:42:45,694 - opencv-python 2022-05-25T06:42:45,694 - numpy 2022-05-25T06:42:45,695 - mediapipe 2022-05-25T06:42:45,696 # Examples 2022-05-25T06:42:45,696 **Hand Tracking:** 2022-05-25T06:42:45,698 ```bash 2022-05-25T06:42:45,698 from cvlearn import HandTrackingModule as handTracker 2022-05-25T06:42:45,700 import cv2 2022-05-25T06:42:45,700 cap = cv2.VideoCapture(0) 2022-05-25T06:42:45,701 detector = handTracker.handDetector() 2022-05-25T06:42:45,701 while True: 2022-05-25T06:42:45,702 ret, img = cap.read() 2022-05-25T06:42:45,703 img = detector.findHands(img) 2022-05-25T06:42:45,704 cv2.imshow("Result", img) 2022-05-25T06:42:45,705 cv2.waitKey(1) 2022-05-25T06:42:45,706 ``` 2022-05-25T06:42:45,707 ### **Result:** 2022-05-25T06:42:45,707 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/handTracking.jpg) 2022-05-25T06:42:45,710 **Face Detection:** 2022-05-25T06:42:45,710 ```bash 2022-05-25T06:42:45,711 from cvlearn import FaceDetection as faceDetector 2022-05-25T06:42:45,712 import cv2 2022-05-25T06:42:45,713 cap = cv2.VideoCapture(0) 2022-05-25T06:42:45,714 detector = faceDetector.FaceDetector() 2022-05-25T06:42:45,714 while True: 2022-05-25T06:42:45,715 ret, img = cap.read() 2022-05-25T06:42:45,715 img = detector.findFaces(img) 2022-05-25T06:42:45,717 cv2.imshow("Result", img) 2022-05-25T06:42:45,718 cv2.waitKey(1) 2022-05-25T06:42:45,718 ``` 2022-05-25T06:42:45,719 ### **Result:** 2022-05-25T06:42:45,719 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/faceDetection.jpg) 2022-05-25T06:42:45,720 # 2022-05-25T06:42:45,721 # 2022-05-25T06:42:45,721 **SideView:** 2022-05-25T06:42:45,722 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/faceDetection2.jpg) 2022-05-25T06:42:45,723 **Drawing face mesh:** 2022-05-25T06:42:45,724 ```bash 2022-05-25T06:42:45,725 from cvlearn import FaceMesh as fms 2022-05-25T06:42:45,726 import cv2 2022-05-25T06:42:45,727 cap = cv2.VideoCapture(0) 2022-05-25T06:42:45,727 detector = fms.FaceMeshDetector() 2022-05-25T06:42:45,728 while True: 2022-05-25T06:42:45,729 ret, img = cap.read() 2022-05-25T06:42:45,729 img, face = detector.findFaceMesh(img) 2022-05-25T06:42:45,730 cv2.imshow("Result", img) 2022-05-25T06:42:45,731 cv2.waitKey(1) 2022-05-25T06:42:45,732 ``` 2022-05-25T06:42:45,733 ### **Result:** 2022-05-25T06:42:45,734 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/faceMesh.jpg) 2022-05-25T06:42:45,735 # 2022-05-25T06:42:45,735 # 2022-05-25T06:42:45,736 **Finger Counting** 2022-05-25T06:42:45,737 ```bash 2022-05-25T06:42:45,737 from cvlearn import FingerCounter as fc 2022-05-25T06:42:45,737 import cvlearn.HandTrackingModule as handTracker 2022-05-25T06:42:45,738 import cv2 2022-05-25T06:42:45,739 cap = cv2.VideoCapture(0) 2022-05-25T06:42:45,740 detector = handTracker.handDetector(maxHands=1) 2022-05-25T06:42:45,741 counter = fc.FingerCounter() 2022-05-25T06:42:45,742 while True: 2022-05-25T06:42:45,742 ret, frame = cap.read() 2022-05-25T06:42:45,743 frame = cv2.flip(frame, 180) 2022-05-25T06:42:45,744 frame = detector.findHands(frame) 2022-05-25T06:42:45,745 lmList, bbox = detector.findPosition(frame) 2022-05-25T06:42:45,746 if lmList: 2022-05-25T06:42:45,746 frame1 = counter.drawCountedFingers(frame, lmList, bbox) 2022-05-25T06:42:45,748 cv2.imshow("res", frame) 2022-05-25T06:42:45,748 key = cv2.waitKey(1) 2022-05-25T06:42:45,749 if key == 27: 2022-05-25T06:42:45,750 break 2022-05-25T06:42:45,751 cv2.destroyAllWindows() 2022-05-25T06:42:45,752 ``` 2022-05-25T06:42:45,753 ### **Result:** 2022-05-25T06:42:45,753 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/fingerCounter.jpg) 2022-05-25T06:42:45,754 # 2022-05-25T06:42:45,755 # 2022-05-25T06:42:45,756 **Two Hands Finger Counting** 2022-05-25T06:42:45,756 ```bash 2022-05-25T06:42:45,757 from cvlearn import TwoHandsFingerCounter as fc 2022-05-25T06:42:45,757 import cv2 2022-05-25T06:42:45,758 cap = cv2.VideoCapture(0) 2022-05-25T06:42:45,760 counter = fc.FingerCounter() 2022-05-25T06:42:45,760 while True: 2022-05-25T06:42:45,761 ret, frame = cap.read() 2022-05-25T06:42:45,763 frame1 = counter.drawCountedFingers(frame) 2022-05-25T06:42:45,764 cv2.imshow("res", frame) 2022-05-25T06:42:45,765 key = cv2.waitKey(1) 2022-05-25T06:42:45,765 if key == 27: 2022-05-25T06:42:45,766 break 2022-05-25T06:42:45,767 cv2.destroyAllWindows() 2022-05-25T06:42:45,768 ``` 2022-05-25T06:42:45,768 ### **Result:** 2022-05-25T06:42:45,769 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/MultipleHandsFingerCounter.jpg) 2022-05-25T06:42:46,159 running bdist_wheel 2022-05-25T06:42:46,175 running build 2022-05-25T06:42:46,176 running build_py 2022-05-25T06:42:46,511 creating build 2022-05-25T06:42:46,512 creating build/lib 2022-05-25T06:42:46,513 creating build/lib/cvlearn 2022-05-25T06:42:46,516 copying cvlearn/FingerCounter.py -> build/lib/cvlearn 2022-05-25T06:42:46,521 copying cvlearn/HandTrackingModule.py -> build/lib/cvlearn 2022-05-25T06:42:46,525 copying cvlearn/__init__.py -> build/lib/cvlearn 2022-05-25T06:42:46,530 copying cvlearn/FaceDetection.py -> build/lib/cvlearn 2022-05-25T06:42:46,536 copying cvlearn/Utils.py -> build/lib/cvlearn 2022-05-25T06:42:46,542 copying cvlearn/FaceMesh.py -> build/lib/cvlearn 2022-05-25T06:42:46,558 installing to build/bdist.linux-armv7l/wheel 2022-05-25T06:42:46,559 running install 2022-05-25T06:42:46,560 running install_lib 2022-05-25T06:42:46,568 creating build/bdist.linux-armv7l 2022-05-25T06:42:46,569 creating build/bdist.linux-armv7l/wheel 2022-05-25T06:42:46,572 creating build/bdist.linux-armv7l/wheel/cvlearn 2022-05-25T06:42:46,575 copying build/lib/cvlearn/FingerCounter.py -> build/bdist.linux-armv7l/wheel/cvlearn 2022-05-25T06:42:46,579 copying build/lib/cvlearn/HandTrackingModule.py -> build/bdist.linux-armv7l/wheel/cvlearn 2022-05-25T06:42:46,584 copying build/lib/cvlearn/__init__.py -> build/bdist.linux-armv7l/wheel/cvlearn 2022-05-25T06:42:46,588 copying build/lib/cvlearn/FaceDetection.py -> build/bdist.linux-armv7l/wheel/cvlearn 2022-05-25T06:42:46,592 copying build/lib/cvlearn/Utils.py -> build/bdist.linux-armv7l/wheel/cvlearn 2022-05-25T06:42:46,598 copying build/lib/cvlearn/FaceMesh.py -> build/bdist.linux-armv7l/wheel/cvlearn 2022-05-25T06:42:46,603 running install_egg_info 2022-05-25T06:42:46,651 running egg_info 2022-05-25T06:42:46,653 writing top-level names to cvlearn.egg-info/top_level.txt 2022-05-25T06:42:46,655 writing requirements to cvlearn.egg-info/requires.txt 2022-05-25T06:42:46,658 writing dependency_links to cvlearn.egg-info/dependency_links.txt 2022-05-25T06:42:46,660 writing cvlearn.egg-info/PKG-INFO 2022-05-25T06:42:46,699 reading manifest file 'cvlearn.egg-info/SOURCES.txt' 2022-05-25T06:42:46,708 writing manifest file 'cvlearn.egg-info/SOURCES.txt' 2022-05-25T06:42:46,711 Copying cvlearn.egg-info to build/bdist.linux-armv7l/wheel/cvlearn-0.1.2-py3.5.egg-info 2022-05-25T06:42:46,733 running install_scripts 2022-05-25T06:42:46,932 creating build/bdist.linux-armv7l/wheel/cvlearn-0.1.2.dist-info/WHEEL 2022-05-25T06:42:47,146 Building wheel for cvlearn (setup.py): finished with status 'done' 2022-05-25T06:42:47,151 Created wheel for cvlearn: filename=cvlearn-0.1.2-py3-none-any.whl size=8195 sha256=368e9b4f5c4d3d9da5f4054d4c0835c86d1a48044cb9676affda523590f501ea 2022-05-25T06:42:47,151 Stored in directory: /tmp/pip-ephem-wheel-cache-qf0zy0e5/wheels/3b/2e/8b/c2f966763e0682e54733a4affe2e5479dc921e13736d2cdc6f 2022-05-25T06:42:47,178 Successfully built cvlearn 2022-05-25T06:42:47,184 Removed build tracker: '/tmp/pip-req-tracker-8btn5v1g'