Brumawen / pyiqa

Check21 IQA Score generator written in python3
MIT License
0 stars 0 forks source link

AttributeError: 'str' object has no attribute 'shape' #2

Open wowfoot opened 4 years ago

wowfoot commented 4 years ago

File "I:\Downloads\IQA\pyiqa\src\main.py", line 13, in score.ComputeIqaScore(images[0], None) File "I:\Downloads\IQA\pyiqa\src\iqascore.py", line 42, in ComputeIqaScore (result[12]) = self.checkSpotNoise(frontImage, frontHist) File "I:\Downloads\IQA\pyiqa\src\iqascore.py", line 241, in checkSpotNoise shape = image.shape AttributeError: 'str' object has no attribute 'shape'

I found the problem when I run this code. I fixed 42 line in ComputeIqaScore such as the following.

(result[12]) = self.__checkSpotNoise(front, frontHist)

[1 2 2 2 2 2 0 2 2 0 2 2 2 0 0 2] succeed in run.

I also tested my check image with ClearCheck21 IQA.exe, which said 'All passed' thanks.

Brumawen commented 4 years ago

Thanks so much wowfoot. Good catch. Please can you submit a PR for this.