finish
This commit is contained in:
parent
058bae4f27
commit
098d83f0fb
11
.github/workflows/pack_img.yaml
vendored
11
.github/workflows/pack_img.yaml
vendored
@ -34,15 +34,20 @@ jobs:
|
|||||||
- name: Save stitched image as artifact
|
- name: Save stitched image as artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: stitched_image # 上传生成的图片作为 artifact
|
name: auto_img_zh_cn # 上传生成的图片作为 artifact
|
||||||
path: auto_img.png # 替换为你生成图片的路径
|
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
|
- name: Commit and push updated file
|
||||||
run: |
|
run: |
|
||||||
git config --global user.name "github-actions[bot]"
|
git config --global user.name "github-actions[bot]"
|
||||||
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
git add auto_img_zh_cn.png # 添加你想要提交的文件
|
git add auto_img_zh_cn.png # 添加你想要提交的文件
|
||||||
|
git add auto_img_en.png
|
||||||
git commit -m "Update file with new data"
|
git commit -m "Update file with new data"
|
||||||
git push origin main # 推送更改回 main 分支
|
git push origin main # 推送更改回 main 分支
|
||||||
env:
|
env:
|
||||||
|
@ -7,7 +7,7 @@ Pull Request的时候提交小图即可 大图太容易冲突了
|
|||||||
|
|
||||||
## 自动生成的大图
|
## 自动生成的大图
|
||||||

|

|
||||||
|

|
||||||
[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)
|
[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)
|
||||||
|
|
||||||
## 梦开始的地方
|
## 梦开始的地方
|
||||||
|
@ -124,3 +124,12 @@ stitched_image = stitch_images_bin_packing(images)
|
|||||||
|
|
||||||
|
|
||||||
cv2.imwrite('auto_img_zh_cn.png', stitched_image)
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user