0
我已經在基於測試程序的kurento上創建了一個opencv模塊,它被識別並正確加載到kms中,現在我正在測試它。我的想法是使用魔鏡例子,用我的插件調用替換faceoverlayfilter的通話所以我把它在pom.xml文件相關性並提出這改變了MagicMirrorHandler.java:在Java中使用OpenCV Kurento模塊的問題
import org.kurento.module.fotoacceso3.*;
//import org.kurento.client.FaceOverlayFilter;
...
// // Media logic
// FaceOverlayFilter faceOverlayFilter = new FaceOverlayFilter.Builder(pipeline).build();
//
// String appServerUrl = System.getProperty("app.server.url",
// MagicMirrorApp.DEFAULT_APP_SERVER_URL);
// faceOverlayFilter.setOverlayedImage(appServerUrl + "/img/mario-wings.png", -0.35F, -1.2F,
// 1.6F, 1.6F);
//
// webRtcEndpoint.connect(faceOverlayFilter);
// faceOverlayFilter.connect(webRtcEndpoint);
fotoacceso3 fotoacceso3 = new fotoacceso3.Builder(pipeline).build();
String appServerUrl = System.getProperty("app.server.url",
MagicMirrorApp.DEFAULT_APP_SERVER_URL);
// faceOverlayFilter.setOverlayedImage(appServerUrl + "/img/mario-wings.png", -0.35F, -1.2F,
// 1.6F, 1.6F);
webRtcEndpoint.connect(fotoacceso3);
fotoacceso3.connect(webRtcEndpoint);
當我運行代碼它不會給出錯誤,並顯示兩個視頻,但模塊不會做任何事情。我對Java有很少的經驗,我能做些什麼來檢查問題出在哪裏?