Signed-off-by: sairate <sairate@sina.cn>
This commit is contained in:
parent
d89a2c5c7f
commit
dba13f535b
|
@ -60,6 +60,8 @@ pip install -r requirements.txt
|
||||||
|
|
||||||
- 一定要向数据库中添加图片,在scanf_face.py中
|
- 一定要向数据库中添加图片,在scanf_face.py中
|
||||||
|
|
||||||
|
- 第一次启动会创建数据库和logs文件
|
||||||
|
|
||||||
``` python
|
``` python
|
||||||
# 向数据库中添加人脸
|
# 向数据库中添加人脸
|
||||||
add_face_to_database("李四", "快递", "./db_image/test1.jpg")
|
add_face_to_database("李四", "快递", "./db_image/test1.jpg")
|
||||||
|
|
|
@ -7,8 +7,8 @@ def start_program(program_name):
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
# 启动两个程序
|
# 启动两个程序
|
||||||
process1 = start_program('app.py')
|
process1 = start_program('scanf_face.py')
|
||||||
process2 = start_program('scanf_face.py')
|
process2 = start_program('app.py')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# 等待程序结束(在此示例中,程序会一直运行,因此不会到达这一步)
|
# 等待程序结束(在此示例中,程序会一直运行,因此不会到达这一步)
|
||||||
|
|
Loading…
Reference in New Issue