Cov txheej txheem:

Fingerprint Voting Online System (FVOS): 5 Kauj Ruam
Fingerprint Voting Online System (FVOS): 5 Kauj Ruam

Video: Fingerprint Voting Online System (FVOS): 5 Kauj Ruam

Video: Fingerprint Voting Online System (FVOS): 5 Kauj Ruam
Video: Which voting system is the best? - Alex Gendler 2024, Kaum ib hlis
Anonim
Fingerprint Voting Online System 2 Watch on
Fingerprint Voting Online System 2 Watch on
Fingerprint Voting Online System (FVOS)
Fingerprint Voting Online System (FVOS)

Fingerprint Voting Online System tso cai rau cov neeg pov npav los pov npav hauv qhov digitized yam los ntawm kev sau thiab lees paub nws cov ntaub ntawv los ntawm kev tshuaj xyuas ntiv tes los ntawm lub cuab yeej thiab khaws cov ntaub ntawv mus rau Server. Nws muaj cov neeg siv-phooj ywg GUI (Graphic User Interface) rau kev pov ntawv tawm suab. Fingerprint pov npav online system pab txheeb xyuas cov tib neeg uas twb tau pov ntawv xaiv tsa lawm. Nws txuag cov ntaub ntawv hauv server thiab hauv cov cuab yeej pov npav. Yog li qhov kev tshuaj xyuas ob zaug ntawm cov ntawv pov npav tuaj yeem ua tiav. Cov cuab yeej tau tswj hwm los ntawm server, suav nrog tus password, Party name. Cov cuab yeej nqa tau yooj yim thiab lub cev hnyav ib yam. Qhov tshwm sim kuj tseem xam tam sim.

Kauj Ruam 1: MATERIALS SIV

1. Raspberry Pi 3 Qauv B+

2. LCD kov Screen 7 nti

3. USB rau Serial Converter

4. R307 Kho Qhov Muag Ntiv Tes Nyeem Ntawv Sensor Module

5. Daim Ntawv Qhia & Daim Ntawv Plaub

6. USB Adapter 5V 3A thiab Cable

7. HDMI- HDMI Cable

8. Wireless Keyboard

Kauj ruam 2: Txuas HARDWARE

Kev sib txuas HARDWARE
Kev sib txuas HARDWARE

Txuas lub HDMI-HDMI cable los ntawm Raspberry HDMI chaw nres nkoj rau Kov Screen HDMI chaw nres nkoj. Coj tus USB cable thiab txuas nws los ntawm Kov Screen mus rau USB tus pin ntawm Raspberry rau kev ua haujlwm ntawm kov. Tom qab ntawd Txuas USB Serial Converter pins rau Fingerprint Sensor module. Txuas Serial hloov pauv mus rau USB chaw nres nkoj ntawm Raspberry. Ua lub thawv xav tau raws li qhov loj me uas siv cov duab los qhia thiab daim ntawv plaub. Muab lub Fingerprint sensor tso rau hauv txoj hauv kev uas cov ntiv tes tuaj yeem tso rau ntawm Fingerprint sensor. Li no Kho vajtse yog npaj txhij

Kauj Ruam 3: Teeb tsa GUI

GUI tau tsim kho hauv nab hab sej 3 siv Tkinter lub tsev qiv ntawv. FVOS.py yog txoj haujlwm kom ua tiav. Ua ntej ua tiav qhov haujlwm tsim nyog pob khoom yuav tsum tau teeb tsa:

Tkinter Pob (Feem ntau muaj nyob hauv nab nab)

PIL Pob (Rau Wallpaper)

urllib Pob

gspread Pob

oauth2client Pob

Tom qab ntxiv txhua pob, qhov program tau npaj tiav. Ua ntej ntawd, cov ntiv tes yuav tsum tau muab cia rau hauv lub sensor. Txog qhov ntawd muaj cov ntawv ntiv tes.py tso rau Finger print. Ua thiab khaws cov ntiv tes hais los ntawm 9. Ntawm no kuv tau tsim GUI hauv txoj hauv kev uas 9 tus ntiv tes tuaj yeem ntxiv rau ib tus neeg. Txuag qhov chaw nyob hauv ntau ntawm 9 (9-17, 18-26, ……). Ntawm no kuv txuag cov ntiv tes hauv lub sensor nws tus kheej. Kuv tus neeg rau zaub mov tsis muaj chaw txaus los tso tus qauv ntiv tes. Tab sis kuv cov ntaub ntawv hloov pauv yog ua tiav los ntawm server. Tom qab khaws cov ntawv ntiv tes ua tiav FVOS.py program. Ib lub qhov rais yuav tshwm sim. Hloov tus password los ntawm server. Thaum pov ntawv tawm suab cov ntawv tseem yuav raug khaws tseg hauv daim nplaub tshev nws tus kheej muaj cov ntaub ntawv ntawm cov neeg uas lawv tau pov npav.

Kauj Ruam 4: TSEV KAWM NTAWV NTAWM SERVER

TSEV KAWM NTAWV NTAWV
TSEV KAWM NTAWV NTAWV
TSEV KAWM NTAWV NTAWV
TSEV KAWM NTAWV NTAWV

Ntawm no kuv tau siv Google Daim Ntawv Qhia Ua Kuv li Server.

Teeb tsa Google Spreadsheet thiab API

1. Mus rau Google APIs Console.

2. Tsim txoj haujlwm tshiab.

3. Nyem Enable API.

4. Tshawb nrhiav thiab qhib Google Drive API.

5. Tsim daim ntawv pov thawj rau lub Vev Xaib nkag mus rau Cov Ntaub Ntawv Thov.

6. Npe lub npe kev pabcuam thiab pab nws Txoj Haujlwm Role of Editor.

7. Rub tawm JSON cov ntawv.

8. Luam JSON cov ntaub ntawv rau koj phau ntawv teev npe thiab hloov nws mus rau FVOS.json

Muaj ib qib kawg uas yuav tsum tau ua los tso cai rau daim ntawv thov nab nab, thiab nws yooj yim rau plam

Nrhiav tus client_email hauv client_FVOS.json. Rov qab rau hauv koj daim ntawv nthuav qhia, nyem khawm Qhia tawm nyob rau sab saum toj sab xis, thiab muab tus neeg siv email rau hauv Cov Neeg Teb rau muab nws kho txoj cai. Ntaus Xa.

Yog tias koj hla cov kauj ruam no, koj yuav tau txais gspread.exceptions. S spreadsheetNotFound yuam kev thaum koj sim nkag mus rau daim ntawv nthuav qhia los ntawm Python.

Yog xav paub ntxiv xa mus rau:

www.twilio.com/blog/2017/02/an-easy-way-to-read-and-write-to-a-google-spreadsheet-in-python.html

Tom qab ntawd ntxiv cov teb raws li qhia hauv daim duab, tom qab ntawd ntxiv cov neeg lub npe thiab cov ntsiab lus.

Kauj Ruam 5: Ua tiav

Tom qab xa cov ntaub ntawv. Tus neeg rau zaub mov yog npaj txhij. Thov tsis txhob hloov kab lossis kab ntawm cov npe teb. Txij li thaum lawv tau txiav txim siab ua ntej hauv cov lej. Tsis txhob hnov qab rub tawm JSON cov ntaub ntawv thiab txuas tus lej ID rau daim ntawv nthuav qhia.

Txhawm rau Ua tiav Cov Ntaub Ntawv rub tawm los ntawm no: https://drive.google.com/drive/folders/1_4LlJjrKN3FDjVMM9p92M9W3ud_h4hIa? Usp = sib koom

Pom zoo: