Cov txheej txheem:

Kev Pom Lub Ntsej Muag ntawm Raspberry Pi 4B hauv 3 Kauj Ruam: 3 Kauj Ruam
Kev Pom Lub Ntsej Muag ntawm Raspberry Pi 4B hauv 3 Kauj Ruam: 3 Kauj Ruam

Video: Kev Pom Lub Ntsej Muag ntawm Raspberry Pi 4B hauv 3 Kauj Ruam: 3 Kauj Ruam

Video: Kev Pom Lub Ntsej Muag ntawm Raspberry Pi 4B hauv 3 Kauj Ruam: 3 Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Hlis ntuj nqeg
Anonim
Kev Pom Lub Ntsej Muag ntawm Raspberry Pi 4B hauv 3 Kauj Ruam
Kev Pom Lub Ntsej Muag ntawm Raspberry Pi 4B hauv 3 Kauj Ruam
Kev Pom Lub Ntsej Muag ntawm Raspberry Pi 4B hauv 3 Kauj Ruam
Kev Pom Lub Ntsej Muag ntawm Raspberry Pi 4B hauv 3 Kauj Ruam

Hauv Cov Lus Qhia no peb yuav ua lub ntsej muag-nrhiav pom ntawm Raspberry Pi 4 nrog Shunya O/S siv Shunyaface Library. Shunyaface yog lub ntsej muag lees paub/nrhiav tsev qiv ntawv. Txoj haujlwm muaj lub hom phiaj kom ua tiav kev txheeb xyuas sai tshaj plaws thiab lees paub nrawm nrog cov cuab yeej siv hluav taws xob qis yog li cov neeg txhawb siab zoo li koj tuaj yeem coj koj txoj kev npau suav AI cov haujlwm mus rau lub neej sai dua.

Khoom siv

Raspberry Pi 4B (txhua yam sib txawv)

Raspberry Pi 4B ua raws lub zog siv

8GB lossis loj dua daim npav micro SD

Saib xyuas

micro-HDMI Cable

Nas

Keyboard

laptop lossis lwm lub khoos phis tawj los teeb tsa daim npav nco

Kauj Ruam 1: Nruab Shunya OS ntawm Raspberry Pi 4

Koj yuav xav tau lub khoos phis tawj lossis khoos phis tawj nrog lub micro SD daim npav nyeem ntawv/hloov pauv kom thauj daim npav micro SD nrog Shunya OS.

Rub tawm Shunya OS los ntawm lub xaib tso tawm

Flashing Shunya OS ntawm SD-Card siv cov kauj ruam muab rau ntawm no: Flashing Shunya OS ntawm Raspberry Pi 4.

Ntxig daim npav micro SD rau hauv Raspberry Pi 4.

Txuas tus nas & keyboard rau Raspberry Pi 4.

Txuas Saib Xyuas rau Raspberry Pi 4 ntawm micro-HDMI

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

Raspberry Pi 4 yuav tsum khau raj nrog Shunya OS.

Kauj ruam 2: Nruab Shunyaface

Shunyaface yog lub ntsej muag nrhiav/lees paub lub tsev qiv ntawv rau txhua lub rooj txhawb nqa los ntawm Shunya OS.

Txhawm rau teeb tsa Shunyaface peb yuav tsum txuas nws mus rau wifi

1. Txuas rau wifi siv qhov hais kom ua:

$ sudo nmtui

2. Txhim kho shunyaface thiab cmake yog qhov yooj yim, khiav cov lus txib hauv qab no:

$ sudo apt hloov tshiab

$ sudo apt nruab shunyaface cmake

Kauj Ruam 3: Tus Qauv Piv Txwv thiab Cov Lus Tso Tawm

Piv txwv li Code thiab cov zis
Piv txwv li Code thiab cov zis
Piv txwv li Code thiab cov zis
Piv txwv li Code thiab cov zis

Hauv cov cai saum toj no, ib daim duab tau nyeem siv qhov ua haujlwm nyeem. Lub thav duab no tau dhau mus rau lub luag haujlwm tshawb pom uas xa rov qab lub thawv rau ntawm lub ntsej muag thiab tseem npaj cov ntsiab lus ntawm qhov kawg ntawm daim di ncauj thiab nruab nrab ntawm lub qhov muag.

Rub cov cai nrog rau cov ntaub ntawv tsim nyog muab hauv qab no thiab Tshem tawm cov ntaub ntawv siv cov lus txib hauv qab no:

$ tar -xvzf tus qauv -ntsej muag tiv thaiv.tar.gz

$ cd coj mus kuaj-ntsib

Sau nws siv qhov hais kom ua

$./setup.sh

Khiav nws siv qhov hais kom ua

$./build/facedetect

Qhov no yuav qhia koj cov duab nrog pom lub ntsej muag.

Sau koj tus kheej cov cai thiab suav sau

1. Kho cov ntaub ntawv src/faceetect-sample.cpp thiab ntxiv koj cov cai nyob ntawd.

2. tom qab ntawv khiav cov lus txib no kom suav thiab tsim binary

$./setup.sh

3. Khiav nws siv qhov hais kom ua

$./build/facedetect

Xaus: Shunyaface tuaj yeem pab koj txheeb xyuas lossis paub lub ntsej muag hauv ob peb kab ntawm cov lej. Yog tias koj nyiam qhov kev qhia no thov nyiam nws, qhia tawm thiab ua hnub qub rau peb qhov chaw cia khoom github muab rau ntawm no

Pom zoo: