使用skimage提取图像hog特征

from skimage.feature import hog
from skimage import io
from PIL import Image
import cv2


img = cv2.cvtColor(cv2.imread('../img/test.jpg'), cv2.COLOR_BGR2GRAY)
print img.shape
normalised_blocks, hog_image = hog(img, orientations=9, pixels_per_cell=(8, 8), cells_per_block=(8, 8), block_norm='L2-Hys',visualize=True)
io.imshow(hog_image)
io.show()

效果图:

使用skimage提取图像hog特征

相关文章:

  • 2022-01-31
  • 2022-01-18
  • 2021-07-28
  • 2021-10-01
  • 2022-01-19
  • 2022-01-21
猜你喜欢
  • 2021-06-17
  • 2021-10-09
  • 2021-06-17
  • 2021-07-30
  • 2022-01-18
  • 2021-11-23
  • 2021-11-24
相关资源
相似解决方案