Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ def save_json(candidate, subset, json_file_path='./pose_data.json'):
|
|
| 20 |
return json_file_path
|
| 21 |
|
| 22 |
def pose_estimation(test_image):
|
| 23 |
-
oriImg = cv2.cvtColor(
|
| 24 |
|
| 25 |
# bgr_image_path = './test.png'
|
| 26 |
# with open(bgr_image_path, 'wb') as bgr_file:
|
|
|
|
| 20 |
return json_file_path
|
| 21 |
|
| 22 |
def pose_estimation(test_image):
|
| 23 |
+
oriImg = cv2.cvtColor(test_image, cv2.COLOR_RGB2BGR)
|
| 24 |
|
| 25 |
# bgr_image_path = './test.png'
|
| 26 |
# with open(bgr_image_path, 'wb') as bgr_file:
|