code: def IsHorizontal(img):
      projected = []
      rows, cols = img.shape
      for i in range(rows):
          proj_sum = 0
          for j in range(cols):
              if img[i][j] == 0:
                  proj_sum += 1
          projected.append([1] * proj_sum + [0] * (cols - proj_sum))
          if proj_sum >= 0.9 * cols:
              return True
      return False
  
file_path: Mozart/src/pre_processing.py
imports: from commonfunctions import *
  from skimage.transform import probabilistic_hough_line, hough_line, rotate, hough_line_peaks
  from skimage.feature import corner_harris
  import cv2
  from staff import *
label_desc: Use image node_id 4 for calling a global function with example usage: IsHorizontal(img) and returns: False, True