diff --git a/apps/hivision-id-photo/1.3.0/.env.sample b/apps/hivision-id-photo/1.3.0/.env.sample new file mode 100644 index 00000000..e76979b9 --- /dev/null +++ b/apps/hivision-id-photo/1.3.0/.env.sample @@ -0,0 +1,8 @@ +COMMAND="python3 -u app.py --host 0.0.0.0 --port 7860" +CONTAINER_NAME="hivision-id-photo" +DEFAULT_LANG="zh" +FACE_PLUS_API_KEY="" +FACE_PLUS_API_SECRET="" +PANEL_APP_PORT_HTTP=40330 +PANEL_APP_PORT_HTTP_INTERNAL=7860 +RUN_MODE="" diff --git a/apps/hivision-id-photo/1.3.0/data.yml b/apps/hivision-id-photo/1.3.0/data.yml new file mode 100644 index 00000000..b9b493d0 --- /dev/null +++ b/apps/hivision-id-photo/1.3.0/data.yml @@ -0,0 +1,53 @@ +additionalProperties: + formFields: + - default: "40330" + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number + - default: "7860" + edit: true + envKey: PANEL_APP_PORT_HTTP_INTERNAL + labelEn: Internal Port + labelZh: 内部端口 + required: true + rule: paramPort + type: number + - default: "python3 -u app.py --host 0.0.0.0 --port 7860" + edit: true + envKey: COMMAND + labelEn: Command + labelZh: 启动命令 + required: true + type: text + - default: "" + edit: true + envKey: FACE_PLUS_API_KEY + labelEn: FACE Plus API Key + labelZh: FACE Plus API 密钥 + required: false + type: text + - default: "" + edit: true + envKey: FACE_PLUS_API_SECRET + labelEn: FACE Plus API Secret + labelZh: FACE Plus API 密钥 Secret + required: false + type: text + - default: "" + edit: true + envKey: RUN_MODE + labelEn: Run Mode + labelZh: 运行模式 + required: false + type: text + - default: "zh" + edit: true + envKey: DEFAULT_LANG + labelEn: Default Language + labelZh: 默认语言 + required: false + type: text diff --git a/apps/hivision-id-photo/1.3.0/docker-compose.yml b/apps/hivision-id-photo/1.3.0/docker-compose.yml new file mode 100644 index 00000000..c08a4393 --- /dev/null +++ b/apps/hivision-id-photo/1.3.0/docker-compose.yml @@ -0,0 +1,21 @@ +services: + hivision-id-photo: + image: "linzeyi/hivision_idphotos:v1.3.0" + container_name: ${CONTAINER_NAME} + restart: always + networks: + - 1panel-network + ports: + - "${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP_INTERNAL}" + environment: + - FACE_PLUS_API_KEY=${FACE_PLUS_API_KEY} + - FACE_PLUS_API_SECRET=${FACE_PLUS_API_SECRET} + - RUN_MODE=${RUN_MODE} + - DEFAULT_LANG=${DEFAULT_LANG} + command: ${COMMAND} + labels: + createdBy: "Apps" + +networks: + 1panel-network: + external: true diff --git a/apps/hivision-id-photo/README.md b/apps/hivision-id-photo/README.md new file mode 100644 index 00000000..2cbbea11 --- /dev/null +++ b/apps/hivision-id-photo/README.md @@ -0,0 +1,5 @@ +# HivisionIDPhoto + +HivisionIDPhoto 旨在开发一种实用、系统性的证件照智能制作算法。 + +它利用一套完善的AI模型工作流程,实现对多种用户拍照场景的识别、抠图与证件照生成。 \ No newline at end of file diff --git a/apps/hivision-id-photo/data.yml b/apps/hivision-id-photo/data.yml new file mode 100644 index 00000000..4fed4502 --- /dev/null +++ b/apps/hivision-id-photo/data.yml @@ -0,0 +1,19 @@ +name: HivisionIDPhoto +tags: + - AI / 大模型 +title: 一个轻量级的 AI 证件照制作工具 +description: 一个轻量级的 AI 证件照制作工具 +additionalProperties: + key: hivision-id-photo + name: HivisionIDPhoto + tags: + - AI + shortDescZh: 一个轻量级的 AI 证件照制作工具 + shortDescEn: A lightweight and efficient AI ID photos tools + type: tool + crossVersionUpdate: true + limit: 0 + recommend: 0 + website: https://github.com/Zeyi-Lin/HivisionIDPhotos + github: https://github.com/Zeyi-Lin/HivisionIDPhotos + document: https://github.com/Zeyi-Lin/HivisionIDPhotos diff --git a/apps/hivision-id-photo/latest-gpu/.env.sample b/apps/hivision-id-photo/latest-gpu/.env.sample new file mode 100644 index 00000000..e76979b9 --- /dev/null +++ b/apps/hivision-id-photo/latest-gpu/.env.sample @@ -0,0 +1,8 @@ +COMMAND="python3 -u app.py --host 0.0.0.0 --port 7860" +CONTAINER_NAME="hivision-id-photo" +DEFAULT_LANG="zh" +FACE_PLUS_API_KEY="" +FACE_PLUS_API_SECRET="" +PANEL_APP_PORT_HTTP=40330 +PANEL_APP_PORT_HTTP_INTERNAL=7860 +RUN_MODE="" diff --git a/apps/hivision-id-photo/latest-gpu/data.yml b/apps/hivision-id-photo/latest-gpu/data.yml new file mode 100644 index 00000000..b9b493d0 --- /dev/null +++ b/apps/hivision-id-photo/latest-gpu/data.yml @@ -0,0 +1,53 @@ +additionalProperties: + formFields: + - default: "40330" + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number + - default: "7860" + edit: true + envKey: PANEL_APP_PORT_HTTP_INTERNAL + labelEn: Internal Port + labelZh: 内部端口 + required: true + rule: paramPort + type: number + - default: "python3 -u app.py --host 0.0.0.0 --port 7860" + edit: true + envKey: COMMAND + labelEn: Command + labelZh: 启动命令 + required: true + type: text + - default: "" + edit: true + envKey: FACE_PLUS_API_KEY + labelEn: FACE Plus API Key + labelZh: FACE Plus API 密钥 + required: false + type: text + - default: "" + edit: true + envKey: FACE_PLUS_API_SECRET + labelEn: FACE Plus API Secret + labelZh: FACE Plus API 密钥 Secret + required: false + type: text + - default: "" + edit: true + envKey: RUN_MODE + labelEn: Run Mode + labelZh: 运行模式 + required: false + type: text + - default: "zh" + edit: true + envKey: DEFAULT_LANG + labelEn: Default Language + labelZh: 默认语言 + required: false + type: text diff --git a/apps/hivision-id-photo/latest-gpu/docker-compose.yml b/apps/hivision-id-photo/latest-gpu/docker-compose.yml new file mode 100644 index 00000000..4d4654f0 --- /dev/null +++ b/apps/hivision-id-photo/latest-gpu/docker-compose.yml @@ -0,0 +1,26 @@ +services: + hivision-id-photo: + image: "linzeyi/hivision_idphotos:latest" + container_name: ${CONTAINER_NAME} + restart: always + networks: + - 1panel-network + ports: + - "${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP_INTERNAL}" + environment: + - FACE_PLUS_API_KEY=${FACE_PLUS_API_KEY} + - FACE_PLUS_API_SECRET=${FACE_PLUS_API_SECRET} + - RUN_MODE=${RUN_MODE} + - DEFAULT_LANG=${DEFAULT_LANG} + command: ${COMMAND} + deploy: + resources: + reservations: + devices: + - capabilities: [gpu] + labels: + createdBy: "Apps" + +networks: + 1panel-network: + external: true diff --git a/apps/hivision-id-photo/latest/.env.sample b/apps/hivision-id-photo/latest/.env.sample new file mode 100644 index 00000000..e76979b9 --- /dev/null +++ b/apps/hivision-id-photo/latest/.env.sample @@ -0,0 +1,8 @@ +COMMAND="python3 -u app.py --host 0.0.0.0 --port 7860" +CONTAINER_NAME="hivision-id-photo" +DEFAULT_LANG="zh" +FACE_PLUS_API_KEY="" +FACE_PLUS_API_SECRET="" +PANEL_APP_PORT_HTTP=40330 +PANEL_APP_PORT_HTTP_INTERNAL=7860 +RUN_MODE="" diff --git a/apps/hivision-id-photo/latest/data.yml b/apps/hivision-id-photo/latest/data.yml new file mode 100644 index 00000000..b9b493d0 --- /dev/null +++ b/apps/hivision-id-photo/latest/data.yml @@ -0,0 +1,53 @@ +additionalProperties: + formFields: + - default: "40330" + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number + - default: "7860" + edit: true + envKey: PANEL_APP_PORT_HTTP_INTERNAL + labelEn: Internal Port + labelZh: 内部端口 + required: true + rule: paramPort + type: number + - default: "python3 -u app.py --host 0.0.0.0 --port 7860" + edit: true + envKey: COMMAND + labelEn: Command + labelZh: 启动命令 + required: true + type: text + - default: "" + edit: true + envKey: FACE_PLUS_API_KEY + labelEn: FACE Plus API Key + labelZh: FACE Plus API 密钥 + required: false + type: text + - default: "" + edit: true + envKey: FACE_PLUS_API_SECRET + labelEn: FACE Plus API Secret + labelZh: FACE Plus API 密钥 Secret + required: false + type: text + - default: "" + edit: true + envKey: RUN_MODE + labelEn: Run Mode + labelZh: 运行模式 + required: false + type: text + - default: "zh" + edit: true + envKey: DEFAULT_LANG + labelEn: Default Language + labelZh: 默认语言 + required: false + type: text diff --git a/apps/hivision-id-photo/latest/docker-compose.yml b/apps/hivision-id-photo/latest/docker-compose.yml new file mode 100644 index 00000000..294f78d0 --- /dev/null +++ b/apps/hivision-id-photo/latest/docker-compose.yml @@ -0,0 +1,21 @@ +services: + hivision-id-photo: + image: "linzeyi/hivision_idphotos:latest" + container_name: ${CONTAINER_NAME} + restart: always + networks: + - 1panel-network + ports: + - "${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP_INTERNAL}" + environment: + - FACE_PLUS_API_KEY=${FACE_PLUS_API_KEY} + - FACE_PLUS_API_SECRET=${FACE_PLUS_API_SECRET} + - RUN_MODE=${RUN_MODE} + - DEFAULT_LANG=${DEFAULT_LANG} + command: ${COMMAND} + labels: + createdBy: "Apps" + +networks: + 1panel-network: + external: true diff --git a/apps/hivision-id-photo/logo.png b/apps/hivision-id-photo/logo.png new file mode 100644 index 00000000..9cec3e62 Binary files /dev/null and b/apps/hivision-id-photo/logo.png differ