Commit 5228f988 authored by IT18109290_Fernando W.S.D's avatar IT18109290_Fernando W.S.D

Merge branch 'IT18109290_Dewmal' into 'master'

V1.19

See merge request !90
parents 371c8b16 c9168114
......@@ -4,6 +4,15 @@ from abnormal_behavior_detection.WeaponDetection import Weapon_Detection
from abnormal_behavior_detection.HumanDetection import Human_Detection_Video
def data(path):
file = path.split("\\")[2]
if file == "Enhanced_Video.avi":
path = "E:\\BACKBONE\\image_enhancement\\EnhancedVideos\\EnhancedVideo1\\" + file
elif file == "Input.mp4":
path = "E:\\BACKBONE\\videos\\" + file
print("path ->" + path)
Human_Detection_Video.capture_humans(path)
......
......@@ -169,8 +169,7 @@ def startAbnormalBehaviourDetection():
# Human_Detection_Video.capture_humans('C:/Users/Givindu/Desktop/New folder/'+path[2])
print("app -> " + path)
AbDetection = Scripts_Order.data(
"E:\\BACKBONE\\image_enhancement\\EnhancedVideos\\EnhancedVideo1\\" + path.split("\\")[2])
AbDetection = Scripts_Order.data(path)
return jsonify(AbDetection)
......
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