Commit 85a1ad42 authored by Gihan Jayatilaka's avatar Gihan Jayatilaka

small change

parent a0c4908a
......@@ -7,6 +7,7 @@ This is the python port of Hilight screen detector
DEBUG=True
RESIZE_RATIO=0.5
FRAME_DELAY=100
import numpy as np
import cv2
import sys
......@@ -500,7 +501,7 @@ def processFrameUtil(inputFrame,topLeft,topRight,bottomLeft,bottomRight):
cv2.imshow("Edges",resizedFrame(edges))
cv2.waitKey(1)
cv2.imshow("Lines",resizedFrame(lineFrame))
cv2.waitKey(1000)
cv2.waitKey(FRAME_DELAY)
if __name__ == '__main__':
......@@ -515,8 +516,11 @@ if __name__ == '__main__':
while(vidIn.isOpened()):
ret,frame=vidIn.read()
if ret:
p=processFrame(frame)
print("Vertex points ",p)
try:
p=processFrame(frame)
print("Vertex points ",p)
except:
print("Error in frame")
# except:
# print("USAGE")
# print("python screen-detection-4-hough.py ./video/video.mp4")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment