wbia.detecttools.ctypes_interface package

Module contents

wbia.detecttools.ctypes_interface.find_lib_fpath(libname, root_dir, recurse_down=True, verbose=False)[source]

Search for the library

wbia.detecttools.ctypes_interface.get_lib_dpath_list(root_dir)[source]

returns possible lib locations

Parameters:root_dir (str) – deepest directory to look for a library (dll, so, dylib)
Returns:plausible directories to look for libraries
Return type:list
wbia.detecttools.ctypes_interface.get_lib_fname_list(libname)[source]
Parameters:libname (str) – library name (e.g. ‘hesaff’, not ‘libhesaff’)
Returns:list of plausible library file names
Return type:list
wbia.detecttools.ctypes_interface.load_clib(libname, root_dir)[source]

Does the work.

Parameters:
  • libname (str) – library name (e.g. ‘hesaff’, not ‘libhesaff’)
  • root_dir (str) – the deepest directory searched for the library file (dll, dylib, or so).
Returns:

clib a ctypes object used to interface with the library

Return type:

ctypes.cdll