Ask Your Question

sentientnativeplant's profile - activity

2019-05-02 16:59:47 -0600 asked a question What is the best way to plot real time line graphs in opencv?

What is the best way to plot real time line graphs in opencv? I have some opencv code which averages the pixel intensity

2019-04-30 04:15:12 -0600 received badge  Enthusiast
2019-04-29 05:41:45 -0600 asked a question How does the Gunnar Farneback algorithm find displacement?

How does the Gunnar Farneback algorithm find displacement? I understand that the Gunner Farneback's optical flow functio

2019-04-17 13:34:15 -0600 commented answer Drawing a rectangle and masking the outside area

Thank you, that is what I was looking for.

2019-04-17 13:17:04 -0600 marked best answer Drawing a rectangle and masking the outside area

image description

I wrote some code that uses background subtraction to measure movement. The above image shows the first frame (1), Original video (2), and movement via background subtraction (3).

I was able to draw a rectangle during the video and I know that the value (-1) fills the rectangle. Is there a way to have everything outside of the rectangle be masked instead? That way I can reset the first frame and then only measure the inside of the rectangle.

2019-04-17 13:17:04 -0600 received badge  Scholar (source)
2019-04-15 07:45:26 -0600 asked a question Drawing a rectangle and masking the outside area

Drawing a rectangle and masking the outside area I wrote some code that uses background subtraction to measure movemen