diff --git a/Gemfile b/Gemfile index 438eaec7..02668f8d 100644 --- a/Gemfile +++ b/Gemfile @@ -2,9 +2,8 @@ source "https://rubygems.org/" gem "jekyll-remote-theme" gem "webrick" gem "csv" -gem "github-pages", group: :jekyll_plugins group :jekyll_plugins do + gem "github-pages" gem 'jekyll-commonmark-ghpages' end - diff --git a/_includes/loadimg.html b/_includes/loadimg.html new file mode 100644 index 00000000..d82e4eab --- /dev/null +++ b/_includes/loadimg.html @@ -0,0 +1,126 @@ +
from matplotlib import pyplot as plt
+
+from arknights_mower.utils.image import loadimg, loadres
+
sc = loadimg("/home/zhao/Documents/mower-profile/screenshot/201/20240707154102.png")
+plt.imshow(sc)
+plt.show()
+
sc = loadimg("/home/zhao/Documents/mower-profile/screenshot/201/20240707154102.png", True)
+plt.imshow(sc, cmap="gray", vmin=0, vmax=255)
+plt.show()
+
res = loadres("ope_select_start")
+plt.imshow(res)
+plt.show()
+
res = loadres("ope_select_start", True)
+plt.imshow(res, cmap="gray", vmin=0, vmax=255)
+plt.show()
+