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 | |
print("OpenCV Version: " + str(cv2.__version__)) | |
# Creating QR Code | |
QRencoder = cv2.QRCodeEncoder.create(); | |
encoded_info = "http://tecsingularity.com/" | |
qrcode = QRencoder.encode(encoded_info) | |
# Saving image |
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
ffmpeg -i input.mp4 -vf vflip output_vflip.mp4 | |
ffmpeg -i input.mp4 -vf hflip output_hflip.mp4 | |
ffmpeg -i input.mp4 -vf vflip,hflip output_hvflip.mp4 | |
pause |
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
ffmpeg -f lavfi -i pal100bars=s=1920x1080:r=60:d=10 pal100bars.mp4 | |
ffmpeg -f lavfi -i smptebars=s=1920x1080:r=60:d=10 smptebars.mp4 | |
ffmpeg -f lavfi -i smptehdbars=s=1920x1080:r=60:d=10 smptehdbars.mp4 | |
ffmpeg -f lavfi -i testsrc=s=1920x1080:r=60:d=10 testsrc.mp4 | |
pause |
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
from PIL import Image | |
import numpy as np | |
from wordcloud import WordCloud | |
import matplotlib.pyplot as plt | |
mask_array = np.array(Image.open('mask.png')) | |
text = open("test.txt",encoding='utf-8').read() | |
wordcloud_mask = WordCloud(mask=mask_array, background_color="white", max_font_size=250).generate(text) |
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
from wordcloud import WordCloud | |
import matplotlib.pyplot as plt | |
stop_words = ["based", "using", "via", "for", "with", "on", "in", "of", "a", "and", "the", "to", "from", "by", "method", "non", "an", "toward","towards"] | |
text = open("test.txt",encoding='utf-8').read() | |
wordcloud = WordCloud(width=1920, height=1080, max_words=50,background_color="black", stopwords=stop_words, max_font_size=250).generate(text) | |
wordcloud.to_file("word_cloud_result.png") |
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
from wordcloud import WordCloud | |
import matplotlib.pyplot as plt | |
text = open("test.txt",encoding='utf-8').read() | |
wordcloud = WordCloud(width=1920, height=1080, max_words=200,background_color="white").generate(text) | |
wordcloud.to_file("word_cloud_result.png") | |
plt.imshow(wordcloud) |
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
from wordcloud import WordCloud | |
import matplotlib.pyplot as plt | |
text = WordCloud.__doc__ | |
wordcloud = WordCloud().generate(text) | |
wordcloud.to_file("word_cloud_result.png") | |
plt.imshow(wordcloud) |
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 open3d as o3d | |
if __name__ == "__main__": | |
# Loading mesh data | |
print("Loading mesh data") | |
Mesh = o3d.io.read_triangle_mesh("bunny.ply") | |
# Calculation of normal vector | |
Mesh.compute_vertex_normals() |
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
ffmpeg -i input.mp4 -vf "fade=t=in:st=0:d=1,fade=t=out:st=4:d=1" output.mp4 | |
pause |
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
ffmpeg -i input.mp4 -vf drawtext=fontfile="C\\:/Windows/Fonts/arial.ttf":x=10:y=10:fontsize=50:fontcolor=red:text="%{pts\\:hms}" output.mp4 | |
pause |