<jupyter_start><jupyter_text>Exemplo 1:Exibir um vídeo usando OpenCV<jupyter_code>import showVideo as vd

path = './video/video.mp4'
vd.show_video(path) # pressione a letra "q" minúscula para interromper (q = quit)

print('FIM')<jupyter_output><empty_output><jupyter_text>Exemplo 2:Capturar Webcam<jupyter_code>import webcam as wc
wc.webcam() # pressione a letra "q" minúscula para interromper (q = quit)
print('FIM')<jupyter_output><empty_output><jupyter_text>Exemplo 3:Converter um vídeo em uma sequência de imagens<jupyter_code>import videoToFrame as vf

entrada = './video/video.mp4'
saida = './images'

vf.video_to_frame(entrada, saida, verbose=True)
print('FIM')<jupyter_output><empty_output><jupyter_text>Exemplo 4:Converter uma sequencia de imagens em vídeo<jupyter_code>import frameToVideo as fv

entrada = './images'

fv.frame_to_video(entrada, verbose=True)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11469933184855234, 'fraction_numerical': 0.0066815144766146995, 'mean_word_length': 7.900990099009901, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '304652', 'license': 'MIT', 'n_tokens_mistral': 364, 'n_tokens_neox': 357, 'n_words': 71, 'path': 'PythonVideoOpenCV.ipynb', 'repo_name': 'ebteles/PhytonVideoOpenCV', 'size': '898'}