Cov txheej txheem:

Pob Zeb Ntawv Txiab Game: 6 Kauj Ruam
Pob Zeb Ntawv Txiab Game: 6 Kauj Ruam

Video: Pob Zeb Ntawv Txiab Game: 6 Kauj Ruam

Video: Pob Zeb Ntawv Txiab Game: 6 Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Kaum ib hlis
Anonim
Pob Zeb Ntawv Txiab Game
Pob Zeb Ntawv Txiab Game

Nov yog kuv thawj qhov kev qhia. Kuv xav sau ib qho ntev tab sis kuv tsis muaj ib qhov haujlwm ntawm tes uas kuv tuaj yeem tshaj tawm ntawm no. Yog li thaum kuv los nrog lub tswv yim ntawm txoj haujlwm no, kuv txiav txim siab qhov no yog ib qho.

Yog li kuv tau txheeb xyuas tensorflow.js lub xaib, nws yog lub tsev qiv ntawv uas ua rau kev qhia thiab khiav ml qauv ntawm browser thiab node.js ib puag ncig thiab kuv tau dawm ntawm qhov kev qhia no uas tso cai rau koj qhia tus qauv ntawm browser txhawm rau cais cov duab sib txawv los ntawm koj lub webcam thiab tom qab ntawd cia koj xa tawm thiab rub tawm tus qauv kev kawm rau siv hauv koj cov phiaj xwm. Cool txoj cai!

Yog li kuv tam sim ua qhov kev ua si ntawm pob zeb, ntawv, txiab thiab kawm tus qauv hauv txoj hauv kev uas kuv ib txwm yeej xws li thaum kuv ua ntawv nws kwv yees pob zeb, thiab zoo ib yam rau pob zeb -> txiab, txiab -> ntawv.

Nov yog pob zeb, ntawv & txiab ua si uas koj ib txwm yeej

Khoom siv

Ib lub computer nrog internet txuas.

Kauj Ruam 1: Qhia Koj Tus Qauv Ml

Qhia Koj Tus Qauv Ml
Qhia Koj Tus Qauv Ml

Lub taub hau mus rau tensorflow.js demo thiab tsim 3 chav kawm nyob rau hauv kev txiav txim rau txiab, ntawv tom qab pob zeb thiab tom qab ntawd qhia lawv raws li qhia los ntawm kev ua qauv qhia.

Kauj Ruam 2: Rub Tus Qauv Kawm

Download Tus Qauv Kawm
Download Tus Qauv Kawm

Rub tus qauv thiab khaws cov ntaub ntawv khaws cia hauv daim nplaub tshev nyab xeeb. Nws yuav raug siv nyob rau theem tom ntej.

Kauj Ruam 3: Rub tawm Cov Cai Code

Koj tuaj yeem rub tawm qhov chaws los ntawm txhaj qhov txuas no - qhov chaws.

lossis Koj tuaj yeem taub hau mus rau kuv github repo ntawm no - git repo

Kauj ruam 4: Extract

Extract
Extract

Luam cov ntawv zip uas tau rub tawm.

Muaj kuv tus qauv nplaub tshev. Nov yog qhov uas koj tus qauv rub tawm yuav tsum tau muab rho tawm.

Extract cov ntaub ntawv tus qauv rub tawm ntawm no. Peb cov ntaub ntawv yuav tsum tau muab rho tawm los ntawm nws.

  1. metadata.json
  2. qauv.json
  3. weights.bin

# yog tias koj tau rho tawm cov qauv ua qauv rub tawm ntawm no qee qhov lwm qhov. Txiav thiab muab peb daim ntawv tso rau hauv kuv tus qauv nplaub tshev.

Kauj ruam 5: Hosting Qhov Project

Hosting Qhov Project
Hosting Qhov Project

Koj tsis tuaj yeem ua qhov haujlwm ncaj qha zoo li nplooj ntawv html yooj yim vim tias txoj haujlwm no yuav tsum muaj qee lub tsev qiv ntawv sab nraud kom thauj khoom ntawm tsab ntawv.

Yog li koj yuav tsum tuav lub phiaj xwm hauv zos ntawm koj lub computer. txoj hauv kev yooj yim tshaj plaws uas yog siv lub web server rau chrome.

mus rub nws tsuas yog lub taub hau mus rau google thiab tshawb rau lub web server rau chrome. Mus rau chrome.google.com txuas thiab ntxiv nws rau koj tus browser.

Xaiv lub nplaub tshev uas muaj qhov haujlwm thiab pib server yog tias nws tsis pib.

Kauj ruam 6: Tiav lawm

Tiav lawm
Tiav lawm

nyem rau ntawm pib. Thiab pib ua si qhov kev qhia tshwj xeeb uas tsim los rau koj kom koj ib txwm yeej.

Pom zoo: