    from common import motionDetector
    config ={
      "threshold_scale_factor":0.1, threshold above which event is registered
      "start_at":"12:02am", # start time for motion detection
      "end_at":"11:59pm", # end time for motion detection
      "roi":{"x":10,"y":10,"x1":20,"y1":50}, # check motion only in roi
      "timeCheck":False # if true checks motion during specific time limit only
    }
    detector=motionDetector(config)
    cap=cv2.VideoCapture(0)
    
    while True:
        ret,img=cap.read()
        if ret:
            det= detector.detect(img)
    from common import motionDetector
    config ={
      "threshold_scale_factor":0.1, threshold above which event is registered
      "start_at":"12:02am", # start time for motion detection
      "end_at":"11:59pm", # end time for motion detection
      "roi":{"x":10,"y":10,"x1":20,"y1":50}, # check motion only in roi
      "timeCheck":False # if true checks motion during specific time limit only
    }
    detector=motionDetector(config)
    cap=cv2.VideoCapture(0)
    
    while True:
        ret,img=cap.read()
        if ret:
            det= detector.detect(img)
# start time for motion detection # end time for motion detection # check motion only in roi # if true checks motion during specific time limit only