Initial commit
This commit is contained in:
13
pyvidplayer2/examples/custom_post_processing_demo.py
Normal file
13
pyvidplayer2/examples/custom_post_processing_demo.py
Normal file
@@ -0,0 +1,13 @@
|
||||
'''
|
||||
This example shows how you can merge and create new post processing functions
|
||||
'''
|
||||
|
||||
|
||||
from pyvidplayer2 import Video, PostProcessing
|
||||
|
||||
# applies a letterbox, cel shading, and greyscale to video
|
||||
|
||||
def custom_process(data):
|
||||
return PostProcessing.letterbox(PostProcessing.cel_shading(PostProcessing.greyscale(data)))
|
||||
|
||||
Video(r"resources\birds.avi", post_process=custom_process).preview()
|
||||
Reference in New Issue
Block a user