Skip to content

Commit 74f11f5

Browse files
committed
加强版树莓派追派追踪
1 parent cc51f6a commit 74f11f5

File tree

21 files changed

+193
-5
lines changed

21 files changed

+193
-5
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
# The_crawler_python
1+
记录下python学习过程中陆陆续续做的小项目,具体的实现均在各个文件夹内部有
2+
说明,如有疑问请查阅博客
3+
urlteam.org

python_baiduyuyin/1.wav

0 Bytes
Binary file not shown.

python_opencv/psb_face/1.jpg

3.1 KB
Loading

python_opencv/psb_face/out.jpg

2.96 KB
Loading

python_opencv_tracking/1.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
# 初始化视频流的第一帧
2525
firstFrame = None
26-
26+
k = 0
2727
# 遍历视频的每一帧
2828
while True:
2929
# 获取当前帧并初始化occupied/unoccupied文本
@@ -70,8 +70,16 @@
7070
cv2.FONT_HERSHEY_SIMPLEX, 0.5, (0, 0, 255), 2)
7171
cv2.putText(frame, datetime.datetime.now().strftime("%A %d %B %Y %I:%M:%S%p"),
7272
(10, frame.shape[0] - 10), cv2.FONT_HERSHEY_SIMPLEX, 0.35, (0, 0, 255), 1)
73-
74-
# 显示当前帧并记录用户是否按下按键
73+
74+
s = time.ctime()
75+
miao = s[17:19:1]
76+
int_miao = int(miao)
77+
if int_miao%10 == 5|| int_miao%10==0:
78+
print (miao)
79+
time.sleep(1)
80+
continue
81+
82+
#显示当前帧并记录用户是否按下按键
7583
cv2.imshow("Security Feed", frame)
7684
cv2.imshow("Thresh", thresh)
7785
cv2.imshow("Frame Delta", frameDelta)
@@ -80,7 +88,6 @@
8088
# 如果q键被按下,跳出循环
8189
if key == ord("q"):
8290
break
83-
8491
# 清理摄像机资源并关闭打开的窗口
8592
camera.release()
8693
cv2.destroyAllWindows()
265 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)