You are viewing a single comment's thread from:

RE: Learn Python Digital Imaging with OpenCV and NumPY Packages

in #utopian-io7 years ago

Your contribution cannot be approved because it does not follow the Utopian Rules.

Explanation:
You've explained (some of) the code you were using incorrectly, and as a whole you only discuss 4 trivial code snippets using 1 OpenCV method for each snippet. And combined those examples don't lead to anything.

Te code in your first resize (which you call "zoom") example, contains the following lines:

img = cv.imread('test.jpg',1)
sizex, sizey = img.shape[0]*1, img.shape[0]*1
img_new =cv.resize(img, (sizex, sizey))

Not only doesn't the *1 operation do anything, in effect you are passing the same value (img.shape[0]) twice (once to both the sizex and sizey arguments of the resize() method), which in effect does not "zoom" but "square" the image (same width as height). But you probably didn't even notice / understand that because your "explanation" of this code is:

To know the dimensions or the physical size of the image and the number of channels in it you can use the shape, this code img.shape img.shape[0]1, img.shape[0]1 width and height will multiply 1.

The number of channels in it? Multiply by 1?

(...)

You can contact us on Discord.
[utopian-moderator]

Sort:  

Hey @scipio, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!

Coin Marketplace

STEEM 0.18
TRX 0.16
JST 0.030
BTC 67789.28
ETH 2615.54
USDT 1.00
SBD 2.72