visualization
Browse files
main.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import mmpose
|
2 |
-
|
3 |
from mmpose.apis import MMPoseInferencer
|
|
|
4 |
inferencer = MMPoseInferencer('human')
|
5 |
print("[INFO]: Imported modules!")
|
6 |
|
@@ -11,9 +12,10 @@ def greet(photo):
|
|
11 |
result_generator = inferencer(photo)
|
12 |
|
13 |
print("[INFO]: Visualizing results!")
|
14 |
-
|
15 |
-
print(
|
16 |
-
|
|
|
17 |
|
18 |
# # specify detection model by alias
|
19 |
# # the available aliases include 'human', 'hand', 'face', 'animal',
|
|
|
1 |
import mmpose
|
2 |
+
import os
|
3 |
from mmpose.apis import MMPoseInferencer
|
4 |
+
|
5 |
inferencer = MMPoseInferencer('human')
|
6 |
print("[INFO]: Imported modules!")
|
7 |
|
|
|
12 |
result_generator = inferencer(photo)
|
13 |
|
14 |
print("[INFO]: Visualizing results!")
|
15 |
+
result = next(result_generator)
|
16 |
+
print(os.listdir())
|
17 |
+
print(result['visualization'])
|
18 |
+
return result['visualization']
|
19 |
|
20 |
# # specify detection model by alias
|
21 |
# # the available aliases include 'human', 'hand', 'face', 'animal',
|