Detecting colors (Hsv Color Space) - Opencv with Python

Detecting colors (Hsv Color Space) - Opencv with Python

Pysource

5 лет назад

89,476 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@coursfiliereeln4592
@coursfiliereeln4592 - 25.05.2023 18:27

hello thank you for the video it's helpful.. i have a question? if we need to apply this with depth images how i can do this?

Ответить
@suphasud
@suphasud - 19.10.2022 08:54

Bravoooooooooooooooooo

Ответить
@stanleychen6710
@stanleychen6710 - 02.10.2022 02:54

Hi Sergio! Can you tell us what that cool software for picking colors is called? I really need it. Thanks

Ответить
@cybercribe2460
@cybercribe2460 - 22.09.2022 16:24

Nice tutorial but a doubt how did you detect the values of lower_red,blue,green and upper_red,blue,green??

Ответить
@NeilSummersgill
@NeilSummersgill - 23.07.2022 14:07

cv2.createTrackbar for HSV is very useful for getting the ranges correct

Ответить
@tuminh9656
@tuminh9656 - 10.06.2022 11:15

Hi Pysource, if the background color is similar to the object color, is there a way to detect and draw only the outline of the object?

Ответить
@brunorafaelalmeida2083
@brunorafaelalmeida2083 - 25.01.2022 17:44

Thanks for the video concepts, but here for me the jupyter notebook (where I use to develop these types of programs) gives an error after I finish the program, and to get around this it is good practice to destroy the images and data that will not be most used after the end of the program. After doing this, the error in my kernel stopped showing up. This destruction of data that will not be used after the end of the program can be done by the following lines at the end of the program and outside the loop and conditional:
cap.release()
cv2.destroyAllWindows()
PS: Hope this is helpful to someone.

Ответить
@lipikams2886
@lipikams2886 - 10.10.2021 15:57

It shows can't find camera device..could someone help me...

Ответить
@rajvindermann7655
@rajvindermann7655 - 01.09.2021 16:14

Hi, may i know how to detect the object which has similar colour to the background? Thank you.

Ответить
@venkatasubramaniamr6982
@venkatasubramaniamr6982 - 05.08.2021 11:04

Hi nice video for leaning for color deduction. I want to know what is the logic to find color lower and upper hsv value without any tool. Can you share the easy logic to find that . Example for green how to find low and high

Ответить
@abdelrhmanshokr7546
@abdelrhmanshokr7546 - 28.07.2021 14:44

great video thanks a lot but I've an issue here no matter what ranges of colours I pass as high and low I keep getting a black image as a result and I don't really get why can anyone help me understand why this is happening (I am trying to block all colours except for black) but again I wrote the same code with the same values to make sure that the problem isn't with my ranges but the same result always pops up a black image with rgb = 0, 0, 0 and as I said I don't get it

Ответить
@ramadhaniramadhani5592
@ramadhaniramadhani5592 - 06.07.2021 23:15

Hello sir, why i can't run cV2.bitwise_and on my PC. Can you explain about it?

Ответить
@halilavc737
@halilavc737 - 30.05.2021 13:49

Thanks bro . Amazing . Thank you so much

Ответить
@mounahammouda1641
@mounahammouda1641 - 29.05.2021 00:58

Thank you for this video, have you an idea how i can detect white cracks in a white surface, but the saturation of the surface and cracks are not similar.
thanks

Ответить
@samsepiol5267
@samsepiol5267 - 07.04.2021 14:31

hi sergio, can i ask something, if i wanna actuate a servo motor, after the camera detected one particular color, what function should i use ?

Ответить
@AgeloszInonos
@AgeloszInonos - 01.04.2021 02:48

The color ranges. I have trouble calculating for other colors like yellow, How do you calculate upper and lower bounds for all colors?

Ответить
@kevinliem6284
@kevinliem6284 - 30.03.2021 07:36

hi bro nice tutorial, i want to ask something, how if we want to add more color on it? lets say we want to add secondary color, like purple, maroon or something else? how is it?

Ответить
@AafthabNt
@AafthabNt - 17.03.2021 07:49

can u make a video on extraction of nail using image segnmentation

Ответить
@ha1lucinate662
@ha1lucinate662 - 26.02.2021 05:03

Great video, worked like a charm.

Ответить
@hrithiks680
@hrithiks680 - 21.01.2021 20:45

Which webcam are you using???

