【问题标题】:flann index saving in pythonpython中的flann索引保存
【发布时间】:2013-08-14 04:48:33
【问题描述】:

我想在 python 中使用 flann 作为 surf 描述符的 k-tree。在这种情况下,我需要保存我的 flann 索引,因为我无法资助任何有用的教程来指导我。任何人都可以帮助我,我是编程新手!

【问题讨论】:

    标签: python surf flann


    【解决方案1】:

    同意 python 文档可能更适合 flann,但我发现在我的 IDE 中使用自动完成功能相当容易导航。 (你试过wingIDE吗)? 希望以下代码示例无论如何都能帮助您:

    flannParams = { "memory_weight" : 0 , "target_precision" : 0.9999 , "sample_fraction" : 0.3 , "algorithm" : 255 , "build_weight" : 0.01}
    flann = pyflann.FLANN()
    flann.build_index(X,**flannParams)
    flann.save_index(outputFilename)
    

    【讨论】:

      猜你喜欢
      • 2016-09-26
      • 2015-07-06
      • 2014-05-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-09-22
      • 2019-06-30
      相关资源
      最近更新 更多