Browse Source

Update detectRecognizeLight.py

master
Fazil Altinel 6 years ago
committed by GitHub
parent
commit
1e161f6dbb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      detectRecognizeLight.py

4
detectRecognizeLight.py

@ -47,8 +47,8 @@ def recognize_color(im):
# Average brightness of all the pixels on value channel & grayscale for the masked image # Average brightness of all the pixels on value channel & grayscale for the masked image
area = 9.0*22 area = 9.0*22
avg_brightness_upper = (np.sum(upper_part_g[:,:]) + np.sum(upper_part_v[:,:]))/area avg_brightness_upper = (np.sum(upper_part_g[:,:]) + np.sum(upper_part_v[:,:]))/area
avg_brightness_mid = (np.sum(mid_part_g[:, :]) + np.sum(mid_part_v[:, :]))/area
avg_brightness_lower = (np.sum(lower_part_g[:, :]) + np.sum(lower_part_v[:, :]))/area
avg_brightness_mid = (np.sum(mid_part_g[:, :]) + np.sum(mid_part_v[:, :]))/area
avg_brightness_lower = (np.sum(lower_part_g[:, :]) + np.sum(lower_part_v[:, :]))/area
# Feature vector # Feature vector
feature = [] feature = []

Loading…
Cancel
Save