anirudhacharya commented on issue #14956: mxnet.image.imread can not correctly 
read jpg with orientation
URL: 
https://github.com/apache/incubator-mxnet/issues/14956#issuecomment-504239776
 
 
   here is a weird discrepancy I am facing when using opencv with python and 
with c++ - 
   ```python
   cv2.imread("img.jpg", flags=cv2.IMREAD_REDUCED_GRAYSCALE_2)
   ```
   returns an image of shape `(112, 112)`
   but when I use `imread` in c++ with
   ```cpp
   cv::imdecode(buf, cv::IMREAD_REDUCED_GRAYSCALE_2)
   ```
   returns a matrix of shape (224,224,1). 
   
   The original image shape is (224,224,3)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to