Spaces:
Sleeping
Sleeping
VishalD1234
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -111,24 +111,6 @@ 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 |
-
|
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.
|
@@ -142,6 +124,7 @@ Please provide your analysis in the following format:
|
|
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 |
|
|
|
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.
|
|
|
124 |
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."""
|
125 |
|
126 |
|
127 |
+
|
128 |
# Load model globally
|
129 |
model, tokenizer = load_model()
|
130 |
|