安裝
npx create-react-app obj-detector cd obj-detector npm install @tensorflow/tfjs @tensorflow-models/coco-ssd
程式
// 到"obj-detector/src/"資料夾
// 開啟App.js,將程式碼更換為下方網址內的內容
<a href="https://gist.githubusercontent.com/Jackie-Tan/edfcdbd62e8b4974b3856d968e1e53a1/raw/bad6e0a35006711c5e89a151ee962824385a3ab4/App.js" rel="nofollow noopener noreferrer" target="_blank">https://gist.githubusercontent.com/Jackie-Tan/edfcdbd62e8b4974b3856d968e1e53a1/raw/bad6e0a35006711c5e89a151ee962824385a3ab4/App.js</a>
<strong>/*更換App.css的內容如下*/</strong>
.app-position { position: fixed; margin: auto; }
佈署
npm start
#開啟以下網址查看APP
<a href="http://localhost:3000/" rel="nofollow noopener noreferrer" target="_blank">http://localhost:3000/</a>
在手機上開
#開啟ngrok.exe後,輸入下方指令後會產生一串網址,將該網址於手機上開啟即可
#手機須使用Chrome開啟
ngrok http 3000
以上所述就是小编给大家介绍的《手機即時影像辨識APP:使用TensorFlow.js和React》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
猜你喜欢:- matlab—影像分析进阶
- matlab—影像分析基础
- 影像云,一个不能错失的时代
- 2018年智能影像行业研究报告
- 医学影像AI:全球市场展望
- [译] 解密 Mapbox 卫星影像处理神器 Robosat
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
How to Solve It
Zbigniew Michalewicz、David B. Fogel / Springer / 2004-03-01 / USD 59.95
This book is the only source that provides comprehensive, current, and detailed information on problem solving using modern heuristics. It covers classic methods of optimization, including dynamic pro......一起来看看 《How to Solve It》 这本书的介绍吧!