VishalD1234 commited on
Commit
5e53f1a
·
verified ·
1 Parent(s): f60ea8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -3
app.py CHANGED
@@ -111,22 +111,37 @@ Task Context:
111
  You are analyzing video footage from Step {step_number} of a tire manufacturing process where a delay has been detected. Your task is to determine the most likely cause of the delay from the following possible reasons:
112
  {', '.join(possible_reasons)}
113
  Required Analysis:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
  Carefully observe the video for visual cues indicating production interruption.Analyse frames and contours around the objects: 'h-stock_left','h-stock_right','conveyor1','conveyor2','compressor_metal','person','orange_roller_metal_left','orange_roller_metal_right','white_down_roller_left','white_down_roller_right','vaccum_blue'.
115
  If no person is visible in any of the frames, the reason probably might be due to his absence.
116
  If a person is visible in the video and is observed touching and modifying the layers of the tire, it means there is a issue with tyre being patched hence he is repatching it.
117
  Compare observed evidence against each possible delay reason.
118
  Select the most likely reason based on visual evidence.
119
-
120
  Please provide your analysis in the following format:
121
  1. Selected Reason: [State the most likely reason from the given options]
122
  2. Visual Evidence: [Describe specific visual cues that support your selection]
123
  3. Reasoning: [Explain why this reason best matches the observed evidence]
124
  4. Alternative Analysis: [Brief explanation of why other possible reasons are less likely]
125
-
126
  Important: Base your analysis solely on visual evidence from the video. Focus on concrete, observable details rather than assumptions. Clearly state if no person or specific activity is observed."""
127
 
128
 
129
-
130
  # Load model globally
131
  model, tokenizer = load_model()
132
 
 
111
  You are analyzing video footage from Step {step_number} of a tire manufacturing process where a delay has been detected. Your task is to determine the most likely cause of the delay from the following possible reasons:
112
  {', '.join(possible_reasons)}
113
  Required Analysis:
114
+
115
+ Analyze the delay in movement of the following objects from the provided manufacturing video:
116
+
117
+ 1. **h_stock_left**: Identified by contours with the color **Green**.
118
+ 2. **h_stock_right**: Identified by contours with the color **Pink**.
119
+ 3. **compressor_metal**: Identified by contours with the color **Orange**.
120
+ 4. **conveyor2**: Identified by contours with the color **Blue**.
121
+ 5. **white_down_roller_left**: Identified by contours with the color **White**.
122
+ 6. **conveyor1**: Identified by contours with the color **Brown**.
123
+ Steps for analysis:
124
+ - Extract the contours for each specified color.
125
+ - Track the movement of each object across frames in the video.
126
+ - Identify and measure any delays or inconsistencies in their expected movement patterns.
127
+
128
+ Note:
129
+ - Ensure precise detection of contours based on the given color definitions.
130
+ - Account for occlusions, overlaps, and changes in visibility.
131
+ - Include a summary report of detected delays for each object.
132
  Carefully observe the video for visual cues indicating production interruption.Analyse frames and contours around the objects: 'h-stock_left','h-stock_right','conveyor1','conveyor2','compressor_metal','person','orange_roller_metal_left','orange_roller_metal_right','white_down_roller_left','white_down_roller_right','vaccum_blue'.
133
  If no person is visible in any of the frames, the reason probably might be due to his absence.
134
  If a person is visible in the video and is observed touching and modifying the layers of the tire, it means there is a issue with tyre being patched hence he is repatching it.
135
  Compare observed evidence against each possible delay reason.
136
  Select the most likely reason based on visual evidence.
 
137
  Please provide your analysis in the following format:
138
  1. Selected Reason: [State the most likely reason from the given options]
139
  2. Visual Evidence: [Describe specific visual cues that support your selection]
140
  3. Reasoning: [Explain why this reason best matches the observed evidence]
141
  4. Alternative Analysis: [Brief explanation of why other possible reasons are less likely]
 
142
  Important: Base your analysis solely on visual evidence from the video. Focus on concrete, observable details rather than assumptions. Clearly state if no person or specific activity is observed."""
143
 
144
 
 
145
  # Load model globally
146
  model, tokenizer = load_model()
147