Coder Social home page Coder Social logo

Hello , World

  • 👋 Hi, I’m 大东东@leeford88
  • 👀 I’m interested in nagix doker git python...
  • 🌱 I’m currently learning git...
  • 💞️ I’m looking to collaborate on doctor...
  • 📫 How to reach me is http://localhost:55000...
import cv2

import numpy as np import pickle import pyaudio import struct import math import argparse import os def read_frames(file, video_folder): frames = [] cap = cv2.VideoCapture(os.path.join('videos', video_folder, file)) frame_rate = cap.get(cv2.CAP_PROP_FPS) if not cap.isOpened(): print("Error opening video file") while cap.isOpened(): ret, frame = cap.read() if ret: frames.append(frame) else: break cap.release() return frames, frame_rate frames, frame_rate = read_frames('normal.mov', 'bill_gates')

def next_frame_index(i, reverse): if i == len(frames) - 1: reverse = True if i == 0: reverse = False if not reverse: i += 1 else: i -= 1 return i, reverse

大东东's Projects

大东东 doesn’t have any public repositories yet.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.