Ask Your Question
0

Reading image

asked 2016-02-03 20:53:55 -0600

Hello,

I am taking an intro course to OpenCV using Python and when I execute the instruction "print img" (i am using img as my image variable) the return statement has every pixel as integer 255. The picture I am using is a rubix cube. Would anybody be able to point me in the right direction to get this resolved?

image description image description

Thank you

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-02-03 23:09:09 -0600

berak gravatar image

updated 2016-02-03 23:25:41 -0600

i guess, that it's not 255 all the way down, just the start and the end of the image (as in your picture)

try to print the center part, like: print img[180:220, 180:220]

edit flag offensive delete link more

Comments

Exactly what is happening :D Focus on the ... in the middle, they contain way more pixels!

StevenPuttemans gravatar imageStevenPuttemans ( 2016-02-04 04:41:37 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-02-03 20:53:55 -0600

Seen: 254 times

Last updated: Feb 03 '16