Skip to content

Commit e18191b

Browse files
author
Alper Ekmekci
committed
IF conditions has been made.
1 parent 18323cc commit e18191b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

webcam.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,20 +96,20 @@ def main():
9696
print("Detection is True")
9797
#0-640 arası degerler degisecek
9898
if (mid_point > 0) and (mid_point < first_slice):
99-
MESSAGE = "ilk_parca"
99+
MESSAGE = "first_pwm"
100100
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
101101
sock.sendto(MESSAGE, (UDP_IP, UDP_PORT))
102-
print("PWM_1 yakıldı")
102+
print("PWM_1")
103103
elif (mid_point >= first_slice) and (mid_point < second_slice):
104-
MESSAGE = "ikinci_parca"
104+
MESSAGE = "second_pwm"
105105
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
106106
sock.sendto(MESSAGE, (UDP_IP, UDP_PORT))
107-
print("PWM_2 yakıldı")
107+
print("PWM_2")
108108
elif (mid_point >= second_slice):
109-
MESSAGE = "oropsu_mehmet"
109+
MESSAGE = "third_pwm"
110110
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
111111
sock.sendto(MESSAGE, (UDP_IP, UDP_PORT))
112-
print("PWM_3 yakıldı")
112+
print("PWM_3")
113113

114114
#DETECTION IS FALSE BLOCK
115115
except:

0 commit comments

Comments
 (0)