Skip to content

Instantly share code, notes, and snippets.

View ixLikro's full-sized avatar

Ole Schleeßelmann ixLikro

  • Wolfenbüttel, Germany
View GitHub Profile
@ixLikro
ixLikro / colorFilter.py
Last active June 12, 2020 15:09
ros node, a opencv color filter. The biggest contour of one color will be published to a ros topic as bounding rect.
#!/usr/bin/env python
import cv2
import numpy as np
import rospy
from std_msgs.msg import String
# open a debug window and draw the bounding rects
GUI_MODE = False
# print the HSV-Value of the pixel 100, 100, this is handy if you want to fine tune the colors