机器学习笔记 - 基于深度学习计算视频中演员的出镜时间

一、基本步骤

        这里是使用动画片猫和老鼠进行计算,基本流程如下:

        1、导入并读取视频,从中提取帧,并将其另存为图像

        2、标记一些图像以训练模型(别担心,我已经为你做好了)

        3、根据训练数据构建我们的模型

        4、对剩余图像进行预测

        5、计算汤姆和杰瑞的屏幕时间

二、基础环境

        安装以下库,Numpy、Pandas、Matplotlib、Keras、Skimage、OpenCV。

import cv2     # for capturing videos
import math   # for mathematical operations
import matplotlib.pyplot as plt    # for plotting the images
%matplotlib inline
import pandas as pd
from keras.preprocessing import image   # for preprocessing the images
import numpy as np    # for mathematical operations
from keras.utils import np_utils
from skimage.transform import resize   # for resizing images

最近更新

  1. TCP协议是安全的吗?

    2023-12-06 06:38:04       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2023-12-06 06:38:04       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2023-12-06 06:38:04       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2023-12-06 06:38:04       20 阅读

热门阅读

  1. VQVAE

    VQVAE

    2023-12-06 06:38:04      31 阅读