class_docstr: Class for image processing. Methods for detecting lines in an image and clustering them. Helper methods for
  drawing.
docstr: Draw a list of lines <line_positions> on <baseimg> in direction <direction> using <line_color> and <line_width>.
docstr_tok: ["Draw","a","list","of","lines","<","line_positions",">","on","<","baseimg",">","in","direction","<","direction",">","using","<","line_color",">","and","<","line_width",">","."]
code: def draw_lines_in_dir(
      baseimg, direction, line_positions, line_color, line_width=None
  ):
      """
      Draw a list of lines <line_positions> on <baseimg> in direction <direction> using <line_color> and <line_width>.
      """
      if direction not in (DIRECTION_HORIZONTAL, DIRECTION_VERTICAL):
          raise ValueError(
              "invalid value for 'direction': '%s'" % direction
          )
  
      if not line_width:
          line_width = ImageProc.DRAW_LINE_WIDTH
  
      h, w = baseimg.shape[:2]
  
      for pos in line_positions:
          pos = int(round(pos))
  
          if direction == DIRECTION_HORIZONTAL:
              p1 = (0, pos)
              p2 = (w, pos)
          else:
              p1 = (pos, 0)
              p2 = (pos, h)
  
          cv2.line(baseimg, p1, p2, line_color, line_width)
  
imports: from logging import warning
  from math import degrees
  import numpy
  import cv2
  from pdftabextract.common import ROTATION, SKEW_X, SKEW_Y, DIRECTION_HORIZONTAL, DIRECTION_VERTICAL
  from pdftabextract.geom import normalize_angle, project_polarcoord_lines
  from pdftabextract.clustering import zip_clusters_and_values, find_clusters_1d_break_dist, calc_cluster_centers_1d
label_desc: Use image node_id 11 for calling the ImageProc obj's underlying member method code with example usage: obj.draw_lines_in_dir(baseimg, direction, line_positions, line_color, line_width) without return types