diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-07-16 16:49:59 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-07-16 16:49:59 +0200 |
| commit | 4e544051e2312e19a61ee1917536886d864543d2 (patch) | |
| tree | 5de2848377f51d6943c232c4e73d38947d34faa1 | |
| parent | f9deed9d1c3fb72d4d0e1c3bbed35f540c8b76d6 (diff) | |
img ops
| -rw-r--r-- | rpc/img_ops.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rpc/img_ops.py b/rpc/img_ops.py index 28efd03..244f8eb 100644 --- a/rpc/img_ops.py +++ b/rpc/img_ops.py @@ -23,9 +23,9 @@ def process_image(opt, data_opt, im): processed = True hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV) h, s, v = cv2.split(hsv) - h += data_opt.hue - s += data_opt.saturation - v += data_opt.luminosity + cv2.add(h, data_opt.hue, h) + cv2.add(s, data_opt.saturation, s) + cv2.add(v, data_opt.luminosity, v) hslimg = cv2.merge((h,s,v)) img = cv2.cvtColor(hslimg, cv2.COLOR_HSV2BGR) if data_opt.clahe is True: |
