fgosc / fgosccnt

FGOのバトルリザルトのスクリーンショットから戦利品をカウント

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

剣灯火が剣種火や槍灯火になる

amenohimo opened this issue · comments

commented

image

0174
0174

0666
0666

commented

@amenohimo
https://fgojunks.max747.org/fgosccnt/results/0f5c8f59-16b5-45f9-8b75-57ea20766e35/
ローカルで実行してもWEB版で実行しても不具合が再現しないので、おそらく実行環境が異なっていると推察します。
以下のコマンドで調べて教えてください

  1. fgosccntの参照しているcommit id
$ git rev-parse HEAD
  1. fgoscdata submoduleの参照しているcommit id
$ git submodule
  1. ライブラリのバージョン
$ pip freeze
commented

@fgophi
解決しました!
ありがとうございます。

以前zipで最新版を落として上書きするというgit管理外のやり方をしたためにgit pullに失敗していて、それに気づいておらず、古いバージョンを使用していたことが原因のようでした。

  1. gosccntの参照しているcommit id
> git rev-parse HEAD
687ad1f270c923317f906d01fca2b7b0b8ed325e
  1. fgoscdata submoduleの参照しているcommit id
> git submodule
 8e84c8d165e2f26fb8e0fafced31d395ee49173d fgoscdata (remotes/origin/borderd_img-fix-125-g8e84c8d)
  1. ライブラリのバージョン
> pip freeze appdirs==1.4.4
argon2-cffi==20.1.0
astroid==2.11.5
async-generator==1.10
atomicwrites==1.4.0
attrs==21.2.0
autopep8==1.6.0
backcall==0.2.0
bleach==4.0.0
certifi==2021.5.30
cffi==1.14.6
charset-normalizer==2.0.4
click==8.1.3
colorama==0.4.4
colorlover==0.3.0
cufflinks==0.17.3
cycler==0.10.0
debugpy==1.4.1
decorator==5.0.9
defusedxml==0.7.1
dill==0.3.5.1
entrypoints==0.3
flake8==4.0.1
Flask==2.1.2
idna==3.2
importlib-metadata==4.6.4
iniconfig==1.1.1
ipykernel==6.0.3
ipython==7.26.0
ipython-genutils==0.2.0
ipywidgets==7.6.3
isort==5.10.1
itsdangerous==2.1.2
japanize-matplotlib==1.1.3
jedi==0.18.0
Jinja2==3.0.1
jsonschema==3.2.0
jupyter-client==6.1.12
jupyter-core==4.7.1
jupyterlab-pygments==0.1.2
jupyterlab-widgets==1.0.0
kaleido==0.2.1
kiwisolver==1.3.1
lazy-object-proxy==1.7.1
MarkupSafe==2.0.1
matplotlib==3.4.2
matplotlib-inline==0.1.2
mccabe==0.6.1
mistune==0.8.4
MouseInfo==0.1.3
nbclient==0.5.3
nbconvert==6.1.0
nbformat==5.1.3
nest-asyncio==1.5.1
notebook==6.4.2
numpy==1.21.1
oauthlib==3.1.1
opencv-contrib-python==4.5.3.56
opencv-python==4.5.3.56
packaging==21.0
pandas==1.3.1
pandocfilters==1.4.3
parso==0.8.2
pgzero==1.2.1
pickleshare==0.7.5
Pillow==8.3.1
platformdirs==2.5.2
plotly==5.1.0
pluggy==1.0.0
prometheus-client==0.11.0
prompt-toolkit==3.0.19
py==1.11.0
PyAutoGUI==0.9.53
pycodestyle==2.8.0
pycparser==2.20
pyee==8.2.2
pyflakes==2.4.0
pygame==2.1.2
PyGetWindow==0.0.9
Pygments==2.9.0
pylint==2.14.1
PyMsgBox==1.0.9
pyparsing==2.4.7
pyperclip==1.8.2
pyppeteer==0.2.6
PyRect==0.1.4
pyrsistent==0.18.0
PyScreeze==0.1.28
PySide2==5.15.2.1
PySimpleGUI==4.46.0
PySocks==1.7.1
pytesseract==0.3.8
pytest==7.0.1
python-dateutil==2.8.2
pytweening==1.0.4
pytz==2021.1
pywin32==301
pywinpty==1.1.3
pyzmq==22.2.1
requests==2.26.0
requests-oauthlib==1.3.0
scipy==1.7.1
seaborn==0.11.1
Send2Trash==1.7.1
shiboken2==5.15.2.1
six==1.16.0
tenacity==8.0.1
terminado==0.10.1
testpath==0.5.0
toml==0.10.2
tomli==2.0.1
tomlkit==0.11.0
tornado==6.1
tqdm==4.62.1
traitlets==5.0.5
tweepy==3.10.0
typing_extensions==4.2.0
urllib3==1.26.6
wcwidth==0.2.5
webencodings==0.5.1
websockets==9.1
Werkzeug==2.1.2
widgetsnbextension==3.5.1
wrapt==1.14.1
XlsxWriter==3.0.1
zipp==3.5.0

失敗していたpull

> git pull true_origin master
remote: Enumerating objects: 517, done.
remote: Counting objects: 100% (247/247), done.
remote: Compressing objects: 100% (41/41), done.
Receiving objects: 100% (517/517), 236.77 KiB | 11.27 MiB/s, done. 270

Resolving deltas: 100% (257/257), completed with 9 local objects.
From https://github.com/fgosc/fgosccnt
 * branch            master     -> FETCH_HEAD        
   44de49b..b2c04e7  master     -> true_origin/master
Fetching submodule fgoscdata
From https://github.com/fgosc/fgoscdata
   55e09e3..55ae0c7  master     -> origin/master
error: The following untracked working tree files would be overwritten by merge:
        data/card/input/1/item000004.png
        data/dcnt/input/1/item3.png
        data/dcnt/input/3/item4.png
        data/dcnt/input/4/item3.png
        data/dcnt/input/5/item2.png
        data/dcnt/input/6/item3.png
        data/misc/bunyan1.png
        data/pageinfo/next.png
        requirements-dev.txt
        test_fgosccnt.py
Please move or remove them before you merge.
Aborting
Updating 687ad1f..b2c04e7

> git rev-parse HEAD         
687ad1f270c923317f906d01fca2b7b0b8ed325e

該当ファイル削除後

> git pull true_origin master
From https://github.com/fgosc/fgosccnt
 * branch            master     -> FETCH_HEAD
Updating 687ad1f..b2c04e7
Fast-forward
 background.npz                     |  Bin 13318 -> 13318 bytes
 csv2counter.py                     |   87 ++-
 data/card/input/1/item000004.png   |  Bin 0 -> 944 bytes
 data/dcnt/input/1/item3.png        |  Bin 0 -> 194 bytes
 data/dcnt/input/3/item4.png        |  Bin 0 -> 197 bytes
 data/dcnt/input/4/item3.png        |  Bin 0 -> 195 bytes
 data/dcnt/input/5/item2.png        |  Bin 0 -> 185 bytes
 data/dcnt/input/6/item3.png        |  Bin 0 -> 198 bytes
 data/item/input/0/item000006.png   |  Bin 0 -> 427 bytes
 data/item/input/0/item000011.png   |  Bin 0 -> 612 bytes
 data/item/input/120/item000005.png |  Bin 0 -> 573 bytes
 data/item/input/43/item000006.png  |  Bin 0 -> 567 bytes
 data/item/input/43/item000007.png  |  Bin 0 -> 699 bytes
 data/item/input/49/item000004.png  |  Bin 0 -> 636 bytes
 data/item/input/50/item000001.png  |  Bin 0 -> 674 bytes
 data/item/input/51/item000004.png  |  Bin 0 -> 698 bytes
 data/item/input/53/item000002.png  |  Bin 0 -> 580 bytes
 data/item/input/56/item000001.png  |  Bin 0 -> 588 bytes
 data/item/input/57/item000001.png  |  Bin 0 -> 723 bytes
 data/misc/bunyan1.png              |  Bin 0 -> 63061 bytes
 data/pageinfo/next.png             |  Bin 0 -> 26436 bytes
 fgosccnt.py                        | 1200 ++++++++++++++++++++----------------
 fgoscdata                          |    2 +-
 pageinfo.py                        |  498 ++++++++-------
 qpsplit.py                         |    8 +
 requirements-dev.txt               |    1 +
 test_fgosccnt.py                   |   75 +++
 27 files changed, 1116 insertions(+), 755 deletions(-)
 create mode 100644 data/card/input/1/item000004.png
 create mode 100644 data/dcnt/input/1/item3.png
 create mode 100644 data/dcnt/input/3/item4.png
 create mode 100644 data/dcnt/input/4/item3.png
 create mode 100644 data/dcnt/input/5/item2.png
 create mode 100644 data/dcnt/input/6/item3.png
 create mode 100644 data/item/input/0/item000006.png
 create mode 100644 data/item/input/0/item000011.png
 create mode 100644 data/item/input/120/item000005.png
 create mode 100644 data/item/input/43/item000006.png
 create mode 100644 data/item/input/43/item000007.png
 create mode 100644 data/item/input/49/item000004.png
 create mode 100644 data/item/input/50/item000001.png
 create mode 100644 data/item/input/51/item000004.png
 create mode 100644 data/item/input/53/item000002.png
 create mode 100644 data/item/input/56/item000001.png
 create mode 100644 data/item/input/57/item000001.png
 create mode 100644 data/misc/bunyan1.png
 create mode 100755 data/pageinfo/next.png
 create mode 100644 requirements-dev.txt
 create mode 100644 test_fgosccnt.py

> git rev-parse master
b2c04e74b644d55876f28204251821a8e18d27d9

> git submodule update       
Submodule path 'fgoscdata': checked out '55ae0c79636c03a093a91adfdc096a5a31adcded'

> git submodule       
 55ae0c79636c03a093a91adfdc096a5a31adcded fgoscdata (remotes/origin/HEAD)

> python makeitem.py
> python makechest.py
> python makecard.py
> python makedcnt.py

C:\Users\ameno\fgosccnt-batch-programs-for-Windows>"C:\Users\ameno\scoop\apps\python\3.9.6\python.exe" "C:\Users\ameno\fgosccnt\fgosccnt.py"  O:\Desktop\test_im\0666.PNG O:\Desktop\test_im\0174.PNG --timeout 35  1>"C:\Users\ameno\Documents\FGO\csv"sccnt2022-06_25-21_23_56.csv

image

commented

解決したということでほっとしました