- 博客(7)
- 收藏
- 关注
原创 opencv 视频读取入门
import cv2 as cvcap = cv.VideoCapture('D:\data\Megamind.avi')# 读取视频文件# 判断是否能够打开摄像头if not cap.isOpened():# 此处假设不能打开 print('不能打卡相机') exit()# 退出while True:# 此时摄像机正常 ret,frame =cap.read() # frame 获取下一帧数 ret 从帧获得返回值,无论对错 if not ret:#.
2022-05-21 19:33:17
285
原创 使用神图像分类经网络经行
import tensorflow as tfimport numpy as npimport matplotlib.pyplot as pltfrom time import timefrom tensorflow.keras.datasets import mnist(x_train_image, y_train_label), (x_test_image, y_test_label) = mnist.load_data()print('x_train:', x_train_image.
2022-05-17 19:49:52
270
原创 波士顿房价
from sklearn.datasets import load_bostonboston = load_boston() print(boston.keys()) print('特征:', boston['feature_names'])X = boston['data']Y = boston['target']print('X shape:', X.shape)print('Y shape:', Y.shape)for i in range(2): #查看前两条数据 print(...
2022-04-12 17:23:15
1368
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人