Return the value from the method in Kurento Media Server -
what do:
1.i downloaded kms-opencv-plugin-sample link(https://github.com/kurento/kms-opencv-plugin-sample).
2.replace opencv sample in process method opencv facedetection.
3.also make changes reference link how pass parameter in kms plugin , run facedetection.
4.i passes argument method,by modifying kmd.json
file
what need do:
1.in face detection shows output mat,also need return facerect value(rectangle points)
2.so need return value in response
you can raise event in case because process
method signature cannot changed.
from kurento documentation: there lot of examples of how define methods, parameters or events in our public built-in modules:
edit:
an example raising event can found here. can see, once event defined in kmd, can create , send using signal object.
in case of opencv plugin, need little bit more of work, because need reference endpoint object opencv class doing process.
Comments
Post a Comment