girls

python中openCV2/numpy/matplotlib.pylab/PIL使用小例子

亡梦爱人 提交于 2020-04-05 17:11:01
1. CV2库进行图片操作 #图片操作 #导入对应的库 import numpy as np import cv2 #导入对应的图片 imread为图片路径 girls = cv2.imread('./girl.jpg') #查看图片的数据形状(黑白为2维数据,彩色为3维数据) girls.shape #展示图片,窗口名为girl,加载数据为girls cv2.imshow('girl',girls) #等待键盘输入,单位毫秒,如果为0 无限等待 cv2.waitKey(0) #关闭图形窗口 cv2.destroyAllWindows() #BGR 颜色通道BGR #PIL RGB 设置为灰色 girls2 = cv2.cvtColor(girls,code = cv2.COLOR_BGR2GRAY) cv2.imshow('gray',girls2) cv2.waitKey(0) cv2.destroyAllWindows() #图片输出保存为girls_gray.jpg cv2.imwrite("./girls_gray.jpg",girls2) #设置图片的大小144,158 girls3 = cv2.resize(girls,dsize = (144,158)) cv2.imshow('min',girls3) #设置退出条件 while True: if ord('q')

2019 ICPC银川区域赛 Girls Band Party(分组背包)

时光毁灭记忆、已成空白 提交于 2020-03-05 01:25:02
You are currently playing a game called “Garupa”. In an event of the game, you are trying to get more event points. You have nn cards, each with its own name, color, and power. When you play the game, you can put five cards of different names into your deck. The base point of this event is the sum of the power of the cards in your deck. On top of that, the event publishes a color and five names as bonus attributes, which means that each time you have a card with a bonus color in the deck, you end up with a 20%20% increase in event point. And each time you have a card with a bonus name in the

JS图片切换

和自甴很熟 提交于 2019-12-06 03:03:03
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> <style type="text/css"> *{ margin: 0; padding: 0; } #outer{ width: 553px; /* height: 415px; */ margin: 20px auto; padding: 10px; background-color: chocolate; text-align: center; } </style> <script type="text/javascript"> window.onload = function(){ // 点击按钮切换图片 // var btn = document.getElementById('outer'); var pre = document.getElementById('pre'); var next = document.getElementById(

Girls Like You--Maroon 5

匿名 (未验证) 提交于 2019-12-03 00:41:02
[Verse 1: Adam Levine] Spent 24 hours, I need more hours with you You spent the weekend getting even, ooh We spent the late nights making things right between us [Refrain: Adam Levine] But now it‘s all good, babe Roll that backwood, babe And play me close [Chorus: Adam Levine] ‘Cause girls like you run ‘round with guys like me Till sundown when I come through I need a girl like you, yeah yeah Girls like you love fun, and yeah, me too What I want when I come through I need a girl like you, yeah yeah [Post-Chorus: Adam Levine] Yeah yeah yeah, yeah yeah yeah I need a girl like you, yeah yeah Yeah