2021-10-25T16:59:43,067 Created temporary directory: /tmp/pip-ephem-wheel-cache-r6t7b_sv 2021-10-25T16:59:43,073 Created temporary directory: /tmp/pip-req-tracker-mfb3_fc7 2021-10-25T16:59:43,074 Initialized build tracking at /tmp/pip-req-tracker-mfb3_fc7 2021-10-25T16:59:43,074 Created build tracker: /tmp/pip-req-tracker-mfb3_fc7 2021-10-25T16:59:43,075 Entered build tracker: /tmp/pip-req-tracker-mfb3_fc7 2021-10-25T16:59:43,076 Created temporary directory: /tmp/pip-wheel-z870bk7d 2021-10-25T16:59:43,146 Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple 2021-10-25T16:59:43,150 2 location(s) to search for versions of cvlearn: 2021-10-25T16:59:43,150 * https://pypi.org/simple/cvlearn/ 2021-10-25T16:59:43,150 * https://www.piwheels.org/simple/cvlearn/ 2021-10-25T16:59:43,150 Fetching project page and analyzing links: https://pypi.org/simple/cvlearn/ 2021-10-25T16:59:43,152 Getting page https://pypi.org/simple/cvlearn/ 2021-10-25T16:59:43,157 Found index url https://pypi.org/simple 2021-10-25T16:59:43,477 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/) 2021-10-25T16:59:43,478 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 2021-10-25T16:59:43,479 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/) 2021-10-25T16:59:43,480 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 2021-10-25T16:59:43,480 Fetching project page and analyzing links: https://www.piwheels.org/simple/cvlearn/ 2021-10-25T16:59:43,481 Getting page https://www.piwheels.org/simple/cvlearn/ 2021-10-25T16:59:43,484 Found index url https://www.piwheels.org/simple 2021-10-25T16:59:43,717 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/) 2021-10-25T16:59:43,746 Given no hashes to check 1 links for project 'cvlearn': discarding no candidates 2021-10-25T16:59:43,778 Collecting cvlearn==0.0.6 2021-10-25T16:59:43,782 Created temporary directory: /tmp/pip-unpack-4m_1tjvt 2021-10-25T16:59:43,993 Downloading cvlearn-0.0.6.tar.gz (5.4 kB) 2021-10-25T16:59:44,093 Added cvlearn==0.0.6 from https://files.pythonhosted.org/packages/86/f2/4d93c9edd656285861946ce916bec06e2614de3881adbd6d2ca5ce27058f/cvlearn-0.0.6.tar.gz#sha256=e9e29067e9870cd40117366fe33e76bc108f69dec1b6a72086d7d7b6bca3b488 to build tracker '/tmp/pip-req-tracker-mfb3_fc7' 2021-10-25T16:59:44,095 Running setup.py (path:/tmp/pip-wheel-z870bk7d/cvlearn_16e80d22131848adbef968d19486083f/setup.py) egg_info for package cvlearn 2021-10-25T16:59:44,096 Created temporary directory: /tmp/pip-pip-egg-info-ydzj12vr 2021-10-25T16:59:44,097 Running command python setup.py egg_info 2021-10-25T16:59:46,292 # cvlearn 2021-10-25T16:59:46,294 An easy to use package which helps to do hand tracking, face detection, etc. with use of opencv module. 2021-10-25T16:59:46,295 # Installation 2021-10-25T16:59:46,296 - Use Python 3.x 2021-10-25T16:59:46,296 - Open cmd/terminal and type: 2021-10-25T16:59:46,298 ```bash 2021-10-25T16:59:46,298 pip install cvlearn 2021-10-25T16:59:46,299 ``` 2021-10-25T16:59:46,300 # Dependencies 2021-10-25T16:59:46,301 - python 3.x 2021-10-25T16:59:46,302 - opencv-python 2021-10-25T16:59:46,302 - numpy 2021-10-25T16:59:46,303 - mediapipe 2021-10-25T16:59:46,304 # Examples 2021-10-25T16:59:46,305 **Hand Tracking:** 2021-10-25T16:59:46,306 ```bash 2021-10-25T16:59:46,307 from cvlearn import HandTrackingModule as handTracker 2021-10-25T16:59:46,308 import cv2 2021-10-25T16:59:46,309 cap = cv2.VideoCapture(0) 2021-10-25T16:59:46,310 detector = handTracker.handDetector() 2021-10-25T16:59:46,310 while True: 2021-10-25T16:59:46,311 ret, img = cap.read() 2021-10-25T16:59:46,311 img = detector.findHands(img) 2021-10-25T16:59:46,313 cv2.imshow("Result", img) 2021-10-25T16:59:46,313 cv2.waitKey(1) 2021-10-25T16:59:46,315 ``` 2021-10-25T16:59:46,315 ### **Result:** 2021-10-25T16:59:46,316 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/handTracking.jpg) 2021-10-25T16:59:46,318 **Face Detection:** 2021-10-25T16:59:46,319 ```bash 2021-10-25T16:59:46,320 from cvlearn import FaceDetection as faceDetector 2021-10-25T16:59:46,321 import cv2 2021-10-25T16:59:46,321 cap = cv2.VideoCapture(0) 2021-10-25T16:59:46,322 detector = faceDetector.FaceDetector() 2021-10-25T16:59:46,322 while True: 2021-10-25T16:59:46,323 ret, img = cap.read() 2021-10-25T16:59:46,324 img = detector.findFaces(img) 2021-10-25T16:59:46,325 cv2.imshow("Result", img) 2021-10-25T16:59:46,326 cv2.waitKey(1) 2021-10-25T16:59:46,326 ``` 2021-10-25T16:59:46,327 ### **Result:** 2021-10-25T16:59:46,327 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/faceDetection.jpg) 2021-10-25T16:59:46,328 # 2021-10-25T16:59:46,329 # 2021-10-25T16:59:46,329 **SideView:** 2021-10-25T16:59:46,330 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/faceDetection2.jpg) 2021-10-25T16:59:46,331 **Drawing face mesh:** 2021-10-25T16:59:46,332 ```bash 2021-10-25T16:59:46,332 from cvlearn import FaceMesh as fms 2021-10-25T16:59:46,334 import cv2 2021-10-25T16:59:46,334 cap = cv2.VideoCapture(0) 2021-10-25T16:59:46,335 detector = fms.FaceMeshDetector() 2021-10-25T16:59:46,336 while True: 2021-10-25T16:59:46,336 ret, img = cap.read() 2021-10-25T16:59:46,337 img, face = detector.findFaceMesh(img) 2021-10-25T16:59:46,338 cv2.imshow("Result", img) 2021-10-25T16:59:46,339 cv2.waitKey(1) 2021-10-25T16:59:46,340 ``` 2021-10-25T16:59:46,341 ### **Result:** 2021-10-25T16:59:46,341 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/faceMesh.jpg) 2021-10-25T16:59:46,342 # 2021-10-25T16:59:46,343 # 2021-10-25T16:59:46,344 **Finger Counting** 2021-10-25T16:59:46,345 ```bash 2021-10-25T16:59:46,346 from cvlearn import FingerCounter as fc 2021-10-25T16:59:46,346 import cvlearn.HandTrackingModule as handTracker 2021-10-25T16:59:46,347 import cv2 2021-10-25T16:59:46,348 cap = cv2.VideoCapture(0) 2021-10-25T16:59:46,349 detector = handTracker.handDetector(maxHands=1) 2021-10-25T16:59:46,350 counter = fc.FingerCounter() 2021-10-25T16:59:46,351 while True: 2021-10-25T16:59:46,351 ret, frame = cap.read() 2021-10-25T16:59:46,352 frame = cv2.flip(frame, 180) 2021-10-25T16:59:46,353 frame = detector.findHands(frame) 2021-10-25T16:59:46,354 lmList, bbox = detector.findPosition(frame) 2021-10-25T16:59:46,356 if lmList: 2021-10-25T16:59:46,356 frame1 = counter.drawCountedFingers(frame, lmList, bbox) 2021-10-25T16:59:46,358 cv2.imshow("res", frame) 2021-10-25T16:59:46,359 key = cv2.waitKey(1) 2021-10-25T16:59:46,359 if key == 27: 2021-10-25T16:59:46,360 break 2021-10-25T16:59:46,362 cv2.destroyAllWindows() 2021-10-25T16:59:46,363 ``` 2021-10-25T16:59:46,364 ### **Result:** 2021-10-25T16:59:46,364 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/fingerCounter.jpg) 2021-10-25T16:59:46,368 running egg_info 2021-10-25T16:59:46,369 creating /tmp/pip-pip-egg-info-ydzj12vr/cvlearn.egg-info 2021-10-25T16:59:46,369 writing dependency_links to /tmp/pip-pip-egg-info-ydzj12vr/cvlearn.egg-info/dependency_links.txt 2021-10-25T16:59:46,370 writing requirements to /tmp/pip-pip-egg-info-ydzj12vr/cvlearn.egg-info/requires.txt 2021-10-25T16:59:46,371 writing /tmp/pip-pip-egg-info-ydzj12vr/cvlearn.egg-info/PKG-INFO 2021-10-25T16:59:46,371 writing top-level names to /tmp/pip-pip-egg-info-ydzj12vr/cvlearn.egg-info/top_level.txt 2021-10-25T16:59:46,372 writing manifest file '/tmp/pip-pip-egg-info-ydzj12vr/cvlearn.egg-info/SOURCES.txt' 2021-10-25T16:59:46,725 reading manifest file '/tmp/pip-pip-egg-info-ydzj12vr/cvlearn.egg-info/SOURCES.txt' 2021-10-25T16:59:46,733 writing manifest file '/tmp/pip-pip-egg-info-ydzj12vr/cvlearn.egg-info/SOURCES.txt' 2021-10-25T16:59:46,869 Source in /tmp/pip-wheel-z870bk7d/cvlearn_16e80d22131848adbef968d19486083f has version 0.0.6, which satisfies requirement cvlearn==0.0.6 from https://files.pythonhosted.org/packages/86/f2/4d93c9edd656285861946ce916bec06e2614de3881adbd6d2ca5ce27058f/cvlearn-0.0.6.tar.gz#sha256=e9e29067e9870cd40117366fe33e76bc108f69dec1b6a72086d7d7b6bca3b488 2021-10-25T16:59:46,871 Removed cvlearn==0.0.6 from https://files.pythonhosted.org/packages/86/f2/4d93c9edd656285861946ce916bec06e2614de3881adbd6d2ca5ce27058f/cvlearn-0.0.6.tar.gz#sha256=e9e29067e9870cd40117366fe33e76bc108f69dec1b6a72086d7d7b6bca3b488 from build tracker '/tmp/pip-req-tracker-mfb3_fc7' 2021-10-25T16:59:46,881 Created temporary directory: /tmp/pip-unpack-qect8pae 2021-10-25T16:59:46,882 Building wheels for collected packages: cvlearn 2021-10-25T16:59:46,891 Created temporary directory: /tmp/pip-wheel-09j6sunb 2021-10-25T16:59:46,892 Building wheel for cvlearn (setup.py): started 2021-10-25T16:59:46,893 Destination directory: /tmp/pip-wheel-09j6sunb 2021-10-25T16:59:46,893 Running command /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-z870bk7d/cvlearn_16e80d22131848adbef968d19486083f/setup.py'"'"'; __file__='"'"'/tmp/pip-wheel-z870bk7d/cvlearn_16e80d22131848adbef968d19486083f/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-09j6sunb 2021-10-25T16:59:48,559 # cvlearn 2021-10-25T16:59:48,561 An easy to use package which helps to do hand tracking, face detection, etc. with use of opencv module. 2021-10-25T16:59:48,562 # Installation 2021-10-25T16:59:48,563 - Use Python 3.x 2021-10-25T16:59:48,563 - Open cmd/terminal and type: 2021-10-25T16:59:48,565 ```bash 2021-10-25T16:59:48,565 pip install cvlearn 2021-10-25T16:59:48,566 ``` 2021-10-25T16:59:48,567 # Dependencies 2021-10-25T16:59:48,568 - python 3.x 2021-10-25T16:59:48,568 - opencv-python 2021-10-25T16:59:48,569 - numpy 2021-10-25T16:59:48,570 - mediapipe 2021-10-25T16:59:48,571 # Examples 2021-10-25T16:59:48,572 **Hand Tracking:** 2021-10-25T16:59:48,573 ```bash 2021-10-25T16:59:48,573 from cvlearn import HandTrackingModule as handTracker 2021-10-25T16:59:48,575 import cv2 2021-10-25T16:59:48,576 cap = cv2.VideoCapture(0) 2021-10-25T16:59:48,576 detector = handTracker.handDetector() 2021-10-25T16:59:48,577 while True: 2021-10-25T16:59:48,577 ret, img = cap.read() 2021-10-25T16:59:48,578 img = detector.findHands(img) 2021-10-25T16:59:48,579 cv2.imshow("Result", img) 2021-10-25T16:59:48,580 cv2.waitKey(1) 2021-10-25T16:59:48,581 ``` 2021-10-25T16:59:48,582 ### **Result:** 2021-10-25T16:59:48,583 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/handTracking.jpg) 2021-10-25T16:59:48,585 **Face Detection:** 2021-10-25T16:59:48,586 ```bash 2021-10-25T16:59:48,587 from cvlearn import FaceDetection as faceDetector 2021-10-25T16:59:48,588 import cv2 2021-10-25T16:59:48,589 cap = cv2.VideoCapture(0) 2021-10-25T16:59:48,589 detector = faceDetector.FaceDetector() 2021-10-25T16:59:48,590 while True: 2021-10-25T16:59:48,591 ret, img = cap.read() 2021-10-25T16:59:48,591 img = detector.findFaces(img) 2021-10-25T16:59:48,592 cv2.imshow("Result", img) 2021-10-25T16:59:48,593 cv2.waitKey(1) 2021-10-25T16:59:48,593 ``` 2021-10-25T16:59:48,594 ### **Result:** 2021-10-25T16:59:48,594 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/faceDetection.jpg) 2021-10-25T16:59:48,595 # 2021-10-25T16:59:48,595 # 2021-10-25T16:59:48,596 **SideView:** 2021-10-25T16:59:48,596 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/faceDetection2.jpg) 2021-10-25T16:59:48,598 **Drawing face mesh:** 2021-10-25T16:59:48,598 ```bash 2021-10-25T16:59:48,599 from cvlearn import FaceMesh as fms 2021-10-25T16:59:48,600 import cv2 2021-10-25T16:59:48,600 cap = cv2.VideoCapture(0) 2021-10-25T16:59:48,601 detector = fms.FaceMeshDetector() 2021-10-25T16:59:48,602 while True: 2021-10-25T16:59:48,602 ret, img = cap.read() 2021-10-25T16:59:48,603 img, face = detector.findFaceMesh(img) 2021-10-25T16:59:48,604 cv2.imshow("Result", img) 2021-10-25T16:59:48,605 cv2.waitKey(1) 2021-10-25T16:59:48,606 ``` 2021-10-25T16:59:48,607 ### **Result:** 2021-10-25T16:59:48,607 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/faceMesh.jpg) 2021-10-25T16:59:48,609 # 2021-10-25T16:59:48,609 # 2021-10-25T16:59:48,610 **Finger Counting** 2021-10-25T16:59:48,611 ```bash 2021-10-25T16:59:48,612 from cvlearn import FingerCounter as fc 2021-10-25T16:59:48,612 import cvlearn.HandTrackingModule as handTracker 2021-10-25T16:59:48,613 import cv2 2021-10-25T16:59:48,614 cap = cv2.VideoCapture(0) 2021-10-25T16:59:48,615 detector = handTracker.handDetector(maxHands=1) 2021-10-25T16:59:48,616 counter = fc.FingerCounter() 2021-10-25T16:59:48,617 while True: 2021-10-25T16:59:48,617 ret, frame = cap.read() 2021-10-25T16:59:48,618 frame = cv2.flip(frame, 180) 2021-10-25T16:59:48,619 frame = detector.findHands(frame) 2021-10-25T16:59:48,620 lmList, bbox = detector.findPosition(frame) 2021-10-25T16:59:48,621 if lmList: 2021-10-25T16:59:48,622 frame1 = counter.drawCountedFingers(frame, lmList, bbox) 2021-10-25T16:59:48,623 cv2.imshow("res", frame) 2021-10-25T16:59:48,624 key = cv2.waitKey(1) 2021-10-25T16:59:48,624 if key == 27: 2021-10-25T16:59:48,625 break 2021-10-25T16:59:48,626 cv2.destroyAllWindows() 2021-10-25T16:59:48,627 ``` 2021-10-25T16:59:48,628 ### **Result:** 2021-10-25T16:59:48,628 ![App Screenshot](https://raw.githubusercontent.com/Tanay-ErrorCode/cvlearn/main/images/fingerCounter.jpg) 2021-10-25T16:59:48,984 running bdist_wheel 2021-10-25T16:59:48,1000 running build 2021-10-25T16:59:49,000 running build_py 2021-10-25T16:59:49,334 creating build 2021-10-25T16:59:49,335 creating build/lib 2021-10-25T16:59:49,336 creating build/lib/cvlearn 2021-10-25T16:59:49,339 copying cvlearn/FingerCounter.py -> build/lib/cvlearn 2021-10-25T16:59:49,344 copying cvlearn/HandTrackingModule.py -> build/lib/cvlearn 2021-10-25T16:59:49,348 copying cvlearn/__init__.py -> build/lib/cvlearn 2021-10-25T16:59:49,352 copying cvlearn/FaceDetection.py -> build/lib/cvlearn 2021-10-25T16:59:49,356 copying cvlearn/FaceMesh.py -> build/lib/cvlearn 2021-10-25T16:59:49,367 installing to build/bdist.linux-armv7l/wheel 2021-10-25T16:59:49,368 running install 2021-10-25T16:59:49,370 running install_lib 2021-10-25T16:59:49,377 creating build/bdist.linux-armv7l 2021-10-25T16:59:49,378 creating build/bdist.linux-armv7l/wheel 2021-10-25T16:59:49,382 creating build/bdist.linux-armv7l/wheel/cvlearn 2021-10-25T16:59:49,384 copying build/lib/cvlearn/FingerCounter.py -> build/bdist.linux-armv7l/wheel/cvlearn 2021-10-25T16:59:49,389 copying build/lib/cvlearn/HandTrackingModule.py -> build/bdist.linux-armv7l/wheel/cvlearn 2021-10-25T16:59:49,393 copying build/lib/cvlearn/__init__.py -> build/bdist.linux-armv7l/wheel/cvlearn 2021-10-25T16:59:49,397 copying build/lib/cvlearn/FaceDetection.py -> build/bdist.linux-armv7l/wheel/cvlearn 2021-10-25T16:59:49,401 copying build/lib/cvlearn/FaceMesh.py -> build/bdist.linux-armv7l/wheel/cvlearn 2021-10-25T16:59:49,404 running install_egg_info 2021-10-25T16:59:49,459 running egg_info 2021-10-25T16:59:49,460 writing requirements to cvlearn.egg-info/requires.txt 2021-10-25T16:59:49,463 writing dependency_links to cvlearn.egg-info/dependency_links.txt 2021-10-25T16:59:49,465 writing cvlearn.egg-info/PKG-INFO 2021-10-25T16:59:49,469 writing top-level names to cvlearn.egg-info/top_level.txt 2021-10-25T16:59:49,479 reading manifest file 'cvlearn.egg-info/SOURCES.txt' 2021-10-25T16:59:49,487 writing manifest file 'cvlearn.egg-info/SOURCES.txt' 2021-10-25T16:59:49,490 Copying cvlearn.egg-info to build/bdist.linux-armv7l/wheel/cvlearn-0.0.6-py3.5.egg-info 2021-10-25T16:59:49,512 running install_scripts 2021-10-25T16:59:49,714 creating build/bdist.linux-armv7l/wheel/cvlearn-0.0.6.dist-info/WHEEL 2021-10-25T16:59:49,934 Building wheel for cvlearn (setup.py): finished with status 'done' 2021-10-25T16:59:49,939 Created wheel for cvlearn: filename=cvlearn-0.0.6-py3-none-any.whl size=7516 sha256=ffbd20d84f960f6e23313597f8086df2bcea4f44590a44ef2cc78e96a1103843 2021-10-25T16:59:49,940 Stored in directory: /tmp/pip-ephem-wheel-cache-r6t7b_sv/wheels/f2/92/fc/b343271292d2f4dc1b78e60abf062c9e4a47436b89e667f877 2021-10-25T16:59:49,961 Successfully built cvlearn 2021-10-25T16:59:49,967 Removed build tracker: '/tmp/pip-req-tracker-mfb3_fc7'