Ask Your Question

MatthewSannes's profile - activity

2015-12-16 08:22:57 -0600 received badge  Enthusiast
2015-12-15 13:52:38 -0600 received badge  Scholar (source)
2015-12-14 17:16:53 -0600 received badge  Supporter (source)
2015-12-14 13:47:54 -0600 commented answer Track foot contact on treadmill

Any way to track left vs right? Sometimes people will step on the left side of the frame with their right foot.

2015-12-13 21:26:17 -0600 received badge  Editor (source)
2015-12-09 01:38:43 -0600 asked a question Track foot contact on treadmill

What is the best approach on tracking weather a person's left foot or right foot is currently in contact with a treadmill using a camera from behind the treadmill?

image description

Here is the approach I am taking after the helpful direction. The results are average and produce some false positives. Especially when the right foot gets over into the left side of the ROI. Any tips on improving my results would be greatly appreciated.

Camera feed is 640x480 at 15 FPS

  1. Convert image to grayscale
  2. Gaussian blur the gray image with a 3x3 kernel and sigma x of 1
  3. Focusing the procession on the ROI shown bellow
  4. Using BackgroundSubtractorMOG2 in order to detect motion within the ROI (Shadow Detection: false, Learning Rate: 0.05)
  5. Opening morphology 3x3 structure, center anchor, 2 iterations on ROI.
  6. Sum non zero pixels on the left half and sum non zero on right half of ROI to determine left foot or right foot.

image description