Skip to content

RGB values for params of inRange #3

@sid2364

Description

@sid2364

I don't really understand what's going into inRange from this:-

# Filter by colour
# 0-10 hue
#minimum red amount, max red amount
min_red = np.array([0, 30, 30])
max_red = np.array([10, 100, 100])
#layer
mask1 = cv2.inRange(image_blur_hsv, min_red, max_red)

#birghtness of a color is hue
# 170-180 hue
min_red2 = np.array([170, 30, 30])
max_red2 = np.array([180, 100, 100])
mask2 = cv2.inRange(image_blur_hsv, min_red2, max_red2)

I couldn't really understand from the docs.

What exactly is going in?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions