Package: aiocv
AIOCVaiocv Is A Python Library Used To Track Hands, Track Pose, Detect Face, Detect Contours (Shapes), Detect Cars, Detect Number Plate, Detect Smile, Detect Eyes, Control Volume Using Gesture, Read QR Codes And Create Face Mesh On Image/Video.InstallationUse the package managerpipto install aiocv.pipinstallaiocvUsageHand Trackingimportaiocvimportcv2img=cv2.imread("hands.png")# Make An Objecthands=aiocv.HandTrack()# Use findHands() Method To Track Hands On Image/Videohands.findHands(img,draw=True)cv2.imshow("Image",img)cv2.waitKey(0)Params For findHands() Method :findHands(self,img=None,draw=True)If You Are Not Getting Desired Results, Consider Changing detectionConfidence = 1 and trackConfidence = 1Output :Pose Detectorimportaiocvimportcv2img=cv2.imread("man.png")# Make An Objectpose=aiocv.PoseDetector()# Use findPose() Method To Detect Pose On Image/Videopose.findPose(img,draw=True)cv2.imshow("Image",img)cv2.waitKey(0)Params For findPose() Method :findPose(self,img=None,draw=True)If You Are Not Getting Desired Results, Consider Changing detectionConfidence = 1 and trackConfidence = 1Output :Face Detectionimportaiocvimportcv2img=cv2.imread("elon_musk.png")# Make An Objectface=aiocv.FaceDetector()# Use findFace() Method To Detect Face On Image/Videoface.findFace(img,draw=True)cv2.imshow("Image",img)cv2.waitKey(0)Params For findFace() Method :findFace(self,img=None,draw=True)If You Are Not Getting Desired Results, Consider Changing detectionConfidence = 1Output :Face Meshimportaiocvimportcv2img=cv2.imread("elon_musk.png")# Make An Objectmesh=aiocv.FaceMesh()# Use findFaceMesh() Method To Detect Face And Draw Mesh On Image/Videomesh.findFaceMesh(img,draw=True)cv2.imshow("Image",img)cv2.waitKey(0)Params For findFaceMesh() Method :findFaceMesh(self,img=None,draw=True)If You Are Not Getting Desired Results, Consider Changing detectionConfidence = 1 and trackConfidence = 1Output :Contour (Shape) Detectionimportaiocvimportcv2img=cv2.imread("shapes.png")# Make An Objectshape=aiocv.ContourDetector(img)# Use findContours() Method To Detect Shapes On Image/Videoshape.findContours(img,draw=True)cv2.imshow("Image",img)cv2.waitKey(0)Output :Car Detectionimportaiocvimportcv2img=cv2.imread("car.png")# Make An Objectcar=aiocv.CarDetector(img)# Use findCars() Method To Detect Cars On Image/Videocar.findCars()cv2.imshow("Image",img)cv2.waitKey(0)Params For findCars() Method :findCars(self,color=(255,0,0),thickness=2)Output :Number Plate Detectionimportaiocvimportcv2img=cv2.imread("car.png")# Make An Objectcar=aiocv.NumberPlateDetector(img)# Use findNumberPlate() Method To Detect Number Plate On Image/Videocar.findNumberPlate()cv2.imshow("Image",img)cv2.waitKey(0)Params For findNumberPlate() Method :findNumberPlate(self,color=(255,0,0),thickness=2)Output :Smile Detectionimportaiocvimportcv2img=cv2.imread("person.png")# Make An Objectsmile=aiocv.SmileDetector(img)# Use findSmile() Method To Detect Smile On Image/Videosmile.findSmile()cv2.imshow("Image",img)cv2.waitKey(0)Params For findSmile() Method :findSmile(self,color=(255,0,0),thickness=2)Output :Eyes Detectionimportaiocvimportcv2img=cv2.imread("person.png")# Make An Objecteyes=aiocv.EyesDetector(img)# Use findEyes() Method To Detect Eyes On Image/Videoeyes.findEyes()cv2.imshow("Image",img)cv2.waitKey(0)Params For findEyes() Method :findEyes(self,color=(255,0,0),thickness=2)Output :Control Volume Using Gestureimportaiocv# Make An Objectgvc=aiocv.GestureVolumeControl()# Use controlVolume() Method To Control Volumegvc.controlVolume()Params For controlVolume() Method :controlVolume(self,color=(255,0,0),thickness=2)Params For GestureVolumeControl Class :gvc=aiocv.GestureVolumeControl(webcamIndex=0)# If You Want To Control From Other Camera, Set The webcamIndex Accordingly.Output :Read QR Codeimportaiocvimportcv2img=cv2.imread("qr.png")# Make An Objectqr=aiocv.QRCodeReader(img)# Use findQRCode() Method To Detect QR Code On Image/Videotext=qr.findQRCode()cv2.imshow("Image",img)cv2.waitKey(0)Params For findQRCode() Method :findQRCode(self,color=(255,0,0),thickness=3)To Print The Extracted Text :print(text)Output :ContributingPull Requests Are Welcome. For Major Changes, Please Open An Issue First To Discuss What You Would Like To Change.Please Make Sure To Update Tests As Appropriate.LicenseMIT