2 Star 4 Fork 1

IntelligenceVision / Face-VectorDB-Login

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
init_face_vectordb.py 545 Bytes
一键复制 编辑 原始数据 按行查看 历史
代码阿尔法 提交于 2023-12-30 22:09 . add face recognition mode
# 向量数据库初始化
# 创建人:曾逸夫
# 创建时间:2023-12-27
# python init_face_vectordb.py
import psycopg
conn = psycopg.connect(
host="localhost", dbname="postgres", user="postgres", password="pyposeweb"
)
conn.execute("CREATE EXTENSION IF NOT EXISTS vector")
cur = conn.cursor()
cur.execute("DROP TABLE IF EXISTS face_login;")
cur.execute(
"CREATE TABLE face_login (id serial PRIMARY KEY,"
"username varchar (150) NOT NULL,"
"face_feature vector NOT NULL);"
)
conn.commit()
cur.close()
conn.close()
1
https://gitee.com/intelligence-vision/face-vectordb-login.git
git@gitee.com:intelligence-vision/face-vectordb-login.git
intelligence-vision
face-vectordb-login
Face-VectorDB-Login
master

搜索帮助