![]() |
OpenCV question about thresholding
We are using OpenCV (python) to threshold an image. I saw team 254's presentation, which said to use HSV/HSL. We are using HSV. However, I believe that OpenCV is still expecting a BGR format. How do I have it take in an HSV/HSL formatted color?
Here is our code: Code:
import numpy as np |
Re: OpenCV question about thresholding
Quote:
Code:
#Convert the image from BGR(RGB) to HSVWe keep our upper and lower threshold values in a "calibration" file. Code:
CalFile = open ('Calibration').read().splitlines()Code:
## Threshold HSV Image to find specific color |
Re: OpenCV question about thresholding
Could you link to the 254 presentation?
|
| All times are GMT -5. The time now is 07:05. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi