Skip to content

Commit

Permalink
add imshow
Browse files Browse the repository at this point in the history
  • Loading branch information
dino committed Oct 19, 2021
1 parent c52bcdf commit c1061b6
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion examples/2.face_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
# from ezblock import WiFi
# from ezblock import print

Vilib.camera_start(True)
Vilib.camera_start()
Vilib.display()
Vilib.human_detect_switch(True)
# WiFi().write('CN', 'MakerStarsHall', 'sunfounder')

Expand Down
3 changes: 2 additions & 1 deletion examples/3.gesture_calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
# from ezblock import delay
# from ezblock import run_command

Vilib.camera_start(True)
Vilib.camera_start()
Vilib.display()
Vilib.gesture_calibrate_switch(True)
# WiFi().write('CN', 'MakerStarsHall', 'sunfounder')
print("%s"%'Ready?Start the calibration!')
Expand Down
3 changes: 2 additions & 1 deletion examples/4.gesture_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
ges2 = None
ges3 = None

Vilib.camera_start(True)
Vilib.camera_start()
Vilib.display()
Vilib.gesture_detect_switch(True)
# WiFi().write('CN', 'MakerStarsHall', 'sunfounder')

Expand Down
3 changes: 2 additions & 1 deletion examples/5.color_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
from vilib import Vilib
# from ezblock import WiFi

Vilib.camera_start(True)
Vilib.camera_start()
Vilib.display()
Vilib.color_detect_switch(True)
Vilib.detect_color_name('red')
# WiFi().write('CN', 'MakerStarsHall', 'sunfounder')
Expand Down
3 changes: 2 additions & 1 deletion examples/6.say_cheese.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
# from ezblock import delay
from time import sleep

Vilib.camera_start(True)
Vilib.camera_start()
Vilib.display()
Vilib.human_detect_switch(True)
# WiFi().write('CN', 'MakerStarsHall', 'sunfounder')

Expand Down
3 changes: 2 additions & 1 deletion examples/7.get_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
from sunfunder_io import PWM,Servo
from time import sleep

Vilib.camera_start(True)
Vilib.camera_start()
Vilib.display()
Vilib.traffic_sign_detect_switch(True)
# WiFi().write('CN', 'MakerStarsHall', 'sunfounder')

Expand Down
3 changes: 2 additions & 1 deletion examples/8.play_rock_paper_scissor.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
ges3 = None
game = None

Vilib.camera_start(True)
Vilib.camera_start()
Vilib.display()
Vilib.gesture_detect_switch(True)
# WiFi().write('CN', 'MakerStarsHall', 'sunfounder')
game = 'over'
Expand Down

0 comments on commit c1061b6

Please sign in to comment.