五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

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

【BadApple】badApple但壞掉的我并且是800年前畫質(zhì),新人爛活

2023-06-23 03:34 作者:落魄小程序員  | 我要投稿

#代碼極其簡(jiǎn)單:

import CV2 as cv

import os

import time


def PlayVideo(fileName):

? ? # 替換字符列表

? ? ascii_char = list(r" █")

? ? char_len = len(ascii_char)

? ? # 加載視頻

? ? cap = cv.VideoCapture(fileName)

? ? termSize = os.get_terminal_size()

? ? texts = []

? ? while True:

? ? ? ? # 讀取視頻每一幀 跳幀

? ? ? ? for i in range(3):

? ? ? ? ? ? hasFrame, frame = cap.read()

? ? ? ? if not hasFrame:

? ? ? ? ? ? break

? ? ? ? # 視頻長(zhǎng)寬

? ? ? ? width = frame.shape[0]

? ? ? ? height = frame.shape[1]

? ? ? ? # 轉(zhuǎn)灰度圖

? ? ? ? img_gray = cv.cvtColor(frame, cv.COLOR_BGR2GRAY)

? ? ? ? # 縮小圖片并調(diào)整長(zhǎng)寬比

? ? ? ? img_resize = cv.resize(img_gray, (termSize.columns, termSize.lines - 1))

? ? ? ? text = ''

? ? ? ? # 遍歷圖片中的像素

? ? ? ? for row in img_resize:

? ? ? ? ? ? for pixel in row:

? ? ? ? ? ? ? ? # 根據(jù)像素值,選取對(duì)應(yīng)的字符

? ? ? ? ? ? ? ? text += ascii_char[int(pixel / 256 * char_len)]

? ? ? ? ? ? text += '\n'

? ? ? ? texts.append(text)

? ? ? ?

? ? for text in texts:

? ? ? ? # 清屏

? ? ? ? os.system('clear')

? ? ? ? print(text)

? ? ? ? time.sleep(0.005)

# PlayVideo END


filename = input("視頻文件名:")

PlayVideo(filename)

【BadApple】badApple但壞掉的我并且是800年前畫質(zhì),新人爛活的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
北流市| 定安县| 松阳县| 武安市| 梨树县| 阳原县| 黔西县| 双流县| 工布江达县| 新巴尔虎右旗| 高平市| 沂源县| 红原县| 凤翔县| 腾冲县| 鹰潭市| 大田县| 安顺市| 平定县| 祁东县| 象山县| 八宿县| 富锦市| 翁牛特旗| 岳池县| 鄂尔多斯市| 建宁县| 新邵县| 买车| 海林市| 诏安县| 五原县| 徐闻县| 玉龙| 周口市| 独山县| 南华县| 东乌| 门源| 乡宁县| 德安县|