movement detection in ROS
Hello Everyone, I tried a program on OpenCV about movement detection and It works pretty well since it's capturing 2 camera frames and making differentiation between them (from image to grayscale then threshold then absolute difference plus other variables like the sensitivity of the differentiation), however when I try to move the same program to ROS it's not working,
My assumption about this is that when I use image transport nodes, the image callback function just sends one image per parameter and then the comparison between both frames would be the same. can you guys please suggest me something I could use?... I don't have any idea about what to do and I checked in Internet and didn't find anything.