"""
Indexing Arrays
"""

import cv2
import numpy as np

frame = cv2.imread("windows.png") # This variable is a 3D array which contains the BGR colour code for each pixel

print("The height of this array is {} pixels".format(frame.shape[0])) # The height axis is the "0" axis
print("The width of this array is {} pixels".format(frame.shape[1])) # The width axis is the "1" axis

print(frame[160,160]) # The output of this line is the colour code for a pixel red section of the logo in BGR format, which has coordinates somewhere in the top left of the screen.


####Exercises####
# Find the colour code of the other three sections of the logo.
86c004e86f3a0c45c82914c124224d25f8fb336b
<mask token>

<mask token>
print('The height of this array is {} pixels'.format(frame.shape[0]))
print('The width of this array is {} pixels'.format(frame.shape[1]))
print(frame[160, 160])

<mask token>
frame = cv2.imread('windows.png')
print('The height of this array is {} pixels'.format(frame.shape[0]))
print('The width of this array is {} pixels'.format(frame.shape[1]))
print(frame[160, 160])

<mask token>
import cv2
import numpy as np
frame = cv2.imread('windows.png')
print('The height of this array is {} pixels'.format(frame.shape[0]))
print('The width of this array is {} pixels'.format(frame.shape[1]))
print(frame[160, 160])

"""
Indexing Arrays
"""

import cv2
import numpy as np

frame = cv2.imread("windows.png") # This variable is a 3D array which contains the BGR colour code for each pixel

print("The height of this array is {} pixels".format(frame.shape[0])) # The height axis is the "0" axis
print("The width of this array is {} pixels".format(frame.shape[1])) # The width axis is the "1" axis

print(frame[160,160]) # The output of this line is the colour code for a pixel red section of the logo in BGR format, which has coordinates somewhere in the top left of the screen.


####Exercises####
# Find the colour code of the other three sections of the logo.