最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

python重啟就會(huì)報(bào)錯(cuò),也是沒(méi)誰(shuí)了

2020-03-10 16:23 作者:一心想當(dāng)網(wǎng)紅的李老師  | 我要投稿

# -*- coding: utf-8 -*-

"""

Created on Tue Mar 10 14:04:43 2020


@author: liyan

"""

import tkinter

from tkinter import *

from PIL import Image,ImageTk

from tkinter.filedialog import askopenfilename

import time

import CV2

import tkinter as tk

import array

import numpy as np



data=[]



def getposBgr(event, x, y, flags, param):

? ? if event==CV2.EVENT_LBUTTONDOWN:

? ? ? ? print("Bgr is", img[y, x])

? ? ? ? data=img[y, x]

? ? ? ? print(data)

? ? ? ? print(data[0])

? ? ? ? f=open('data.txt','a')

? ? ? ? info=str(data[0])+";"+str(data[1])+";"+str(data[2])+"\n"

? ? ? ? f.write(info)

? ? ? ? f.close()


? ? ??

top=tkinter.Tk()

file_path=askopenfilename()

img = CV2.imread(file_path)

print(img)

HSV = CV2.cvtColor(img, CV2.COLOR_BGR2HSV)

CV2.imshow('image', img)

CV2.setMouseCallback("image", getposBgr)

CV2.waitKey(0)

CV2.destroyAllWindows()

top.mainloop()?


python重啟就會(huì)報(bào)錯(cuò),也是沒(méi)誰(shuí)了的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
义马市| 五莲县| 铁力市| 封开县| 庆元县| 阿拉善右旗| 通城县| 青岛市| 靖宇县| 河西区| 黔南| 云和县| 富平县| 潞西市| 柳江县| 宁德市| 潞城市| 城固县| 昌图县| 咸宁市| 浑源县| 白城市| 永昌县| 抚州市| 台中市| 宁阳县| 上林县| 安康市| 明光市| 仁怀市| 东宁县| 吴桥县| 五寨县| 阳东县| 桐庐县| 自贡市| 嘉定区| 高淳县| 南京市| 平乐县| 翁牛特旗|