feat: 添加微信OCR功能并整合Hono应用程序
All checks were successful
Build Server / Compile DLL (push) Successful in 1m26s
All checks were successful
Build Server / Compile DLL (push) Successful in 1m26s
- 添加"hono"作为项目的依赖项。 - 添加 Dockerfile 以构建 WeChat OCR 应用程序。 - 新增hono库依赖到package.json文件。 - 将微信OCR集成替换为简单的Hono应用程序。 - 添加微信OCR功能以实现基于路径的图片文字识别。
This commit is contained in:
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM greyltc/archlinux-aur:yay AS lib
|
||||
WORKDIR /src
|
||||
RUN yay -Syu --noconfirm cmake python nodejs && \
|
||||
git clone https://github.com/swigger/wechat-ocr.git wcocr && \
|
||||
sed -i 's/v3.21.0/v3.21.2/g' wcocr/CMakeLists.txt && \
|
||||
mkdir -p wcocr/build && cd wcocr/build && cmake .. && make -j$(nproc)
|
||||
|
||||
# FROM greyltc/archlinux-aur:yay
|
||||
# WORKDIR /app
|
||||
# COPY --from=lib /src/wcocr/build/libwcocr.so .
|
||||
# COPY src/index.ts .
|
||||
# RUN bun install hono
|
||||
|
||||
# EXPOSE 3000
|
||||
|
||||
# CMD ["bun", "src/index.ts"]
|
||||
Reference in New Issue
Block a user