Commit b4cb395d authored by mac's avatar mac

c

parent b49e32dc
Pipeline #355 canceled with stages
......@@ -156,7 +156,7 @@ def video2comix(args):
#宽高32位格式化,不知道是不是会提高效率?
if args.x32:
wh = (to_32s(frame_width), to_32s(frame_height))
print('video output w,h:', str(wh))
print('video output w,h:', str(wh))
flow_video = cv2.VideoWriter(outputmp4, fourcc, fps_flow, wh)
i = 0
step = fps / fps_flow #根据fps算要跳几帧,比如:24fpx/5fpx=4,即每4帧读取下,1秒大概读取4~5帧
......@@ -185,7 +185,7 @@ def video2comix(args):
#img = style_frame.astype('uint8')
#print('---------style_frame type=' , type(style_frame))
print('----------one frame time:',stylization_time)
print('----------one frame time:',stylization_time,', style_frame type:',type(style_frame))
img = np.asarray(style_frame).astype('uint8')
flow_video.write(img)
# flow_video.write(cv2.cvtColor(img,cv2.COLOR_BGR2RGB))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment