This file contains 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 | |
def splitPathFileExt(fullName): | |
base=os.path.basename(fullName) | |
split_name = os.path.splitext(base) | |
#print(split_name) | |
FilePath = str[:str.rfind('/')] | |
FileName = split_name[0] |
This file contains 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
//////////lambda side ///////////////////////////////////////// | |
//node.js | |
// function to encode file data to base64 encoded string | |
function base64_encode(file) { | |
// read binary data | |
var bitmap = fs.readFileSync(file); | |
// convert binary data to base64 encoded string | |
return new Buffer(bitmap).toString('base64'); | |
} |
This file contains 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
#https://www.cvlecture.marearts.com/forum/computer-vision-forum/upload-file-to-google-drive-using-python-writing | |
from googleapiclient.discovery import build | |
from httplib2 import Http | |
from oauth2client import file, client, tools | |
try : | |
import argparse | |
flags = argparse.ArgumentParser(parents=[tools.argparser]).parse_args() | |
except ImportError: | |
flags = None |
This file contains 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 <vector> | |
#include <opencv2/opencv.hpp> | |
#ifdef _DEBUG | |
#pragma comment(lib, "opencv_world401d.lib") | |
#else | |
#pragma comment(lib, "opencv_world401.lib") | |
#endif |
This file contains 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 <vector> | |
#include <opencv2/opencv.hpp> | |
#ifdef _DEBUG | |
#pragma comment(lib, "opencv_world401d.lib") | |
#else | |
#pragma comment(lib, "opencv_world401.lib") | |
#endif | |
This file contains 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/opencv.hpp> | |
#ifdef _DEBUG | |
#pragma comment(lib, "opencv_world401d.lib") | |
#else | |
#pragma comment(lib, "opencv_world401.lib") | |
#endif | |
This file contains 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
//http://study.marearts.com/2019/04/opencv-simple-background-subtraction.html | |
//https://youtu.be/s32FB0OxnuI | |
#include <opencv2/opencv.hpp> | |
#ifdef _DEBUG | |
#pragma comment(lib, "opencv_world401d.lib") | |
#else | |
#pragma comment(lib, "opencv_world401.lib") | |
#endif |
This file contains 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 numpy as np | |
import cv2 | |
cap = cv2.VideoCapture(0) | |
ret, frame = cap.read() | |
while(True): | |
# Capture frame-by-frame | |
ret, frame = cap.read() |
This file contains 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 cv2 | |
import numpy as np | |
img = cv2.imread('Suzy.jpg', 1) |
This file contains 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
//using concate | |
cout << "\ncopy interest rows to new Mat using concate\n"; | |
Mat c; | |
for (auto it : row_index_interest) | |
{ | |
if (c.empty()) | |
{ | |
c = a.row(it); | |
continue; | |
}else{ |
NewerOlder