How make calculator in python We make a calculator in python using kivy module . Kivy module helps us to make android apps . First wait , If you run a kivy program in your terminal then you see a error like this To solve this problem you have to go kivy docs and follow the instruction of kivy docs. First we have to make a virtual environment and then in the virtual environment you have to install kivy . After that you have to write kivy_venv\Scripts\activate in your terminal and then run the file . If this method not work then write the comment below. LETS START CODING First we import kivy .For this we hve to write from kivy.app import App from kivy.uix.label import Label from kivy.uix.button import Button from kivy.core.window import Window from kivy.uix.gridlayout import GridLayout from kivy.uix.widget import Widget from kivy.lang import ...
Face Recognizer in python We make a face recognition program in python with the help of opencv . Opencv module is used in face detection and face recognition . Lets Strat Coding First , we have to import opencv . For this we have to write import cv2 After this we have to write cap = cv2.VideoCapture( 0 ) Now, we have to go the folder where the opencv is installed and open the folder data . After this copy the all xml haarcascade file and paste it in our working folder where we making face detection program . After this we have to load facedectector and eyedetector . For this we have to write facedetector=cv2.CascadeClassifier( 'Cascades/haarcascade_frontalface_default.xml' ) eyedetector=cv2.CascadeClassifier( 'Cascades/haarcascade_eye.xml' ) After this we make while loop . In this while loop we draw a rectangle around the face and eye in each frame and the show the frame . For this we have to write while ( True ): ...