This commit is contained in:
autumn 2024-10-09 13:00:34 +08:00
parent 058bae4f27
commit 098d83f0fb
3 changed files with 18 additions and 4 deletions

View File

@ -34,15 +34,20 @@ jobs:
- name: Save stitched image as artifact
uses: actions/upload-artifact@v3
with:
name: stitched_image # 上传生成的图片作为 artifact
path: auto_img.png # 替换为你生成图片的路径
name: auto_img_zh_cn # 上传生成的图片作为 artifact
path: auto_img_zh_cn.png # 替换为你生成图片的路径
- name: Save stitched image as artifact
uses: actions/upload-artifact@v3
with:
name: auto_img_en # 上传生成的图片作为 artifact
path: auto_img_en.png # 替换为你生成图片的路径
- name: Commit and push updated file
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add auto_img_zh_cn.png # 添加你想要提交的文件
git add auto_img_en.png
git commit -m "Update file with new data"
git push origin main # 推送更改回 main 分支
env:

View File

@ -7,7 +7,7 @@ Pull Request的时候提交小图即可 大图太容易冲突了
## 自动生成的大图
![](auto_img_zh_cn.png)
![](auto_img_en.png)
[QQ群](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=GSK0q5Be9BtgPh-7UDEgw1XUc9eNlb_E&authKey=s54nZ9lIbjETFV2sQj65vJHoH04tg%2Bst%2FB%2Fo0WgVTyRGo%2BxL0ZPw8%2BHX3oNnr%2FIo&noverify=0&group_code=810025413)
## 梦开始的地方

View File

@ -124,3 +124,12 @@ stitched_image = stitch_images_bin_packing(images)
cv2.imwrite('auto_img_zh_cn.png', stitched_image)
folder = 'en'
images = load_images_from_folder(folder)
stitched_image = stitch_images_bin_packing(images)
cv2.imwrite('auto_img_en.png', stitched_image)