segment

How can I clear a list of segments from nested segments (Python)

How can I clear a list of segments from nested segments (Python) Question: My respect, colleagues. I have a list of segments which may include nested segments that should be deleted. For example we have a list (or maybe other data structure) of tuples: [(50, 60), (10, 20), (10, 40), (40, 60), (60, 80), (75, …

Total answers: 1

Find out how much of a rectangle is filled with a color using OpenCV

Find out how much of a rectangle is filled with a color using OpenCV Question: I am using a webcam to segment a green piece of paper. I have tried different results using inRange and thresholding but have gotten a pretty good result so far. I now have a rectangle in the middle of the …

Total answers: 1

Find number of positives in segment of list

Find number of positives in segment of list Question: I have a unsorted list. I’m asked to print k-times number of positive values in a segment.The boarders for segment start with 1 not 0. So, if the boarder [1,3] it means that we should find all positives among elements with indices [0,1,2] For example, 2 …

Total answers: 1