How to make a motion history image for presentation in one image?

I am working on a gesture recognition project. Now I want to prepare a presentation in which I can only show images. I have a series of images that define the gesture, and I want to show them in one image, just like the images of the history of movement are shown in the literature.

My question is simple, which works in opencv, I can use it to create an image of the history of movement, using 10 or more images that determine the movement of the hand.

As an example, I have the following image, and I want to show the location of the hand (opacity directly depends on the time reference).

an example image

I tried using GIMP to combine layers with a different opacity to do the same, however the output is not very good. output with gimp

+4
source share
1 answer

You can use cv :: updateMotionHistory
In fact, OpenCV also demonstrates use in samples / c / motempl.c

+4
source

All Articles