Improved Docs models Usage examples (#4214)
This commit is contained in:
@ -209,7 +209,7 @@ class Results(SimpleClass):
|
||||
results = model('bus.jpg') # results list
|
||||
for r in results:
|
||||
im_array = r.plot() # plot a BGR numpy array of predictions
|
||||
im = Image.fromarray(im[..., ::-1]) # RGB PIL image
|
||||
im = Image.fromarray(im_array[..., ::-1]) # RGB PIL image
|
||||
im.show() # show image
|
||||
im.save('results.jpg') # save image
|
||||
```
|
||||
|
Reference in New Issue
Block a user