Ответить
@Benozaur
@Benozaur - 09.12.2020 02:13

are you a GOD? how u are guessing ranges? This is stupid. Sorry mate but this is not worthy material.

Ответить
@hassanahmed9886
@hassanahmed9886 - 28.08.2020 15:47

low_red = np.array([161, 155, 84]) , how you found these values (161,155,84).. How these values has been obtained?

Ответить
@trolleyproblem4318
@trolleyproblem4318 - 06.08.2020 14:59

Can you try with LAB?

Ответить
@johntran468
@johntran468 - 29.07.2020 03:50

Hi, what if I only want to detect only the white color, can you tell me what is the threshold or someway to calculate it? Thank you

Ответить
@dikshabagade5542
@dikshabagade5542 - 18.07.2020 18:22

You are such a saviour, thank you so much man. I wanted this so bad

Ответить
@junlizhang876
@junlizhang876 - 09.07.2020 17:28

veli good.

Ответить
@lokeshsaha8875
@lokeshsaha8875 - 09.06.2020 11:02

Hey, can you please help me how to detect background color of an image?

Ответить
@ApplySkills
@ApplySkills - 24.05.2020 00:48

how the hell can i learn how to set the correct range numbers?

Ответить
@wisdom_wellness365
@wisdom_wellness365 - 28.04.2020 19:50

Brilliant!

Ответить
@knowcode6374
@knowcode6374 - 22.04.2020 19:31

hello sir i want to extract skin color and put it to another person ,how to do it sir?

Ответить
@SW1NDLER_TR1CKSTER
@SW1NDLER_TR1CKSTER - 23.03.2020 17:56

Is this possible on a raspberry pi?

Ответить
@francescopistone4086
@francescopistone4086 - 21.03.2020 15:29

Does somebody know how to make that in C++(Visual Studio)?

Ответить
@rverm1000
@rverm1000 - 29.02.2020 04:46

Very good job. Works well

Ответить
@GodLikeChanel
@GodLikeChanel - 24.02.2020 06:58

Could you make to it with unity and build to android?

Ответить
@priyanshujain5215
@priyanshujain5215 - 23.01.2020 20:18

Is there a reason red color in background picture is not visible? because similar thing happens when i try detecting color that are at distance , idk why?

Ответить
@machain1996
@machain1996 - 09.12.2019 04:31

nice video, man.

Ответить
@ankor2998
@ankor2998 - 04.12.2019 08:19

If Color is detected the it show message like image is detected...How i print that message

Ответить
@NiVofHiR
@NiVofHiR - 18.11.2019 00:50

Great video tutorial, thanks for sharing!

Ответить
@thephiluong1893
@thephiluong1893 - 31.10.2019 16:31

excuse me can you tell me what software you use to determined range of colors

Ответить
@sudiptachatterjee5862
@sudiptachatterjee5862 - 23.10.2019 11:50

You are great brother.................

Ответить
@mauriziovetere1956
@mauriziovetere1956 - 15.10.2019 02:01

Nice tutorial! Is there a way to detect all chosen colors on one screen sweep instead of repeating the operation for each of them? I'm talking about the inRange() and bitwise_and() parts, I ask for performance purposes

Ответить
@dimitarvel1441
@dimitarvel1441 - 03.09.2019 12:06

pulls out yellow box
- a green one

Ответить
@wangkun9587
@wangkun9587 - 13.08.2019 16:57

I wrote the same code as yours but the 'mask' interface is always black. What is the problem? Thanks a lot

Ответить
@claudiolossinno1677
@claudiolossinno1677 - 09.07.2019 16:40

great!

Ответить
@vijaybhanushali9696
@vijaybhanushali9696 - 05.07.2019 18:58

thanks ✌✌

Ответить
@pedrobb7
@pedrobb7 - 02.04.2019 08:19

When you selected low_red and high_red in which format the colors are? RGB, BGR, HSV?

Ответить
@Gabo_1457
@Gabo_1457 - 25.03.2019 20:21

Hello! I want to create a function that for example, that if it detects a color that prints hello or something, how can i do that?

Ответить
@aliihsancukur6866
@aliihsancukur6866 - 15.02.2019 20:04

can you do applications with some more advanced functions ? for example imutils related to thank you

Ответить
@GaneshPatil-vtox
@GaneshPatil-vtox - 15.02.2019 20:00

Check out my channel sir !

Ответить