简体   繁体   中英

How to determine upper and lower boundaries for HSL color detection ?

When I use any color space converter it only gives me single values for H,S and L but how to determine the range boundaries from this, also the converters gives me S & L values in % not value in the range from 0-255. I need to use this color selection in a python pipeline. Any help ?

You need to normalize % values. Opencv takes 0-180 for H baundary and 0-255 for S and L values. You can also compute by hand. For example: 100% =255 and 50%=127.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM