First assignment
This commit is contained in:
commit
2d805fe922
|
@ -0,0 +1,18 @@
|
|||
#! /usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim:fenc=utf-8
|
||||
#
|
||||
# Copyright © 2018 pavle <pavle.portic@tilda.center>
|
||||
#
|
||||
# Distributed under terms of the MIT license.
|
||||
|
||||
import cv2 as cv
|
||||
|
||||
if __name__ == "__main__":
|
||||
in_file = raw_input()
|
||||
img = cv.imread(in_file)
|
||||
pixel = img[0, 0]
|
||||
print("Red: {0}\n".format(pixel[2]))
|
||||
print("Green: {0}\n".format(pixel[1]))
|
||||
print("Blue: {0}".format(pixel[0]))
|
||||
|
Reference in New Issue