dongmin1166 2013-11-20 06:17
浏览 59
已采纳

在Web应用程序中使用Zhu Ramanan代码

I have to use Face-eye detection algorithm by Zhu Ramanan in a web application. They have provided the code in Matlab and main computation is done in C++. Since I am new to image processing and matlab, i am not able to understand how to proceed on making it run with my web app.

I found that Matlab code can be ported to c++ by using coder function. So I tried using coder function in matlab which opened a Build menu wherein I selected C/C++ executable. But the build gets stuck when the code is loading a .mat file. It gives following error -

 Function 'load' implicitly resolved in the MATLAB workspace. Implicit evaluation
 in MATLAB is not supported. Please declare this function extrinsic using
 coder.extrinsic('load'), or call it using feval.

But both coder.extrinsic and feval are not compatible with C++.

I also read about a possibility of executing matlab file from php but that would be a very slow process (please correct me if i am wrong).

Can anyone please suggest whether I am going wrong and/or how should I proceed.

  • 写回答

1条回答 默认 最新

  • doushou6480 2013-11-20 06:26
    关注

    The code by Zhu and Ramanan uses a learned model to detect faces and fiducial points on them. The learned parameters are stored in a binary file of format mat used by Matlab. It appears as if the coder cannot port the load command that reads this file.

    In order to fix this I'm afraid you'll have to get your hands a bit dirty. You'll need to replace the mat file with a different format and change the code accordingly.
    Read the mat file in matlab using load and convert it into a different format of your choosing. Change the code to read the new file using more basic commands (e.g., fopen, fread and the liking) then use the coder to port the modified code.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)