update judge
This commit is contained in:
parent
091f066859
commit
899bb437d8
3
judge.py
3
judge.py
|
@ -73,7 +73,6 @@ def summarize_analysis(analysis):
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
while True:
|
while True:
|
||||||
print("🧘 Judging posture...")
|
|
||||||
|
|
||||||
# path to your image
|
# path to your image
|
||||||
image_path = os.path.join(os.getcwd(), "./frames/frame.jpg")
|
image_path = os.path.join(os.getcwd(), "./frames/frame.jpg")
|
||||||
|
@ -82,9 +81,11 @@ def main():
|
||||||
base64_image = encode_image(image_path)
|
base64_image = encode_image(image_path)
|
||||||
|
|
||||||
# analyze posture
|
# analyze posture
|
||||||
|
print("🧘 Looking at your posture...")
|
||||||
analysis = analyze_posture(base64_image)
|
analysis = analyze_posture(base64_image)
|
||||||
|
|
||||||
# summarize analysis
|
# summarize analysis
|
||||||
|
print("🧘 Judging your posture...")
|
||||||
result = summarize_analysis(analysis)
|
result = summarize_analysis(analysis)
|
||||||
result_json = json.loads(result)
|
result_json = json.loads(result)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue