Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix help in imread (#12420)
Browse files Browse the repository at this point in the history
fix help in imread
  • Loading branch information
solin319 authored and szha committed Sep 1, 2018
1 parent 5ace01c commit b8ee84b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/mxnet/image/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ def imread(filename, *args, **kwargs):
Set `flag` parameter to 0 to get grayscale output
>>> mx.img.imdecode("flower.jpg", flag=0)
>>> mx.img.imread("flower.jpg", flag=0)
<NDArray 224x224x1 @cpu(0)>
Set `to_rgb` parameter to 0 to get output in OpenCV format (BGR)
>>> mx.img.imdecode(str_image, to_rgb=0)
>>> mx.img.imread("flower.jpg", to_rgb=0)
<NDArray 224x224x3 @cpu(0)>
"""
return _internal._cvimread(filename, *args, **kwargs)
Expand Down

0 comments on commit b8ee84b

Please sign in to comment.