Wth HSV Calibration
, get the accurate HSV Upper and Lower Range
from the image
,webcam
, and ,mobile camera
(using IPCam) which can be used for color detection
, object tracking
and much more.
Local Images
(Provide url)Webcam
Mobile Camera
(Provide IP address using IPCam)
1). Images
from hsv_calibration import ProcessImage
ProcessImage.process_image("C:\Downloads\image.jpg") // (r"C:\Downloads\image.jpg")
2). Webcam
NOTE: Please use webcam in your project with (cv2.CAP_DSHOW): cv2.VideoCapture(0,cv2.CAP_DSHOW)
from hsv_calibration import ProcessImage
ProcessImage.process_webcam()
3). Mobile Camera (Use IPCam to get the IP Address)
from hsv_calibration import ProcessImage
ProcessImage.process_mobile_camera("192.168.2.15:8080")
Brightness
Darkness
Blur
Box Blur
Gaussian Blur
Median Blur
Bilateral Blur
Hue (Low and High)
Saturation (Low and High)
Value (Low and High)
Erosion
Dilation
Edge Detection using Canny
To recognize or detect objects or colors in the image, OpenCV requires
HSV lower and upper range
to detect the color. This is time consuming as to get the accurate range, we go with hit nd trial method. With this library, you can easily get the accurate range and best results using other features as well.
Requirements | Install |
---|---|
numpy | pip install numpy |
opencv | pip install opencv-python |
requests | pip install requests |
hsv-calibration | pip install hsv-calibration |
pip install hsv-calibration
For feedback and suggestions, please email me on abhisavaliya01@gmail.com
Abhi Savaliya
| abhisavaliya01@gmail.com
| GitHub | LinkedIn