Skip to content

Commit

Permalink
fix help in imread (apache#12420)
Browse files Browse the repository at this point in the history
fix help in imread
  • Loading branch information
solin319 authored and aaronmarkham committed Sep 11, 2018
1 parent 9f2ece4 commit bbfe0fe
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 bbfe0fe

Please sign in to comment.