Fix undefined ‘im_array’ bug in predict.md (#8565)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: fang_chenfang <1217690899@qq.com>
This commit is contained in:
parent
aa592efda5
commit
6bdf8dfaa2
13 changed files with 23 additions and 23 deletions
|
|
@ -683,7 +683,7 @@ The `plot()` method in `Results` objects facilitates visualization of prediction
|
|||
for i, r in enumerate(results):
|
||||
# Plot results image
|
||||
im_bgr = r.plot() # BGR-order numpy array
|
||||
im_rgb = Image.fromarray(im_array[..., ::-1]) # RGB-order PIL image
|
||||
im_rgb = Image.fromarray(im_bgr[..., ::-1]) # RGB-order PIL image
|
||||
|
||||
# Show results to screen (in supported environments)
|
||||
r.show()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue