BackgroundSubtractorMOG2 errors in java

asked 2016-06-02 13:20:34 -0500

Indira gravatar image

updated 2016-06-08 13:14:30 -0500

I'm using BackgroundSubtractorMOG2 bmog=org.opencv.video.Video.createBackgroundSubtractorMOG2(100, 30, false) in my java code for detecting movements in a video. Though it shows the movements i get the following errors when it is run.
whats the below error ?
I need to detect specific objects movements in a video.Is there any better way of detecting movements in a video other than the above api?

OpenCL program build log: -D CN=3 -D NMIXTURES=5 -D SHADOW_DETECT -D INTEL_DEVICE :161:13: error: call to 'mad' is ambiguous T_MEAN dD = mad(a, c_mean, -pix); ^~~ <stdin>:1677:37: note: candidate function float __attribute__((overloadable)) mad(float a, float b, float c); ^ <stdin>:1680:38: note: candidate function float4 __attribute__((overloadable)) mad(float4 a, float4 b, float4 c); ^ :201:11: error: call to 'mad' is ambiguous meanVal = mad(c_weight, c_mean, meanVal); ^~~ <stdin>:1677:37: note: candidate function float __attribute__((overloadable)) mad(float a, float b, float c); ^ <stdin>:1680:38: note: candidate function float4 __attribute__((overloadable)) mad(float4 a, float4 b, float4 c); ^ 6 diagnostics generated.

Can some one help me on this please?

edit retag flag offensive close merge delete