Guest User

Untitled

a guest
Jan 20th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #Import openCV,matplotlib and numpy.
  2. import cv2
  3. import matplotlib.pyplot as plt
  4. import numpy as np
  5. img = cv2.imread('location/pic.jpg')
  6. #Let's specify each row and column value as follows
  7. x=10
  8. y=10
  9.  
  10. '''
  11. You will get 3 values for colour images [_,_,_] each values represents corresponding B G and R Values,
  12. if image is grayscale you will get a single value.
  13. '''
  14. print(img[x,y])
Add Comment
Please, Sign In to add comment