Base VP detector

class limap.vplib.base_vp_detector.BaseVPDetector(options=BaseVPDetectorOptions(n_jobs=1))

Bases: object

detect_vp(lines, camview=None)

Virtual method - detect vanishing points

Parameters:
Returns:

list[limap.vplib.VPResult]

Return type:

vpresult type

detect_vp_all_images(all_lines, camviews=None)

Detect vanishing points on multiple images with multiple processes

Parameters:
  • all_lines (dict[int, list[limap.base.Line2d]]) – map storing all the lines for each image

  • camviews (dict[int, limap.base.CameraView]) – optional, the limap.base.CameraView instances, each corresponding to one image

get_module_name()

Virtual method (need to be implemented) - return the name of the module

visualize(fname, img, lines, vpresult, show_original=False, endpoints=False)
namedtuple limap.vplib.base_vp_detector.BaseVPDetectorOptions(n_jobs: int = 1)

Bases: NamedTuple

Base options for the vanishing point detector

Fields:
  1.  n_jobs (int) – number of jobs at multi-processing (please make sure not to exceed the GPU memory limit with learning methods)