This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <opencv2/highgui.hpp> | |
#include <opencv2/imgproc.hpp> // putText, CV_RGB | |
#include <tuple> | |
#include <string> // to_string | |
int main() { | |
cv::Mat src = cv::Mat(480, 640, CV_8UC3, CV_RGB(0, 0, 0)); | |
cv::Mat dst; | |
int num = 5; | |
typedef std::tuple<const cv::Mat&, cv::Mat&, int&> tup_t; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from pytube import YouTube | |
import subprocess | |
import sys | |
# https://stackoverflow.com/a/9130405 | |
os.chdir(sys.path[0]) | |
# https://stackoverflow.com/questions/78160027/how-to-solve-http-error-400-bad-request-in-pytube | |
# https://github.com/pytube/pytube/issues/1894 |