C#下使用Tensorflow實現網路攝影機映像的處理

來源:互聯網
上載者:User

標籤:gen   編譯   tps   tensor   and   android   models   com   har   

TensorFlow內建例子已經包含了android和ios下的網路攝影機Image Recognition,這裡補充一個Windows下的,使用AForge庫(www.aforgenet.com)操作網路攝影機。

代碼在這裡下載,使用VS2017編譯。

http://files.cnblogs.com/files/autosoftdev/TensorFlowCamera.zip

運行時,從這裡

https://www.nuget.org/api/v2/package/TensorFlowSharp/1.2.2

下載並解壓取出libtensorflow.dll。

從這裡

https://storage.googleapis.com/download.tensorflow.org/models/inception5h.zip

下載模型。

並將libtensorflow.dll、tensorflow_inception_graph.pb、imagenet_comp_graph_label_strings.txt這3個檔案放到編譯後的exe同級目錄下。

運行即可看到網路攝影機畫面並即時顯示識別結果。程式全部資料均來源於網路收集整理,僅供學習之用。

參考資料:

http://www.cnblogs.com/Leo_wl/p/6897649.html
https://github.com/migueldeicaza/TensorFlowSharp

C#下使用Tensorflow實現網路攝影機映像的處理

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.