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

fix help doc in mx.img.imread #12420

Merged
merged 1 commit into from
Sep 1, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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