Ask Your Question

mattroos's profile - activity

2020-10-10 23:10:41 -0500 received badge  Student (source)
2018-10-31 03:50:34 -0500 received badge  Famous Question (source)
2017-10-12 04:10:49 -0500 received badge  Notable Question (source)
2017-04-26 11:25:22 -0500 received badge  Popular Question (source)
2015-06-27 18:51:19 -0500 received badge  Editor (source)
2015-06-27 18:50:50 -0500 asked a question In Python, how can I reduce a list of contours to those of a specified size?

I've extracted contours from an image and now want to discard those that don't match a specified size requirement. But I'm new to Python and can't figure out how to do this efficiently. I can get a list of booleans that identify which contours should be retained, but how can I generate the new list of contours in a simple, single line? E.g., what's the right way to code the final line below? Thanks!

contours, hierarchy = cv2.findContours(im,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE)

brect = np.array([list(cv2.boundingRect(cnt)) for cnt in contours])

widths = brect[:,2]

heights = brect[:,3]

bUse = (widths<widthmax) &amp;="" (heights<heightmax)="" &amp;="" (widths="">widthMin) & (heights>heightMin)

contours = contours[bUse] # DOESN'T WORK! WHY?

2015-06-15 15:37:41 -0500 commented question uncompressed frames from IP camera

Thanks, pklab. That's good to know. I can afford an industrial camera if need be.

2015-06-15 08:02:35 -0500 asked a question uncompressed frames from IP camera

I'm interested in getting uncompressed frames from an IP camera. I haven't bought a camera yet and am wondering if something is available that allows for this. Or do most IP camera only deliver compressed frames/video?

The reason I'm interested in this is because I'd like to perform my own processing on individual frames as quickly as possible and if I don't have to perform decompression on my machine that'd save a little time. I don't mind dropping frames and thus compression schemes that operate over multiple frames (e.g. H.264) aren't necessary and may actually be detrimental to overall speed.

2015-06-15 07:59:16 -0500 commented question Type of IP Camera to analyse moving objects

Hi, Congelli501. Did you make any progress on this? I'm working on a similar project and have the same questions/concerns.

On a related topic, what digital format are you getting from your camera(s)? I'm wondering if it's possible to get uncompressed frames from an IP camera (thus avoiding having to waste time doing the decompression on my computer), or if only compressed frames/video are available from the camera.