Ask Your Question

maxisme's profile - activity

2019-04-28 15:59:39 -0600 asked a question Installing bgsegm for python3

Installing bgsegm for python3 My CMAKE includes: -- Python 2: -- Interpreter: /usr/bin/python2.7

2019-04-28 15:59:33 -0600 asked a question Installing bgsegm for python3

Installing bgsegm for python3 My CMAKE includes: -- Python 2: -- Interpreter: /usr/bin/python2.7

2018-12-13 20:37:55 -0600 received badge  Teacher (source)
2018-06-14 09:55:13 -0600 received badge  Student (source)
2017-11-20 12:14:26 -0600 commented answer How to give createBackgroundSubtractorMOG2 selective history images.

Applied erosion and dilation to it and getting really good results!!

2017-11-18 15:06:25 -0600 commented answer How to give createBackgroundSubtractorMOG2 selective history images.

I am getting a lot of noise which seems to be just background content for example this is the actual background and this

2017-11-18 14:56:25 -0600 marked best answer How to give createBackgroundSubtractorMOG2 selective history images.

I am currently running this to acquire images:

 fgbg = cv2.createBackgroundSubtractorMOG2(detectShadows=False)
 for frame in cam.camera.capture_continuous(raw, format="rgb", use_video_port=True):
    img = frame.array
    fgmask = fgbg.apply(img)

How can I go about choosing which images to save in the history. I want to build a function where I can select which images are background. For example initially the first 50 input images will be used as history for the subtractor and after that all masks that have under a certain threshold of difference will be used as history too. I basically do not want the new foreground images to be used as history is that possible?

I have written this code:

fgmask = fgbg.apply(img, bg_learning_rate)

# check if should learn from content
perc_black = np.count_nonzero(fgmask) / len(fgmask)
if perc_black > MOVEMENT_THRESH:
    # something is happening in image
    bg_learning_rate = 0
else:
    bg_learning_rate = -1

but this teaches the system to not use the next image in the model which is not that useful although highly probable that it will still feature a large object.

I am doing this to extract people from a static background.

2017-11-18 14:56:25 -0600 received badge  Scholar (source)
2017-11-18 14:56:24 -0600 received badge  Supporter (source)
2017-11-18 09:27:53 -0600 commented question How to give createBackgroundSubtractorMOG2 selective history images.

See my code above!

2017-11-18 03:49:17 -0600 commented question How to give createBackgroundSubtractorMOG2 selective history images.

I can tell you for a fact it won't be.

2017-11-17 17:37:25 -0600 received badge  Editor (source)
2017-11-17 17:37:25 -0600 edited question How to give createBackgroundSubtractorMOG2 selective history images.

How to give createBackgroundSubtractorMOG2 selective history images. I am currently running this to acquire images: fg

2017-11-17 17:34:28 -0600 commented question How to give createBackgroundSubtractorMOG2 selective history images.

Can you expand a bit? If I leave it to train on 500 images first of all. After that I set a blackness threshold and if i

2017-11-17 12:44:03 -0600 asked a question How to give createBackgroundSubtractorMOG2 selective history images.

How to give createBackgroundSubtractorMOG2 selective history images. I am currently running this to acquire images: fg

2017-11-15 15:18:52 -0600 asked a question Unable to use background subtractor.

Unable to use background subtractor. I have installed opencv 3.3 when running python: import cv2 cv2.__version__ retu

2017-10-24 15:03:21 -0600 received badge  Self-Learner (source)
2017-10-24 14:59:24 -0600 answered a question How should I measure how well my CascadeClassifier is working?

http://vis-www.cs.umass.edu/fddb/ - This data set contains the annotations for 5171 faces in a set of 2845 images taken

2017-10-18 05:37:58 -0600 received badge  Enthusiast
2017-10-14 06:09:59 -0600 asked a question How should I measure how well my CascadeClassifier is working?

How should I measure how well my CascadeClassifier is working? I am currently trying to optimise my CascadeClassifier us