We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
img_hist = cv2.calcHist([gray_img],[0], None,[256],[0,255]) pixel_list = np.nonzero(img_hist)[0].tolist()
N
import cv2 import numpy as np from collections import Counter def summary_image_mask(mask_img_path): mask_img = cv2.imread(mask_img_path) print(f'{mask_img_path}:\n{Counter(mask_img.flatten())}') img_mask_path = 'xxx' summary_image_mask(img_mask_path )
The text was updated successfully, but these errors were encountered:
No branches or pull requests
统计图像里面的值
cv2.calcHist()
N
统计数collections.Counter
Reference
The text was updated successfully, but these errors were encountered: