feat:添加hivision-id-photo到列表

This commit is contained in:
okxlin 2024-12-12 00:54:19 +08:00
parent 1457dd8c72
commit f49a384e94
12 changed files with 275 additions and 0 deletions

View File

@ -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=""

View File

@ -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

View File

@ -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

View File

@ -0,0 +1,5 @@
# HivisionIDPhoto
HivisionIDPhoto 旨在开发一种实用、系统性的证件照智能制作算法。
它利用一套完善的AI模型工作流程实现对多种用户拍照场景的识别、抠图与证件照生成。

View File

@ -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

View File

@ -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=""

View File

@ -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

View File

@ -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

View File

@ -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=""

View File

@ -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

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB