【问题标题】:Module 'opencvpluginsample' is not installed in the Kurento Media ServerKurento 媒体服务器中未安装模块“opencvpluginsample”
【发布时间】:2016-03-15 07:53:29
【问题描述】:

我做了什么:

  1. 我从https://github.com/Kurento/kms-opencv-plugin-sample下载了更新的opencv_plugin-sample。

  2. 使用 cmake-gui 运行 cmakelist 并生成 so 使用

    sudo make install
    
  3. so在路径中生成

    usr/local/lib/x86_64-linux-gnu/kurento/modules
    
  4. 从kms-opencv-plugin-sample中的js文件夹,我运行命令

    cmake .. -DGENERATE_JS_CLIENT_PROJECT=TRUE
    
  5. 为了生成“kurento-module-opencvpluginsample.min.js”、“kurento-module-opencvpluginsample.map”文件,我在 js 文件夹中安装了 grunt,使用命令

    npm install grunt grunt-browserify grunt-contrib-clean grunt-jsdoc grunt-npm2bower-sync minifyify

  6. 会生成一个 dist 文件夹,其中包含文件(“kurento-module-opencvpluginsample.min.js”、“kurento-module-opencvpluginsample.map”、“kurento-module-opencvpluginsample.js”)

  7. 我为 kms-opencv-client 创建了一个文件夹,并从链接 https://github.com/Kurento/kurento-tutorial-js 复制了 kurento-crowddetector 文件夹中的所有文件

  8. 在 kms-opencv-client 的 bower-component 内部,我将 kurento-crowddetector-module 替换为 opencv-plugin-sample-module,其中包含从第 6 步生成的 js

  9. 还更改了index.html中的js路径,也替换了index.js中的模块名

  10. 我启动了 Kurento 媒体服务器和 http 服务器

  11. 当我从浏览器加载页面时

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

  12. 当我点击开始按钮时,出现以下错误

    SyntaxError: 模块 'opencvpluginsample' 未安装在 Kurento 媒体服务器中

    我在 opencv-plugin 安装过程中遗漏了什么吗

【问题讨论】:

    标签: kurento


    【解决方案1】:

    问题是 js 客户端正在尝试检查您需要的所有模块,并且似乎该模块未正确安装在 kurento 媒体服务器中。

    您说您生成了 .so 文件,但您还需要让 mediaeserver 加载它。为此,您有三个选择:

    1. 安装在 /usr/lib/x86_64-linux-gnu/kurento/modules/
    2. 编辑 /etc/default/kurento 并添加 KURENTO_MODULES_PATH 变量以指示加载 so 文件的目录
    3. 通过执行:cmake .. -DCMAKE_INSTALL_PREFIX=/usr && make && sudo make install 正确指示安装目录到 cmake

    完成此操作后,kms 日志应显示模块正在加载。

    【讨论】:

    • 现在本地流正在工作,远程流未加载,因为在人群检测器中他们使用 const RegionOfInterest = kurentoClient.register.complexTypes.RegionOfInterest const RegionOfInterestConfig = kurentoClient.register.complexTypes.RegionOfInterestConfig const RelativePoint= kurentoClient .register.complexTypes.RelativePoint
    • 在kms-opencv-plugin-sample中,它有三个方法 OpencvPluginSampleOpenCVImpl::process (cv::Mat &mat) OpencvPluginSampleOpenCVImpl::setFilterType (int filterType) OpencvPluginSampleOpenCVImpl::setEdgeThreshold (int edgeValue) 如何用 index.js 中的人群检测器方法替换 opencv-plugin-sample 方法
    • 对不起,我不明白这个问题,而且它似乎与原始主题无关。
    • 是的,如果你有机会请加入房间chat.stackexchange.com/rooms/36966/kurento-media-server
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-07-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多