Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -117,20 +117,9 @@ Required Analysis:
|
|
| 117 |
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.
|
| 118 |
Compare observed evidence against each possible delay reason.
|
| 119 |
Select the most likely reason based on visual evidence.
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
1. **h_stock_left**: Identified by contours with the color **Green**.
|
| 123 |
-
2. **h_stock_right**: Identified by contours with the color **Pink**.
|
| 124 |
-
3. **compressor_metal**: Identified by contours with the color **Orange**.
|
| 125 |
-
4. **conveyor2**: Identified by contours with the color **Blue**.
|
| 126 |
-
5. **white_down_roller_left**: Identified by contours with the color **White**.
|
| 127 |
-
6. **conveyor1**: Identified by contours with the color **Brown**.
|
| 128 |
-
Steps for analysis:
|
| 129 |
-
- Extract the contours for each specified color.
|
| 130 |
- Track the movement of each object across frames in the video.
|
| 131 |
- Identify and measure any delays or inconsistencies in their expected movement patterns.
|
| 132 |
-
Note:
|
| 133 |
-
- Ensure precise detection of contours based on the given color definitions.
|
| 134 |
- Account for occlusions, overlaps, and changes in visibility.
|
| 135 |
- Include a summary report of detected delays for each object.
|
| 136 |
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'.
|
|
@@ -146,6 +135,7 @@ Please provide your analysis in the following format:
|
|
| 146 |
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."""
|
| 147 |
|
| 148 |
|
|
|
|
| 149 |
# Load model globally
|
| 150 |
model, tokenizer = load_model()
|
| 151 |
|
|
|
|
| 117 |
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.
|
| 118 |
Compare observed evidence against each possible delay reason.
|
| 119 |
Select the most likely reason based on visual evidence.
|
| 120 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 121 |
- Track the movement of each object across frames in the video.
|
| 122 |
- Identify and measure any delays or inconsistencies in their expected movement patterns.
|
|
|
|
|
|
|
| 123 |
- Account for occlusions, overlaps, and changes in visibility.
|
| 124 |
- Include a summary report of detected delays for each object.
|
| 125 |
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'.
|
|
|
|
| 135 |
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."""
|
| 136 |
|
| 137 |
|
| 138 |
+
|
| 139 |
# Load model globally
|
| 140 |
model, tokenizer = load_model()
|
| 141 |
|