Cov txheej txheem:

Lub Sijhawm Teem Sijhawm Teem Sijhawm ntawm RaspberryPi-4: 6 Cov Kauj Ruam (nrog Duab)
Lub Sijhawm Teem Sijhawm Teem Sijhawm ntawm RaspberryPi-4: 6 Cov Kauj Ruam (nrog Duab)

Video: Lub Sijhawm Teem Sijhawm Teem Sijhawm ntawm RaspberryPi-4: 6 Cov Kauj Ruam (nrog Duab)

Video: Lub Sijhawm Teem Sijhawm Teem Sijhawm ntawm RaspberryPi-4: 6 Cov Kauj Ruam (nrog Duab)
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Hlis ntuj nqeg
Anonim
Image
Image

Hauv Cov Lus Qhia no peb yuav ua lub ntsej muag-xyuas lub sijhawm tiag tiag ntawm Raspberry Pi 4 nrog Shunya O/S siv Shunyaface Library. Koj tuaj yeem ua tiav qhov ntsuas pom ntawm 15-17 ntawm RaspberryPi-4 los ntawm kev ua raws cov lus qhia no.

Khoom siv

1. Raspberry Pi 4B (txhua yam sib txawv)

2. Raspberry Pi 4B ua raws lub zog siv

3. 8GB lossis loj dua daim npav micro SD

4. Saib xyuas

5. micro-HDMI Cable

6. Nas

7. Cov keyboard

8. lub khoos phis tawj lossis lwm lub khoos phis tawj (Ubuntu-16.04 nyiam dua) los teeb tsa daim npav nco

9. USB Webcam

Kauj Ruam 1: Nruab Shunya OS ntawm Raspberry Pi 4

Koj yuav xav tau lub khoos phis tawj lossis khoos phis tawj (nyiam dua Ubuntu-16.04) thiab lub micro SD daim npav nyeem ntawv/hloov pauv kom thauj daim npav micro SD nrog Shunya OS.

1) Rub tawm Shunya OS los ntawm lub xaib tso tawm

2) Nyem Shunya OS ntawm daim npav SD siv cov theem hauv qab no:

i) Txoj cai nyem rau ntawm daim ntawv zip rub tawm thiab xaiv Extract ntawm no

ii) Thaum cov duab tau qhib ob npaug nyem rau ntawm daim nplaub tshev duab uas koj yuav pom cov duab thiab tso tawm cov ntaub ntawv

iii) Txoj cai nyem rau ntawm daim duab (.img file)

iv) Xaiv Qhib nrog -> Disk duab sau ntawv

v) Xaiv Lub Hom Phiaj raws li SD Card Reader

vi) Sau koj tus password

Qhov no yuav pib flashing SD-card. Ua siab ntev thiab tos kom Sd-daim npav ua kom tiav (100%)

Kauj ruam 2: Teeb thiab Kev Sib Txuas

Rub tawm Txoj Cai
Rub tawm Txoj Cai

Raws li qhia hauv daim duab saum toj no koj yuav tsum ua cov hauv qab no:

1) Ntxig daim npav micro SD rau hauv Raspberry Pi 4.

2) Txuas nas & keyboard rau Raspberry Pi 4.

3) Txuas Saib Xyuas rau Raspberry Pi 4 ntawm micro-HDMI

4) Txuas USB Webcam rau Raspberry Pi 4

5) Txuas lub xov tooj hluav taws xob thiab Lub Hwj Chim ntawm Raspberry Pi 4.

Qhov no yuav khau raj Shunya OS ntawm RaspberryPi-4. Thawj qhov khau raj yuav siv sijhawm raws li cov ntaub ntawv system hloov pauv kom thiaj li nyob tau tag nrho SD-daim npav. Tom qab OS khau raj koj yuav tsum pom lub vijtsam nkag mus. Nov yog cov ntsiab lus nkag mus:

Username: shunya

Lo lus zais: shunya

Kauj Ruam 3: Nruab Shunyaface (Lub ntsej muag Nrhiav/lees paub Lub Tsev Qiv Ntawv)

Txhawm rau teeb tsa Shunyaface peb yuav tsum txuas RaspberryPi-4 mus rau lan lossis wifi

1. Txhawm rau txuas RPI-4 rau wifi siv cov lus txib hauv qab no:

$ sudo nmtui

2. Txhawm rau nruab shunyaface thiab cmake (kev vam khom) rau kev sib sau ua ke ntawm cov lej thiab git (rau rub tawm cov cai tiag), sau cov lus txib hauv qab no:

$ sudo opkg hloov tshiab && sudo opkg nruab shunyaface cmake git

Nco tseg: Kev teeb tsa yuav siv sijhawm li 5-6 feeb nyob ntawm koj li internet nrawm

Kauj ruam 4: Rub tawm Txoj Cai

Cov cai muaj nyob ntawm github. Koj tuaj yeem rub nws siv cov lus txib hauv qab no:

$ git clone

Kev piav qhia txoj cai:

Cov cai tau txais cov ntas txuas ntxiv siv Opencv's VideoCapture muaj nuj nqi. Cov ntas no tau muab rau qhov ntsuas ua haujlwm ntawm Shunyaface uas tig rov qab cov thav duab nrog lub thawv ciam av uas tau npaj tseg rau ntawm lub ntsej muag thiab cov ntsiab lus npaj rau ntawm lub qhov muag, qhov ntswg thiab qhov kawg ntawm daim di ncauj. Txhawm rau txiav tawm txoj cai nias lub pob "q". Tom qab nias "q" Qhov FPS tso tawm tau tshwm rau ntawm lub davhlau ya nyob twg.

Kauj Ruam 5: Sau Cov Cai

Txhawm rau sau cov cai siv cov lus txib hauv qab no:

$ cd piv txwv/piv txwv-ntsej muag

$./setup.sh

Kauj Ruam 6: Khiav Txoj Cai

Ib zaug, koj tau suav sau cov cai koj tuaj yeem ua nws siv cov lus txib.

$./build/facedetect

Tam sim no koj yuav tsum pom lub qhov rai qhib. Thaum twg lub ntsej muag nyob rau ntawm xub ntiag ntawm lub koob yees duab, nws yuav npaj lub npov uas nyob ib sab thiab nws yuav pom rau tus neeg siv ntawm lub qhov rais uas qhib.

Nrog koj zoo siab. Tam sim no koj tau ua tiav ua tiav kev nyeem-sijhawm pom lub ntsej muag ntawm RaspberryPi-4 siv kev kawm tob. Yog tias koj nyiam qhov kev qhia no thov nyiam, qhia cov lus qhia thiab ua hnub qub rau peb qhov chaw cia khoom github muab rau ntawm no.

Pom zoo: