0

我尝试使用函数 ynumpy.siftgeo_read 读取一些图像的 siftgeo,但出现错误 'yael' has no attribute 'BytePtrArray'

import os
import numpy as np
from yael import ynumpy
image_names = [filename.split('.')[0]
   for filename in os.listdir('holiday_100')
   if filename.endswith('.jpg')]
image_descs = []
for imname in image_names:
   desc, meta = ynumpy.siftgeo_read("holiday_100/%s.siftgeo" % imname)
   if desc.size == 0: desc = np.zeros((0, 128), dtype = 'uint8')
   image_descs.append(desc)
4

0 回答 0