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.
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.