@@ -27,8 +27,8 @@ def visualize_detection(image, data):
27
27
import fastdeploy as fd
28
28
except Exception :
29
29
raise RuntimeError (
30
- "fastdeploy is required for visualizing results,please refer to \
31
- https://github.com/PaddlePaddle/FastDeploy to install fastdeploy" )
30
+ "fastdeploy is required for visualizing results,please refer to "
31
+ " https://github.com/PaddlePaddle/FastDeploy to install fastdeploy" )
32
32
boxes = np .array (data ['boxes' ])
33
33
scores = np .array (data ['scores' ])
34
34
label_ids = np .array (data ['label_ids' ])
@@ -49,8 +49,8 @@ def visualize_keypoint_detection(image, data):
49
49
import fastdeploy as fd
50
50
except Exception :
51
51
raise RuntimeError (
52
- "fastdeploy is required for visualizing results,please refer to \
53
- https://github.com/PaddlePaddle/FastDeploy to install fastdeploy" )
52
+ "fastdeploy is required for visualizing results,please refer to "
53
+ " https://github.com/PaddlePaddle/FastDeploy to install fastdeploy" )
54
54
keypoints = np .array (data ['keypoints' ])
55
55
scores = np .array (data ['scores' ])
56
56
num_joints = np .array (data ['num_joints' ])
@@ -69,8 +69,8 @@ def visualize_face_detection(image, data):
69
69
import fastdeploy as fd
70
70
except Exception :
71
71
raise RuntimeError (
72
- "fastdeploy is required for visualizing results,please refer to \
73
- https://github.com/PaddlePaddle/FastDeploy to install fastdeploy" )
72
+ "fastdeploy is required for visualizing results,please refer to "
73
+ " https://github.com/PaddlePaddle/FastDeploy to install fastdeploy" )
74
74
data = np .array (data ['data' ])
75
75
scores = np .array (data ['scores' ])
76
76
landmarks = np .array (data ['landmarks' ])
@@ -91,8 +91,8 @@ def visualize_face_alignment(image, data):
91
91
import fastdeploy as fd
92
92
except Exception :
93
93
raise RuntimeError (
94
- "fastdeploy is required for visualizing results,please refer to \
95
- https://github.com/PaddlePaddle/FastDeploy to install fastdeploy" )
94
+ "fastdeploy is required for visualizing results,please refer to "
95
+ " https://github.com/PaddlePaddle/FastDeploy to install fastdeploy" )
96
96
landmarks = np .array (data ['landmarks' ])
97
97
98
98
facealignment_result = fd .C .vision .FaceAlignmentResult ()
@@ -107,8 +107,8 @@ def visualize_segmentation(image, data):
107
107
import fastdeploy as fd
108
108
except Exception :
109
109
raise RuntimeError (
110
- "fastdeploy is required for visualizing results,please refer to \
111
- https://github.com/PaddlePaddle/FastDeploy to install fastdeploy" )
110
+ "fastdeploy is required for visualizing results,please refer to "
111
+ " https://github.com/PaddlePaddle/FastDeploy to install fastdeploy" )
112
112
label_ids = np .array (data ['label_ids' ])
113
113
score_map = np .array (data ['score_map' ])
114
114
shape = np .array (data ['shape' ])
@@ -127,8 +127,8 @@ def visualize_matting(image, data):
127
127
import fastdeploy as fd
128
128
except Exception :
129
129
raise RuntimeError (
130
- "fastdeploy is required for visualizing results,please refer to \
131
- https://github.com/PaddlePaddle/FastDeploy to install fastdeploy" )
130
+ "fastdeploy is required for visualizing results,please refer to "
131
+ " https://github.com/PaddlePaddle/FastDeploy to install fastdeploy" )
132
132
alpha = np .array (data ['alpha' ])
133
133
foreground = np .array (data ['foreground' ])
134
134
contain_foreground = data ['contain_foreground' ]
@@ -149,8 +149,8 @@ def visualize_ocr(image, data):
149
149
import fastdeploy as fd
150
150
except Exception :
151
151
raise RuntimeError (
152
- "fastdeploy is required for visualizing results,please refer to \
153
- https://github.com/PaddlePaddle/FastDeploy to install fastdeploy" )
152
+ "fastdeploy is required for visualizing results,please refer to "
153
+ " https://github.com/PaddlePaddle/FastDeploy to install fastdeploy" )
154
154
boxes = np .array (data ['boxes' ])
155
155
text = np .array (data ['text' ])
156
156
rec_scores = np .array (data ['rec_scores' ])
@@ -173,8 +173,8 @@ def visualize_headpose(image, data):
173
173
import fastdeploy as fd
174
174
except Exception :
175
175
raise RuntimeError (
176
- "fastdeploy is required for visualizing results,please refer to \
177
- https://github.com/PaddlePaddle/FastDeploy to install fastdeploy" )
176
+ "fastdeploy is required for visualizing results,please refer to "
177
+ " https://github.com/PaddlePaddle/FastDeploy to install fastdeploy" )
178
178
euler_angles = np .array (data ['euler_angles' ])
179
179
180
180
headpose_result = fd .C .vision .HeadPoseResult ()
0 commit comments