What do you want to save?
Add Code snippet
New code examples
-
Python 2022-03-13 01:25:01
dlib.correlation_tracker()
#!/usr/bin/python # The contents of this file are in the public domain. See LICENSE_FOR_EXAMPLE_PROGRAMS.txt # # This example shows how to use the correlation_tracker from the dlib Python # library. This object lets you track the position of an object as... Add solution -
Python 2022-01-30 19:01:57
python create video from images
import cv2 import numpy as np import glob img_array = [] for filename in glob.glob('C:/New folder/Images/*.jpg'): img = cv2.imread(filename) height, width, layers = img.shape size = (width,height) img_array.append(img) out = cv2.VideoWr... Add solution -
Python 2022-01-23 23:55:18
python remove file with pattern
import os import glob # Get a list of all the file paths that ends with .txt from in specified directory file_list = glob.glob('/home/varung/Documents/python/logs/*.log') # Iterate over the list of filepaths & remove each file. for file_path in file... Add solution -
Python 2021-11-18 22:15:16
make gif from images in python
from PIL import Image import glob # Create the frames frames = [] imgs = glob.glob("*.png") for i in imgs: new_frame = Image.open(i) frames.append(new_frame) # Save into a GIF file th... Add solution -
Python 2021-11-11 20:54:11
pandas dataframe from multiple csv
# credit to Stack Overflow user in source link import pandas as pd import glob path = r'C:\DRO\DCL_rawdata_files' # use your path all_files = glob.glob(path + "/*.csv") li = [] for filename in all_files: df = pd.read_csv(filename, index_... Add solution