Example #1
0
def main():
    welcome()
    print("Enter Your Adhaar Card number")
    number = int(input())
    form=c.adhaar(number)
    print('Your personal identification details are:')
    for i in form.keys():
        if i=="Adhaar_no":
            print("Adhaar card number" + ": " + str(form[i]))
        else:
            print(str(i)+": "+str(form[i]))

    print("Please put your thumb in fingure print scanner.")
    print("Please wait verification is in process.")

    tryy = 3
    while not verify.fingure(form["Adhaar_no"]):
        print("Fingure print did not verified please try again after cleaning your fingure.\nYou have only {} chance left.".format(tryy))
        tryy = tryy - 1
        if tryy:
            pass
        else:
            print("You exceed maximum number of attempt.")
            sys.exit()
    else:
        print("Fingure print succesesfully verified")

    print("Please be infront of the camera.")
    tryy=3
    while not face_capture.capture():
        print("Face did not recognized please try again after removing all obsticle from the face. Face should be clearly in front of camera.")
        tryy=tryy-1
        if tryy:
            pass
        else:
            print(" You exceed maximum number of attempt.")
            sys.exit()
    else:
        print("Face has been sucessfully captured")

    form['Profile']=load_file("victim.jpg")
    os.remove("victim.jpg")
    print("Please tell the details ")
    print("Date of incident")
    form["Date_of_incident"] = input()
    print('Place of incident')
    form['Place_pf_incident'] = input()
    print('Please give the description')
    form['Description'] = input()
    form["Victim_Name"] = form.pop("Name")
    form['Investigating_officer'] = str(c.min_case_off())
    c.fir_register(form)
    send.send_message()
    print("All the details has been send successfully.")
Example #2
0
def main():
    welcome()
    print("Enter Your Adhaar Card number")
    number = int(input())
    form=c.adhaar(number)
    print('Your personal identification details are:')
    for i in form.keys():
        if i=="Adhaar_no":
            print("Adhaar card number" + ": " + str(form[i]))
        else:
            print(str(i)+": "+str(form[i]))

    print("Please tell the details ")
    print("Date of incident")
    form["Date_of_incident"] = input()
    print('Place of incident')
    form['Place_pf_incident'] = input()
    print('Please give the description')
    form['Description'] = input()
    form["Victim_Name"] = form.pop("Name")
    form['Investigating_officer'] = str(c.min_case_off())
    c.fir_register(form)
    send.send_message()
    print("All the details has been send successfully.")
Example #3
0
def main():
    translator = Translator()
    welcome()
    number = int(input())
    print('आपकी व्यक्तिगत पहचान के विवरण हैं')
    form = db.adhaar(number)
    for i in form.keys():
        if i == 'Name':
            temp = translator.translate(text=str(i) + ": " + str(form[i]),
                                        dest='hi',
                                        src='en').text
            print(temp)
        elif i == 'DOB':
            print("जन्म तिथि " + form[i])
        elif i == 'Mobile no':
            print("मोबाइल नंबर " + str(form[i]))
        elif i == 'E-mail':
            print("ई-मेल " + str(form[i]))
        elif i == "Adhaar_no":
            print("आधार कार्ड नंबर " + str(form[i]))
        elif i == "Gender":
            print("लिंग " + form[i])
        elif i == "Mobile":
            print("मोबाइल नंबर " + str(form[i]))

    print("Please put your thumb in fingure print scanner.")
    print("Please wait verification is in process.")

    tryy = 3
    while not verify.fingure(form["Adhaar_no"]):
        print(
            "Fingure print did not verified please try again after cleaning your fingure.\nYou have only {} chance left."
            .format(tryy))
        tryy = tryy - 1
        if tryy:
            pass
        else:
            print("You exceed maximum number of attempt.")
            sys.exit()
    else:
        print("Fingure print succesesfully verified")

    print("Please be infront of the camera.")
    tryy = 3
    while not face_capture.capture():
        print(
            "Face did not recognized please try again after removing all obsticle from the face. Face should be clearly in front of camera."
        )
        tryy = tryy - 1
        if tryy:
            pass
        else:
            print(" You exceed maximum number of attempt.")
            sys.exit()
    else:
        print("Face has been sucessfully captured")

    form['Profile'] = load_file("victim.jpg")
    os.remove("victim.jpg")
    print("कृपया विवरण बताएं ।\nघटना की तिथि ।")
    form["Date_of_incident"] = input()
    print('घटना का स्थान।')
    form['Place_pf_incident'] = input()
    print('कृपया पूरा विवरण दें।')
    form['Description'] = input()

    form["Victim_Name"] = form.pop("Name")
    form['Investigating_officer'] = str(db.min_case_off())
    db.fir_register(form)
    send.send_message()
    print("सभी विवरण सफलतापूर्वक भेजे गए हैं")
