Skip to content

v0.2.0 - 火眼更新

Compare
Choose a tag to compare
@oott123 oott123 released this 24 Oct 07:42
· 23 commits to master since this release
  • 搜索入口消息转发后按钮变为群名,方便成员自行收藏
  • 增加 Google Cloud Vision OCR 功能,群内图片会自动提交到 Google Cloud Vision API 运行识别
  • 启动时增加更明确的日志信息
  • 一些重构和 BUG 修正

新增配置项

## OCR Config ##

# Enable OCR, if OCR is not enabled then texts in image will not be searchable
OCR_ENABLE=false

# OCR Driver, 'google' | 'custom' | string, string is the driver module installed from npm
OCR_DRIVER=google

# OCR Enpoint
# for google, use 'eu-vision.googleapis.com' or 'us-vision.googleapis.com'
# for custom, use full base url of your endpoint, like 'https://www.example.com/api/v1/ocr'
OCR_ENDPOINT=eu-vision.googleapis.com

# OCR Credentials
# for google, this will be ignored, you should set GOOGLE_APPLICATION_CREDENTIALS below
# for custom, use the bearer token of your endpoint
OCR_CREDENTIALS=

## Queue Config ##

# Enable queue, if queue is not enabled then all task will be done in-process
QUEUE_ENABLE=false

# Redis related config
QUEUE_REDIS_HOST=${CACHE_REDIS_HOST}
QUEUE_REDIS_PORT=${CACHE_REDIS_PORT}
QUEUE_REDIS_PASSWORD=${CACHE_REDIS_PASSWORD}
QUEUE_REDIS_DB=${CACHE_REDIS_DB}
QUEUE_REDIS_KEY_PREFIX=${CACHE_REDIS_KEY_PREFIX}_queue

## Third Party Integrations ##

# Set to the path of the JSON file that contains your service account key if you are using google cloud services
GOOGLE_APPLICATION_CREDENTIALS=/path/to/credentials/of/google.json