import numpy as np
import cv2

#def Fcolor():
if(1==1):
    Lx=640; Ly=480
    cap = cv2.VideoCapture(0)
    cap.set(cv2.CAP_PROP_FRAME_WIDTH, Lx)
    cap.set(cv2.CAP_PROP_FRAME_HEIGHT, Ly)
    ret,frame = cap.read()
    cv2.imshow('frame',frame)
    cv2.waitKey(0)
   
    t=0
    while t < 4:
        ret,frame = cap.read(); t+=1
        cv2.imshow('frame',frame)
        img2 = cv2.resize(frame, (80,60), interpolation=cv2.INTER_AREA)
        hsv = cv2.cvtColor(img2, cv2.COLOR_BGR2HSV)
        for j in range(30,40):
            for i in range(35,45):
                print(j,i,img2[j,i,:],hsv[j,i,:])
        cv2.circle(img2,(40,30), 5, (255,0,0), 2)
        cv2.imshow('img2',img2)
        cv2.waitKey(0)
    cv2.destroyAllWindows()
    cap.release()