def main():
    translator = Translator()
    welcome()
    number = int(input())
    print('आपकी व्यक्तिगत पहचान के विवरण हैं')
    speak('आपकी व्यक्तिगत पहचान के विवरण हैं')
    form=db.adhaar(number)
    #print(translator.translate(text=str("Name")+": "+str("Gaurav"), dest='hi', src='en').text)
    for i in form.keys():
        if i == 'Name':
            temp = translator.translate(text=str(i)+": "+str(form[i]), dest='hi', src='en').text
            speak(temp)
            print(temp)
        elif i == 'DOB':
            print("जन्म तिथि " + form[i])
        elif i == 'Mobile no':
            print("मोबाइल नंबर " +str(form[i]))
        elif i == 'E-mail':
            print("ई-मेल " + str(form[i]))
        elif i=="Adhaar_no":
            print("आधार कार्ड नंबर "+str(form[i]))
        elif i=="Gender":
            print("लिंग " +form[i])
        elif i=="Mobile":
            print("मोबाइल नंबर "+str(form[i]))


    print("कृपया अपने अंगूठे को फिंगरप्रिंट प्रिंट स्कैनर में रखें।")
    print("कृपया प्रतीक्षा करें कि सत्यापन प्रक्रिया में है।")

    tryy = 3
    while not verify.fingure(form["Adhaar_no"]):
        print("अंगुली की छाप प्रिंट सत्यापित नहीं किया कृपया अपनी उंगलियों की सफाई के बाद फिर से प्रयास करें।\nतुम्हारे पास ही है {} मौका बचा।".format(tryy))
        tryy = tryy - 1
        if tryy:
            pass
        else:
            print("आप अधिक से अधिक संख्या में प्रयास करें।")
            sys.exit()
    else:
        print("फिंगर प्रिंट सक्सेसली वेरिफाइड")

    print("कृपया कैमरे का उल्लंघन करें।")
    tryy=3
    while not face_capture.capture():
        print("चेहरा पहचाना नहीं गया था कृपया चेहरे से सभी रुकावटों को हटाने के बाद फिर से कोशिश करें। कैमरा के सामने चेहरा स्पष्ट रूप से होना चाहिए।")
        tryy=tryy-1
        if tryy:
            pass
        else:
            print("आप अधिक से अधिक संख्या में प्रयास करें।")
            sys.exit()
    else:
        print("चेहरे पर सफलतापूर्वक कब्जा कर लिया गया है")

    form['Profile'] = load_file("victim.jpg")
    os.remove("victim.jpg")
    print("कृपया विवरण बताएं ।\nघटना की तिथि ।")
    speak("कृपया विवरण बताएं ।\nघटना की तिथि ।")
    form["Date_of_incident"] = takecommand()
    print('घटना का स्थान।')
    speak('घटना का स्थान।')
    form['Place_pf_incident'] = takecommand()
    print('कृपया पूरा विवरण दें।')
    speak('कृपया पूरा विवरण दें।')
    form['Description'] = takecommand()

    form["Victim_Name"] = form.pop("Name")
    form['Investigating_officer'] = str(db.min_case_off())
    db.fir_register(form)
    send.send_message()
    print("सभी विवरण सफलतापूर्वक भेजे गए हैं।")
    speak("All the details has been send successfully.")