This commit is contained in:
KAAANG
2024-09-05 17:05:52 +08:00
parent c9c7f724e6
commit 14698a2295
11 changed files with 40 additions and 58 deletions
+5 -14
View File
@@ -1,29 +1,20 @@
{
"recommendations": [
/**
* python
*/
"ms-python.black-formatter",
"donjayamanne.python-extension-pack",
"njpwerner.autodocstring",
// 数据库
"qwtel.sqlite-viewer",
/**
*
*/
// 代码风格统一
"editorconfig.editorconfig",
// 代码标记,比如TODO FIXME等
"gruntfuggly.todo-tree",
// 代码协作,git协作
"eamodio.gitlens",
// 其他
"PKief.material-icon-theme",
"davidanson.vscode-markdownlint",
"usernamehw.errorlens",
"tamasfe.even-better-toml",
// 单元测试
"vitest.explorer",
"littlefoxteam.vscode-python-test-adapter"
]
}
-37
View File
@@ -1,31 +1,10 @@
{
/** */
"workbench.iconTheme": "material-icon-theme",
/* */
"material-icon-theme.folders.associations": {
"swanlab": "api",
"swanlog": "log",
"readme_files": "custom",
"run": "core",
"system": "core",
"data": "guard",
"unit": "test",
"converter": "log",
"tutils": "utils"
},
"material-icon-theme.files.associations": {
".env.mock": "Tune",
"requirements-dev.txt": "python-misc",
"requirements-media.txt": "python-misc"
},
/** eslintprettier */
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
// 每次保存的时候自动格式化
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"eslint.format.enable": true,
/** python */
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
@@ -64,23 +43,7 @@
"iconColour": "#ffff"
}
},
/** i18n */
"i18n-ally.sortKeys": true,
"i18n-ally.keepFulfilled": true,
"i18n-ally.localeCountryMap": {
"en": "br", // show UK's flag instead of US's
"zh": "cn", // show Chinese flag for 'zh'
"ko": "ko" // show Korean flag for 'ko'
},
"i18n-ally.localesPaths": ["vue/src/i18n"],
"i18n-ally.keystyle": "nested", // 翻译路径格式,
"i18n-ally.namespace": true,
"i18n-ally.enabledParsers": ["json", "json5"],
"i18n-ally.sourceLanguage": "zh-CN", // 翻译源语言 是你翻译文件的名字
"i18n-ally.displayLanguage": "zh-CN", //显示语言
/** tailwind */
"css.customData": [".vscode/tailwind.json"],
/** python */
"autoDocstring.docstringFormat": "numpy",
+9
View File
@@ -0,0 +1,9 @@
# 代码整体介绍
HivisionIDPhoto将输出以下几个模块,方便使用者自行选择使用:
1. hivision python包,HivisionIDPhoto的核心且最小输出,提供一系列sdk接口
2. gradio web服务,提供一个简单的web服务demo,方便用户体验
3. hivision docker镜像,提供一个docker镜像,方便用户部署
4. hivision.exe,提供一个windows可执行文件,方便用户使用
+1
View File
@@ -0,0 +1 @@
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
r"""
@DATE: 2024/9/5 16:45
@File: __init__.py
@IDE: pycharm
@Description:
创建证件照
"""
+2
View File
@@ -0,0 +1,2 @@
gradio>=4.37.1
fastapi
+1
View File
@@ -0,0 +1 @@
black
+1 -5
View File
@@ -1,7 +1,3 @@
opencv-python==4.7.0.72
onnx==1.14.0
opencv-python>=4.8.1.78
onnxruntime==1.15.0
numpy==1.24.3
gradio==3.38.0
fastapi
loguru
@@ -4,9 +4,9 @@ import argparse
import os
def base64_save(base64_image_data, save_path):
def base64_save(_base64_image_data, save_path):
# 解码 Base64 数据并保存为 PNG 文件
img_data = base64.b64decode(base64_image_data)
img_data = base64.b64decode(_base64_image_data)
with open(save_path, "wb") as file:
file.write(img_data)
+9
View File
@@ -0,0 +1,9 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
r"""
@DATE: 2024/9/5 16:56
@File: build_pypi.py
@IDE: pycharm
@Description:
构建pypi包
"""