2016-03-15 63 views
2

我該怎麼辦:產生如何通過額外的參數中公里插件

1.I因此,對於該KMS-OpenCV的-插件樣本

2.To調用(使用鏈接https://github.com/Kurento/kms-opencv-plugin-sample)。來自client-js的opencv-plugin,我修改了crowddetector-client-js「https://github.com/Kurento/kurento-tutorial-js/tree/master/kurento-crowddetecto r」(將文件夾名稱重命名爲kurento-module-opencvpluginsample)。

3.Modification我做:

1.Updated the opencv js file path in the index.html 
    2.Replaced the "kurento-module-crowddetector" to "kurento-module-opencvpluginsample"(with the newly generated JS files) 
    3.Modified the module name in the index.js 
    4.Removed the old reference to crowddetector. 

4,我開始了 「KurentoMediaServer」,然後選擇 「HTTP服務器」,加載頁面的瀏覽器

http://10.10.1.3:8080/index.html?ws_uri=ws://10.10.1.3:8888/kurento# 

5.It 作品成功。

6.我也嘗試用opencv-plugin-sample中的默認給定代碼替換opencv人臉檢測代碼,它也可以。

我需要知道:

1.什麼我需要做的,如果我想在這個過程中添加額外的參數()?

2.如果我想在cpp中添加另一種方法,我該怎麼辦?

回答

4

過程方法無法修改,您需要通過kmd.json文件中的屬性或方法修改對象屬性。這樣就創建了一個可以從遠程客戶端訪問的API。

只需修改kmd.json,這將生成C++中的基本存根。解決編譯問題,然後根據您的需要使用這些屬性。

瞭解如何在示例過濾器中使用this method。同樣可以用屬性而不是方法來完成。

+0

感謝您的回覆,@ santoscadenas –

+0

是的,如果你有機會請加入房間http://chat.stackexchange.com/rooms/36966/kurento-media-server –

+0

遵循示例opencv過濾器,並運行良好用int或double,但是創建一個需要一個String的方法會產生一個錯誤! – geekInMe

相關問題