Fix RGB to BGR conversion in TFLite example (#18305)
Signed-off-by: Mohammed Yasin <32206511+Y-T-G@users.noreply.github.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
b55066bd15
commit
add15b0ea8
1 changed files with 1 additions and 1 deletions
|
|
@ -215,7 +215,7 @@ if __name__ == "__main__":
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
detector = YOLOv8TFLite(args.model, args.conf, args.iou, args.metadata)
|
detector = YOLOv8TFLite(args.model, args.conf, args.iou, args.metadata)
|
||||||
result = detector.detect(str(ASSETS / "bus.jpg"))[..., ::-1]
|
result = detector.detect(str(ASSETS / "bus.jpg"))
|
||||||
|
|
||||||
cv2.imshow("Output", result)
|
cv2.imshow("Output", result)
|
||||||
cv2.waitKey(0)
|
cv2.waitKey(0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue