Skip to content

Commit

Permalink
Add type ignore for calcHist calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Argmaster committed Nov 21, 2024
1 parent 3a999f8 commit 585dd17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/assets/assetlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ def histogram_compare_color(

for channel in range(min_channels): # 0: Blue, 1: Green, 2: Red
# Compute histograms
hist1 = cv2.calcHist([img1], [channel], None, [256], [0, 256])
hist2 = cv2.calcHist([img2], [channel], None, [256], [0, 256])
hist1 = cv2.calcHist([img1], [channel], None, [256], [0, 256]) # type: ignore[list-item]
hist2 = cv2.calcHist([img2], [channel], None, [256], [0, 256]) # type: ignore[list-item]

# Normalize histograms
hist1 = cv2.normalize(hist1, hist1).flatten()
Expand Down

0 comments on commit 585dd17

Please sign in to comment.