Example #1
0
def page():
    
    age=t1.get()
    
    City=city.get()
    Purpose=purpose.get()

    PyMongo.insertPrev(id,City,age,Purpose)
        
    #lp1 = Label(page,text="Data Entered Successfully")
    #lp1.pack()
    engine = pyttsx.init('sapi5');
    #cv2.waitKey(2);
    engine.say("Your data is successfully recorded ");
    engine.runAndWait()
    execfile("detector.py")
Example #2
0
        profile = PyMongo.GetName(float(id))
        print profile

        engine = pyttsx.init('sapi5')
        engine.say("Namaskaar !")
        cv2.waitKey(2)
        engine.say("Welcome to collector office ,Saanglee!" + str(profile))
        cv2.waitKey(2)
        engine.say("Please fill the following information")
        cv2.waitKey(2)
        engine.runAndWait()
        city = raw_input("Enter city:")
        age = raw_input("Enter age:")
        purpose = raw_input("Enter purpose:")

        PyMongo.insertPrev(id, city, age, purpose)

        cv2.waitKey(3)

        engine.say("Thank you for the response !")
        engine.runAndWait()
        break
        cv2.imshow("Face", img)

    if (cv2.waitKey(1) == ord('q')):
        break

cam.release()
cv2.destroyAllWindows()
FetchInformation.FetchInfo(id)
#con.close()