mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 09:07:10 +08:00
[Other]Update im.copy() to im in examples (#854)
* Update keypointdetection result docs * Update im.copy() to im in examples
This commit is contained in:
@@ -73,7 +73,7 @@ if args.video is not None:
|
||||
# for video
|
||||
cap = cv2.VideoCapture(args.video)
|
||||
# Define the codec and create VideoWriter object
|
||||
fourcc = cv2.VideoWriter_fourcc(*'mp4v')
|
||||
fourcc = cv2.VideoWriter_fourcc('m', 'p', '4', 'v')
|
||||
composition = cv2.VideoWriter(output_composition, fourcc, 20.0,
|
||||
(1080, 1920))
|
||||
alpha = cv2.VideoWriter(output_alpha, fourcc, 20.0, (1080, 1920))
|
||||
@@ -100,7 +100,7 @@ if args.video is not None:
|
||||
if args.image is not None:
|
||||
# for image
|
||||
im = cv2.imread(args.image)
|
||||
result = model.predict(im.copy())
|
||||
result = model.predict(im)
|
||||
print(result)
|
||||
# 可视化结果
|
||||
vis_im = fd.vision.vis_matting(im, result)
|
||||
|
Reference in New Issue
Block a user