Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not valid になる画像 (Jpeg品質60/40、低解像度機) #139

Open
amenohimo opened this issue Aug 4, 2020 · 6 comments
Open

not valid になる画像 (Jpeg品質60/40、低解像度機) #139

amenohimo opened this issue Aug 4, 2020 · 6 comments
Labels
wontfix This will not be worked on

Comments

@amenohimo
Copy link
Contributor

amenohimo commented Aug 4, 2020

条件が特殊なので、滅多に問題にならないと思いますが、以下の2点から、この画像に特有の問題を含む可能性があると考え、念のために報告いたします

  • この画像だけ複数の設定でnot validになっていた
  • 他のクエストでは品質60で認識率100%だった

(ここまで低い品質で使う人は少ないと思いますので、)優先度は低めでいいと思います

コード:

python fgosccnt.py IMG_1122.jpg

出力結果:

filename,ドロ数
IMG_1122.jpg: not valid,

品質60
IMG_1122

品質40
IMG_1122

Original
IMG_1122

第二階層 極光の間(裏)test

@fgophi fgophi added the wontfix This will not be worked on label Aug 5, 2020
@fgophi
Copy link
Collaborator

fgophi commented Sep 2, 2020

品質を落としていけば必ずどこかで不具合が起きますが、とりあえずこれらのファイルはpageinfo.py が処理できない状態です

$ python fgosccnt.py IMG_1122_40.jpg
Traceback (most recent call last):
  File "../fgosccnt.py", line 1698, in <module>
    fileoutput, all_new_list = get_output(inputs, args)
  File "../fgosccnt.py", line 1507, in get_output
    sc = ScreenShot(img_rgb, svm, svm_chest, svm_card, fileextention, debug)
  File "../fgosccnt.py", line 114, in __init__
    self.pagenum, self.pages, self.lines = pageinfo.guess_pageinfo(img_rgb)
  File "C:\Users\nono_000\Documents\git\dev9\fgosccnt\pageinfo.py", line 375, in guess_pageinfo
    pages = guess_pages(asr_w, asr_h, esr_w, esr_h)
  File "C:\Users\nono_000\Documents\git\dev9\fgosccnt\pageinfo.py", line 180, in guess_pages
    raise CannotGuessError(
pageinfo.CannotGuessError: 幅の誤差が大きすぎます: delta = 10, entire_width = 39, actual_width = 29

@max747
Copy link
Member

max747 commented Sep 2, 2020

@amenohimo pageinfo.py の

thresholds_for_entire = range(27, 17, -1)

ここの 27 を 36 に変えて全体的な動作検証お願いできますか? 手元ではそれで添付された品質60画像を検出可能になりました。

@amenohimo
Copy link
Contributor Author

@max747
やってみます

@amenohimo
Copy link
Contributor Author

@max747

thresholds_for_entire = range(36, 17, -1) に変更後、以下の変化がありました。

  1. IMG_1122.PNGを変換した画像は、品質40、品質50、品質60においても認識するようになりました。それに伴い、今回用意した「極光の間 (裏)」の品質40と品質60は完全に認識するようになりました。

  2. 品質50において、新たにIMG_1451.jpg-IMG_1452.jpg間がmissingになり、IMG_1452.jpgにおいて1つの素材を15と誤認識するようになりました。

無題
2

以下、品質50において、「not valid」あるいは「missing」になっていたjpg画像です

IMG_1446.jpg
IMG_1446.jpg

IMG_1451.jpg
IMG_1451.jpg

IMG_1452.jpg
IMG_1452.jpg

IMG_1454.jpg
IMG_1454.jpg

IMG_1459.jpg
IMG_1459.jpg

IMG_1462.jpg
IMG_1462.jpg

@max747
Copy link
Member

max747 commented Sep 2, 2020

やはりそれほど簡単に解決はしませんね。品質の低いJPEGはサポート対象外の方向かな...

@amenohimo
Copy link
Contributor Author

他のクエストも試していますが、品質40で通るところが多いので、ここの品質50だけ特殊なのか、あるいは品質50に問題があるのかもと思っています
品質40よりも品質50がダメなのが不思議ですね

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants