Update miner.py
Browse files
miner.py
CHANGED
|
@@ -92,16 +92,13 @@ class Miner:
|
|
| 92 |
boxes = []
|
| 93 |
for box in detection.boxes.data:
|
| 94 |
x1, y1, x2, y2, conf, cls_id = box.tolist()
|
| 95 |
-
class_id = int(cls_id)
|
| 96 |
-
if class_id == 2:
|
| 97 |
-
class_id = 7
|
| 98 |
boxes.append(
|
| 99 |
BoundingBox(
|
| 100 |
x1=int(x1),
|
| 101 |
y1=int(y1),
|
| 102 |
x2=int(x2),
|
| 103 |
y2=int(y2),
|
| 104 |
-
cls_id=
|
| 105 |
conf=float(conf),
|
| 106 |
)
|
| 107 |
)
|
|
|
|
| 92 |
boxes = []
|
| 93 |
for box in detection.boxes.data:
|
| 94 |
x1, y1, x2, y2, conf, cls_id = box.tolist()
|
|
|
|
|
|
|
|
|
|
| 95 |
boxes.append(
|
| 96 |
BoundingBox(
|
| 97 |
x1=int(x1),
|
| 98 |
y1=int(y1),
|
| 99 |
x2=int(x2),
|
| 100 |
y2=int(y2),
|
| 101 |
+
cls_id=int(cls_id),
|
| 102 |
conf=float(conf),
|
| 103 |
)
|
| 104 |
)
|