<filename>Detection.py
import cv2
import numpy as np
import math

def draw_lines(image, lines_list, thick):
    if lines_list is not None:
        for i in range(0, len(lines_list)):
            line_arr = lines_list[i][0]
            
            cv2.line(image, (line_arr[0], line_arr[1]), (line_arr[2], line_arr[3]), (255, 100, 100), thick, cv2.LINE_AA)
    else:
        pass
        # print("No lines found")
        
    return image

def detect_Objects(image, minlength, gap, thresh):
    ret, image = cv2.threshold(image, 100, 150, cv2.THRESH_BINARY)
    canny = cv2.Canny(image, 50, 150)
    
    #Detect lines or shapes
    #lines = cv2.HoughLinesP(canny, 1, np.pi / 180, minLineLength=minlength, maxLineGap=gap, threshold=thresh)
    #return lines
