diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2023-06-07 11:21:19 +0200 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2023-06-07 11:21:19 +0200 |
commit | b62bcc004fc0dd3d53fbbaf02d3af516b7cb47e0 (patch) | |
tree | f084614790096f95d9dce8c30e9b5729dc2e3632 /nicla/traffic_light.py | |
parent | 051f0284c9895282205632087a2de6d163073cee (diff) |
integration
Diffstat (limited to 'nicla/traffic_light.py')
-rw-r--r-- | nicla/traffic_light.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/nicla/traffic_light.py b/nicla/traffic_light.py index 7399523..9499aea 100644 --- a/nicla/traffic_light.py +++ b/nicla/traffic_light.py @@ -32,7 +32,6 @@ def rgb2hsv(rgb): def traf_lights(imgTraffic): - original = imgTraffic.copy() img = imgTraffic.to_grayscale() for blob in img.find_blobs([(0, 60)], pixels_threshold=100): aspect = blob.h() / blob.w() @@ -61,7 +60,6 @@ def traf_lights(imgTraffic): img.draw_rectangle(blob.rect()) img.draw_circle(lights[light_status-1][0], lights[light_status-1][1], 2) #print(("", "rood", "geel", "groen")[light_status]) - sensor.dealloc_extra_fb() if light_status == 1: return 0x06 |