Health Metrics Processing Test

Step 1: Generating Test Image

Test image created successfully at: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg

Test Health Image

Step 2: Uploading Image for Processing

Uploading to: https://truaxcreative.com/FitnessApp/process_health_image.php

User ID: 1

HTTP Status Code: 200

Response Data:

{
    "success": false,
    "message": "Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot."
}

Failed: Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot.

Step 4: Database Verification

Note: Database verification is skipped in this test environment.

To verify database values, please check the database manually or through the app interface.

Log File:

[2025-07-11 12:42:04] Processing image: /Users/jefferytruax/Desktop/Projects/FitnessApp/test_health_image.jpg
[2025-07-11 12:42:04] Starting OCR text extraction for image: /Users/jefferytruax/Desktop/Projects/FitnessApp/test_health_image.jpg
[2025-07-11 12:42:04] Using OCR.space API
[2025-07-11 12:42:05] OCR.space API error: "The API key is invalid"
[2025-07-11 12:42:05] Text extraction failed
[2025-07-11 12:43:06] Processing image: /Users/jefferytruax/Desktop/Projects/FitnessApp/test_health_image.jpg
[2025-07-11 12:43:06] Using fallback mode - returning default values
[2025-07-11 13:20:07] Health image upload received
[2025-07-11 13:20:07] User ID: 1
[2025-07-11 13:20:07] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_68710f87b50a23.73229401.jpg
[2025-07-11 13:20:07] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_68710f87b50a23.73229401.jpg
[2025-07-11 13:20:07] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_68710f87b50a23.73229401.jpg
[2025-07-11 13:20:07] Using OCR.space API
[2025-07-11 13:20:11] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 Ibs\nHIGH\n% BODY FAT %\n19.4%\nStandard\n& MUSCLE\nMASS %\n76.7 %\nEXCELLENT\n286 BMR.\n1510 kcal\nLOW\nBODY\nI FAT MASS\n32.4 1bs\nStandard\n& = BONE MASS\n6.6 lbs\nLOW\nCA BMI\n26.9\nHIGH\nMUSCLE\nMASS\n128.5 lbs\nEXCELLENT\n.: BONE MASS\n3.9%\nLOW\n& WATER\n55.3 %\nStandard\nLEAN BODY\niT MASS\...
[2025-07-11 13:20:11] OCR.space API extracted text: WEIGHT
167.5 Ibs
HIGH
% BODY FAT %
19.4%
Standard
& MUSCLE
MASS %
76.7 %
EXCELLENT
286 BMR.
1510 kca...
[2025-07-11 13:20:11] Extracting health metrics from text
[2025-07-11 13:20:11] Found bmi using specific pattern: 26.9
[2025-07-11 13:20:11] Found body_fat_percent using specific pattern: 19.4
[2025-07-11 13:20:11] Found muscle_mass_lbs using specific pattern: 128.5
[2025-07-11 13:20:11] Found muscle_mass_percent using specific pattern: 76.7
[2025-07-11 13:20:11] Found water_percent using specific pattern: 55.3
[2025-07-11 13:20:11] Found bone_mass_lbs using specific pattern: 6.6
[2025-07-11 13:20:11] Found visceral_fat using specific pattern: 11
[2025-07-11 13:20:11] Found weight using generic pattern: 167.5
[2025-07-11 13:20:11] No match found for lean_body_mass_lbs
[2025-07-11 13:20:11] No match found for bone_mass_percent
[2025-07-11 13:20:11] No match found for bmr
[2025-07-11 13:20:11] Found body_fat_mass_lbs using generic pattern: 32.4
[2025-07-11 13:20:11] Found 9 metrics in total
[2025-07-11 13:20:11] Extracted data: {"date":"2025-07-11","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":null,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":null,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2025-07-11 13:20:11] Inserted record with ID: 13
[2025-07-11 13:20:11] Weight also stored in weights table
[2025-07-11 13:20:11] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2025-07-11","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":null,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":null,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"13"}
[2025-07-11 13:34:02] Health image upload received
[2025-07-11 13:34:02] User ID: 1
[2025-07-11 13:34:02] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_687112cadcc284.15745356.jpg
[2025-07-11 13:34:02] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_687112cadcc284.15745356.jpg
[2025-07-11 13:34:02] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_687112cadcc284.15745356.jpg
[2025-07-11 13:34:02] Using OCR.space API
[2025-07-11 13:34:02] Using API key: K8465...
[2025-07-11 13:34:05] OCR.space API request completed with HTTP code: 200
[2025-07-11 13:34:05] Request info: {"total_time":2.778351,"size_upload":416369,"size_download":747}
[2025-07-11 13:34:05] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 Ibs\nHIGH\n% BODY FAT %\n19.4%\nStandard\n& MUSCLE\nMASS %\n76.7 %\nEXCELLENT\n286 BMR.\n1510 kcal\nLOW\nBODY\nI FAT MASS\n32.4 1bs\nStandard\n& = BONE MASS\n6.6 lbs\nLOW\nCA BMI\n26.9\nHIGH\nMUSCLE\nMASS\n128.5 lbs\nEXCELLENT\n.: BONE MASS\n3.9%\nLOW\n& WATER\n55.3 %\nStandard\nLEAN BODY\niT MASS\...
[2025-07-11 13:34:05] OCR.space API extracted text: WEIGHT
167.5 Ibs
HIGH
% BODY FAT %
19.4%
Standard
& MUSCLE
MASS %
76.7 %
EXCELLENT
286 BMR.
1510 kca...
[2025-07-11 13:34:05] Extracting health metrics from text
[2025-07-11 13:34:05] Found bmi using specific pattern: 26.9
[2025-07-11 13:34:05] Found body_fat_percent using specific pattern: 19.4
[2025-07-11 13:34:05] Found muscle_mass_lbs using specific pattern: 128.5
[2025-07-11 13:34:05] Found muscle_mass_percent using specific pattern: 76.7
[2025-07-11 13:34:05] Found water_percent using specific pattern: 55.3
[2025-07-11 13:34:05] Found bone_mass_lbs using specific pattern: 6.6
[2025-07-11 13:34:05] Found visceral_fat using specific pattern: 11
[2025-07-11 13:34:05] Found weight using generic pattern: 167.5
[2025-07-11 13:34:05] No match found for lean_body_mass_lbs
[2025-07-11 13:34:05] No match found for bone_mass_percent
[2025-07-11 13:34:05] No match found for bmr
[2025-07-11 13:34:05] Found body_fat_mass_lbs using generic pattern: 32.4
[2025-07-11 13:34:05] Found 9 metrics in total
[2025-07-11 13:34:05] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2025-07-11 13:34:05] Adding missing metric bone_mass_percent with default value: 3.9
[2025-07-11 13:34:05] Adding missing metric bmr with default value: 1510
[2025-07-11 13:34:05] Extracted data: {"date":"2025-07-11","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2025-07-11 13:34:05] Final data for insertion: {"date":"2025-07-11","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2025-07-11 13:34:05] Inserted record with ID: 14
[2025-07-11 13:34:05] Weight also stored in weights table
[2025-07-11 13:34:05] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2025-07-11","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"14"}
[2025-07-11 13:35:55] Health image upload received
[2025-07-11 13:35:55] User ID: 1
[2025-07-11 13:35:55] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6871133b342c98.61887566.jpg
[2025-07-11 13:35:55] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6871133b342c98.61887566.jpg
[2025-07-11 13:35:55] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6871133b342c98.61887566.jpg
[2025-07-11 13:35:55] Using OCR.space API
[2025-07-11 13:35:55] Using API key: K8465...
[2025-07-11 13:35:57] OCR.space API request completed with HTTP code: 200
[2025-07-11 13:35:57] Request info: {"total_time":2.124782,"size_upload":327793,"size_download":635}
[2025-07-11 13:35:57] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"9:19\nTrends\nOverview\nDay\nWeek\nMonth\n07/10/2025 09:18\nWEIGHT\nBMI\nBMI\n168.4 lbs\nHIGH\n27.1\nHIGH\nBODY FAT %\nWATER\n26.7 %\nHIGH\nMUSCLE\nMASS %\n50.3%\nLOW\nBONE MASS\n%\n69.6%\nEXCELLENT\n3.7 %\nLOW\nExport Report\nHistory\nUnmatched data","ErrorMessage":"","ErrorDetails":""}],"OCRExitCode":1,"IsErro...
[2025-07-11 13:35:57] OCR.space API extracted text: 9:19
Trends
Overview
Day
Week
Month
07/10/2025 09:18
WEIGHT
BMI
BMI
168.4 lbs
HIGH
27.1
HIGH
BODY FA...
[2025-07-11 13:35:57] Extracting health metrics from text
[2025-07-11 13:35:57] Found bmi using specific pattern: 168.4
[2025-07-11 13:35:57] Found muscle_mass_percent using specific pattern: 50.3
[2025-07-11 13:35:57] Found bone_mass_percent using specific pattern: 69.6
[2025-07-11 13:35:57] Found water_percent using specific pattern: 26.7
[2025-07-11 13:35:57] No match found for weight
[2025-07-11 13:35:57] No match found for body_fat_percent
[2025-07-11 13:35:57] No match found for lean_body_mass_lbs
[2025-07-11 13:35:57] No match found for muscle_mass_lbs
[2025-07-11 13:35:57] No match found for bmr
[2025-07-11 13:35:57] No match found for visceral_fat
[2025-07-11 13:35:57] No match found for body_fat_mass_lbs
[2025-07-11 13:35:57] No match found for bone_mass_lbs
[2025-07-11 13:35:57] Found 4 metrics in total
[2025-07-11 13:35:57] Critical metric weight is missing, using default value
[2025-07-11 13:35:57] Critical metric body_fat_percent is missing, using default value
[2025-07-11 13:35:57] Critical metric muscle_mass_lbs is missing, using default value
[2025-07-11 13:35:57] Critical metric visceral_fat is missing, using default value
[2025-07-11 13:35:57] Critical metric bone_mass_lbs is missing, using default value
[2025-07-11 13:35:57] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2025-07-11 13:35:57] Adding missing metric bmr with default value: 1510
[2025-07-11 13:35:57] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2025-07-11 13:35:57] Extracted data: {"date":"2025-07-11","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":168.4,"water_percent":26.7,"muscle_mass_percent":50.3,"bone_mass_percent":69.6,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2025-07-11 13:35:57] Final data for insertion: {"date":"2025-07-11","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":168.4,"water_percent":26.7,"muscle_mass_percent":50.3,"bone_mass_percent":69.6,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2025-07-11 13:35:57] Inserted record with ID: 15
[2025-07-11 13:35:57] Weight also stored in weights table
[2025-07-11 13:35:57] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2025-07-11","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":168.4,"water_percent":26.7,"muscle_mass_percent":50.3,"bone_mass_percent":69.6,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"15"}
[2025-07-11 13:48:00] Health image upload received
[2025-07-11 13:48:00] User ID: 1
[2025-07-11 13:48:00] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_68711610824e63.10585061.jpg
[2025-07-11 13:48:00] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_68711610824e63.10585061.jpg
[2025-07-11 13:48:00] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_68711610824e63.10585061.jpg
[2025-07-11 13:48:00] Using OCR.space API
[2025-07-11 13:48:00] Using API key: K8465...
[2025-07-11 13:48:02] OCR.space API request completed with HTTP code: 200
[2025-07-11 13:48:02] Request info: {"total_time":2.17001,"size_upload":405833,"size_download":726}
[2025-07-11 13:48:02] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n168.8 1bs\nHIGH\nBODY FAT %\n26.8%\nHIGH\n& MUSCLE\nMASS %\n69.5%\nEXCELLENT\ng6 BMR\n1440 kcal\nLOW\nBODY\nI FAT MASS\n45.1 lbs\nHIGH\nJ*- BONE MASS\n6.3 lbs\nLOW\nBMI\nBMI\n27.1\nHIGH\nMUSCLE\nMASS\n117.2 lbs\nEXCELLENT\n• BONE MASS\n%\n3.7 %\nLOW\nWATER\n50.2 %\nLOW\nLEAN BODY\niT MASS\n123.6 Ibs\nL...
[2025-07-11 13:48:02] OCR.space API extracted text: WEIGHT
168.8 1bs
HIGH
BODY FAT %
26.8%
HIGH
& MUSCLE
MASS %
69.5%
EXCELLENT
g6 BMR
1440 kcal
LOW
BOD...
[2025-07-11 13:48:02] Extracting health metrics from text
[2025-07-11 13:48:02] Found bmi using specific pattern: 27.1
[2025-07-11 13:48:02] Found body_fat_percent using specific pattern: 26.8
[2025-07-11 13:48:02] Found muscle_mass_lbs using specific pattern: 117.2
[2025-07-11 13:48:02] Found muscle_mass_percent using specific pattern: 69.5
[2025-07-11 13:48:02] Found bone_mass_percent using specific pattern: 3.7
[2025-07-11 13:48:02] Found bmr using specific pattern: 1440
[2025-07-11 13:48:02] Found water_percent using specific pattern: 50.2
[2025-07-11 13:48:02] Found bone_mass_lbs using specific pattern: 6.3
[2025-07-11 13:48:02] Found visceral_fat using specific pattern: 14
[2025-07-11 13:48:02] Found weight in trends overview but value 45.1 seems invalid - ignoring
[2025-07-11 13:48:02] Found weight using generic pattern: 168.8
[2025-07-11 13:48:02] No match found for lean_body_mass_lbs
[2025-07-11 13:48:02] Found body_fat_mass_lbs using generic pattern: 45.1
[2025-07-11 13:48:02] Found 11 metrics in total
[2025-07-11 13:48:02] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2025-07-11 13:48:02] Extracted data: {"date":"2025-07-11","weight":168.8,"body_fat_percent":26.8,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":117.2,"bmi":27.1,"water_percent":50.2,"muscle_mass_percent":69.5,"bone_mass_percent":3.7,"bmr":1440,"visceral_fat":14,"body_fat_mass_lbs":45.1,"bone_mass_lbs":6.3}
[2025-07-11 13:48:02] Final data for insertion: {"date":"2025-07-11","weight":168.8,"body_fat_percent":26.8,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":117.2,"bmi":27.1,"water_percent":50.2,"muscle_mass_percent":69.5,"bone_mass_percent":3.7,"bmr":1440,"visceral_fat":14,"body_fat_mass_lbs":45.1,"bone_mass_lbs":6.3}
[2025-07-11 13:48:02] Inserted record with ID: 16
[2025-07-11 13:48:02] Weight also stored in weights table
[2025-07-11 13:48:02] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2025-07-11","weight":168.8,"body_fat_percent":26.8,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":117.2,"bmi":27.1,"water_percent":50.2,"muscle_mass_percent":69.5,"bone_mass_percent":3.7,"bmr":1440,"visceral_fat":14,"body_fat_mass_lbs":45.1,"bone_mass_lbs":6.3},"record_id":"16"}
[2025-12-21 05:18:04] Health image upload received
[2025-12-21 05:18:04] User ID: 1
[2025-12-21 05:18:04] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6947830cb939e6.23861884.jpg
[2025-12-21 05:18:04] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6947830cb939e6.23861884.jpg
[2025-12-21 05:18:04] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6947830cb939e6.23861884.jpg
[2025-12-21 05:18:04] Using OCR.space API
[2025-12-21 05:18:04] Using API key: K8465...
[2025-12-21 05:18:06] OCR.space API request completed with HTTP code: 200
[2025-12-21 05:18:06] Request info: {"total_time":1.660744,"size_upload":115105,"size_download":745}
[2025-12-21 05:18:06] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2025-12-21 05:18:06] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2025-12-21 05:18:06] Extracting health metrics from text
[2025-12-21 05:18:06] Found weight using specific pattern: 167.5
[2025-12-21 05:18:06] Found bmi using specific pattern: 26.9
[2025-12-21 05:18:06] Found body_fat_percent using specific pattern: 19.4
[2025-12-21 05:18:06] Found muscle_mass_lbs using specific pattern: 128.5
[2025-12-21 05:18:06] Found muscle_mass_percent using specific pattern: 76.7
[2025-12-21 05:18:06] Found bone_mass_percent using specific pattern: 3.9
[2025-12-21 05:18:06] Found bmr using specific pattern: 1510
[2025-12-21 05:18:06] Found water_percent using specific pattern: 55.3
[2025-12-21 05:18:06] Found lean_body_mass_lbs using specific pattern: 135.1
[2025-12-21 05:18:06] Found bone_mass_lbs using specific pattern: 6.6
[2025-12-21 05:18:06] Found visceral_fat using specific pattern: 11
[2025-12-21 05:18:06] Found body_fat_mass_lbs using generic pattern: 32.4
[2025-12-21 05:18:06] Found 12 metrics in total
[2025-12-21 05:18:06] Extracted data: {"date":"2025-12-21","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2025-12-21 05:18:06] Final data for insertion: {"date":"2025-12-21","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2025-12-21 05:18:06] Inserted record with ID: 59
[2025-12-21 05:18:06] Weight also stored in weights table
[2025-12-21 05:18:06] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2025-12-21","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"59"}
[2025-12-21 07:54:55] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2025-12-21 07:54:55] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2025-12-21 07:54:55] Using OCR.space API
[2025-12-21 07:54:55] Using API key: K8465...
[2025-12-21 07:54:56] OCR.space API request completed with HTTP code: 200
[2025-12-21 07:54:56] Request info: {"total_time":1.636522,"size_upload":113045,"size_download":731}
[2025-12-21 07:54:56] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2025-12-21 07:54:56] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2025-12-21 07:54:56] Extracting health metrics from text
[2025-12-21 07:54:56] Found bmi but value 167.5 seems invalid - ignoring
[2025-12-21 07:54:56] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2025-12-21 07:54:56] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2025-12-21 07:54:56] Found visceral_fat using specific pattern: 6
[2025-12-21 07:54:56] Found weight using trends overview pattern: 167.5
[2025-12-21 07:54:56] Found bmi using trends overview pattern: 26.9
[2025-12-21 07:54:56] Found body_fat_percent using trends overview pattern: 19.4
[2025-12-21 07:54:56] Found water_percent using trends overview pattern: 55.3
[2025-12-21 07:54:56] Found muscle_mass_percent using trends overview pattern: 76.7
[2025-12-21 07:54:56] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2025-12-21 07:54:56] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2025-12-21 07:54:56] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2025-12-21 07:54:56] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2025-12-21 07:54:56] No match found for bmr
[2025-12-21 07:54:56] No match found for body_fat_mass_lbs
[2025-12-21 07:54:56] No match found for bone_mass_lbs
[2025-12-21 07:54:56] Found 6 metrics in total
[2025-12-21 07:54:56] Critical metric muscle_mass_lbs is missing, using default value
[2025-12-21 07:54:56] Critical metric bone_mass_lbs is missing, using default value
[2025-12-21 07:54:56] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2025-12-21 07:54:56] Adding missing metric bone_mass_percent with default value: 3.9
[2025-12-21 07:54:56] Adding missing metric bmr with default value: 1510
[2025-12-21 07:54:56] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2025-12-21 09:55:20] Health image upload received
[2025-12-21 09:55:20] User ID: 1
[2025-12-21 09:55:20] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6947c408a0a624.39046162.jpg
[2025-12-21 09:55:20] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6947c408a0a624.39046162.jpg
[2025-12-21 09:55:20] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6947c408a0a624.39046162.jpg
[2025-12-21 09:55:20] Using OCR.space API
[2025-12-21 09:55:20] Using API key: K8465...
[2025-12-21 09:55:22] OCR.space API request completed with HTTP code: 200
[2025-12-21 09:55:22] Request info: {"total_time":1.659021,"size_upload":113045,"size_download":731}
[2025-12-21 09:55:22] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2025-12-21 09:55:22] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2025-12-21 09:55:22] Extracting health metrics from text
[2025-12-21 09:55:22] Found bmi but value 167.5 seems invalid - ignoring
[2025-12-21 09:55:22] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2025-12-21 09:55:22] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2025-12-21 09:55:22] Found visceral_fat using specific pattern: 6
[2025-12-21 09:55:22] Found weight using trends overview pattern: 167.5
[2025-12-21 09:55:22] Found bmi using trends overview pattern: 26.9
[2025-12-21 09:55:22] Found body_fat_percent using trends overview pattern: 19.4
[2025-12-21 09:55:22] Found water_percent using trends overview pattern: 55.3
[2025-12-21 09:55:22] Found muscle_mass_percent using trends overview pattern: 76.7
[2025-12-21 09:55:22] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2025-12-21 09:55:22] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2025-12-21 09:55:22] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2025-12-21 09:55:22] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2025-12-21 09:55:22] No match found for bmr
[2025-12-21 09:55:22] No match found for body_fat_mass_lbs
[2025-12-21 09:55:22] No match found for bone_mass_lbs
[2025-12-21 09:55:22] Found 6 metrics in total
[2025-12-21 09:55:22] Critical metric muscle_mass_lbs is missing, using default value
[2025-12-21 09:55:22] Critical metric bone_mass_lbs is missing, using default value
[2025-12-21 09:55:22] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2025-12-21 09:55:22] Adding missing metric bone_mass_percent with default value: 3.9
[2025-12-21 09:55:22] Adding missing metric bmr with default value: 1510
[2025-12-21 09:55:22] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2025-12-21 09:55:22] Extracted data: {"date":"2025-12-21","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2025-12-21 09:55:22] Final data for insertion: {"date":"2025-12-21","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2025-12-21 09:55:22] Inserted record with ID: 60
[2025-12-21 09:55:22] Weight also stored in weights table
[2025-12-21 09:55:22] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2025-12-21","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"60"}
[2025-12-21 10:57:02] Health image upload received
[2025-12-21 10:57:02] Error: Missing or invalid user_id
[2025-12-21 10:57:02] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2025-12-21 17:54:43] Health image upload received
[2025-12-21 17:54:43] User ID: 1
[2025-12-21 17:54:43] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69483463463604.19740392.jpg
[2025-12-21 17:54:43] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69483463463604.19740392.jpg
[2025-12-21 17:54:43] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69483463463604.19740392.jpg
[2025-12-21 17:54:43] Using OCR.space API
[2025-12-21 17:54:43] Using API key: K8465...
[2025-12-21 17:54:45] OCR.space API request completed with HTTP code: 200
[2025-12-21 17:54:45] Request info: {"total_time":2.573,"size_upload":113045,"size_download":732}
[2025-12-21 17:54:45] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2025-12-21 17:54:45] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2025-12-21 17:54:45] Extracting health metrics from text
[2025-12-21 17:54:45] Found bmi but value 167.5 seems invalid - ignoring
[2025-12-21 17:54:45] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2025-12-21 17:54:45] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2025-12-21 17:54:45] Found visceral_fat using specific pattern: 6
[2025-12-21 17:54:45] Found weight using trends overview pattern: 167.5
[2025-12-21 17:54:45] Found bmi using trends overview pattern: 26.9
[2025-12-21 17:54:45] Found body_fat_percent using trends overview pattern: 19.4
[2025-12-21 17:54:45] Found water_percent using trends overview pattern: 55.3
[2025-12-21 17:54:45] Found muscle_mass_percent using trends overview pattern: 76.7
[2025-12-21 17:54:45] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2025-12-21 17:54:45] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2025-12-21 17:54:45] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2025-12-21 17:54:45] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2025-12-21 17:54:45] No match found for bmr
[2025-12-21 17:54:45] No match found for body_fat_mass_lbs
[2025-12-21 17:54:45] No match found for bone_mass_lbs
[2025-12-21 17:54:45] Found 6 metrics in total
[2025-12-21 17:54:45] Critical metric muscle_mass_lbs is missing, using default value
[2025-12-21 17:54:45] Critical metric bone_mass_lbs is missing, using default value
[2025-12-21 17:54:45] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2025-12-21 17:54:45] Adding missing metric bone_mass_percent with default value: 3.9
[2025-12-21 17:54:45] Adding missing metric bmr with default value: 1510
[2025-12-21 17:54:45] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2025-12-21 17:54:45] Extracted data: {"date":"2025-12-21","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2025-12-21 17:54:45] Final data for insertion: {"date":"2025-12-21","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2025-12-21 17:54:45] Inserted record with ID: 61
[2025-12-21 17:54:45] Weight also stored in weights table
[2025-12-21 17:54:45] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2025-12-21","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"61"}
[2025-12-23 04:44:23] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2025-12-23 04:44:23] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2025-12-23 04:44:23] Using OCR.space API
[2025-12-23 04:44:23] Using API key: K8465...
[2025-12-23 04:44:25] OCR.space API request completed with HTTP code: 200
[2025-12-23 04:44:25] Request info: {"total_time":1.955897,"size_upload":113045,"size_download":731}
[2025-12-23 04:44:25] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2025-12-23 04:44:25] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2025-12-23 04:44:25] Extracting health metrics from text
[2025-12-23 04:44:25] Found bmi but value 167.5 seems invalid - ignoring
[2025-12-23 04:44:25] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2025-12-23 04:44:25] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2025-12-23 04:44:25] Found visceral_fat using specific pattern: 6
[2025-12-23 04:44:25] Found weight using trends overview pattern: 167.5
[2025-12-23 04:44:25] Found bmi using trends overview pattern: 26.9
[2025-12-23 04:44:25] Found body_fat_percent using trends overview pattern: 19.4
[2025-12-23 04:44:25] Found water_percent using trends overview pattern: 55.3
[2025-12-23 04:44:25] Found muscle_mass_percent using trends overview pattern: 76.7
[2025-12-23 04:44:25] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2025-12-23 04:44:25] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2025-12-23 04:44:25] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2025-12-23 04:44:25] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2025-12-23 04:44:25] No match found for bmr
[2025-12-23 04:44:25] No match found for body_fat_mass_lbs
[2025-12-23 04:44:25] No match found for bone_mass_lbs
[2025-12-23 04:44:25] Found 6 metrics in total
[2025-12-23 04:44:25] Critical metric muscle_mass_lbs is missing, using default value
[2025-12-23 04:44:25] Critical metric bone_mass_lbs is missing, using default value
[2025-12-23 04:44:25] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2025-12-23 04:44:25] Adding missing metric bone_mass_percent with default value: 3.9
[2025-12-23 04:44:25] Adding missing metric bmr with default value: 1510
[2025-12-23 04:44:25] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2025-12-23 07:30:46] Health image upload received
[2025-12-23 07:30:46] User ID: 1
[2025-12-23 07:30:46] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_694a452677c170.46451490.jpg
[2025-12-23 07:30:46] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_694a452677c170.46451490.jpg
[2025-12-23 07:30:46] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_694a452677c170.46451490.jpg
[2025-12-23 07:30:46] Using OCR.space API
[2025-12-23 07:30:46] Using API key: K8465...
[2025-12-23 07:30:48] OCR.space API request completed with HTTP code: 200
[2025-12-23 07:30:48] Request info: {"total_time":1.894788,"size_upload":115105,"size_download":745}
[2025-12-23 07:30:48] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2025-12-23 07:30:48] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2025-12-23 07:30:48] Extracting health metrics from text
[2025-12-23 07:30:48] Found weight using specific pattern: 167.5
[2025-12-23 07:30:48] Found bmi using specific pattern: 26.9
[2025-12-23 07:30:48] Found body_fat_percent using specific pattern: 19.4
[2025-12-23 07:30:48] Found muscle_mass_lbs using specific pattern: 128.5
[2025-12-23 07:30:48] Found muscle_mass_percent using specific pattern: 76.7
[2025-12-23 07:30:48] Found bone_mass_percent using specific pattern: 3.9
[2025-12-23 07:30:48] Found bmr using specific pattern: 1510
[2025-12-23 07:30:48] Found water_percent using specific pattern: 55.3
[2025-12-23 07:30:48] Found lean_body_mass_lbs using specific pattern: 135.1
[2025-12-23 07:30:48] Found bone_mass_lbs using specific pattern: 6.6
[2025-12-23 07:30:48] Found visceral_fat using specific pattern: 11
[2025-12-23 07:30:48] Found body_fat_mass_lbs using generic pattern: 32.4
[2025-12-23 07:30:48] Found 12 metrics in total
[2025-12-23 07:30:48] Extracted data: {"date":"2025-12-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2025-12-23 07:30:48] Final data for insertion: {"date":"2025-12-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2025-12-23 07:30:48] Inserted record with ID: 62
[2025-12-23 07:30:48] Weight also stored in weights table
[2025-12-23 07:30:48] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2025-12-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"62"}
[2025-12-26 08:49:44] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2025-12-26 08:49:44] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2025-12-26 08:49:44] Using OCR.space API
[2025-12-26 08:49:44] Using API key: K8465...
[2025-12-26 08:49:48] OCR.space API request completed with HTTP code: 200
[2025-12-26 08:49:48] Request info: {"total_time":3.628798,"size_upload":113045,"size_download":732}
[2025-12-26 08:49:48] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2025-12-26 08:49:48] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2025-12-26 08:49:48] Extracting health metrics from text
[2025-12-26 08:49:48] Found bmi but value 167.5 seems invalid - ignoring
[2025-12-26 08:49:48] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2025-12-26 08:49:48] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2025-12-26 08:49:48] Found visceral_fat using specific pattern: 6
[2025-12-26 08:49:48] Found weight using trends overview pattern: 167.5
[2025-12-26 08:49:48] Found bmi using trends overview pattern: 26.9
[2025-12-26 08:49:48] Found body_fat_percent using trends overview pattern: 19.4
[2025-12-26 08:49:48] Found water_percent using trends overview pattern: 55.3
[2025-12-26 08:49:48] Found muscle_mass_percent using trends overview pattern: 76.7
[2025-12-26 08:49:48] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2025-12-26 08:49:48] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2025-12-26 08:49:48] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2025-12-26 08:49:48] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2025-12-26 08:49:48] No match found for bmr
[2025-12-26 08:49:48] No match found for body_fat_mass_lbs
[2025-12-26 08:49:48] No match found for bone_mass_lbs
[2025-12-26 08:49:48] Found 6 metrics in total
[2025-12-26 08:49:48] Critical metric muscle_mass_lbs is missing, using default value
[2025-12-26 08:49:48] Critical metric bone_mass_lbs is missing, using default value
[2025-12-26 08:49:48] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2025-12-26 08:49:48] Adding missing metric bone_mass_percent with default value: 3.9
[2025-12-26 08:49:48] Adding missing metric bmr with default value: 1510
[2025-12-26 08:49:48] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2025-12-26 08:49:49] Health image upload received
[2025-12-26 08:49:49] User ID: 1
[2025-12-26 08:49:49] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_694e4c2d5778a6.77589037.jpg
[2025-12-26 08:49:49] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_694e4c2d5778a6.77589037.jpg
[2025-12-26 08:49:49] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_694e4c2d5778a6.77589037.jpg
[2025-12-26 08:49:49] Using OCR.space API
[2025-12-26 08:49:49] Using API key: K8465...
[2025-12-26 08:49:51] OCR.space API request completed with HTTP code: 200
[2025-12-26 08:49:51] Request info: {"total_time":2.264231,"size_upload":113045,"size_download":732}
[2025-12-26 08:49:51] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2025-12-26 08:49:51] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2025-12-26 08:49:51] Extracting health metrics from text
[2025-12-26 08:49:51] Found bmi but value 167.5 seems invalid - ignoring
[2025-12-26 08:49:51] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2025-12-26 08:49:51] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2025-12-26 08:49:51] Found visceral_fat using specific pattern: 6
[2025-12-26 08:49:51] Found weight using trends overview pattern: 167.5
[2025-12-26 08:49:51] Found bmi using trends overview pattern: 26.9
[2025-12-26 08:49:51] Found body_fat_percent using trends overview pattern: 19.4
[2025-12-26 08:49:51] Found water_percent using trends overview pattern: 55.3
[2025-12-26 08:49:51] Found muscle_mass_percent using trends overview pattern: 76.7
[2025-12-26 08:49:51] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2025-12-26 08:49:51] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2025-12-26 08:49:51] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2025-12-26 08:49:51] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2025-12-26 08:49:51] No match found for bmr
[2025-12-26 08:49:51] No match found for body_fat_mass_lbs
[2025-12-26 08:49:51] No match found for bone_mass_lbs
[2025-12-26 08:49:51] Found 6 metrics in total
[2025-12-26 08:49:51] Critical metric muscle_mass_lbs is missing, using default value
[2025-12-26 08:49:51] Critical metric bone_mass_lbs is missing, using default value
[2025-12-26 08:49:51] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2025-12-26 08:49:51] Adding missing metric bone_mass_percent with default value: 3.9
[2025-12-26 08:49:51] Adding missing metric bmr with default value: 1510
[2025-12-26 08:49:51] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2025-12-26 08:49:51] Extracted data: {"date":"2025-12-26","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2025-12-26 08:49:51] Final data for insertion: {"date":"2025-12-26","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2025-12-26 08:49:51] Inserted record with ID: 63
[2025-12-26 08:49:51] Weight also stored in weights table
[2025-12-26 08:49:51] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2025-12-26","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"63"}
[2025-12-26 08:49:53] Health image upload received
[2025-12-26 08:49:53] User ID: 1
[2025-12-26 08:49:53] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_694e4c3163b4f1.41844550.jpg
[2025-12-26 08:49:53] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_694e4c3163b4f1.41844550.jpg
[2025-12-26 08:49:53] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_694e4c3163b4f1.41844550.jpg
[2025-12-26 08:49:53] Using OCR.space API
[2025-12-26 08:49:53] Using API key: K8465...
[2025-12-26 08:49:55] OCR.space API request completed with HTTP code: 200
[2025-12-26 08:49:55] Request info: {"total_time":2.230589,"size_upload":115105,"size_download":746}
[2025-12-26 08:49:55] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2025-12-26 08:49:55] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2025-12-26 08:49:55] Extracting health metrics from text
[2025-12-26 08:49:55] Found weight using specific pattern: 167.5
[2025-12-26 08:49:55] Found bmi using specific pattern: 26.9
[2025-12-26 08:49:55] Found body_fat_percent using specific pattern: 19.4
[2025-12-26 08:49:55] Found muscle_mass_lbs using specific pattern: 128.5
[2025-12-26 08:49:55] Found muscle_mass_percent using specific pattern: 76.7
[2025-12-26 08:49:55] Found bone_mass_percent using specific pattern: 3.9
[2025-12-26 08:49:55] Found bmr using specific pattern: 1510
[2025-12-26 08:49:55] Found water_percent using specific pattern: 55.3
[2025-12-26 08:49:55] Found lean_body_mass_lbs using specific pattern: 135.1
[2025-12-26 08:49:55] Found bone_mass_lbs using specific pattern: 6.6
[2025-12-26 08:49:55] Found visceral_fat using specific pattern: 11
[2025-12-26 08:49:55] Found body_fat_mass_lbs using generic pattern: 32.4
[2025-12-26 08:49:55] Found 12 metrics in total
[2025-12-26 08:49:55] Extracted data: {"date":"2025-12-26","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2025-12-26 08:49:55] Final data for insertion: {"date":"2025-12-26","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2025-12-26 08:49:55] Inserted record with ID: 64
[2025-12-26 08:49:55] Weight also stored in weights table
[2025-12-26 08:49:55] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2025-12-26","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"64"}
[2025-12-26 08:50:06] Health image upload received
[2025-12-26 08:50:06] Error: Missing or invalid user_id
[2025-12-26 08:50:06] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2025-12-29 04:03:20] Health image upload received
[2025-12-29 04:03:20] User ID: 1
[2025-12-29 04:03:20] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6951fd88958524.13810535.jpg
[2025-12-29 04:03:20] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6951fd88958524.13810535.jpg
[2025-12-29 04:03:20] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6951fd88958524.13810535.jpg
[2025-12-29 04:03:20] Using OCR.space API
[2025-12-29 04:03:20] Using API key: K8465...
[2025-12-29 04:03:22] OCR.space API request completed with HTTP code: 200
[2025-12-29 04:03:22] Request info: {"total_time":1.936625,"size_upload":115105,"size_download":745}
[2025-12-29 04:03:22] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2025-12-29 04:03:22] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2025-12-29 04:03:22] Extracting health metrics from text
[2025-12-29 04:03:22] Found weight using specific pattern: 167.5
[2025-12-29 04:03:22] Found bmi using specific pattern: 26.9
[2025-12-29 04:03:22] Found body_fat_percent using specific pattern: 19.4
[2025-12-29 04:03:22] Found muscle_mass_lbs using specific pattern: 128.5
[2025-12-29 04:03:22] Found muscle_mass_percent using specific pattern: 76.7
[2025-12-29 04:03:22] Found bone_mass_percent using specific pattern: 3.9
[2025-12-29 04:03:22] Found bmr using specific pattern: 1510
[2025-12-29 04:03:22] Found water_percent using specific pattern: 55.3
[2025-12-29 04:03:22] Found lean_body_mass_lbs using specific pattern: 135.1
[2025-12-29 04:03:22] Found bone_mass_lbs using specific pattern: 6.6
[2025-12-29 04:03:22] Found visceral_fat using specific pattern: 11
[2025-12-29 04:03:22] Found body_fat_mass_lbs using generic pattern: 32.4
[2025-12-29 04:03:22] Found 12 metrics in total
[2025-12-29 04:03:22] Extracted data: {"date":"2025-12-29","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2025-12-29 04:03:22] Final data for insertion: {"date":"2025-12-29","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2025-12-29 04:03:22] Inserted record with ID: 65
[2025-12-29 04:03:22] Weight also stored in weights table
[2025-12-29 04:03:22] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2025-12-29","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"65"}
[2025-12-29 05:50:15] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2025-12-29 05:50:15] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2025-12-29 05:50:15] Using OCR.space API
[2025-12-29 05:50:15] Using API key: K8465...
[2025-12-29 05:50:16] OCR.space API request completed with HTTP code: 200
[2025-12-29 05:50:16] Request info: {"total_time":1.582374,"size_upload":113045,"size_download":731}
[2025-12-29 05:50:16] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2025-12-29 05:50:16] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2025-12-29 05:50:16] Extracting health metrics from text
[2025-12-29 05:50:16] Found bmi but value 167.5 seems invalid - ignoring
[2025-12-29 05:50:16] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2025-12-29 05:50:16] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2025-12-29 05:50:16] Found visceral_fat using specific pattern: 6
[2025-12-29 05:50:16] Found weight using trends overview pattern: 167.5
[2025-12-29 05:50:16] Found bmi using trends overview pattern: 26.9
[2025-12-29 05:50:16] Found body_fat_percent using trends overview pattern: 19.4
[2025-12-29 05:50:16] Found water_percent using trends overview pattern: 55.3
[2025-12-29 05:50:16] Found muscle_mass_percent using trends overview pattern: 76.7
[2025-12-29 05:50:16] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2025-12-29 05:50:16] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2025-12-29 05:50:16] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2025-12-29 05:50:16] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2025-12-29 05:50:16] No match found for bmr
[2025-12-29 05:50:16] No match found for body_fat_mass_lbs
[2025-12-29 05:50:16] No match found for bone_mass_lbs
[2025-12-29 05:50:16] Found 6 metrics in total
[2025-12-29 05:50:16] Critical metric muscle_mass_lbs is missing, using default value
[2025-12-29 05:50:16] Critical metric bone_mass_lbs is missing, using default value
[2025-12-29 05:50:16] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2025-12-29 05:50:16] Adding missing metric bone_mass_percent with default value: 3.9
[2025-12-29 05:50:16] Adding missing metric bmr with default value: 1510
[2025-12-29 05:50:16] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2025-12-29 07:48:43] Health image upload received
[2025-12-29 07:48:43] User ID: 1
[2025-12-29 07:48:43] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6952325b13d027.86793451.jpg
[2025-12-29 07:48:43] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6952325b13d027.86793451.jpg
[2025-12-29 07:48:43] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6952325b13d027.86793451.jpg
[2025-12-29 07:48:43] Using OCR.space API
[2025-12-29 07:48:43] Using API key: K8465...
[2025-12-29 07:48:45] OCR.space API request completed with HTTP code: 200
[2025-12-29 07:48:45] Request info: {"total_time":2.26355,"size_upload":113045,"size_download":732}
[2025-12-29 07:48:45] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2025-12-29 07:48:45] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2025-12-29 07:48:45] Extracting health metrics from text
[2025-12-29 07:48:45] Found bmi but value 167.5 seems invalid - ignoring
[2025-12-29 07:48:45] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2025-12-29 07:48:45] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2025-12-29 07:48:45] Found visceral_fat using specific pattern: 6
[2025-12-29 07:48:45] Found weight using trends overview pattern: 167.5
[2025-12-29 07:48:45] Found bmi using trends overview pattern: 26.9
[2025-12-29 07:48:45] Found body_fat_percent using trends overview pattern: 19.4
[2025-12-29 07:48:45] Found water_percent using trends overview pattern: 55.3
[2025-12-29 07:48:45] Found muscle_mass_percent using trends overview pattern: 76.7
[2025-12-29 07:48:45] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2025-12-29 07:48:45] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2025-12-29 07:48:45] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2025-12-29 07:48:45] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2025-12-29 07:48:45] No match found for bmr
[2025-12-29 07:48:45] No match found for body_fat_mass_lbs
[2025-12-29 07:48:45] No match found for bone_mass_lbs
[2025-12-29 07:48:45] Found 6 metrics in total
[2025-12-29 07:48:45] Critical metric muscle_mass_lbs is missing, using default value
[2025-12-29 07:48:45] Critical metric bone_mass_lbs is missing, using default value
[2025-12-29 07:48:45] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2025-12-29 07:48:45] Adding missing metric bone_mass_percent with default value: 3.9
[2025-12-29 07:48:45] Adding missing metric bmr with default value: 1510
[2025-12-29 07:48:45] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2025-12-29 07:48:45] Extracted data: {"date":"2025-12-29","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2025-12-29 07:48:45] Final data for insertion: {"date":"2025-12-29","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2025-12-29 07:48:45] Inserted record with ID: 66
[2025-12-29 07:48:45] Weight also stored in weights table
[2025-12-29 07:48:45] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2025-12-29","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"66"}
[2026-01-01 11:34:51] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-01-01 11:34:51] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-01-01 11:34:51] Using OCR.space API
[2026-01-01 11:34:51] Using API key: K8465...
[2026-01-02 00:50:32] Health image upload received
[2026-01-02 00:50:32] Error: Missing or invalid user_id
[2026-01-02 00:50:32] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-01-05 18:27:30] Health image upload received
[2026-01-05 18:27:30] User ID: 1
[2026-01-05 18:27:30] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_695c02921cd6b1.13308444.jpg
[2026-01-05 18:27:30] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_695c02921cd6b1.13308444.jpg
[2026-01-05 18:27:30] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_695c02921cd6b1.13308444.jpg
[2026-01-05 18:27:30] Using OCR.space API
[2026-01-05 18:27:30] Using API key: K8465...
[2026-01-05 18:27:31] OCR.space API request completed with HTTP code: 200
[2026-01-05 18:27:31] Request info: {"total_time":1.647596,"size_upload":115105,"size_download":8037}
[2026-01-05 18:27:31] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-01-05 18:27:31] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-01-05 18:27:31] Extracting health metrics from text
[2026-01-05 18:27:31] Found weight using specific pattern: 167.5
[2026-01-05 18:27:31] Found bmi using specific pattern: 26.9
[2026-01-05 18:27:31] Found body_fat_percent using specific pattern: 19.4
[2026-01-05 18:27:31] Found muscle_mass_lbs using specific pattern: 128.5
[2026-01-05 18:27:31] Found muscle_mass_percent using specific pattern: 76.7
[2026-01-05 18:27:31] Found bone_mass_percent using specific pattern: 3.9
[2026-01-05 18:27:31] Found bmr using specific pattern: 1510
[2026-01-05 18:27:31] Found water_percent using specific pattern: 55.3
[2026-01-05 18:27:31] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-01-05 18:27:31] Found bone_mass_lbs using specific pattern: 6.6
[2026-01-05 18:27:31] Found visceral_fat using specific pattern: 11
[2026-01-05 18:27:31] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-01-05 18:27:31] Found 12 metrics in total
[2026-01-05 18:27:31] Extracted data: {"date":"2026-01-05","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-05 18:27:31] Final data for insertion: {"date":"2026-01-05","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-05 18:27:31] Inserted record with ID: 67
[2026-01-05 18:27:31] Weight also stored in weights table
[2026-01-05 18:27:31] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-01-05","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"67"}
[2026-01-05 21:15:28] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-01-05 21:15:28] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-01-05 21:15:28] Using OCR.space API
[2026-01-05 21:15:28] Using API key: K8465...
[2026-01-05 21:15:29] OCR.space API request completed with HTTP code: 200
[2026-01-05 21:15:29] Request info: {"total_time":1.591107,"size_upload":113045,"size_download":7478}
[2026-01-05 21:15:29] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-01-05 21:15:29] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-01-05 21:15:29] Extracting health metrics from text
[2026-01-05 21:15:29] Found bmi but value 167.5 seems invalid - ignoring
[2026-01-05 21:15:29] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-05 21:15:29] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-05 21:15:29] Found visceral_fat using specific pattern: 6
[2026-01-05 21:15:29] Found weight using trends overview pattern: 167.5
[2026-01-05 21:15:29] Found bmi using trends overview pattern: 26.9
[2026-01-05 21:15:29] Found body_fat_percent using trends overview pattern: 19.4
[2026-01-05 21:15:29] Found water_percent using trends overview pattern: 55.3
[2026-01-05 21:15:29] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-01-05 21:15:29] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-01-05 21:15:29] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-05 21:15:29] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-01-05 21:15:29] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-05 21:15:29] No match found for bmr
[2026-01-05 21:15:29] No match found for body_fat_mass_lbs
[2026-01-05 21:15:29] No match found for bone_mass_lbs
[2026-01-05 21:15:29] Found 6 metrics in total
[2026-01-05 21:15:29] Critical metric muscle_mass_lbs is missing, using default value
[2026-01-05 21:15:29] Critical metric bone_mass_lbs is missing, using default value
[2026-01-05 21:15:29] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-01-05 21:15:29] Adding missing metric bone_mass_percent with default value: 3.9
[2026-01-05 21:15:29] Adding missing metric bmr with default value: 1510
[2026-01-05 21:15:29] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-01-05 23:13:30] Health image upload received
[2026-01-05 23:13:30] User ID: 1
[2026-01-05 23:13:30] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_695c459a083181.61309494.jpg
[2026-01-05 23:13:30] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_695c459a083181.61309494.jpg
[2026-01-05 23:13:30] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_695c459a083181.61309494.jpg
[2026-01-05 23:13:30] Using OCR.space API
[2026-01-05 23:13:30] Using API key: K8465...
[2026-01-05 23:13:31] OCR.space API request completed with HTTP code: 200
[2026-01-05 23:13:31] Request info: {"total_time":1.663852,"size_upload":113045,"size_download":7478}
[2026-01-05 23:13:31] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-01-05 23:13:31] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-01-05 23:13:31] Extracting health metrics from text
[2026-01-05 23:13:31] Found bmi but value 167.5 seems invalid - ignoring
[2026-01-05 23:13:31] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-05 23:13:31] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-05 23:13:31] Found visceral_fat using specific pattern: 6
[2026-01-05 23:13:31] Found weight using trends overview pattern: 167.5
[2026-01-05 23:13:31] Found bmi using trends overview pattern: 26.9
[2026-01-05 23:13:31] Found body_fat_percent using trends overview pattern: 19.4
[2026-01-05 23:13:31] Found water_percent using trends overview pattern: 55.3
[2026-01-05 23:13:31] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-01-05 23:13:31] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-01-05 23:13:31] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-05 23:13:31] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-01-05 23:13:31] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-05 23:13:31] No match found for bmr
[2026-01-05 23:13:31] No match found for body_fat_mass_lbs
[2026-01-05 23:13:31] No match found for bone_mass_lbs
[2026-01-05 23:13:31] Found 6 metrics in total
[2026-01-05 23:13:31] Critical metric muscle_mass_lbs is missing, using default value
[2026-01-05 23:13:31] Critical metric bone_mass_lbs is missing, using default value
[2026-01-05 23:13:31] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-01-05 23:13:31] Adding missing metric bone_mass_percent with default value: 3.9
[2026-01-05 23:13:31] Adding missing metric bmr with default value: 1510
[2026-01-05 23:13:31] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-01-05 23:13:31] Extracted data: {"date":"2026-01-05","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-05 23:13:31] Final data for insertion: {"date":"2026-01-05","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-05 23:13:31] Inserted record with ID: 68
[2026-01-05 23:13:31] Weight also stored in weights table
[2026-01-05 23:13:31] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-01-05","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"68"}
[2026-01-11 05:21:04] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-01-11 05:21:04] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-01-11 05:21:04] Using OCR.space API
[2026-01-11 05:21:04] Using API key: K8465...
[2026-01-11 05:21:05] OCR.space API request completed with HTTP code: 200
[2026-01-11 05:21:05] Request info: {"total_time":1.648806,"size_upload":113045,"size_download":7478}
[2026-01-11 05:21:05] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-01-11 05:21:05] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-01-11 05:21:05] Extracting health metrics from text
[2026-01-11 05:21:05] Found bmi but value 167.5 seems invalid - ignoring
[2026-01-11 05:21:05] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-11 05:21:05] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-11 05:21:05] Found visceral_fat using specific pattern: 6
[2026-01-11 05:21:05] Found weight using trends overview pattern: 167.5
[2026-01-11 05:21:05] Found bmi using trends overview pattern: 26.9
[2026-01-11 05:21:05] Found body_fat_percent using trends overview pattern: 19.4
[2026-01-11 05:21:05] Found water_percent using trends overview pattern: 55.3
[2026-01-11 05:21:05] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-01-11 05:21:05] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-01-11 05:21:05] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-11 05:21:05] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-01-11 05:21:05] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-11 05:21:05] No match found for bmr
[2026-01-11 05:21:05] No match found for body_fat_mass_lbs
[2026-01-11 05:21:05] No match found for bone_mass_lbs
[2026-01-11 05:21:05] Found 6 metrics in total
[2026-01-11 05:21:05] Critical metric muscle_mass_lbs is missing, using default value
[2026-01-11 05:21:05] Critical metric bone_mass_lbs is missing, using default value
[2026-01-11 05:21:05] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-01-11 05:21:05] Adding missing metric bone_mass_percent with default value: 3.9
[2026-01-11 05:21:05] Adding missing metric bmr with default value: 1510
[2026-01-11 05:21:05] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-01-11 05:29:13] Health image upload received
[2026-01-11 05:29:13] User ID: 1
[2026-01-11 05:29:13] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_696335295c7528.14044774.jpg
[2026-01-11 05:29:13] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_696335295c7528.14044774.jpg
[2026-01-11 05:29:13] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_696335295c7528.14044774.jpg
[2026-01-11 05:29:13] Using OCR.space API
[2026-01-11 05:29:13] Using API key: K8465...
[2026-01-11 05:29:15] OCR.space API request completed with HTTP code: 200
[2026-01-11 05:29:15] Request info: {"total_time":1.957925,"size_upload":113045,"size_download":7478}
[2026-01-11 05:29:15] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-01-11 05:29:15] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-01-11 05:29:15] Extracting health metrics from text
[2026-01-11 05:29:15] Found bmi but value 167.5 seems invalid - ignoring
[2026-01-11 05:29:15] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-11 05:29:15] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-11 05:29:15] Found visceral_fat using specific pattern: 6
[2026-01-11 05:29:15] Found weight using trends overview pattern: 167.5
[2026-01-11 05:29:15] Found bmi using trends overview pattern: 26.9
[2026-01-11 05:29:15] Found body_fat_percent using trends overview pattern: 19.4
[2026-01-11 05:29:15] Found water_percent using trends overview pattern: 55.3
[2026-01-11 05:29:15] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-01-11 05:29:15] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-01-11 05:29:15] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-11 05:29:15] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-01-11 05:29:15] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-11 05:29:15] No match found for bmr
[2026-01-11 05:29:15] No match found for body_fat_mass_lbs
[2026-01-11 05:29:15] No match found for bone_mass_lbs
[2026-01-11 05:29:15] Found 6 metrics in total
[2026-01-11 05:29:15] Critical metric muscle_mass_lbs is missing, using default value
[2026-01-11 05:29:15] Critical metric bone_mass_lbs is missing, using default value
[2026-01-11 05:29:15] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-01-11 05:29:15] Adding missing metric bone_mass_percent with default value: 3.9
[2026-01-11 05:29:15] Adding missing metric bmr with default value: 1510
[2026-01-11 05:29:15] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-01-11 05:29:15] Extracted data: {"date":"2026-01-11","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-11 05:29:15] Final data for insertion: {"date":"2026-01-11","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-11 05:29:15] Inserted record with ID: 69
[2026-01-11 05:29:15] Weight also stored in weights table
[2026-01-11 05:29:15] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-01-11","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"69"}
[2026-01-11 05:38:02] Health image upload received
[2026-01-11 05:38:02] User ID: 1
[2026-01-11 05:38:02] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6963373ae39c75.77113862.jpg
[2026-01-11 05:38:02] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6963373ae39c75.77113862.jpg
[2026-01-11 05:38:02] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6963373ae39c75.77113862.jpg
[2026-01-11 05:38:02] Using OCR.space API
[2026-01-11 05:38:02] Using API key: K8465...
[2026-01-11 05:38:04] OCR.space API request completed with HTTP code: 200
[2026-01-11 05:38:04] Request info: {"total_time":1.600981,"size_upload":115105,"size_download":8037}
[2026-01-11 05:38:04] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-01-11 05:38:04] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-01-11 05:38:04] Extracting health metrics from text
[2026-01-11 05:38:04] Found weight using specific pattern: 167.5
[2026-01-11 05:38:04] Found bmi using specific pattern: 26.9
[2026-01-11 05:38:04] Found body_fat_percent using specific pattern: 19.4
[2026-01-11 05:38:04] Found muscle_mass_lbs using specific pattern: 128.5
[2026-01-11 05:38:04] Found muscle_mass_percent using specific pattern: 76.7
[2026-01-11 05:38:04] Found bone_mass_percent using specific pattern: 3.9
[2026-01-11 05:38:04] Found bmr using specific pattern: 1510
[2026-01-11 05:38:04] Found water_percent using specific pattern: 55.3
[2026-01-11 05:38:04] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-01-11 05:38:04] Found bone_mass_lbs using specific pattern: 6.6
[2026-01-11 05:38:04] Found visceral_fat using specific pattern: 11
[2026-01-11 05:38:04] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-01-11 05:38:04] Found 12 metrics in total
[2026-01-11 05:38:04] Extracted data: {"date":"2026-01-11","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-11 05:38:04] Final data for insertion: {"date":"2026-01-11","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-11 05:38:04] Inserted record with ID: 70
[2026-01-11 05:38:04] Weight also stored in weights table
[2026-01-11 05:38:04] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-01-11","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"70"}
[2026-01-11 11:40:48] Health image upload received
[2026-01-11 11:40:48] Error: Missing or invalid user_id
[2026-01-11 11:40:48] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-01-12 01:23:43] Health image upload received
[2026-01-12 01:23:43] User ID: 1
[2026-01-12 01:23:43] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69644d1f6cd3b5.89872203.jpg
[2026-01-12 01:23:43] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69644d1f6cd3b5.89872203.jpg
[2026-01-12 01:23:43] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69644d1f6cd3b5.89872203.jpg
[2026-01-12 01:23:43] Using OCR.space API
[2026-01-12 01:23:43] Using API key: K8465...
[2026-01-12 01:23:45] OCR.space API request completed with HTTP code: 200
[2026-01-12 01:23:45] Request info: {"total_time":1.979939,"size_upload":115105,"size_download":8037}
[2026-01-12 01:23:45] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-01-12 01:23:45] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-01-12 01:23:45] Extracting health metrics from text
[2026-01-12 01:23:45] Found weight using specific pattern: 167.5
[2026-01-12 01:23:45] Found bmi using specific pattern: 26.9
[2026-01-12 01:23:45] Found body_fat_percent using specific pattern: 19.4
[2026-01-12 01:23:45] Found muscle_mass_lbs using specific pattern: 128.5
[2026-01-12 01:23:45] Found muscle_mass_percent using specific pattern: 76.7
[2026-01-12 01:23:45] Found bone_mass_percent using specific pattern: 3.9
[2026-01-12 01:23:45] Found bmr using specific pattern: 1510
[2026-01-12 01:23:45] Found water_percent using specific pattern: 55.3
[2026-01-12 01:23:45] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-01-12 01:23:45] Found bone_mass_lbs using specific pattern: 6.6
[2026-01-12 01:23:45] Found visceral_fat using specific pattern: 11
[2026-01-12 01:23:45] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-01-12 01:23:45] Found 12 metrics in total
[2026-01-12 01:23:45] Extracted data: {"date":"2026-01-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-12 01:23:45] Final data for insertion: {"date":"2026-01-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-12 01:23:45] Inserted record with ID: 71
[2026-01-12 01:23:45] Weight also stored in weights table
[2026-01-12 01:23:45] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-01-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"71"}
[2026-01-12 01:23:54] Health image upload received
[2026-01-12 01:23:54] Error: Missing or invalid user_id
[2026-01-12 01:23:54] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-01-12 01:23:57] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-01-12 01:23:57] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-01-12 01:23:57] Using OCR.space API
[2026-01-12 01:23:57] Using API key: K8465...
[2026-01-12 01:23:59] OCR.space API request completed with HTTP code: 200
[2026-01-12 01:23:59] Request info: {"total_time":1.676684,"size_upload":113045,"size_download":7478}
[2026-01-12 01:23:59] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-01-12 01:23:59] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-01-12 01:23:59] Extracting health metrics from text
[2026-01-12 01:23:59] Found bmi but value 167.5 seems invalid - ignoring
[2026-01-12 01:23:59] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-12 01:23:59] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-12 01:23:59] Found visceral_fat using specific pattern: 6
[2026-01-12 01:23:59] Found weight using trends overview pattern: 167.5
[2026-01-12 01:23:59] Found bmi using trends overview pattern: 26.9
[2026-01-12 01:23:59] Found body_fat_percent using trends overview pattern: 19.4
[2026-01-12 01:23:59] Found water_percent using trends overview pattern: 55.3
[2026-01-12 01:23:59] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-01-12 01:23:59] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-01-12 01:23:59] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-12 01:23:59] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-01-12 01:23:59] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-12 01:23:59] No match found for bmr
[2026-01-12 01:23:59] No match found for body_fat_mass_lbs
[2026-01-12 01:23:59] No match found for bone_mass_lbs
[2026-01-12 01:23:59] Found 6 metrics in total
[2026-01-12 01:23:59] Critical metric muscle_mass_lbs is missing, using default value
[2026-01-12 01:23:59] Critical metric bone_mass_lbs is missing, using default value
[2026-01-12 01:23:59] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-01-12 01:23:59] Adding missing metric bone_mass_percent with default value: 3.9
[2026-01-12 01:23:59] Adding missing metric bmr with default value: 1510
[2026-01-12 01:23:59] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-01-12 01:24:21] Health image upload received
[2026-01-12 01:24:21] User ID: 1
[2026-01-12 01:24:21] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69644d45506535.17491705.jpg
[2026-01-12 01:24:21] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69644d45506535.17491705.jpg
[2026-01-12 01:24:21] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69644d45506535.17491705.jpg
[2026-01-12 01:24:21] Using OCR.space API
[2026-01-12 01:24:21] Using API key: K8465...
[2026-01-12 01:24:23] OCR.space API request completed with HTTP code: 200
[2026-01-12 01:24:23] Request info: {"total_time":1.884454,"size_upload":113045,"size_download":7478}
[2026-01-12 01:24:23] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-01-12 01:24:23] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-01-12 01:24:23] Extracting health metrics from text
[2026-01-12 01:24:23] Found bmi but value 167.5 seems invalid - ignoring
[2026-01-12 01:24:23] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-12 01:24:23] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-12 01:24:23] Found visceral_fat using specific pattern: 6
[2026-01-12 01:24:23] Found weight using trends overview pattern: 167.5
[2026-01-12 01:24:23] Found bmi using trends overview pattern: 26.9
[2026-01-12 01:24:23] Found body_fat_percent using trends overview pattern: 19.4
[2026-01-12 01:24:23] Found water_percent using trends overview pattern: 55.3
[2026-01-12 01:24:23] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-01-12 01:24:23] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-01-12 01:24:23] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-12 01:24:23] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-01-12 01:24:23] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-12 01:24:23] No match found for bmr
[2026-01-12 01:24:23] No match found for body_fat_mass_lbs
[2026-01-12 01:24:23] No match found for bone_mass_lbs
[2026-01-12 01:24:23] Found 6 metrics in total
[2026-01-12 01:24:23] Critical metric muscle_mass_lbs is missing, using default value
[2026-01-12 01:24:23] Critical metric bone_mass_lbs is missing, using default value
[2026-01-12 01:24:23] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-01-12 01:24:23] Adding missing metric bone_mass_percent with default value: 3.9
[2026-01-12 01:24:23] Adding missing metric bmr with default value: 1510
[2026-01-12 01:24:23] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-01-12 01:24:23] Extracted data: {"date":"2026-01-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-12 01:24:23] Final data for insertion: {"date":"2026-01-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-12 01:24:23] Inserted record with ID: 72
[2026-01-12 01:24:23] Weight also stored in weights table
[2026-01-12 01:24:23] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-01-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"72"}
[2026-01-14 18:05:08] Health image upload received
[2026-01-14 18:05:08] User ID: 1
[2026-01-14 18:05:08] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6967dad48eacf0.74863452.jpg
[2026-01-14 18:05:08] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6967dad48eacf0.74863452.jpg
[2026-01-14 18:05:08] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6967dad48eacf0.74863452.jpg
[2026-01-14 18:05:08] Using OCR.space API
[2026-01-14 18:05:08] Using API key: K8465...
[2026-01-14 18:05:10] OCR.space API request completed with HTTP code: 200
[2026-01-14 18:05:10] Request info: {"total_time":1.628715,"size_upload":115105,"size_download":8037}
[2026-01-14 18:05:10] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-01-14 18:05:10] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-01-14 18:05:10] Extracting health metrics from text
[2026-01-14 18:05:10] Found weight using specific pattern: 167.5
[2026-01-14 18:05:10] Found bmi using specific pattern: 26.9
[2026-01-14 18:05:10] Found body_fat_percent using specific pattern: 19.4
[2026-01-14 18:05:10] Found muscle_mass_lbs using specific pattern: 128.5
[2026-01-14 18:05:10] Found muscle_mass_percent using specific pattern: 76.7
[2026-01-14 18:05:10] Found bone_mass_percent using specific pattern: 3.9
[2026-01-14 18:05:10] Found bmr using specific pattern: 1510
[2026-01-14 18:05:10] Found water_percent using specific pattern: 55.3
[2026-01-14 18:05:10] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-01-14 18:05:10] Found bone_mass_lbs using specific pattern: 6.6
[2026-01-14 18:05:10] Found visceral_fat using specific pattern: 11
[2026-01-14 18:05:10] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-01-14 18:05:10] Found 12 metrics in total
[2026-01-14 18:05:10] Extracted data: {"date":"2026-01-14","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-14 18:05:10] Final data for insertion: {"date":"2026-01-14","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-14 18:05:10] Inserted record with ID: 73
[2026-01-14 18:05:10] Weight also stored in weights table
[2026-01-14 18:05:10] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-01-14","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"73"}
[2026-01-14 22:31:47] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-01-14 22:31:47] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-01-14 22:31:47] Using OCR.space API
[2026-01-14 22:31:47] Using API key: K8465...
[2026-01-14 22:31:49] OCR.space API request completed with HTTP code: 200
[2026-01-14 22:31:49] Request info: {"total_time":1.9711,"size_upload":113045,"size_download":7478}
[2026-01-14 22:31:49] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-01-14 22:31:49] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-01-14 22:31:49] Extracting health metrics from text
[2026-01-14 22:31:49] Found bmi but value 167.5 seems invalid - ignoring
[2026-01-14 22:31:49] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-14 22:31:49] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-14 22:31:49] Found visceral_fat using specific pattern: 6
[2026-01-14 22:31:49] Found weight using trends overview pattern: 167.5
[2026-01-14 22:31:49] Found bmi using trends overview pattern: 26.9
[2026-01-14 22:31:49] Found body_fat_percent using trends overview pattern: 19.4
[2026-01-14 22:31:49] Found water_percent using trends overview pattern: 55.3
[2026-01-14 22:31:49] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-01-14 22:31:49] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-01-14 22:31:49] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-14 22:31:49] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-01-14 22:31:49] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-14 22:31:49] No match found for bmr
[2026-01-14 22:31:49] No match found for body_fat_mass_lbs
[2026-01-14 22:31:49] No match found for bone_mass_lbs
[2026-01-14 22:31:49] Found 6 metrics in total
[2026-01-14 22:31:49] Critical metric muscle_mass_lbs is missing, using default value
[2026-01-14 22:31:49] Critical metric bone_mass_lbs is missing, using default value
[2026-01-14 22:31:49] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-01-14 22:31:49] Adding missing metric bone_mass_percent with default value: 3.9
[2026-01-14 22:31:49] Adding missing metric bmr with default value: 1510
[2026-01-14 22:31:49] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-01-19 11:45:28] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-01-19 11:45:28] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-01-19 11:45:28] Using OCR.space API
[2026-01-19 11:45:28] Using API key: K8465...
[2026-01-19 11:45:30] OCR.space API request completed with HTTP code: 200
[2026-01-19 11:45:30] Request info: {"total_time":1.636008,"size_upload":113045,"size_download":7478}
[2026-01-19 11:45:30] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-01-19 11:45:30] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-01-19 11:45:30] Extracting health metrics from text
[2026-01-19 11:45:30] Found bmi but value 167.5 seems invalid - ignoring
[2026-01-19 11:45:30] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-19 11:45:30] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-19 11:45:30] Found visceral_fat using specific pattern: 6
[2026-01-19 11:45:30] Found weight using trends overview pattern: 167.5
[2026-01-19 11:45:30] Found bmi using trends overview pattern: 26.9
[2026-01-19 11:45:30] Found body_fat_percent using trends overview pattern: 19.4
[2026-01-19 11:45:30] Found water_percent using trends overview pattern: 55.3
[2026-01-19 11:45:30] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-01-19 11:45:30] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-01-19 11:45:30] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-19 11:45:30] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-01-19 11:45:30] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-19 11:45:30] No match found for bmr
[2026-01-19 11:45:30] No match found for body_fat_mass_lbs
[2026-01-19 11:45:30] No match found for bone_mass_lbs
[2026-01-19 11:45:30] Found 6 metrics in total
[2026-01-19 11:45:30] Critical metric muscle_mass_lbs is missing, using default value
[2026-01-19 11:45:30] Critical metric bone_mass_lbs is missing, using default value
[2026-01-19 11:45:30] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-01-19 11:45:30] Adding missing metric bone_mass_percent with default value: 3.9
[2026-01-19 11:45:30] Adding missing metric bmr with default value: 1510
[2026-01-19 11:45:30] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-01-19 11:56:18] Health image upload received
[2026-01-19 11:56:18] User ID: 1
[2026-01-19 11:56:18] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_696e1be25f3133.51744106.jpg
[2026-01-19 11:56:18] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_696e1be25f3133.51744106.jpg
[2026-01-19 11:56:18] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_696e1be25f3133.51744106.jpg
[2026-01-19 11:56:18] Using OCR.space API
[2026-01-19 11:56:18] Using API key: K8465...
[2026-01-19 11:56:20] OCR.space API request completed with HTTP code: 200
[2026-01-19 11:56:20] Request info: {"total_time":1.996782,"size_upload":113045,"size_download":7478}
[2026-01-19 11:56:20] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-01-19 11:56:20] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-01-19 11:56:20] Extracting health metrics from text
[2026-01-19 11:56:20] Found bmi but value 167.5 seems invalid - ignoring
[2026-01-19 11:56:20] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-19 11:56:20] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-19 11:56:20] Found visceral_fat using specific pattern: 6
[2026-01-19 11:56:20] Found weight using trends overview pattern: 167.5
[2026-01-19 11:56:20] Found bmi using trends overview pattern: 26.9
[2026-01-19 11:56:20] Found body_fat_percent using trends overview pattern: 19.4
[2026-01-19 11:56:20] Found water_percent using trends overview pattern: 55.3
[2026-01-19 11:56:20] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-01-19 11:56:20] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-01-19 11:56:20] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-19 11:56:20] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-01-19 11:56:20] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-19 11:56:20] No match found for bmr
[2026-01-19 11:56:20] No match found for body_fat_mass_lbs
[2026-01-19 11:56:20] No match found for bone_mass_lbs
[2026-01-19 11:56:20] Found 6 metrics in total
[2026-01-19 11:56:20] Critical metric muscle_mass_lbs is missing, using default value
[2026-01-19 11:56:20] Critical metric bone_mass_lbs is missing, using default value
[2026-01-19 11:56:20] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-01-19 11:56:20] Adding missing metric bone_mass_percent with default value: 3.9
[2026-01-19 11:56:20] Adding missing metric bmr with default value: 1510
[2026-01-19 11:56:20] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-01-19 11:56:20] Extracted data: {"date":"2026-01-19","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-19 11:56:20] Final data for insertion: {"date":"2026-01-19","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-19 11:56:20] Inserted record with ID: 74
[2026-01-19 11:56:20] Weight also stored in weights table
[2026-01-19 11:56:20] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-01-19","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"74"}
[2026-01-19 17:21:05] Health image upload received
[2026-01-19 17:21:05] User ID: 1
[2026-01-19 17:21:05] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_696e68015fcba9.48015523.jpg
[2026-01-19 17:21:05] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_696e68015fcba9.48015523.jpg
[2026-01-19 17:21:05] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_696e68015fcba9.48015523.jpg
[2026-01-19 17:21:05] Using OCR.space API
[2026-01-19 17:21:05] Using API key: K8465...
[2026-01-19 17:21:07] OCR.space API request completed with HTTP code: 200
[2026-01-19 17:21:07] Request info: {"total_time":1.654679,"size_upload":115105,"size_download":8037}
[2026-01-19 17:21:07] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-01-19 17:21:07] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-01-19 17:21:07] Extracting health metrics from text
[2026-01-19 17:21:07] Found weight using specific pattern: 167.5
[2026-01-19 17:21:07] Found bmi using specific pattern: 26.9
[2026-01-19 17:21:07] Found body_fat_percent using specific pattern: 19.4
[2026-01-19 17:21:07] Found muscle_mass_lbs using specific pattern: 128.5
[2026-01-19 17:21:07] Found muscle_mass_percent using specific pattern: 76.7
[2026-01-19 17:21:07] Found bone_mass_percent using specific pattern: 3.9
[2026-01-19 17:21:07] Found bmr using specific pattern: 1510
[2026-01-19 17:21:07] Found water_percent using specific pattern: 55.3
[2026-01-19 17:21:07] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-01-19 17:21:07] Found bone_mass_lbs using specific pattern: 6.6
[2026-01-19 17:21:07] Found visceral_fat using specific pattern: 11
[2026-01-19 17:21:07] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-01-19 17:21:07] Found 12 metrics in total
[2026-01-19 17:21:07] Extracted data: {"date":"2026-01-19","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-19 17:21:07] Final data for insertion: {"date":"2026-01-19","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-19 17:21:07] Inserted record with ID: 75
[2026-01-19 17:21:07] Weight also stored in weights table
[2026-01-19 17:21:07] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-01-19","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"75"}
[2026-01-20 03:38:27] Health image upload received
[2026-01-20 03:38:27] Error: Missing or invalid user_id
[2026-01-20 03:38:27] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-01-21 18:06:53] Health image upload received
[2026-01-21 18:06:53] User ID: 1
[2026-01-21 18:06:53] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697115bdee8ab3.19931564.jpg
[2026-01-21 18:06:53] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697115bdee8ab3.19931564.jpg
[2026-01-21 18:06:53] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697115bdee8ab3.19931564.jpg
[2026-01-21 18:06:53] Using OCR.space API
[2026-01-21 18:06:53] Using API key: K8465...
[2026-01-21 18:06:55] OCR.space API request completed with HTTP code: 200
[2026-01-21 18:06:55] Request info: {"total_time":1.681524,"size_upload":115105,"size_download":8037}
[2026-01-21 18:06:55] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-01-21 18:06:55] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-01-21 18:06:55] Extracting health metrics from text
[2026-01-21 18:06:55] Found weight using specific pattern: 167.5
[2026-01-21 18:06:55] Found bmi using specific pattern: 26.9
[2026-01-21 18:06:55] Found body_fat_percent using specific pattern: 19.4
[2026-01-21 18:06:55] Found muscle_mass_lbs using specific pattern: 128.5
[2026-01-21 18:06:55] Found muscle_mass_percent using specific pattern: 76.7
[2026-01-21 18:06:55] Found bone_mass_percent using specific pattern: 3.9
[2026-01-21 18:06:55] Found bmr using specific pattern: 1510
[2026-01-21 18:06:55] Found water_percent using specific pattern: 55.3
[2026-01-21 18:06:55] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-01-21 18:06:55] Found bone_mass_lbs using specific pattern: 6.6
[2026-01-21 18:06:55] Found visceral_fat using specific pattern: 11
[2026-01-21 18:06:55] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-01-21 18:06:55] Found 12 metrics in total
[2026-01-21 18:06:55] Extracted data: {"date":"2026-01-21","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-21 18:06:55] Final data for insertion: {"date":"2026-01-21","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-21 18:06:55] Inserted record with ID: 76
[2026-01-21 18:06:55] Weight also stored in weights table
[2026-01-21 18:06:55] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-01-21","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"76"}
[2026-01-21 23:19:48] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-01-21 23:19:48] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-01-21 23:19:48] Using OCR.space API
[2026-01-21 23:19:48] Using API key: K8465...
[2026-01-21 23:19:50] OCR.space API request completed with HTTP code: 200
[2026-01-21 23:19:50] Request info: {"total_time":1.706856,"size_upload":113045,"size_download":7478}
[2026-01-21 23:19:50] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-01-21 23:19:50] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-01-21 23:19:50] Extracting health metrics from text
[2026-01-21 23:19:50] Found bmi but value 167.5 seems invalid - ignoring
[2026-01-21 23:19:50] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-21 23:19:50] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-21 23:19:50] Found visceral_fat using specific pattern: 6
[2026-01-21 23:19:50] Found weight using trends overview pattern: 167.5
[2026-01-21 23:19:50] Found bmi using trends overview pattern: 26.9
[2026-01-21 23:19:50] Found body_fat_percent using trends overview pattern: 19.4
[2026-01-21 23:19:50] Found water_percent using trends overview pattern: 55.3
[2026-01-21 23:19:50] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-01-21 23:19:50] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-01-21 23:19:50] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-21 23:19:50] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-01-21 23:19:50] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-21 23:19:50] No match found for bmr
[2026-01-21 23:19:50] No match found for body_fat_mass_lbs
[2026-01-21 23:19:50] No match found for bone_mass_lbs
[2026-01-21 23:19:50] Found 6 metrics in total
[2026-01-21 23:19:50] Critical metric muscle_mass_lbs is missing, using default value
[2026-01-21 23:19:50] Critical metric bone_mass_lbs is missing, using default value
[2026-01-21 23:19:50] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-01-21 23:19:50] Adding missing metric bone_mass_percent with default value: 3.9
[2026-01-21 23:19:50] Adding missing metric bmr with default value: 1510
[2026-01-21 23:19:50] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-01-22 00:34:38] Health image upload received
[2026-01-22 00:34:38] User ID: 1
[2026-01-22 00:34:38] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6971709eef0013.94091322.jpg
[2026-01-22 00:34:38] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6971709eef0013.94091322.jpg
[2026-01-22 00:34:38] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6971709eef0013.94091322.jpg
[2026-01-22 00:34:38] Using OCR.space API
[2026-01-22 00:34:38] Using API key: K8465...
[2026-01-22 00:34:40] OCR.space API request completed with HTTP code: 200
[2026-01-22 00:34:40] Request info: {"total_time":1.690062,"size_upload":113045,"size_download":7478}
[2026-01-22 00:34:40] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-01-22 00:34:40] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-01-22 00:34:40] Extracting health metrics from text
[2026-01-22 00:34:40] Found bmi but value 167.5 seems invalid - ignoring
[2026-01-22 00:34:40] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-22 00:34:40] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-22 00:34:40] Found visceral_fat using specific pattern: 6
[2026-01-22 00:34:40] Found weight using trends overview pattern: 167.5
[2026-01-22 00:34:40] Found bmi using trends overview pattern: 26.9
[2026-01-22 00:34:40] Found body_fat_percent using trends overview pattern: 19.4
[2026-01-22 00:34:40] Found water_percent using trends overview pattern: 55.3
[2026-01-22 00:34:40] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-01-22 00:34:40] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-01-22 00:34:40] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-22 00:34:40] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-01-22 00:34:40] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-22 00:34:40] No match found for bmr
[2026-01-22 00:34:40] No match found for body_fat_mass_lbs
[2026-01-22 00:34:40] No match found for bone_mass_lbs
[2026-01-22 00:34:40] Found 6 metrics in total
[2026-01-22 00:34:40] Critical metric muscle_mass_lbs is missing, using default value
[2026-01-22 00:34:40] Critical metric bone_mass_lbs is missing, using default value
[2026-01-22 00:34:40] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-01-22 00:34:40] Adding missing metric bone_mass_percent with default value: 3.9
[2026-01-22 00:34:40] Adding missing metric bmr with default value: 1510
[2026-01-22 00:34:40] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-01-22 00:34:40] Extracted data: {"date":"2026-01-22","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-22 00:34:40] Final data for insertion: {"date":"2026-01-22","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-22 00:34:40] Inserted record with ID: 77
[2026-01-22 00:34:40] Weight also stored in weights table
[2026-01-22 00:34:40] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-01-22","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"77"}
[2026-01-26 22:02:42] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-01-26 22:02:42] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-01-26 22:02:42] Using OCR.space API
[2026-01-26 22:02:42] Using API key: K8465...
[2026-01-26 22:02:44] OCR.space API request completed with HTTP code: 200
[2026-01-26 22:02:44] Request info: {"total_time":1.971012,"size_upload":113045,"size_download":7478}
[2026-01-26 22:02:44] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-01-26 22:02:44] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-01-26 22:02:44] Extracting health metrics from text
[2026-01-26 22:02:44] Found bmi but value 167.5 seems invalid - ignoring
[2026-01-26 22:02:44] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-26 22:02:44] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-26 22:02:44] Found visceral_fat using specific pattern: 6
[2026-01-26 22:02:44] Found weight using trends overview pattern: 167.5
[2026-01-26 22:02:44] Found bmi using trends overview pattern: 26.9
[2026-01-26 22:02:44] Found body_fat_percent using trends overview pattern: 19.4
[2026-01-26 22:02:44] Found water_percent using trends overview pattern: 55.3
[2026-01-26 22:02:44] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-01-26 22:02:44] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-01-26 22:02:44] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-26 22:02:44] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-01-26 22:02:44] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-26 22:02:44] No match found for bmr
[2026-01-26 22:02:44] No match found for body_fat_mass_lbs
[2026-01-26 22:02:44] No match found for bone_mass_lbs
[2026-01-26 22:02:44] Found 6 metrics in total
[2026-01-26 22:02:44] Critical metric muscle_mass_lbs is missing, using default value
[2026-01-26 22:02:44] Critical metric bone_mass_lbs is missing, using default value
[2026-01-26 22:02:44] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-01-26 22:02:44] Adding missing metric bone_mass_percent with default value: 3.9
[2026-01-26 22:02:44] Adding missing metric bmr with default value: 1510
[2026-01-26 22:02:44] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-01-26 22:13:45] Health image upload received
[2026-01-26 22:13:45] User ID: 1
[2026-01-26 22:13:45] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6977e7196aeae7.85348541.jpg
[2026-01-26 22:13:45] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6977e7196aeae7.85348541.jpg
[2026-01-26 22:13:45] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6977e7196aeae7.85348541.jpg
[2026-01-26 22:13:45] Using OCR.space API
[2026-01-26 22:13:45] Using API key: K8465...
[2026-01-26 22:13:47] OCR.space API request completed with HTTP code: 200
[2026-01-26 22:13:47] Request info: {"total_time":1.677843,"size_upload":113045,"size_download":7478}
[2026-01-26 22:13:47] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-01-26 22:13:47] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-01-26 22:13:47] Extracting health metrics from text
[2026-01-26 22:13:47] Found bmi but value 167.5 seems invalid - ignoring
[2026-01-26 22:13:47] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-26 22:13:47] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-26 22:13:47] Found visceral_fat using specific pattern: 6
[2026-01-26 22:13:47] Found weight using trends overview pattern: 167.5
[2026-01-26 22:13:47] Found bmi using trends overview pattern: 26.9
[2026-01-26 22:13:47] Found body_fat_percent using trends overview pattern: 19.4
[2026-01-26 22:13:47] Found water_percent using trends overview pattern: 55.3
[2026-01-26 22:13:47] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-01-26 22:13:47] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-01-26 22:13:47] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-26 22:13:47] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-01-26 22:13:47] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-26 22:13:47] No match found for bmr
[2026-01-26 22:13:47] No match found for body_fat_mass_lbs
[2026-01-26 22:13:47] No match found for bone_mass_lbs
[2026-01-26 22:13:47] Found 6 metrics in total
[2026-01-26 22:13:47] Critical metric muscle_mass_lbs is missing, using default value
[2026-01-26 22:13:47] Critical metric bone_mass_lbs is missing, using default value
[2026-01-26 22:13:47] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-01-26 22:13:47] Adding missing metric bone_mass_percent with default value: 3.9
[2026-01-26 22:13:47] Adding missing metric bmr with default value: 1510
[2026-01-26 22:13:47] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-01-26 22:13:47] Extracted data: {"date":"2026-01-26","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-26 22:13:47] Final data for insertion: {"date":"2026-01-26","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-26 22:13:47] Inserted record with ID: 78
[2026-01-26 22:13:47] Weight also stored in weights table
[2026-01-26 22:13:47] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-01-26","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"78"}
[2026-01-27 02:14:21] Health image upload received
[2026-01-27 02:14:21] User ID: 1
[2026-01-27 02:14:21] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69781f7d11cce1.87524768.jpg
[2026-01-27 02:14:21] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69781f7d11cce1.87524768.jpg
[2026-01-27 02:14:21] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69781f7d11cce1.87524768.jpg
[2026-01-27 02:14:21] Using OCR.space API
[2026-01-27 02:14:21] Using API key: K8465...
[2026-01-27 02:14:23] OCR.space API request completed with HTTP code: 200
[2026-01-27 02:14:23] Request info: {"total_time":1.964083,"size_upload":115105,"size_download":8037}
[2026-01-27 02:14:23] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-01-27 02:14:23] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-01-27 02:14:23] Extracting health metrics from text
[2026-01-27 02:14:23] Found weight using specific pattern: 167.5
[2026-01-27 02:14:23] Found bmi using specific pattern: 26.9
[2026-01-27 02:14:23] Found body_fat_percent using specific pattern: 19.4
[2026-01-27 02:14:23] Found muscle_mass_lbs using specific pattern: 128.5
[2026-01-27 02:14:23] Found muscle_mass_percent using specific pattern: 76.7
[2026-01-27 02:14:23] Found bone_mass_percent using specific pattern: 3.9
[2026-01-27 02:14:23] Found bmr using specific pattern: 1510
[2026-01-27 02:14:23] Found water_percent using specific pattern: 55.3
[2026-01-27 02:14:23] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-01-27 02:14:23] Found bone_mass_lbs using specific pattern: 6.6
[2026-01-27 02:14:23] Found visceral_fat using specific pattern: 11
[2026-01-27 02:14:23] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-01-27 02:14:23] Found 12 metrics in total
[2026-01-27 02:14:23] Extracted data: {"date":"2026-01-27","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-27 02:14:23] Final data for insertion: {"date":"2026-01-27","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-27 02:14:23] Inserted record with ID: 79
[2026-01-27 02:14:23] Weight also stored in weights table
[2026-01-27 02:14:23] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-01-27","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"79"}
[2026-01-28 09:09:01] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-01-28 09:09:01] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-01-28 09:09:01] Using OCR.space API
[2026-01-28 09:09:01] Using API key: K8465...
[2026-01-28 09:09:03] OCR.space API request completed with HTTP code: 200
[2026-01-28 09:09:03] Request info: {"total_time":1.956066,"size_upload":113045,"size_download":7478}
[2026-01-28 09:09:03] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-01-28 09:09:03] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-01-28 09:09:03] Extracting health metrics from text
[2026-01-28 09:09:03] Found bmi but value 167.5 seems invalid - ignoring
[2026-01-28 09:09:03] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-28 09:09:03] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-28 09:09:03] Found visceral_fat using specific pattern: 6
[2026-01-28 09:09:03] Found weight using trends overview pattern: 167.5
[2026-01-28 09:09:03] Found bmi using trends overview pattern: 26.9
[2026-01-28 09:09:03] Found body_fat_percent using trends overview pattern: 19.4
[2026-01-28 09:09:03] Found water_percent using trends overview pattern: 55.3
[2026-01-28 09:09:03] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-01-28 09:09:03] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-01-28 09:09:03] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-28 09:09:03] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-01-28 09:09:03] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-28 09:09:03] No match found for bmr
[2026-01-28 09:09:03] No match found for body_fat_mass_lbs
[2026-01-28 09:09:03] No match found for bone_mass_lbs
[2026-01-28 09:09:03] Found 6 metrics in total
[2026-01-28 09:09:03] Critical metric muscle_mass_lbs is missing, using default value
[2026-01-28 09:09:03] Critical metric bone_mass_lbs is missing, using default value
[2026-01-28 09:09:03] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-01-28 09:09:03] Adding missing metric bone_mass_percent with default value: 3.9
[2026-01-28 09:09:03] Adding missing metric bmr with default value: 1510
[2026-01-28 09:09:03] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-01-28 09:15:16] Health image upload received
[2026-01-28 09:15:16] User ID: 1
[2026-01-28 09:15:16] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6979d3a49d2762.91121027.jpg
[2026-01-28 09:15:16] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6979d3a49d2762.91121027.jpg
[2026-01-28 09:15:16] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6979d3a49d2762.91121027.jpg
[2026-01-28 09:15:16] Using OCR.space API
[2026-01-28 09:15:16] Using API key: K8465...
[2026-01-28 09:15:18] OCR.space API request completed with HTTP code: 200
[2026-01-28 09:15:18] Request info: {"total_time":1.629342,"size_upload":115105,"size_download":8037}
[2026-01-28 09:15:18] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-01-28 09:15:18] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-01-28 09:15:18] Extracting health metrics from text
[2026-01-28 09:15:18] Found weight using specific pattern: 167.5
[2026-01-28 09:15:18] Found bmi using specific pattern: 26.9
[2026-01-28 09:15:18] Found body_fat_percent using specific pattern: 19.4
[2026-01-28 09:15:18] Found muscle_mass_lbs using specific pattern: 128.5
[2026-01-28 09:15:18] Found muscle_mass_percent using specific pattern: 76.7
[2026-01-28 09:15:18] Found bone_mass_percent using specific pattern: 3.9
[2026-01-28 09:15:18] Found bmr using specific pattern: 1510
[2026-01-28 09:15:18] Found water_percent using specific pattern: 55.3
[2026-01-28 09:15:18] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-01-28 09:15:18] Found bone_mass_lbs using specific pattern: 6.6
[2026-01-28 09:15:18] Found visceral_fat using specific pattern: 11
[2026-01-28 09:15:18] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-01-28 09:15:18] Found 12 metrics in total
[2026-01-28 09:15:18] Extracted data: {"date":"2026-01-28","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-28 09:15:18] Final data for insertion: {"date":"2026-01-28","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-28 09:15:18] Inserted record with ID: 80
[2026-01-28 09:15:18] Weight also stored in weights table
[2026-01-28 09:15:18] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-01-28","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"80"}
[2026-01-28 15:28:12] Health image upload received
[2026-01-28 15:28:12] User ID: 1
[2026-01-28 15:28:12] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697a2b0c3da126.71136364.jpg
[2026-01-28 15:28:12] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697a2b0c3da126.71136364.jpg
[2026-01-28 15:28:12] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697a2b0c3da126.71136364.jpg
[2026-01-28 15:28:12] Using OCR.space API
[2026-01-28 15:28:12] Using API key: K8465...
[2026-01-28 15:28:13] OCR.space API request completed with HTTP code: 200
[2026-01-28 15:28:13] Request info: {"total_time":1.580543,"size_upload":115105,"size_download":8037}
[2026-01-28 15:28:13] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-01-28 15:28:13] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-01-28 15:28:13] Extracting health metrics from text
[2026-01-28 15:28:13] Found weight using specific pattern: 167.5
[2026-01-28 15:28:13] Found bmi using specific pattern: 26.9
[2026-01-28 15:28:13] Found body_fat_percent using specific pattern: 19.4
[2026-01-28 15:28:13] Found muscle_mass_lbs using specific pattern: 128.5
[2026-01-28 15:28:13] Found muscle_mass_percent using specific pattern: 76.7
[2026-01-28 15:28:13] Found bone_mass_percent using specific pattern: 3.9
[2026-01-28 15:28:13] Found bmr using specific pattern: 1510
[2026-01-28 15:28:13] Found water_percent using specific pattern: 55.3
[2026-01-28 15:28:13] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-01-28 15:28:13] Found bone_mass_lbs using specific pattern: 6.6
[2026-01-28 15:28:13] Found visceral_fat using specific pattern: 11
[2026-01-28 15:28:13] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-01-28 15:28:13] Found 12 metrics in total
[2026-01-28 15:28:13] Extracted data: {"date":"2026-01-28","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-28 15:28:13] Final data for insertion: {"date":"2026-01-28","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-28 15:28:13] Inserted record with ID: 81
[2026-01-28 15:28:13] Weight also stored in weights table
[2026-01-28 15:28:13] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-01-28","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"81"}
[2026-01-28 17:37:57] Health image upload received
[2026-01-28 17:37:57] User ID: 1
[2026-01-28 17:37:57] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697a497586c907.13015441.jpg
[2026-01-28 17:37:57] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697a497586c907.13015441.jpg
[2026-01-28 17:37:57] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697a497586c907.13015441.jpg
[2026-01-28 17:37:57] Using OCR.space API
[2026-01-28 17:37:57] Using API key: K8465...
[2026-01-28 17:37:59] OCR.space API request completed with HTTP code: 200
[2026-01-28 17:37:59] Request info: {"total_time":2.022019,"size_upload":115105,"size_download":8037}
[2026-01-28 17:37:59] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-01-28 17:37:59] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-01-28 17:37:59] Extracting health metrics from text
[2026-01-28 17:37:59] Found weight using specific pattern: 167.5
[2026-01-28 17:37:59] Found bmi using specific pattern: 26.9
[2026-01-28 17:37:59] Found body_fat_percent using specific pattern: 19.4
[2026-01-28 17:37:59] Found muscle_mass_lbs using specific pattern: 128.5
[2026-01-28 17:37:59] Found muscle_mass_percent using specific pattern: 76.7
[2026-01-28 17:37:59] Found bone_mass_percent using specific pattern: 3.9
[2026-01-28 17:37:59] Found bmr using specific pattern: 1510
[2026-01-28 17:37:59] Found water_percent using specific pattern: 55.3
[2026-01-28 17:37:59] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-01-28 17:37:59] Found bone_mass_lbs using specific pattern: 6.6
[2026-01-28 17:37:59] Found visceral_fat using specific pattern: 11
[2026-01-28 17:37:59] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-01-28 17:37:59] Found 12 metrics in total
[2026-01-28 17:37:59] Extracted data: {"date":"2026-01-28","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-28 17:37:59] Final data for insertion: {"date":"2026-01-28","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-28 17:37:59] Inserted record with ID: 82
[2026-01-28 17:37:59] Weight also stored in weights table
[2026-01-28 17:37:59] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-01-28","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"82"}
[2026-01-28 19:15:28] Health image upload received
[2026-01-28 19:15:28] User ID: 1
[2026-01-28 19:15:28] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697a60503cdf97.47678311.jpg
[2026-01-28 19:15:28] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697a60503cdf97.47678311.jpg
[2026-01-28 19:15:28] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697a60503cdf97.47678311.jpg
[2026-01-28 19:15:28] Using OCR.space API
[2026-01-28 19:15:28] Using API key: K8465...
[2026-01-28 19:15:29] OCR.space API request completed with HTTP code: 200
[2026-01-28 19:15:29] Request info: {"total_time":1.649112,"size_upload":115105,"size_download":8037}
[2026-01-28 19:15:29] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-01-28 19:15:29] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-01-28 19:15:29] Extracting health metrics from text
[2026-01-28 19:15:29] Found weight using specific pattern: 167.5
[2026-01-28 19:15:29] Found bmi using specific pattern: 26.9
[2026-01-28 19:15:29] Found body_fat_percent using specific pattern: 19.4
[2026-01-28 19:15:29] Found muscle_mass_lbs using specific pattern: 128.5
[2026-01-28 19:15:29] Found muscle_mass_percent using specific pattern: 76.7
[2026-01-28 19:15:29] Found bone_mass_percent using specific pattern: 3.9
[2026-01-28 19:15:29] Found bmr using specific pattern: 1510
[2026-01-28 19:15:29] Found water_percent using specific pattern: 55.3
[2026-01-28 19:15:29] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-01-28 19:15:29] Found bone_mass_lbs using specific pattern: 6.6
[2026-01-28 19:15:29] Found visceral_fat using specific pattern: 11
[2026-01-28 19:15:29] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-01-28 19:15:29] Found 12 metrics in total
[2026-01-28 19:15:29] Extracted data: {"date":"2026-01-28","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-28 19:15:29] Final data for insertion: {"date":"2026-01-28","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-28 19:15:29] Inserted record with ID: 83
[2026-01-28 19:15:29] Weight also stored in weights table
[2026-01-28 19:15:29] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-01-28","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"83"}
[2026-01-28 19:16:45] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-01-28 19:16:45] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-01-28 19:16:45] Using OCR.space API
[2026-01-28 19:16:45] Using API key: K8465...
[2026-01-28 19:16:46] OCR.space API request completed with HTTP code: 200
[2026-01-28 19:16:46] Request info: {"total_time":1.635505,"size_upload":113045,"size_download":7478}
[2026-01-28 19:16:46] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-01-28 19:16:46] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-01-28 19:16:46] Extracting health metrics from text
[2026-01-28 19:16:46] Found bmi but value 167.5 seems invalid - ignoring
[2026-01-28 19:16:46] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-28 19:16:46] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-28 19:16:46] Found visceral_fat using specific pattern: 6
[2026-01-28 19:16:46] Found weight using trends overview pattern: 167.5
[2026-01-28 19:16:46] Found bmi using trends overview pattern: 26.9
[2026-01-28 19:16:46] Found body_fat_percent using trends overview pattern: 19.4
[2026-01-28 19:16:46] Found water_percent using trends overview pattern: 55.3
[2026-01-28 19:16:46] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-01-28 19:16:46] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-01-28 19:16:46] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-28 19:16:46] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-01-28 19:16:46] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-28 19:16:46] No match found for bmr
[2026-01-28 19:16:46] No match found for body_fat_mass_lbs
[2026-01-28 19:16:46] No match found for bone_mass_lbs
[2026-01-28 19:16:46] Found 6 metrics in total
[2026-01-28 19:16:46] Critical metric muscle_mass_lbs is missing, using default value
[2026-01-28 19:16:46] Critical metric bone_mass_lbs is missing, using default value
[2026-01-28 19:16:46] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-01-28 19:16:46] Adding missing metric bone_mass_percent with default value: 3.9
[2026-01-28 19:16:46] Adding missing metric bmr with default value: 1510
[2026-01-28 19:16:46] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-01-28 20:47:06] Health image upload received
[2026-01-28 20:47:06] User ID: 1
[2026-01-28 20:47:06] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697a75ca9a6a06.21161995.jpg
[2026-01-28 20:47:06] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697a75ca9a6a06.21161995.jpg
[2026-01-28 20:47:06] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697a75ca9a6a06.21161995.jpg
[2026-01-28 20:47:06] Using OCR.space API
[2026-01-28 20:47:06] Using API key: K8465...
[2026-01-28 20:47:08] OCR.space API request completed with HTTP code: 200
[2026-01-28 20:47:08] Request info: {"total_time":1.973619,"size_upload":113045,"size_download":7478}
[2026-01-28 20:47:08] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-01-28 20:47:08] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-01-28 20:47:08] Extracting health metrics from text
[2026-01-28 20:47:08] Found bmi but value 167.5 seems invalid - ignoring
[2026-01-28 20:47:08] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-28 20:47:08] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-28 20:47:08] Found visceral_fat using specific pattern: 6
[2026-01-28 20:47:08] Found weight using trends overview pattern: 167.5
[2026-01-28 20:47:08] Found bmi using trends overview pattern: 26.9
[2026-01-28 20:47:08] Found body_fat_percent using trends overview pattern: 19.4
[2026-01-28 20:47:08] Found water_percent using trends overview pattern: 55.3
[2026-01-28 20:47:08] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-01-28 20:47:08] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-01-28 20:47:08] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-28 20:47:08] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-01-28 20:47:08] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-28 20:47:08] No match found for bmr
[2026-01-28 20:47:08] No match found for body_fat_mass_lbs
[2026-01-28 20:47:08] No match found for bone_mass_lbs
[2026-01-28 20:47:08] Found 6 metrics in total
[2026-01-28 20:47:08] Critical metric muscle_mass_lbs is missing, using default value
[2026-01-28 20:47:08] Critical metric bone_mass_lbs is missing, using default value
[2026-01-28 20:47:08] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-01-28 20:47:08] Adding missing metric bone_mass_percent with default value: 3.9
[2026-01-28 20:47:08] Adding missing metric bmr with default value: 1510
[2026-01-28 20:47:08] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-01-28 20:47:08] Extracted data: {"date":"2026-01-28","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-28 20:47:08] Final data for insertion: {"date":"2026-01-28","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-28 20:47:08] Inserted record with ID: 84
[2026-01-28 20:47:08] Weight also stored in weights table
[2026-01-28 20:47:08] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-01-28","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"84"}
[2026-01-29 22:12:06] Health image upload received
[2026-01-29 22:12:06] Error: Missing or invalid user_id
[2026-01-29 22:12:06] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-01-29 22:12:14] Health image upload received
[2026-01-29 22:12:14] User ID: 1
[2026-01-29 22:12:14] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697bdb3ece6349.96940798.jpg
[2026-01-29 22:12:14] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697bdb3ece6349.96940798.jpg
[2026-01-29 22:12:14] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697bdb3ece6349.96940798.jpg
[2026-01-29 22:12:14] Using OCR.space API
[2026-01-29 22:12:14] Using API key: K8465...
[2026-01-29 22:12:16] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-01-29 22:12:16] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-01-29 22:12:16] Using OCR.space API
[2026-01-29 22:12:16] Using API key: K8465...
[2026-01-29 22:12:17] Health image upload received
[2026-01-29 22:12:17] User ID: 1
[2026-01-29 22:12:17] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697bdb41c786d2.18287854.jpg
[2026-01-29 22:12:17] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697bdb41c786d2.18287854.jpg
[2026-01-29 22:12:17] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697bdb41c786d2.18287854.jpg
[2026-01-29 22:12:17] Using OCR.space API
[2026-01-29 22:12:17] Using API key: K8465...
[2026-01-29 22:12:18] OCR.space API request completed with HTTP code: 200
[2026-01-29 22:12:18] Request info: {"total_time":3.183362,"size_upload":115105,"size_download":8038}
[2026-01-29 22:12:18] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-01-29 22:12:18] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-01-29 22:12:18] Extracting health metrics from text
[2026-01-29 22:12:18] Found weight using specific pattern: 167.5
[2026-01-29 22:12:18] Found bmi using specific pattern: 26.9
[2026-01-29 22:12:18] Found body_fat_percent using specific pattern: 19.4
[2026-01-29 22:12:18] Found muscle_mass_lbs using specific pattern: 128.5
[2026-01-29 22:12:18] Found muscle_mass_percent using specific pattern: 76.7
[2026-01-29 22:12:18] Found bone_mass_percent using specific pattern: 3.9
[2026-01-29 22:12:18] Found bmr using specific pattern: 1510
[2026-01-29 22:12:18] Found water_percent using specific pattern: 55.3
[2026-01-29 22:12:18] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-01-29 22:12:18] Found bone_mass_lbs using specific pattern: 6.6
[2026-01-29 22:12:18] Found visceral_fat using specific pattern: 11
[2026-01-29 22:12:18] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-01-29 22:12:18] Found 12 metrics in total
[2026-01-29 22:12:18] Extracted data: {"date":"2026-01-29","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-29 22:12:18] Final data for insertion: {"date":"2026-01-29","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-29 22:12:18] Inserted record with ID: 85
[2026-01-29 22:12:18] Weight also stored in weights table
[2026-01-29 22:12:18] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-01-29","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"85"}
[2026-01-29 22:12:19] OCR.space API request completed with HTTP code: 200
[2026-01-29 22:12:19] Request info: {"total_time":2.453024,"size_upload":113045,"size_download":7479}
[2026-01-29 22:12:19] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-01-29 22:12:19] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-01-29 22:12:19] Extracting health metrics from text
[2026-01-29 22:12:19] Found bmi but value 167.5 seems invalid - ignoring
[2026-01-29 22:12:19] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-29 22:12:19] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-29 22:12:19] Found visceral_fat using specific pattern: 6
[2026-01-29 22:12:19] Found weight using trends overview pattern: 167.5
[2026-01-29 22:12:19] Found bmi using trends overview pattern: 26.9
[2026-01-29 22:12:19] Found body_fat_percent using trends overview pattern: 19.4
[2026-01-29 22:12:19] Found water_percent using trends overview pattern: 55.3
[2026-01-29 22:12:19] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-01-29 22:12:19] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-01-29 22:12:19] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-29 22:12:19] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-01-29 22:12:19] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-29 22:12:19] No match found for bmr
[2026-01-29 22:12:19] No match found for body_fat_mass_lbs
[2026-01-29 22:12:19] No match found for bone_mass_lbs
[2026-01-29 22:12:19] Found 6 metrics in total
[2026-01-29 22:12:19] Critical metric muscle_mass_lbs is missing, using default value
[2026-01-29 22:12:19] Critical metric bone_mass_lbs is missing, using default value
[2026-01-29 22:12:19] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-01-29 22:12:19] Adding missing metric bone_mass_percent with default value: 3.9
[2026-01-29 22:12:19] Adding missing metric bmr with default value: 1510
[2026-01-29 22:12:19] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-01-29 22:12:19] OCR.space API request completed with HTTP code: 200
[2026-01-29 22:12:20] Request info: {"total_time":2.180771,"size_upload":115105,"size_download":8037}
[2026-01-29 22:12:20] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-01-29 22:12:20] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-01-29 22:12:20] Extracting health metrics from text
[2026-01-29 22:12:20] Found weight using specific pattern: 167.5
[2026-01-29 22:12:20] Found bmi using specific pattern: 26.9
[2026-01-29 22:12:20] Found body_fat_percent using specific pattern: 19.4
[2026-01-29 22:12:20] Found muscle_mass_lbs using specific pattern: 128.5
[2026-01-29 22:12:20] Found muscle_mass_percent using specific pattern: 76.7
[2026-01-29 22:12:20] Found bone_mass_percent using specific pattern: 3.9
[2026-01-29 22:12:20] Found bmr using specific pattern: 1510
[2026-01-29 22:12:20] Found water_percent using specific pattern: 55.3
[2026-01-29 22:12:20] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-01-29 22:12:20] Found bone_mass_lbs using specific pattern: 6.6
[2026-01-29 22:12:20] Found visceral_fat using specific pattern: 11
[2026-01-29 22:12:20] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-01-29 22:12:20] Found 12 metrics in total
[2026-01-29 22:12:20] Extracted data: {"date":"2026-01-29","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-29 22:12:20] Final data for insertion: {"date":"2026-01-29","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-29 22:12:20] Inserted record with ID: 86
[2026-01-29 22:12:20] Weight also stored in weights table
[2026-01-29 22:12:20] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-01-29","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"86"}
[2026-01-30 00:19:07] Health image upload received
[2026-01-30 00:19:07] User ID: 1
[2026-01-30 00:19:07] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697bf8fb5d2b65.92508292.jpg
[2026-01-30 00:19:07] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697bf8fb5d2b65.92508292.jpg
[2026-01-30 00:19:07] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697bf8fb5d2b65.92508292.jpg
[2026-01-30 00:19:07] Using OCR.space API
[2026-01-30 00:19:07] Using API key: K8465...
[2026-01-30 00:19:11] OCR.space API request completed with HTTP code: 200
[2026-01-30 00:19:11] Request info: {"total_time":3.850426,"size_upload":113045,"size_download":7478}
[2026-01-30 00:19:11] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-01-30 00:19:11] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-01-30 00:19:11] Extracting health metrics from text
[2026-01-30 00:19:11] Found bmi but value 167.5 seems invalid - ignoring
[2026-01-30 00:19:11] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-30 00:19:11] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-30 00:19:11] Found visceral_fat using specific pattern: 6
[2026-01-30 00:19:11] Found weight using trends overview pattern: 167.5
[2026-01-30 00:19:11] Found bmi using trends overview pattern: 26.9
[2026-01-30 00:19:11] Found body_fat_percent using trends overview pattern: 19.4
[2026-01-30 00:19:11] Found water_percent using trends overview pattern: 55.3
[2026-01-30 00:19:11] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-01-30 00:19:11] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-01-30 00:19:11] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-30 00:19:11] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-01-30 00:19:11] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-30 00:19:11] No match found for bmr
[2026-01-30 00:19:11] No match found for body_fat_mass_lbs
[2026-01-30 00:19:11] No match found for bone_mass_lbs
[2026-01-30 00:19:11] Found 6 metrics in total
[2026-01-30 00:19:11] Critical metric muscle_mass_lbs is missing, using default value
[2026-01-30 00:19:11] Critical metric bone_mass_lbs is missing, using default value
[2026-01-30 00:19:11] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-01-30 00:19:11] Adding missing metric bone_mass_percent with default value: 3.9
[2026-01-30 00:19:11] Adding missing metric bmr with default value: 1510
[2026-01-30 00:19:11] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-01-30 00:19:11] Extracted data: {"date":"2026-01-30","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-30 00:19:11] Final data for insertion: {"date":"2026-01-30","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-30 00:19:11] Inserted record with ID: 87
[2026-01-30 00:19:11] Weight also stored in weights table
[2026-01-30 00:19:11] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-01-30","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"87"}
[2026-01-30 00:23:19] Health image upload received
[2026-01-30 00:23:19] Error: Missing or invalid user_id
[2026-01-30 00:23:19] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-01-30 11:54:51] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-01-30 11:54:51] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-01-30 11:54:51] Using OCR.space API
[2026-01-30 11:54:51] Using API key: K8465...
[2026-01-30 11:54:52] OCR.space API request completed with HTTP code: 200
[2026-01-30 11:54:52] Request info: {"total_time":1.66179,"size_upload":113045,"size_download":7478}
[2026-01-30 11:54:52] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-01-30 11:54:52] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-01-30 11:54:52] Extracting health metrics from text
[2026-01-30 11:54:52] Found bmi but value 167.5 seems invalid - ignoring
[2026-01-30 11:54:52] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-30 11:54:52] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-30 11:54:52] Found visceral_fat using specific pattern: 6
[2026-01-30 11:54:52] Found weight using trends overview pattern: 167.5
[2026-01-30 11:54:52] Found bmi using trends overview pattern: 26.9
[2026-01-30 11:54:52] Found body_fat_percent using trends overview pattern: 19.4
[2026-01-30 11:54:52] Found water_percent using trends overview pattern: 55.3
[2026-01-30 11:54:52] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-01-30 11:54:52] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-01-30 11:54:52] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-30 11:54:52] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-01-30 11:54:52] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-30 11:54:52] No match found for bmr
[2026-01-30 11:54:52] No match found for body_fat_mass_lbs
[2026-01-30 11:54:52] No match found for bone_mass_lbs
[2026-01-30 11:54:52] Found 6 metrics in total
[2026-01-30 11:54:52] Critical metric muscle_mass_lbs is missing, using default value
[2026-01-30 11:54:52] Critical metric bone_mass_lbs is missing, using default value
[2026-01-30 11:54:52] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-01-30 11:54:52] Adding missing metric bone_mass_percent with default value: 3.9
[2026-01-30 11:54:52] Adding missing metric bmr with default value: 1510
[2026-01-30 11:54:52] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-01-30 13:56:28] Health image upload received
[2026-01-30 13:56:28] User ID: 1
[2026-01-30 13:56:28] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697cb88cd80af7.56770683.jpg
[2026-01-30 13:56:28] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697cb88cd80af7.56770683.jpg
[2026-01-30 13:56:28] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697cb88cd80af7.56770683.jpg
[2026-01-30 13:56:28] Using OCR.space API
[2026-01-30 13:56:28] Using API key: K8465...
[2026-01-30 13:56:30] OCR.space API request completed with HTTP code: 200
[2026-01-30 13:56:30] Request info: {"total_time":1.676482,"size_upload":115105,"size_download":8037}
[2026-01-30 13:56:30] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-01-30 13:56:30] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-01-30 13:56:30] Extracting health metrics from text
[2026-01-30 13:56:30] Found weight using specific pattern: 167.5
[2026-01-30 13:56:30] Found bmi using specific pattern: 26.9
[2026-01-30 13:56:30] Found body_fat_percent using specific pattern: 19.4
[2026-01-30 13:56:30] Found muscle_mass_lbs using specific pattern: 128.5
[2026-01-30 13:56:30] Found muscle_mass_percent using specific pattern: 76.7
[2026-01-30 13:56:30] Found bone_mass_percent using specific pattern: 3.9
[2026-01-30 13:56:30] Found bmr using specific pattern: 1510
[2026-01-30 13:56:30] Found water_percent using specific pattern: 55.3
[2026-01-30 13:56:30] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-01-30 13:56:30] Found bone_mass_lbs using specific pattern: 6.6
[2026-01-30 13:56:30] Found visceral_fat using specific pattern: 11
[2026-01-30 13:56:30] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-01-30 13:56:30] Found 12 metrics in total
[2026-01-30 13:56:30] Extracted data: {"date":"2026-01-30","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-30 13:56:30] Final data for insertion: {"date":"2026-01-30","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-30 13:56:30] Inserted record with ID: 88
[2026-01-30 13:56:30] Weight also stored in weights table
[2026-01-30 13:56:30] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-01-30","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"88"}
[2026-01-30 13:56:41] Health image upload received
[2026-01-30 13:56:41] Error: Missing or invalid user_id
[2026-01-30 13:56:41] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-01-30 13:57:07] Health image upload received
[2026-01-30 13:57:07] User ID: 1
[2026-01-30 13:57:07] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697cb8b394f843.66278327.jpg
[2026-01-30 13:57:07] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697cb8b394f843.66278327.jpg
[2026-01-30 13:57:07] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697cb8b394f843.66278327.jpg
[2026-01-30 13:57:07] Using OCR.space API
[2026-01-30 13:57:07] Using API key: K8465...
[2026-01-30 13:57:09] OCR.space API request completed with HTTP code: 200
[2026-01-30 13:57:09] Request info: {"total_time":1.583121,"size_upload":115105,"size_download":8037}
[2026-01-30 13:57:09] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-01-30 13:57:09] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-01-30 13:57:09] Extracting health metrics from text
[2026-01-30 13:57:09] Found weight using specific pattern: 167.5
[2026-01-30 13:57:09] Found bmi using specific pattern: 26.9
[2026-01-30 13:57:09] Found body_fat_percent using specific pattern: 19.4
[2026-01-30 13:57:09] Found muscle_mass_lbs using specific pattern: 128.5
[2026-01-30 13:57:09] Found muscle_mass_percent using specific pattern: 76.7
[2026-01-30 13:57:09] Found bone_mass_percent using specific pattern: 3.9
[2026-01-30 13:57:09] Found bmr using specific pattern: 1510
[2026-01-30 13:57:09] Found water_percent using specific pattern: 55.3
[2026-01-30 13:57:09] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-01-30 13:57:09] Found bone_mass_lbs using specific pattern: 6.6
[2026-01-30 13:57:09] Found visceral_fat using specific pattern: 11
[2026-01-30 13:57:09] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-01-30 13:57:09] Found 12 metrics in total
[2026-01-30 13:57:09] Extracted data: {"date":"2026-01-30","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-30 13:57:09] Final data for insertion: {"date":"2026-01-30","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-30 13:57:09] Inserted record with ID: 89
[2026-01-30 13:57:09] Weight also stored in weights table
[2026-01-30 13:57:09] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-01-30","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"89"}
[2026-01-30 14:57:14] Health image upload received
[2026-01-30 14:57:14] User ID: 1
[2026-01-30 14:57:14] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697cc6ca3a4d26.10697314.jpg
[2026-01-30 14:57:14] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697cc6ca3a4d26.10697314.jpg
[2026-01-30 14:57:14] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697cc6ca3a4d26.10697314.jpg
[2026-01-30 14:57:14] Using OCR.space API
[2026-01-30 14:57:14] Using API key: K8465...
[2026-01-30 14:57:16] OCR.space API request completed with HTTP code: 200
[2026-01-30 14:57:16] Request info: {"total_time":1.914268,"size_upload":115105,"size_download":8037}
[2026-01-30 14:57:16] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-01-30 14:57:16] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-01-30 14:57:16] Extracting health metrics from text
[2026-01-30 14:57:16] Found weight using specific pattern: 167.5
[2026-01-30 14:57:16] Found bmi using specific pattern: 26.9
[2026-01-30 14:57:16] Found body_fat_percent using specific pattern: 19.4
[2026-01-30 14:57:16] Found muscle_mass_lbs using specific pattern: 128.5
[2026-01-30 14:57:16] Found muscle_mass_percent using specific pattern: 76.7
[2026-01-30 14:57:16] Found bone_mass_percent using specific pattern: 3.9
[2026-01-30 14:57:16] Found bmr using specific pattern: 1510
[2026-01-30 14:57:16] Found water_percent using specific pattern: 55.3
[2026-01-30 14:57:16] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-01-30 14:57:16] Found bone_mass_lbs using specific pattern: 6.6
[2026-01-30 14:57:16] Found visceral_fat using specific pattern: 11
[2026-01-30 14:57:16] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-01-30 14:57:16] Found 12 metrics in total
[2026-01-30 14:57:16] Extracted data: {"date":"2026-01-30","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-30 14:57:16] Final data for insertion: {"date":"2026-01-30","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-30 14:57:16] Inserted record with ID: 90
[2026-01-30 14:57:16] Weight also stored in weights table
[2026-01-30 14:57:16] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-01-30","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"90"}
[2026-01-30 14:57:26] Health image upload received
[2026-01-30 14:57:26] Error: Missing or invalid user_id
[2026-01-30 14:57:26] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-01-30 14:57:29] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-01-30 14:57:29] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-01-30 14:57:29] Using OCR.space API
[2026-01-30 14:57:29] Using API key: K8465...
[2026-01-30 14:57:31] OCR.space API request completed with HTTP code: 200
[2026-01-30 14:57:31] Request info: {"total_time":2.29431,"size_upload":113045,"size_download":7479}
[2026-01-30 14:57:31] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-01-30 14:57:31] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-01-30 14:57:31] Extracting health metrics from text
[2026-01-30 14:57:31] Found bmi but value 167.5 seems invalid - ignoring
[2026-01-30 14:57:31] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-30 14:57:31] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-30 14:57:31] Found visceral_fat using specific pattern: 6
[2026-01-30 14:57:31] Found weight using trends overview pattern: 167.5
[2026-01-30 14:57:31] Found bmi using trends overview pattern: 26.9
[2026-01-30 14:57:31] Found body_fat_percent using trends overview pattern: 19.4
[2026-01-30 14:57:31] Found water_percent using trends overview pattern: 55.3
[2026-01-30 14:57:31] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-01-30 14:57:31] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-01-30 14:57:31] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-30 14:57:31] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-01-30 14:57:31] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-30 14:57:31] No match found for bmr
[2026-01-30 14:57:31] No match found for body_fat_mass_lbs
[2026-01-30 14:57:31] No match found for bone_mass_lbs
[2026-01-30 14:57:31] Found 6 metrics in total
[2026-01-30 14:57:31] Critical metric muscle_mass_lbs is missing, using default value
[2026-01-30 14:57:31] Critical metric bone_mass_lbs is missing, using default value
[2026-01-30 14:57:31] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-01-30 14:57:31] Adding missing metric bone_mass_percent with default value: 3.9
[2026-01-30 14:57:31] Adding missing metric bmr with default value: 1510
[2026-01-30 14:57:31] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-01-30 14:57:53] Health image upload received
[2026-01-30 14:57:53] User ID: 1
[2026-01-30 14:57:53] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697cc6f1c673c3.58541465.jpg
[2026-01-30 14:57:53] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697cc6f1c673c3.58541465.jpg
[2026-01-30 14:57:53] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697cc6f1c673c3.58541465.jpg
[2026-01-30 14:57:53] Using OCR.space API
[2026-01-30 14:57:53] Using API key: K8465...
[2026-01-30 14:57:55] OCR.space API request completed with HTTP code: 200
[2026-01-30 14:57:55] Request info: {"total_time":1.584704,"size_upload":113045,"size_download":7478}
[2026-01-30 14:57:55] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-01-30 14:57:55] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-01-30 14:57:55] Extracting health metrics from text
[2026-01-30 14:57:55] Found bmi but value 167.5 seems invalid - ignoring
[2026-01-30 14:57:55] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-30 14:57:55] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-30 14:57:55] Found visceral_fat using specific pattern: 6
[2026-01-30 14:57:55] Found weight using trends overview pattern: 167.5
[2026-01-30 14:57:55] Found bmi using trends overview pattern: 26.9
[2026-01-30 14:57:55] Found body_fat_percent using trends overview pattern: 19.4
[2026-01-30 14:57:55] Found water_percent using trends overview pattern: 55.3
[2026-01-30 14:57:55] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-01-30 14:57:55] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-01-30 14:57:55] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-30 14:57:55] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-01-30 14:57:55] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-30 14:57:55] No match found for bmr
[2026-01-30 14:57:55] No match found for body_fat_mass_lbs
[2026-01-30 14:57:55] No match found for bone_mass_lbs
[2026-01-30 14:57:55] Found 6 metrics in total
[2026-01-30 14:57:55] Critical metric muscle_mass_lbs is missing, using default value
[2026-01-30 14:57:55] Critical metric bone_mass_lbs is missing, using default value
[2026-01-30 14:57:55] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-01-30 14:57:55] Adding missing metric bone_mass_percent with default value: 3.9
[2026-01-30 14:57:55] Adding missing metric bmr with default value: 1510
[2026-01-30 14:57:55] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-01-30 14:57:55] Extracted data: {"date":"2026-01-30","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-30 14:57:55] Final data for insertion: {"date":"2026-01-30","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-30 14:57:55] Inserted record with ID: 91
[2026-01-30 14:57:55] Weight also stored in weights table
[2026-01-30 14:57:55] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-01-30","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"91"}
[2026-01-30 17:17:50] Health image upload received
[2026-01-30 17:17:50] User ID: 1
[2026-01-30 17:17:50] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697ce7be137e90.40953606.jpg
[2026-01-30 17:17:50] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697ce7be137e90.40953606.jpg
[2026-01-30 17:17:50] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697ce7be137e90.40953606.jpg
[2026-01-30 17:17:50] Using OCR.space API
[2026-01-30 17:17:50] Using API key: K8465...
[2026-01-30 17:17:51] OCR.space API request completed with HTTP code: 200
[2026-01-30 17:17:51] Request info: {"total_time":1.906617,"size_upload":113045,"size_download":7478}
[2026-01-30 17:17:51] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-01-30 17:17:51] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-01-30 17:17:51] Extracting health metrics from text
[2026-01-30 17:17:51] Found bmi but value 167.5 seems invalid - ignoring
[2026-01-30 17:17:51] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-30 17:17:51] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-30 17:17:51] Found visceral_fat using specific pattern: 6
[2026-01-30 17:17:51] Found weight using trends overview pattern: 167.5
[2026-01-30 17:17:51] Found bmi using trends overview pattern: 26.9
[2026-01-30 17:17:51] Found body_fat_percent using trends overview pattern: 19.4
[2026-01-30 17:17:51] Found water_percent using trends overview pattern: 55.3
[2026-01-30 17:17:51] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-01-30 17:17:51] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-01-30 17:17:51] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-01-30 17:17:51] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-01-30 17:17:51] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-01-30 17:17:51] No match found for bmr
[2026-01-30 17:17:51] No match found for body_fat_mass_lbs
[2026-01-30 17:17:51] No match found for bone_mass_lbs
[2026-01-30 17:17:51] Found 6 metrics in total
[2026-01-30 17:17:51] Critical metric muscle_mass_lbs is missing, using default value
[2026-01-30 17:17:51] Critical metric bone_mass_lbs is missing, using default value
[2026-01-30 17:17:51] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-01-30 17:17:51] Adding missing metric bone_mass_percent with default value: 3.9
[2026-01-30 17:17:51] Adding missing metric bmr with default value: 1510
[2026-01-30 17:17:51] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-01-30 17:17:51] Extracted data: {"date":"2026-01-30","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-30 17:17:51] Final data for insertion: {"date":"2026-01-30","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-01-30 17:17:51] Inserted record with ID: 92
[2026-01-30 17:17:51] Weight also stored in weights table
[2026-01-30 17:17:51] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-01-30","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"92"}
[2026-01-31 03:50:19] Health image upload received
[2026-01-31 03:50:19] Error: Missing or invalid user_id
[2026-01-31 03:50:19] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-02-01 08:45:54] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-02-01 08:45:54] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-02-01 08:45:54] Using OCR.space API
[2026-02-01 08:45:54] Using API key: K8465...
[2026-02-01 08:45:55] OCR.space API request completed with HTTP code: 200
[2026-02-01 08:45:55] Request info: {"total_time":1.622673,"size_upload":113045,"size_download":7478}
[2026-02-01 08:45:55] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-02-01 08:45:55] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-02-01 08:45:55] Extracting health metrics from text
[2026-02-01 08:45:55] Found bmi but value 167.5 seems invalid - ignoring
[2026-02-01 08:45:55] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-01 08:45:55] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-01 08:45:55] Found visceral_fat using specific pattern: 6
[2026-02-01 08:45:55] Found weight using trends overview pattern: 167.5
[2026-02-01 08:45:55] Found bmi using trends overview pattern: 26.9
[2026-02-01 08:45:55] Found body_fat_percent using trends overview pattern: 19.4
[2026-02-01 08:45:55] Found water_percent using trends overview pattern: 55.3
[2026-02-01 08:45:55] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-02-01 08:45:55] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-02-01 08:45:55] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-01 08:45:55] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-02-01 08:45:55] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-01 08:45:55] No match found for bmr
[2026-02-01 08:45:55] No match found for body_fat_mass_lbs
[2026-02-01 08:45:55] No match found for bone_mass_lbs
[2026-02-01 08:45:55] Found 6 metrics in total
[2026-02-01 08:45:55] Critical metric muscle_mass_lbs is missing, using default value
[2026-02-01 08:45:55] Critical metric bone_mass_lbs is missing, using default value
[2026-02-01 08:45:55] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-02-01 08:45:55] Adding missing metric bone_mass_percent with default value: 3.9
[2026-02-01 08:45:55] Adding missing metric bmr with default value: 1510
[2026-02-01 08:45:55] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-02-01 18:33:46] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-02-01 18:33:46] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-02-01 18:33:46] Using OCR.space API
[2026-02-01 18:33:46] Using API key: K8465...
[2026-02-01 18:33:48] OCR.space API request completed with HTTP code: 200
[2026-02-01 18:33:48] Request info: {"total_time":1.674409,"size_upload":113045,"size_download":7478}
[2026-02-01 18:33:48] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-02-01 18:33:48] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-02-01 18:33:48] Extracting health metrics from text
[2026-02-01 18:33:48] Found bmi but value 167.5 seems invalid - ignoring
[2026-02-01 18:33:48] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-01 18:33:48] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-01 18:33:48] Found visceral_fat using specific pattern: 6
[2026-02-01 18:33:48] Found weight using trends overview pattern: 167.5
[2026-02-01 18:33:48] Found bmi using trends overview pattern: 26.9
[2026-02-01 18:33:48] Found body_fat_percent using trends overview pattern: 19.4
[2026-02-01 18:33:48] Found water_percent using trends overview pattern: 55.3
[2026-02-01 18:33:48] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-02-01 18:33:48] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-02-01 18:33:48] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-01 18:33:48] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-02-01 18:33:48] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-01 18:33:48] No match found for bmr
[2026-02-01 18:33:48] No match found for body_fat_mass_lbs
[2026-02-01 18:33:48] No match found for bone_mass_lbs
[2026-02-01 18:33:48] Found 6 metrics in total
[2026-02-01 18:33:48] Critical metric muscle_mass_lbs is missing, using default value
[2026-02-01 18:33:48] Critical metric bone_mass_lbs is missing, using default value
[2026-02-01 18:33:48] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-02-01 18:33:48] Adding missing metric bone_mass_percent with default value: 3.9
[2026-02-01 18:33:48] Adding missing metric bmr with default value: 1510
[2026-02-01 18:33:48] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-02-01 18:36:31] Health image upload received
[2026-02-01 18:36:31] User ID: 1
[2026-02-01 18:36:31] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697f9d2fc42b78.94813074.jpg
[2026-02-01 18:36:31] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697f9d2fc42b78.94813074.jpg
[2026-02-01 18:36:31] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_697f9d2fc42b78.94813074.jpg
[2026-02-01 18:36:31] Using OCR.space API
[2026-02-01 18:36:31] Using API key: K8465...
[2026-02-01 18:36:33] OCR.space API request completed with HTTP code: 200
[2026-02-01 18:36:33] Request info: {"total_time":1.737091,"size_upload":113045,"size_download":7478}
[2026-02-01 18:36:33] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-02-01 18:36:33] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-02-01 18:36:33] Extracting health metrics from text
[2026-02-01 18:36:33] Found bmi but value 167.5 seems invalid - ignoring
[2026-02-01 18:36:33] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-01 18:36:33] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-01 18:36:33] Found visceral_fat using specific pattern: 6
[2026-02-01 18:36:33] Found weight using trends overview pattern: 167.5
[2026-02-01 18:36:33] Found bmi using trends overview pattern: 26.9
[2026-02-01 18:36:33] Found body_fat_percent using trends overview pattern: 19.4
[2026-02-01 18:36:33] Found water_percent using trends overview pattern: 55.3
[2026-02-01 18:36:33] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-02-01 18:36:33] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-02-01 18:36:33] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-01 18:36:33] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-02-01 18:36:33] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-01 18:36:33] No match found for bmr
[2026-02-01 18:36:33] No match found for body_fat_mass_lbs
[2026-02-01 18:36:33] No match found for bone_mass_lbs
[2026-02-01 18:36:33] Found 6 metrics in total
[2026-02-01 18:36:33] Critical metric muscle_mass_lbs is missing, using default value
[2026-02-01 18:36:33] Critical metric bone_mass_lbs is missing, using default value
[2026-02-01 18:36:33] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-02-01 18:36:33] Adding missing metric bone_mass_percent with default value: 3.9
[2026-02-01 18:36:33] Adding missing metric bmr with default value: 1510
[2026-02-01 18:36:33] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-02-01 18:36:33] Extracted data: {"date":"2026-02-01","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-01 18:36:33] Final data for insertion: {"date":"2026-02-01","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-01 18:36:33] Inserted record with ID: 93
[2026-02-01 18:36:33] Weight also stored in weights table
[2026-02-01 18:36:33] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-02-01","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"93"}
[2026-02-01 18:40:42] Health image upload received
[2026-02-01 18:40:42] Error: Missing or invalid user_id
[2026-02-01 18:40:42] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-02-03 04:43:26] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-02-03 04:43:26] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-02-03 04:43:26] Using OCR.space API
[2026-02-03 04:43:26] Using API key: K8465...
[2026-02-03 04:43:28] OCR.space API request completed with HTTP code: 200
[2026-02-03 04:43:28] Request info: {"total_time":1.684499,"size_upload":113045,"size_download":7478}
[2026-02-03 04:43:28] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-02-03 04:43:28] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-02-03 04:43:28] Extracting health metrics from text
[2026-02-03 04:43:28] Found bmi but value 167.5 seems invalid - ignoring
[2026-02-03 04:43:28] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-03 04:43:28] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-03 04:43:28] Found visceral_fat using specific pattern: 6
[2026-02-03 04:43:28] Found weight using trends overview pattern: 167.5
[2026-02-03 04:43:28] Found bmi using trends overview pattern: 26.9
[2026-02-03 04:43:28] Found body_fat_percent using trends overview pattern: 19.4
[2026-02-03 04:43:28] Found water_percent using trends overview pattern: 55.3
[2026-02-03 04:43:28] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-02-03 04:43:28] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-02-03 04:43:28] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-03 04:43:28] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-02-03 04:43:28] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-03 04:43:28] No match found for bmr
[2026-02-03 04:43:28] No match found for body_fat_mass_lbs
[2026-02-03 04:43:28] No match found for bone_mass_lbs
[2026-02-03 04:43:28] Found 6 metrics in total
[2026-02-03 04:43:28] Critical metric muscle_mass_lbs is missing, using default value
[2026-02-03 04:43:28] Critical metric bone_mass_lbs is missing, using default value
[2026-02-03 04:43:28] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-02-03 04:43:28] Adding missing metric bone_mass_percent with default value: 3.9
[2026-02-03 04:43:28] Adding missing metric bmr with default value: 1510
[2026-02-03 04:43:28] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-02-03 04:51:24] Health image upload received
[2026-02-03 04:51:24] User ID: 1
[2026-02-03 04:51:24] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69817ecc9d86b8.66518942.jpg
[2026-02-03 04:51:24] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69817ecc9d86b8.66518942.jpg
[2026-02-03 04:51:24] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69817ecc9d86b8.66518942.jpg
[2026-02-03 04:51:24] Using OCR.space API
[2026-02-03 04:51:24] Using API key: K8465...
[2026-02-03 04:51:26] OCR.space API request completed with HTTP code: 200
[2026-02-03 04:51:26] Request info: {"total_time":1.934416,"size_upload":113045,"size_download":7478}
[2026-02-03 04:51:26] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-02-03 04:51:26] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-02-03 04:51:26] Extracting health metrics from text
[2026-02-03 04:51:26] Found bmi but value 167.5 seems invalid - ignoring
[2026-02-03 04:51:26] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-03 04:51:26] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-03 04:51:26] Found visceral_fat using specific pattern: 6
[2026-02-03 04:51:26] Found weight using trends overview pattern: 167.5
[2026-02-03 04:51:26] Found bmi using trends overview pattern: 26.9
[2026-02-03 04:51:26] Found body_fat_percent using trends overview pattern: 19.4
[2026-02-03 04:51:26] Found water_percent using trends overview pattern: 55.3
[2026-02-03 04:51:26] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-02-03 04:51:26] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-02-03 04:51:26] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-03 04:51:26] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-02-03 04:51:26] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-03 04:51:26] No match found for bmr
[2026-02-03 04:51:26] No match found for body_fat_mass_lbs
[2026-02-03 04:51:26] No match found for bone_mass_lbs
[2026-02-03 04:51:26] Found 6 metrics in total
[2026-02-03 04:51:26] Critical metric muscle_mass_lbs is missing, using default value
[2026-02-03 04:51:26] Critical metric bone_mass_lbs is missing, using default value
[2026-02-03 04:51:26] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-02-03 04:51:26] Adding missing metric bone_mass_percent with default value: 3.9
[2026-02-03 04:51:26] Adding missing metric bmr with default value: 1510
[2026-02-03 04:51:26] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-02-03 04:51:26] Extracted data: {"date":"2026-02-03","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-03 04:51:26] Final data for insertion: {"date":"2026-02-03","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-03 04:51:26] Inserted record with ID: 94
[2026-02-03 04:51:26] Weight also stored in weights table
[2026-02-03 04:51:26] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-02-03","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"94"}
[2026-02-03 06:03:37] Health image upload received
[2026-02-03 06:03:37] User ID: 1
[2026-02-03 06:03:37] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69818fb93abaf6.58684859.jpg
[2026-02-03 06:03:37] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69818fb93abaf6.58684859.jpg
[2026-02-03 06:03:37] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69818fb93abaf6.58684859.jpg
[2026-02-03 06:03:37] Using OCR.space API
[2026-02-03 06:03:37] Using API key: K8465...
[2026-02-03 06:03:39] OCR.space API request completed with HTTP code: 200
[2026-02-03 06:03:39] Request info: {"total_time":1.958972,"size_upload":115105,"size_download":8037}
[2026-02-03 06:03:39] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-02-03 06:03:39] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-02-03 06:03:39] Extracting health metrics from text
[2026-02-03 06:03:39] Found weight using specific pattern: 167.5
[2026-02-03 06:03:39] Found bmi using specific pattern: 26.9
[2026-02-03 06:03:39] Found body_fat_percent using specific pattern: 19.4
[2026-02-03 06:03:39] Found muscle_mass_lbs using specific pattern: 128.5
[2026-02-03 06:03:39] Found muscle_mass_percent using specific pattern: 76.7
[2026-02-03 06:03:39] Found bone_mass_percent using specific pattern: 3.9
[2026-02-03 06:03:39] Found bmr using specific pattern: 1510
[2026-02-03 06:03:39] Found water_percent using specific pattern: 55.3
[2026-02-03 06:03:39] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-02-03 06:03:39] Found bone_mass_lbs using specific pattern: 6.6
[2026-02-03 06:03:39] Found visceral_fat using specific pattern: 11
[2026-02-03 06:03:39] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-02-03 06:03:39] Found 12 metrics in total
[2026-02-03 06:03:39] Extracted data: {"date":"2026-02-03","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-03 06:03:39] Final data for insertion: {"date":"2026-02-03","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-03 06:03:39] Inserted record with ID: 95
[2026-02-03 06:03:39] Weight also stored in weights table
[2026-02-03 06:03:39] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-02-03","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"95"}
[2026-02-04 09:54:58] Health image upload received
[2026-02-04 09:54:58] User ID: 1
[2026-02-04 09:54:58] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69831772262205.03703539.jpg
[2026-02-04 09:54:58] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69831772262205.03703539.jpg
[2026-02-04 09:54:58] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69831772262205.03703539.jpg
[2026-02-04 09:54:58] Using OCR.space API
[2026-02-04 09:54:58] Using API key: K8465...
[2026-02-04 09:54:59] OCR.space API request completed with HTTP code: 200
[2026-02-04 09:54:59] Request info: {"total_time":1.646436,"size_upload":115105,"size_download":8037}
[2026-02-04 09:54:59] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-02-04 09:54:59] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-02-04 09:54:59] Extracting health metrics from text
[2026-02-04 09:54:59] Found weight using specific pattern: 167.5
[2026-02-04 09:54:59] Found bmi using specific pattern: 26.9
[2026-02-04 09:54:59] Found body_fat_percent using specific pattern: 19.4
[2026-02-04 09:54:59] Found muscle_mass_lbs using specific pattern: 128.5
[2026-02-04 09:54:59] Found muscle_mass_percent using specific pattern: 76.7
[2026-02-04 09:54:59] Found bone_mass_percent using specific pattern: 3.9
[2026-02-04 09:54:59] Found bmr using specific pattern: 1510
[2026-02-04 09:54:59] Found water_percent using specific pattern: 55.3
[2026-02-04 09:54:59] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-02-04 09:54:59] Found bone_mass_lbs using specific pattern: 6.6
[2026-02-04 09:54:59] Found visceral_fat using specific pattern: 11
[2026-02-04 09:54:59] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-02-04 09:54:59] Found 12 metrics in total
[2026-02-04 09:54:59] Extracted data: {"date":"2026-02-04","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-04 09:54:59] Final data for insertion: {"date":"2026-02-04","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-04 09:54:59] Inserted record with ID: 96
[2026-02-04 09:54:59] Weight also stored in weights table
[2026-02-04 09:54:59] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-02-04","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"96"}
[2026-02-04 12:57:56] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-02-04 12:57:56] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-02-04 12:57:56] Using OCR.space API
[2026-02-04 12:57:56] Using API key: K8465...
[2026-02-04 12:57:58] OCR.space API request completed with HTTP code: 200
[2026-02-04 12:57:58] Request info: {"total_time":1.969863,"size_upload":113045,"size_download":7478}
[2026-02-04 12:57:58] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-02-04 12:57:58] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-02-04 12:57:58] Extracting health metrics from text
[2026-02-04 12:57:58] Found bmi but value 167.5 seems invalid - ignoring
[2026-02-04 12:57:58] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-04 12:57:58] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-04 12:57:58] Found visceral_fat using specific pattern: 6
[2026-02-04 12:57:58] Found weight using trends overview pattern: 167.5
[2026-02-04 12:57:58] Found bmi using trends overview pattern: 26.9
[2026-02-04 12:57:58] Found body_fat_percent using trends overview pattern: 19.4
[2026-02-04 12:57:58] Found water_percent using trends overview pattern: 55.3
[2026-02-04 12:57:58] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-02-04 12:57:58] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-02-04 12:57:58] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-04 12:57:58] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-02-04 12:57:58] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-04 12:57:58] No match found for bmr
[2026-02-04 12:57:58] No match found for body_fat_mass_lbs
[2026-02-04 12:57:58] No match found for bone_mass_lbs
[2026-02-04 12:57:58] Found 6 metrics in total
[2026-02-04 12:57:58] Critical metric muscle_mass_lbs is missing, using default value
[2026-02-04 12:57:58] Critical metric bone_mass_lbs is missing, using default value
[2026-02-04 12:57:58] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-02-04 12:57:58] Adding missing metric bone_mass_percent with default value: 3.9
[2026-02-04 12:57:58] Adding missing metric bmr with default value: 1510
[2026-02-04 12:57:58] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-02-04 13:59:21] Health image upload received
[2026-02-04 13:59:21] User ID: 1
[2026-02-04 13:59:21] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_698350b914c171.53852522.jpg
[2026-02-04 13:59:21] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_698350b914c171.53852522.jpg
[2026-02-04 13:59:21] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_698350b914c171.53852522.jpg
[2026-02-04 13:59:21] Using OCR.space API
[2026-02-04 13:59:21] Using API key: K8465...
[2026-02-04 13:59:22] OCR.space API request completed with HTTP code: 200
[2026-02-04 13:59:22] Request info: {"total_time":1.658021,"size_upload":113045,"size_download":7478}
[2026-02-04 13:59:22] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-02-04 13:59:22] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-02-04 13:59:22] Extracting health metrics from text
[2026-02-04 13:59:22] Found bmi but value 167.5 seems invalid - ignoring
[2026-02-04 13:59:22] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-04 13:59:22] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-04 13:59:22] Found visceral_fat using specific pattern: 6
[2026-02-04 13:59:22] Found weight using trends overview pattern: 167.5
[2026-02-04 13:59:22] Found bmi using trends overview pattern: 26.9
[2026-02-04 13:59:22] Found body_fat_percent using trends overview pattern: 19.4
[2026-02-04 13:59:22] Found water_percent using trends overview pattern: 55.3
[2026-02-04 13:59:22] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-02-04 13:59:22] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-02-04 13:59:22] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-04 13:59:22] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-02-04 13:59:22] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-04 13:59:22] No match found for bmr
[2026-02-04 13:59:22] No match found for body_fat_mass_lbs
[2026-02-04 13:59:22] No match found for bone_mass_lbs
[2026-02-04 13:59:22] Found 6 metrics in total
[2026-02-04 13:59:22] Critical metric muscle_mass_lbs is missing, using default value
[2026-02-04 13:59:22] Critical metric bone_mass_lbs is missing, using default value
[2026-02-04 13:59:22] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-02-04 13:59:22] Adding missing metric bone_mass_percent with default value: 3.9
[2026-02-04 13:59:22] Adding missing metric bmr with default value: 1510
[2026-02-04 13:59:22] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-02-04 13:59:22] Extracted data: {"date":"2026-02-04","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-04 13:59:22] Final data for insertion: {"date":"2026-02-04","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-04 13:59:22] Inserted record with ID: 97
[2026-02-04 13:59:22] Weight also stored in weights table
[2026-02-04 13:59:22] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-02-04","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"97"}
[2026-02-05 08:56:32] Health image upload received
[2026-02-05 08:56:32] User ID: 1
[2026-02-05 08:56:32] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69845b40a1fa07.50105012.jpg
[2026-02-05 08:56:32] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69845b40a1fa07.50105012.jpg
[2026-02-05 08:56:32] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69845b40a1fa07.50105012.jpg
[2026-02-05 08:56:32] Using OCR.space API
[2026-02-05 08:56:32] Using API key: K8465...
[2026-02-05 08:56:34] OCR.space API request completed with HTTP code: 200
[2026-02-05 08:56:34] Request info: {"total_time":1.660246,"size_upload":115105,"size_download":8037}
[2026-02-05 08:56:34] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-02-05 08:56:34] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-02-05 08:56:34] Extracting health metrics from text
[2026-02-05 08:56:34] Found weight using specific pattern: 167.5
[2026-02-05 08:56:34] Found bmi using specific pattern: 26.9
[2026-02-05 08:56:34] Found body_fat_percent using specific pattern: 19.4
[2026-02-05 08:56:34] Found muscle_mass_lbs using specific pattern: 128.5
[2026-02-05 08:56:34] Found muscle_mass_percent using specific pattern: 76.7
[2026-02-05 08:56:34] Found bone_mass_percent using specific pattern: 3.9
[2026-02-05 08:56:34] Found bmr using specific pattern: 1510
[2026-02-05 08:56:34] Found water_percent using specific pattern: 55.3
[2026-02-05 08:56:34] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-02-05 08:56:34] Found bone_mass_lbs using specific pattern: 6.6
[2026-02-05 08:56:34] Found visceral_fat using specific pattern: 11
[2026-02-05 08:56:34] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-02-05 08:56:34] Found 12 metrics in total
[2026-02-05 08:56:34] Extracted data: {"date":"2026-02-05","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-05 08:56:34] Final data for insertion: {"date":"2026-02-05","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-05 08:56:34] Inserted record with ID: 98
[2026-02-05 08:56:34] Weight also stored in weights table
[2026-02-05 08:56:34] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-02-05","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"98"}
[2026-02-07 13:23:52] Health image upload received
[2026-02-07 13:23:52] User ID: 1
[2026-02-07 13:23:52] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69873ce84a19f0.69090850.jpg
[2026-02-07 13:23:52] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69873ce84a19f0.69090850.jpg
[2026-02-07 13:23:52] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69873ce84a19f0.69090850.jpg
[2026-02-07 13:23:52] Using OCR.space API
[2026-02-07 13:23:52] Using API key: K8465...
[2026-02-07 13:23:54] OCR.space API request completed with HTTP code: 200
[2026-02-07 13:23:54] Request info: {"total_time":2.487447,"size_upload":421301,"size_download":8485}
[2026-02-07 13:23:54] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":200.0,"Top":117.0,"Height":40.0,"Width":171.0}],"MaxHeight":40.0,"MinTop":117.0},{"LineText":"160.2 Ibs","Words":[{"WordText":"160.2","Left":102.0,"Top":303.0,"Height":98.0,"Width":230.0},{"WordText":"Ibs","Left":344.0,"Top":303.0,"Height":98.0,"Width":99.0}],"MaxHeight":98.0,"MinTop":303.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":122.0,"Top":425.0,"Height":44.0,"Width":112.0}],"Max...
[2026-02-07 13:23:54] OCR.space API extracted text: WEIGHT
160.2 Ibs
HIGH
& BODY FAT%
18.4%
Standard
B MUSCLE
MASS%
77.7%
EXCELLENT
38 BMR
1443 kcal
LOW...
[2026-02-07 13:23:54] Extracting health metrics from text
[2026-02-07 13:23:54] Found bmi using specific pattern: 25.7
[2026-02-07 13:23:54] Found body_fat_percent using specific pattern: 18.4
[2026-02-07 13:23:54] Found muscle_mass_percent using specific pattern: 77.7
[2026-02-07 13:23:54] Found bmr using specific pattern: 1443
[2026-02-07 13:23:54] Found water_percent using specific pattern: 56.0
[2026-02-07 13:23:54] Found bone_mass_lbs using specific pattern: 6.3
[2026-02-07 13:23:54] Found visceral_fat using specific pattern: 11
[2026-02-07 13:23:54] Found weight in trends overview but value 6.3 seems invalid - ignoring
[2026-02-07 13:23:54] Found weight using generic pattern: 160.2
[2026-02-07 13:23:54] No match found for lean_body_mass_lbs
[2026-02-07 13:23:54] Found muscle_mass_lbs using generic pattern: 124.5
[2026-02-07 13:23:54] No match found for bone_mass_percent
[2026-02-07 13:23:54] Found body_fat_mass_lbs using generic pattern: 29.3
[2026-02-07 13:23:54] Found 10 metrics in total
[2026-02-07 13:23:54] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-02-07 13:23:54] Adding missing metric bone_mass_percent with default value: 3.9
[2026-02-07 13:23:54] Extracted data: {"date":"2026-02-07","weight":160.2,"body_fat_percent":18.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":124.5,"bmi":25.7,"water_percent":56,"muscle_mass_percent":77.7,"bone_mass_percent":3.9,"bmr":1443,"visceral_fat":11,"body_fat_mass_lbs":29.3,"bone_mass_lbs":6.3}
[2026-02-07 13:23:54] Final data for insertion: {"date":"2026-02-07","weight":160.2,"body_fat_percent":18.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":124.5,"bmi":25.7,"water_percent":56,"muscle_mass_percent":77.7,"bone_mass_percent":3.9,"bmr":1443,"visceral_fat":11,"body_fat_mass_lbs":29.3,"bone_mass_lbs":6.3}
[2026-02-07 13:23:54] Inserted record with ID: 99
[2026-02-07 13:23:54] Weight also stored in weights table
[2026-02-07 13:23:54] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-02-07","weight":160.2,"body_fat_percent":18.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":124.5,"bmi":25.7,"water_percent":56,"muscle_mass_percent":77.7,"bone_mass_percent":3.9,"bmr":1443,"visceral_fat":11,"body_fat_mass_lbs":29.3,"bone_mass_lbs":6.3},"record_id":"99"}
[2026-02-09 14:05:33] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-02-09 14:05:33] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-02-09 14:05:33] Using OCR.space API
[2026-02-09 14:05:33] Using API key: K8465...
[2026-02-09 14:05:35] OCR.space API request completed with HTTP code: 200
[2026-02-09 14:05:35] Request info: {"total_time":1.977821,"size_upload":113045,"size_download":7478}
[2026-02-09 14:05:35] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-02-09 14:05:35] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-02-09 14:05:35] Extracting health metrics from text
[2026-02-09 14:05:35] Found bmi but value 167.5 seems invalid - ignoring
[2026-02-09 14:05:35] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-09 14:05:35] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-09 14:05:35] Found visceral_fat using specific pattern: 6
[2026-02-09 14:05:35] Found weight using trends overview pattern: 167.5
[2026-02-09 14:05:35] Found bmi using trends overview pattern: 26.9
[2026-02-09 14:05:35] Found body_fat_percent using trends overview pattern: 19.4
[2026-02-09 14:05:35] Found water_percent using trends overview pattern: 55.3
[2026-02-09 14:05:35] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-02-09 14:05:35] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-02-09 14:05:35] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-09 14:05:35] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-02-09 14:05:35] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-09 14:05:35] No match found for bmr
[2026-02-09 14:05:35] No match found for body_fat_mass_lbs
[2026-02-09 14:05:35] No match found for bone_mass_lbs
[2026-02-09 14:05:35] Found 6 metrics in total
[2026-02-09 14:05:35] Critical metric muscle_mass_lbs is missing, using default value
[2026-02-09 14:05:35] Critical metric bone_mass_lbs is missing, using default value
[2026-02-09 14:05:35] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-02-09 14:05:35] Adding missing metric bone_mass_percent with default value: 3.9
[2026-02-09 14:05:35] Adding missing metric bmr with default value: 1510
[2026-02-09 14:05:35] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-02-09 14:30:37] Health image upload received
[2026-02-09 14:30:37] User ID: 1
[2026-02-09 14:30:37] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6989ef8da411d7.24904031.jpg
[2026-02-09 14:30:37] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6989ef8da411d7.24904031.jpg
[2026-02-09 14:30:37] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6989ef8da411d7.24904031.jpg
[2026-02-09 14:30:37] Using OCR.space API
[2026-02-09 14:30:37] Using API key: K8465...
[2026-02-09 14:30:39] OCR.space API request completed with HTTP code: 200
[2026-02-09 14:30:39] Request info: {"total_time":1.701981,"size_upload":113045,"size_download":7478}
[2026-02-09 14:30:39] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-02-09 14:30:39] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-02-09 14:30:39] Extracting health metrics from text
[2026-02-09 14:30:39] Found bmi but value 167.5 seems invalid - ignoring
[2026-02-09 14:30:39] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-09 14:30:39] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-09 14:30:39] Found visceral_fat using specific pattern: 6
[2026-02-09 14:30:39] Found weight using trends overview pattern: 167.5
[2026-02-09 14:30:39] Found bmi using trends overview pattern: 26.9
[2026-02-09 14:30:39] Found body_fat_percent using trends overview pattern: 19.4
[2026-02-09 14:30:39] Found water_percent using trends overview pattern: 55.3
[2026-02-09 14:30:39] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-02-09 14:30:39] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-02-09 14:30:39] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-09 14:30:39] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-02-09 14:30:39] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-09 14:30:39] No match found for bmr
[2026-02-09 14:30:39] No match found for body_fat_mass_lbs
[2026-02-09 14:30:39] No match found for bone_mass_lbs
[2026-02-09 14:30:39] Found 6 metrics in total
[2026-02-09 14:30:39] Critical metric muscle_mass_lbs is missing, using default value
[2026-02-09 14:30:39] Critical metric bone_mass_lbs is missing, using default value
[2026-02-09 14:30:39] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-02-09 14:30:39] Adding missing metric bone_mass_percent with default value: 3.9
[2026-02-09 14:30:39] Adding missing metric bmr with default value: 1510
[2026-02-09 14:30:39] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-02-09 14:30:39] Extracted data: {"date":"2026-02-09","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-09 14:30:39] Final data for insertion: {"date":"2026-02-09","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-09 14:30:39] Inserted record with ID: 100
[2026-02-09 14:30:39] Weight also stored in weights table
[2026-02-09 14:30:39] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-02-09","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"100"}
[2026-02-09 14:32:02] Health image upload received
[2026-02-09 14:32:02] User ID: 1
[2026-02-09 14:32:02] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6989efe21417f8.71671860.jpg
[2026-02-09 14:32:02] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6989efe21417f8.71671860.jpg
[2026-02-09 14:32:02] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6989efe21417f8.71671860.jpg
[2026-02-09 14:32:02] Using OCR.space API
[2026-02-09 14:32:02] Using API key: K8465...
[2026-02-09 14:32:03] OCR.space API request completed with HTTP code: 200
[2026-02-09 14:32:03] Request info: {"total_time":1.731503,"size_upload":115105,"size_download":8037}
[2026-02-09 14:32:03] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-02-09 14:32:03] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-02-09 14:32:03] Extracting health metrics from text
[2026-02-09 14:32:03] Found weight using specific pattern: 167.5
[2026-02-09 14:32:03] Found bmi using specific pattern: 26.9
[2026-02-09 14:32:03] Found body_fat_percent using specific pattern: 19.4
[2026-02-09 14:32:03] Found muscle_mass_lbs using specific pattern: 128.5
[2026-02-09 14:32:03] Found muscle_mass_percent using specific pattern: 76.7
[2026-02-09 14:32:03] Found bone_mass_percent using specific pattern: 3.9
[2026-02-09 14:32:03] Found bmr using specific pattern: 1510
[2026-02-09 14:32:03] Found water_percent using specific pattern: 55.3
[2026-02-09 14:32:03] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-02-09 14:32:03] Found bone_mass_lbs using specific pattern: 6.6
[2026-02-09 14:32:03] Found visceral_fat using specific pattern: 11
[2026-02-09 14:32:03] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-02-09 14:32:03] Found 12 metrics in total
[2026-02-09 14:32:03] Extracted data: {"date":"2026-02-09","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-09 14:32:03] Final data for insertion: {"date":"2026-02-09","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-09 14:32:03] Inserted record with ID: 101
[2026-02-09 14:32:03] Weight also stored in weights table
[2026-02-09 14:32:03] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-02-09","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"101"}
[2026-02-12 06:50:06] Health image upload received
[2026-02-12 06:50:06] User ID: 1
[2026-02-12 06:50:06] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_698d781e0d6cf3.44955450.jpg
[2026-02-12 06:50:06] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_698d781e0d6cf3.44955450.jpg
[2026-02-12 06:50:06] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_698d781e0d6cf3.44955450.jpg
[2026-02-12 06:50:06] Using OCR.space API
[2026-02-12 06:50:06] Using API key: K8465...
[2026-02-12 06:50:08] OCR.space API request completed with HTTP code: 200
[2026-02-12 06:50:08] Request info: {"total_time":1.975673,"size_upload":115105,"size_download":8037}
[2026-02-12 06:50:08] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-02-12 06:50:08] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-02-12 06:50:08] Extracting health metrics from text
[2026-02-12 06:50:08] Found weight using specific pattern: 167.5
[2026-02-12 06:50:08] Found bmi using specific pattern: 26.9
[2026-02-12 06:50:08] Found body_fat_percent using specific pattern: 19.4
[2026-02-12 06:50:08] Found muscle_mass_lbs using specific pattern: 128.5
[2026-02-12 06:50:08] Found muscle_mass_percent using specific pattern: 76.7
[2026-02-12 06:50:08] Found bone_mass_percent using specific pattern: 3.9
[2026-02-12 06:50:08] Found bmr using specific pattern: 1510
[2026-02-12 06:50:08] Found water_percent using specific pattern: 55.3
[2026-02-12 06:50:08] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-02-12 06:50:08] Found bone_mass_lbs using specific pattern: 6.6
[2026-02-12 06:50:08] Found visceral_fat using specific pattern: 11
[2026-02-12 06:50:08] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-02-12 06:50:08] Found 12 metrics in total
[2026-02-12 06:50:08] Extracted data: {"date":"2026-02-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-12 06:50:08] Final data for insertion: {"date":"2026-02-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-12 06:50:08] Inserted record with ID: 102
[2026-02-12 06:50:08] Weight also stored in weights table
[2026-02-12 06:50:08] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-02-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"102"}
[2026-02-12 10:55:06] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-02-12 10:55:06] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-02-12 10:55:06] Using OCR.space API
[2026-02-12 10:55:06] Using API key: K8465...
[2026-02-12 10:55:08] OCR.space API request completed with HTTP code: 200
[2026-02-12 10:55:08] Request info: {"total_time":1.943381,"size_upload":113045,"size_download":7478}
[2026-02-12 10:55:08] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-02-12 10:55:08] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-02-12 10:55:08] Extracting health metrics from text
[2026-02-12 10:55:08] Found bmi but value 167.5 seems invalid - ignoring
[2026-02-12 10:55:08] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-12 10:55:08] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-12 10:55:08] Found visceral_fat using specific pattern: 6
[2026-02-12 10:55:08] Found weight using trends overview pattern: 167.5
[2026-02-12 10:55:08] Found bmi using trends overview pattern: 26.9
[2026-02-12 10:55:08] Found body_fat_percent using trends overview pattern: 19.4
[2026-02-12 10:55:08] Found water_percent using trends overview pattern: 55.3
[2026-02-12 10:55:08] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-02-12 10:55:08] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-02-12 10:55:08] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-12 10:55:08] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-02-12 10:55:08] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-12 10:55:08] No match found for bmr
[2026-02-12 10:55:08] No match found for body_fat_mass_lbs
[2026-02-12 10:55:08] No match found for bone_mass_lbs
[2026-02-12 10:55:08] Found 6 metrics in total
[2026-02-12 10:55:08] Critical metric muscle_mass_lbs is missing, using default value
[2026-02-12 10:55:08] Critical metric bone_mass_lbs is missing, using default value
[2026-02-12 10:55:08] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-02-12 10:55:08] Adding missing metric bone_mass_percent with default value: 3.9
[2026-02-12 10:55:08] Adding missing metric bmr with default value: 1510
[2026-02-12 10:55:08] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-02-12 10:59:58] Health image upload received
[2026-02-12 10:59:58] User ID: 1
[2026-02-12 10:59:58] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_698db2ae913858.08119865.jpg
[2026-02-12 10:59:58] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_698db2ae913858.08119865.jpg
[2026-02-12 10:59:58] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_698db2ae913858.08119865.jpg
[2026-02-12 10:59:58] Using OCR.space API
[2026-02-12 10:59:58] Using API key: K8465...
[2026-02-12 11:00:00] OCR.space API request completed with HTTP code: 200
[2026-02-12 11:00:00] Request info: {"total_time":1.660105,"size_upload":113045,"size_download":7478}
[2026-02-12 11:00:00] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-02-12 11:00:00] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-02-12 11:00:00] Extracting health metrics from text
[2026-02-12 11:00:00] Found bmi but value 167.5 seems invalid - ignoring
[2026-02-12 11:00:00] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-12 11:00:00] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-12 11:00:00] Found visceral_fat using specific pattern: 6
[2026-02-12 11:00:00] Found weight using trends overview pattern: 167.5
[2026-02-12 11:00:00] Found bmi using trends overview pattern: 26.9
[2026-02-12 11:00:00] Found body_fat_percent using trends overview pattern: 19.4
[2026-02-12 11:00:00] Found water_percent using trends overview pattern: 55.3
[2026-02-12 11:00:00] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-02-12 11:00:00] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-02-12 11:00:00] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-12 11:00:00] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-02-12 11:00:00] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-12 11:00:00] No match found for bmr
[2026-02-12 11:00:00] No match found for body_fat_mass_lbs
[2026-02-12 11:00:00] No match found for bone_mass_lbs
[2026-02-12 11:00:00] Found 6 metrics in total
[2026-02-12 11:00:00] Critical metric muscle_mass_lbs is missing, using default value
[2026-02-12 11:00:00] Critical metric bone_mass_lbs is missing, using default value
[2026-02-12 11:00:00] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-02-12 11:00:00] Adding missing metric bone_mass_percent with default value: 3.9
[2026-02-12 11:00:00] Adding missing metric bmr with default value: 1510
[2026-02-12 11:00:00] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-02-12 11:00:00] Extracted data: {"date":"2026-02-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-12 11:00:00] Final data for insertion: {"date":"2026-02-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-12 11:00:00] Inserted record with ID: 103
[2026-02-12 11:00:00] Weight also stored in weights table
[2026-02-12 11:00:00] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-02-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"103"}
[2026-02-12 11:35:06] Health image upload received
[2026-02-12 11:35:06] User ID: 1
[2026-02-12 11:35:06] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_698dbaea892568.36617570.jpg
[2026-02-12 11:35:06] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_698dbaea892568.36617570.jpg
[2026-02-12 11:35:06] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_698dbaea892568.36617570.jpg
[2026-02-12 11:35:06] Using OCR.space API
[2026-02-12 11:35:06] Using API key: K8465...
[2026-02-12 11:35:08] OCR.space API request completed with HTTP code: 200
[2026-02-12 11:35:08] Request info: {"total_time":2.283145,"size_upload":115105,"size_download":8038}
[2026-02-12 11:35:08] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-02-12 11:35:08] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-02-12 11:35:08] Extracting health metrics from text
[2026-02-12 11:35:08] Found weight using specific pattern: 167.5
[2026-02-12 11:35:08] Found bmi using specific pattern: 26.9
[2026-02-12 11:35:08] Found body_fat_percent using specific pattern: 19.4
[2026-02-12 11:35:08] Found muscle_mass_lbs using specific pattern: 128.5
[2026-02-12 11:35:08] Found muscle_mass_percent using specific pattern: 76.7
[2026-02-12 11:35:08] Found bone_mass_percent using specific pattern: 3.9
[2026-02-12 11:35:08] Found bmr using specific pattern: 1510
[2026-02-12 11:35:08] Found water_percent using specific pattern: 55.3
[2026-02-12 11:35:08] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-02-12 11:35:08] Found bone_mass_lbs using specific pattern: 6.6
[2026-02-12 11:35:08] Found visceral_fat using specific pattern: 11
[2026-02-12 11:35:08] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-02-12 11:35:08] Found 12 metrics in total
[2026-02-12 11:35:08] Extracted data: {"date":"2026-02-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-12 11:35:08] Final data for insertion: {"date":"2026-02-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-12 11:35:08] Inserted record with ID: 104
[2026-02-12 11:35:08] Weight also stored in weights table
[2026-02-12 11:35:08] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-02-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"104"}
[2026-02-12 17:34:31] Health image upload received
[2026-02-12 17:34:31] User ID: 1
[2026-02-12 17:34:31] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_698e0f27c0d236.33372271.jpg
[2026-02-12 17:34:31] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_698e0f27c0d236.33372271.jpg
[2026-02-12 17:34:31] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_698e0f27c0d236.33372271.jpg
[2026-02-12 17:34:31] Using OCR.space API
[2026-02-12 17:34:31] Using API key: K8465...
[2026-02-12 17:34:33] OCR.space API request completed with HTTP code: 200
[2026-02-12 17:34:33] Request info: {"total_time":1.971715,"size_upload":115105,"size_download":8037}
[2026-02-12 17:34:33] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-02-12 17:34:33] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-02-12 17:34:33] Extracting health metrics from text
[2026-02-12 17:34:33] Found weight using specific pattern: 167.5
[2026-02-12 17:34:33] Found bmi using specific pattern: 26.9
[2026-02-12 17:34:33] Found body_fat_percent using specific pattern: 19.4
[2026-02-12 17:34:33] Found muscle_mass_lbs using specific pattern: 128.5
[2026-02-12 17:34:33] Found muscle_mass_percent using specific pattern: 76.7
[2026-02-12 17:34:33] Found bone_mass_percent using specific pattern: 3.9
[2026-02-12 17:34:33] Found bmr using specific pattern: 1510
[2026-02-12 17:34:33] Found water_percent using specific pattern: 55.3
[2026-02-12 17:34:33] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-02-12 17:34:33] Found bone_mass_lbs using specific pattern: 6.6
[2026-02-12 17:34:33] Found visceral_fat using specific pattern: 11
[2026-02-12 17:34:33] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-02-12 17:34:33] Found 12 metrics in total
[2026-02-12 17:34:33] Extracted data: {"date":"2026-02-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-12 17:34:33] Final data for insertion: {"date":"2026-02-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-12 17:34:33] Inserted record with ID: 105
[2026-02-12 17:34:33] Weight also stored in weights table
[2026-02-12 17:34:33] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-02-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"105"}
[2026-02-12 18:54:36] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-02-12 18:54:36] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-02-12 18:54:36] Using OCR.space API
[2026-02-12 18:54:36] Using API key: K8465...
[2026-02-12 18:54:37] OCR.space API request completed with HTTP code: 200
[2026-02-12 18:54:37] Request info: {"total_time":1.634672,"size_upload":113045,"size_download":7478}
[2026-02-12 18:54:37] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-02-12 18:54:37] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-02-12 18:54:37] Extracting health metrics from text
[2026-02-12 18:54:37] Found bmi but value 167.5 seems invalid - ignoring
[2026-02-12 18:54:37] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-12 18:54:37] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-12 18:54:37] Found visceral_fat using specific pattern: 6
[2026-02-12 18:54:37] Found weight using trends overview pattern: 167.5
[2026-02-12 18:54:37] Found bmi using trends overview pattern: 26.9
[2026-02-12 18:54:37] Found body_fat_percent using trends overview pattern: 19.4
[2026-02-12 18:54:37] Found water_percent using trends overview pattern: 55.3
[2026-02-12 18:54:37] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-02-12 18:54:37] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-02-12 18:54:37] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-12 18:54:37] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-02-12 18:54:37] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-12 18:54:37] No match found for bmr
[2026-02-12 18:54:37] No match found for body_fat_mass_lbs
[2026-02-12 18:54:37] No match found for bone_mass_lbs
[2026-02-12 18:54:37] Found 6 metrics in total
[2026-02-12 18:54:37] Critical metric muscle_mass_lbs is missing, using default value
[2026-02-12 18:54:37] Critical metric bone_mass_lbs is missing, using default value
[2026-02-12 18:54:37] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-02-12 18:54:37] Adding missing metric bone_mass_percent with default value: 3.9
[2026-02-12 18:54:37] Adding missing metric bmr with default value: 1510
[2026-02-12 18:54:37] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-02-12 19:24:50] Health image upload received
[2026-02-12 19:24:50] User ID: 1
[2026-02-12 19:24:50] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_698e2902011745.74614463.jpg
[2026-02-12 19:24:50] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_698e2902011745.74614463.jpg
[2026-02-12 19:24:50] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_698e2902011745.74614463.jpg
[2026-02-12 19:24:50] Using OCR.space API
[2026-02-12 19:24:50] Using API key: K8465...
[2026-02-12 19:24:51] OCR.space API request completed with HTTP code: 200
[2026-02-12 19:24:51] Request info: {"total_time":1.927587,"size_upload":113045,"size_download":7478}
[2026-02-12 19:24:51] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-02-12 19:24:51] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-02-12 19:24:51] Extracting health metrics from text
[2026-02-12 19:24:51] Found bmi but value 167.5 seems invalid - ignoring
[2026-02-12 19:24:51] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-12 19:24:51] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-12 19:24:51] Found visceral_fat using specific pattern: 6
[2026-02-12 19:24:51] Found weight using trends overview pattern: 167.5
[2026-02-12 19:24:51] Found bmi using trends overview pattern: 26.9
[2026-02-12 19:24:51] Found body_fat_percent using trends overview pattern: 19.4
[2026-02-12 19:24:51] Found water_percent using trends overview pattern: 55.3
[2026-02-12 19:24:51] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-02-12 19:24:51] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-02-12 19:24:51] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-12 19:24:51] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-02-12 19:24:51] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-12 19:24:51] No match found for bmr
[2026-02-12 19:24:51] No match found for body_fat_mass_lbs
[2026-02-12 19:24:51] No match found for bone_mass_lbs
[2026-02-12 19:24:51] Found 6 metrics in total
[2026-02-12 19:24:51] Critical metric muscle_mass_lbs is missing, using default value
[2026-02-12 19:24:51] Critical metric bone_mass_lbs is missing, using default value
[2026-02-12 19:24:51] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-02-12 19:24:51] Adding missing metric bone_mass_percent with default value: 3.9
[2026-02-12 19:24:51] Adding missing metric bmr with default value: 1510
[2026-02-12 19:24:51] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-02-12 19:24:51] Extracted data: {"date":"2026-02-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-12 19:24:51] Final data for insertion: {"date":"2026-02-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-12 19:24:51] Inserted record with ID: 106
[2026-02-12 19:24:51] Weight also stored in weights table
[2026-02-12 19:24:51] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-02-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"106"}
[2026-02-12 21:03:33] Health image upload received
[2026-02-12 21:03:33] User ID: 1
[2026-02-12 21:03:33] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_698e4025a6ef63.99330389.jpg
[2026-02-12 21:03:33] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_698e4025a6ef63.99330389.jpg
[2026-02-12 21:03:33] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_698e4025a6ef63.99330389.jpg
[2026-02-12 21:03:33] Using OCR.space API
[2026-02-12 21:03:33] Using API key: K8465...
[2026-02-12 21:03:35] OCR.space API request completed with HTTP code: 200
[2026-02-12 21:03:35] Request info: {"total_time":1.676114,"size_upload":113045,"size_download":7478}
[2026-02-12 21:03:35] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-02-12 21:03:35] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-02-12 21:03:35] Extracting health metrics from text
[2026-02-12 21:03:35] Found bmi but value 167.5 seems invalid - ignoring
[2026-02-12 21:03:35] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-12 21:03:35] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-12 21:03:35] Found visceral_fat using specific pattern: 6
[2026-02-12 21:03:35] Found weight using trends overview pattern: 167.5
[2026-02-12 21:03:35] Found bmi using trends overview pattern: 26.9
[2026-02-12 21:03:35] Found body_fat_percent using trends overview pattern: 19.4
[2026-02-12 21:03:35] Found water_percent using trends overview pattern: 55.3
[2026-02-12 21:03:35] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-02-12 21:03:35] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-02-12 21:03:35] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-12 21:03:35] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-02-12 21:03:35] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-12 21:03:35] No match found for bmr
[2026-02-12 21:03:35] No match found for body_fat_mass_lbs
[2026-02-12 21:03:35] No match found for bone_mass_lbs
[2026-02-12 21:03:35] Found 6 metrics in total
[2026-02-12 21:03:35] Critical metric muscle_mass_lbs is missing, using default value
[2026-02-12 21:03:35] Critical metric bone_mass_lbs is missing, using default value
[2026-02-12 21:03:35] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-02-12 21:03:35] Adding missing metric bone_mass_percent with default value: 3.9
[2026-02-12 21:03:35] Adding missing metric bmr with default value: 1510
[2026-02-12 21:03:35] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-02-12 21:03:35] Extracted data: {"date":"2026-02-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-12 21:03:35] Final data for insertion: {"date":"2026-02-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-12 21:03:35] Inserted record with ID: 107
[2026-02-12 21:03:35] Weight also stored in weights table
[2026-02-12 21:03:35] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-02-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"107"}
[2026-02-12 21:07:16] Health image upload received
[2026-02-12 21:07:16] Error: Missing or invalid user_id
[2026-02-12 21:07:16] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-02-12 21:07:29] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-02-12 21:07:29] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-02-12 21:07:29] Using OCR.space API
[2026-02-12 21:07:29] Using API key: K8465...
[2026-02-12 21:07:31] OCR.space API request completed with HTTP code: 200
[2026-02-12 21:07:31] Request info: {"total_time":1.64699,"size_upload":113045,"size_download":7478}
[2026-02-12 21:07:31] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-02-12 21:07:31] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-02-12 21:07:31] Extracting health metrics from text
[2026-02-12 21:07:31] Found bmi but value 167.5 seems invalid - ignoring
[2026-02-12 21:07:31] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-12 21:07:31] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-12 21:07:31] Found visceral_fat using specific pattern: 6
[2026-02-12 21:07:31] Found weight using trends overview pattern: 167.5
[2026-02-12 21:07:31] Found bmi using trends overview pattern: 26.9
[2026-02-12 21:07:31] Found body_fat_percent using trends overview pattern: 19.4
[2026-02-12 21:07:31] Found water_percent using trends overview pattern: 55.3
[2026-02-12 21:07:31] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-02-12 21:07:31] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-02-12 21:07:31] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-12 21:07:31] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-02-12 21:07:31] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-12 21:07:31] No match found for bmr
[2026-02-12 21:07:31] No match found for body_fat_mass_lbs
[2026-02-12 21:07:31] No match found for bone_mass_lbs
[2026-02-12 21:07:31] Found 6 metrics in total
[2026-02-12 21:07:31] Critical metric muscle_mass_lbs is missing, using default value
[2026-02-12 21:07:31] Critical metric bone_mass_lbs is missing, using default value
[2026-02-12 21:07:31] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-02-12 21:07:31] Adding missing metric bone_mass_percent with default value: 3.9
[2026-02-12 21:07:31] Adding missing metric bmr with default value: 1510
[2026-02-12 21:07:31] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-02-12 21:09:12] Health image upload received
[2026-02-12 21:09:12] User ID: 1
[2026-02-12 21:09:12] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_698e4178c7bc72.06952715.jpg
[2026-02-12 21:09:12] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_698e4178c7bc72.06952715.jpg
[2026-02-12 21:09:12] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_698e4178c7bc72.06952715.jpg
[2026-02-12 21:09:12] Using OCR.space API
[2026-02-12 21:09:12] Using API key: K8465...
[2026-02-12 21:09:14] OCR.space API request completed with HTTP code: 200
[2026-02-12 21:09:14] Request info: {"total_time":1.651828,"size_upload":115105,"size_download":8037}
[2026-02-12 21:09:14] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-02-12 21:09:14] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-02-12 21:09:14] Extracting health metrics from text
[2026-02-12 21:09:14] Found weight using specific pattern: 167.5
[2026-02-12 21:09:14] Found bmi using specific pattern: 26.9
[2026-02-12 21:09:14] Found body_fat_percent using specific pattern: 19.4
[2026-02-12 21:09:14] Found muscle_mass_lbs using specific pattern: 128.5
[2026-02-12 21:09:14] Found muscle_mass_percent using specific pattern: 76.7
[2026-02-12 21:09:14] Found bone_mass_percent using specific pattern: 3.9
[2026-02-12 21:09:14] Found bmr using specific pattern: 1510
[2026-02-12 21:09:14] Found water_percent using specific pattern: 55.3
[2026-02-12 21:09:14] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-02-12 21:09:14] Found bone_mass_lbs using specific pattern: 6.6
[2026-02-12 21:09:14] Found visceral_fat using specific pattern: 11
[2026-02-12 21:09:14] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-02-12 21:09:14] Found 12 metrics in total
[2026-02-12 21:09:14] Extracted data: {"date":"2026-02-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-12 21:09:14] Final data for insertion: {"date":"2026-02-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-12 21:09:14] Inserted record with ID: 108
[2026-02-12 21:09:14] Weight also stored in weights table
[2026-02-12 21:09:14] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-02-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"108"}
[2026-02-13 00:20:09] Health image upload received
[2026-02-13 00:20:09] Error: Missing or invalid user_id
[2026-02-13 00:20:09] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-02-15 18:08:22] Health image upload received
[2026-02-15 18:08:22] Error: Missing or invalid user_id
[2026-02-15 18:08:22] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-02-18 00:28:09] Health image upload received
[2026-02-18 00:28:09] Error: Missing or invalid user_id
[2026-02-18 00:28:09] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-02-20 14:10:32] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-02-20 14:10:32] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-02-20 14:10:32] Using OCR.space API
[2026-02-20 14:10:32] Using API key: K8465...
[2026-02-20 14:10:33] OCR.space API request completed with HTTP code: 200
[2026-02-20 14:10:33] Request info: {"total_time":1.666046,"size_upload":113045,"size_download":7478}
[2026-02-20 14:10:33] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-02-20 14:10:33] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-02-20 14:10:33] Extracting health metrics from text
[2026-02-20 14:10:33] Found bmi but value 167.5 seems invalid - ignoring
[2026-02-20 14:10:33] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-20 14:10:33] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-20 14:10:33] Found visceral_fat using specific pattern: 6
[2026-02-20 14:10:33] Found weight using trends overview pattern: 167.5
[2026-02-20 14:10:33] Found bmi using trends overview pattern: 26.9
[2026-02-20 14:10:33] Found body_fat_percent using trends overview pattern: 19.4
[2026-02-20 14:10:33] Found water_percent using trends overview pattern: 55.3
[2026-02-20 14:10:33] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-02-20 14:10:33] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-02-20 14:10:33] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-20 14:10:33] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-02-20 14:10:33] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-20 14:10:33] No match found for bmr
[2026-02-20 14:10:33] No match found for body_fat_mass_lbs
[2026-02-20 14:10:33] No match found for bone_mass_lbs
[2026-02-20 14:10:33] Found 6 metrics in total
[2026-02-20 14:10:33] Critical metric muscle_mass_lbs is missing, using default value
[2026-02-20 14:10:33] Critical metric bone_mass_lbs is missing, using default value
[2026-02-20 14:10:33] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-02-20 14:10:33] Adding missing metric bone_mass_percent with default value: 3.9
[2026-02-20 14:10:33] Adding missing metric bmr with default value: 1510
[2026-02-20 14:10:33] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-02-21 10:09:23] Health image upload received
[2026-02-21 10:09:23] User ID: 1
[2026-02-21 10:09:23] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69998453ca78b2.03365752.jpg
[2026-02-21 10:09:23] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69998453ca78b2.03365752.jpg
[2026-02-21 10:09:23] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69998453ca78b2.03365752.jpg
[2026-02-21 10:09:23] Using OCR.space API
[2026-02-21 10:09:23] Using API key: K8465...
[2026-02-21 10:09:25] OCR.space API request completed with HTTP code: 200
[2026-02-21 10:09:25] Request info: {"total_time":1.66402,"size_upload":113045,"size_download":7478}
[2026-02-21 10:09:25] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-02-21 10:09:25] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-02-21 10:09:25] Extracting health metrics from text
[2026-02-21 10:09:25] Found bmi but value 167.5 seems invalid - ignoring
[2026-02-21 10:09:25] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-21 10:09:25] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-21 10:09:25] Found visceral_fat using specific pattern: 6
[2026-02-21 10:09:25] Found weight using trends overview pattern: 167.5
[2026-02-21 10:09:25] Found bmi using trends overview pattern: 26.9
[2026-02-21 10:09:25] Found body_fat_percent using trends overview pattern: 19.4
[2026-02-21 10:09:25] Found water_percent using trends overview pattern: 55.3
[2026-02-21 10:09:25] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-02-21 10:09:25] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-02-21 10:09:25] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-21 10:09:25] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-02-21 10:09:25] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-21 10:09:25] No match found for bmr
[2026-02-21 10:09:25] No match found for body_fat_mass_lbs
[2026-02-21 10:09:25] No match found for bone_mass_lbs
[2026-02-21 10:09:25] Found 6 metrics in total
[2026-02-21 10:09:25] Critical metric muscle_mass_lbs is missing, using default value
[2026-02-21 10:09:25] Critical metric bone_mass_lbs is missing, using default value
[2026-02-21 10:09:25] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-02-21 10:09:25] Adding missing metric bone_mass_percent with default value: 3.9
[2026-02-21 10:09:25] Adding missing metric bmr with default value: 1510
[2026-02-21 10:09:25] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-02-21 10:09:25] Extracted data: {"date":"2026-02-21","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-21 10:09:25] Final data for insertion: {"date":"2026-02-21","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-21 10:09:25] Inserted record with ID: 109
[2026-02-21 10:09:25] Weight also stored in weights table
[2026-02-21 10:09:25] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-02-21","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"109"}
[2026-02-21 10:12:03] Health image upload received
[2026-02-21 10:12:03] Error: Missing or invalid user_id
[2026-02-21 10:12:03] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-02-21 18:24:22] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-02-21 18:24:22] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-02-21 18:24:22] Using OCR.space API
[2026-02-21 18:24:22] Using API key: K8465...
[2026-02-21 18:24:24] OCR.space API request completed with HTTP code: 200
[2026-02-21 18:24:24] Request info: {"total_time":1.622428,"size_upload":113045,"size_download":7478}
[2026-02-21 18:24:24] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-02-21 18:24:24] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-02-21 18:24:24] Extracting health metrics from text
[2026-02-21 18:24:24] Found bmi but value 167.5 seems invalid - ignoring
[2026-02-21 18:24:24] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-21 18:24:24] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-21 18:24:24] Found visceral_fat using specific pattern: 6
[2026-02-21 18:24:24] Found weight using trends overview pattern: 167.5
[2026-02-21 18:24:24] Found bmi using trends overview pattern: 26.9
[2026-02-21 18:24:24] Found body_fat_percent using trends overview pattern: 19.4
[2026-02-21 18:24:24] Found water_percent using trends overview pattern: 55.3
[2026-02-21 18:24:24] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-02-21 18:24:24] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-02-21 18:24:24] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-21 18:24:24] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-02-21 18:24:24] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-21 18:24:24] No match found for bmr
[2026-02-21 18:24:24] No match found for body_fat_mass_lbs
[2026-02-21 18:24:24] No match found for bone_mass_lbs
[2026-02-21 18:24:24] Found 6 metrics in total
[2026-02-21 18:24:24] Critical metric muscle_mass_lbs is missing, using default value
[2026-02-21 18:24:24] Critical metric bone_mass_lbs is missing, using default value
[2026-02-21 18:24:24] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-02-21 18:24:24] Adding missing metric bone_mass_percent with default value: 3.9
[2026-02-21 18:24:24] Adding missing metric bmr with default value: 1510
[2026-02-21 18:24:24] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-02-23 02:14:50] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-02-23 02:14:50] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-02-23 02:14:50] Using OCR.space API
[2026-02-23 02:14:50] Using API key: K8465...
[2026-02-23 02:14:52] OCR.space API request completed with HTTP code: 200
[2026-02-23 02:14:52] Request info: {"total_time":1.938116,"size_upload":113045,"size_download":7478}
[2026-02-23 02:14:52] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-02-23 02:14:52] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-02-23 02:14:52] Extracting health metrics from text
[2026-02-23 02:14:52] Found bmi but value 167.5 seems invalid - ignoring
[2026-02-23 02:14:52] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-23 02:14:52] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-23 02:14:52] Found visceral_fat using specific pattern: 6
[2026-02-23 02:14:52] Found weight using trends overview pattern: 167.5
[2026-02-23 02:14:52] Found bmi using trends overview pattern: 26.9
[2026-02-23 02:14:52] Found body_fat_percent using trends overview pattern: 19.4
[2026-02-23 02:14:52] Found water_percent using trends overview pattern: 55.3
[2026-02-23 02:14:52] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-02-23 02:14:52] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-02-23 02:14:52] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-23 02:14:52] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-02-23 02:14:52] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-23 02:14:52] No match found for bmr
[2026-02-23 02:14:52] No match found for body_fat_mass_lbs
[2026-02-23 02:14:52] No match found for bone_mass_lbs
[2026-02-23 02:14:52] Found 6 metrics in total
[2026-02-23 02:14:52] Critical metric muscle_mass_lbs is missing, using default value
[2026-02-23 02:14:52] Critical metric bone_mass_lbs is missing, using default value
[2026-02-23 02:14:52] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-02-23 02:14:52] Adding missing metric bone_mass_percent with default value: 3.9
[2026-02-23 02:14:52] Adding missing metric bmr with default value: 1510
[2026-02-23 02:14:52] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-02-23 02:16:13] Health image upload received
[2026-02-23 02:16:13] User ID: 1
[2026-02-23 02:16:13] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_699bb86db80a58.23766347.jpg
[2026-02-23 02:16:13] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_699bb86db80a58.23766347.jpg
[2026-02-23 02:16:13] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_699bb86db80a58.23766347.jpg
[2026-02-23 02:16:13] Using OCR.space API
[2026-02-23 02:16:13] Using API key: K8465...
[2026-02-23 02:16:15] OCR.space API request completed with HTTP code: 200
[2026-02-23 02:16:15] Request info: {"total_time":1.632625,"size_upload":113045,"size_download":7478}
[2026-02-23 02:16:15] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-02-23 02:16:15] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-02-23 02:16:15] Extracting health metrics from text
[2026-02-23 02:16:15] Found bmi but value 167.5 seems invalid - ignoring
[2026-02-23 02:16:15] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-23 02:16:15] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-23 02:16:15] Found visceral_fat using specific pattern: 6
[2026-02-23 02:16:15] Found weight using trends overview pattern: 167.5
[2026-02-23 02:16:15] Found bmi using trends overview pattern: 26.9
[2026-02-23 02:16:15] Found body_fat_percent using trends overview pattern: 19.4
[2026-02-23 02:16:15] Found water_percent using trends overview pattern: 55.3
[2026-02-23 02:16:15] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-02-23 02:16:15] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-02-23 02:16:15] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-23 02:16:15] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-02-23 02:16:15] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-23 02:16:15] No match found for bmr
[2026-02-23 02:16:15] No match found for body_fat_mass_lbs
[2026-02-23 02:16:15] No match found for bone_mass_lbs
[2026-02-23 02:16:15] Found 6 metrics in total
[2026-02-23 02:16:15] Critical metric muscle_mass_lbs is missing, using default value
[2026-02-23 02:16:15] Critical metric bone_mass_lbs is missing, using default value
[2026-02-23 02:16:15] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-02-23 02:16:15] Adding missing metric bone_mass_percent with default value: 3.9
[2026-02-23 02:16:15] Adding missing metric bmr with default value: 1510
[2026-02-23 02:16:15] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-02-23 02:16:15] Extracted data: {"date":"2026-02-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-23 02:16:15] Final data for insertion: {"date":"2026-02-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-23 02:16:15] Inserted record with ID: 110
[2026-02-23 02:16:15] Weight also stored in weights table
[2026-02-23 02:16:15] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-02-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"110"}
[2026-02-23 02:17:42] Health image upload received
[2026-02-23 02:17:42] User ID: 1
[2026-02-23 02:17:42] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_699bb8c64c1ce7.09821305.jpg
[2026-02-23 02:17:42] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_699bb8c64c1ce7.09821305.jpg
[2026-02-23 02:17:42] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_699bb8c64c1ce7.09821305.jpg
[2026-02-23 02:17:42] Using OCR.space API
[2026-02-23 02:17:42] Using API key: K8465...
[2026-02-23 02:17:43] OCR.space API request completed with HTTP code: 200
[2026-02-23 02:17:43] Request info: {"total_time":1.632838,"size_upload":115105,"size_download":8037}
[2026-02-23 02:17:43] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-02-23 02:17:43] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-02-23 02:17:43] Extracting health metrics from text
[2026-02-23 02:17:43] Found weight using specific pattern: 167.5
[2026-02-23 02:17:43] Found bmi using specific pattern: 26.9
[2026-02-23 02:17:43] Found body_fat_percent using specific pattern: 19.4
[2026-02-23 02:17:43] Found muscle_mass_lbs using specific pattern: 128.5
[2026-02-23 02:17:43] Found muscle_mass_percent using specific pattern: 76.7
[2026-02-23 02:17:43] Found bone_mass_percent using specific pattern: 3.9
[2026-02-23 02:17:43] Found bmr using specific pattern: 1510
[2026-02-23 02:17:43] Found water_percent using specific pattern: 55.3
[2026-02-23 02:17:43] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-02-23 02:17:43] Found bone_mass_lbs using specific pattern: 6.6
[2026-02-23 02:17:43] Found visceral_fat using specific pattern: 11
[2026-02-23 02:17:43] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-02-23 02:17:43] Found 12 metrics in total
[2026-02-23 02:17:43] Extracted data: {"date":"2026-02-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-23 02:17:43] Final data for insertion: {"date":"2026-02-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-23 02:17:43] Inserted record with ID: 111
[2026-02-23 02:17:43] Weight also stored in weights table
[2026-02-23 02:17:43] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-02-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"111"}
[2026-02-23 02:27:21] Health image upload received
[2026-02-23 02:27:21] Error: Missing or invalid user_id
[2026-02-23 02:27:21] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-02-23 03:09:27] Health image upload received
[2026-02-23 03:09:27] Error: Missing or invalid user_id
[2026-02-23 03:09:27] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-02-23 13:18:24] Health image upload received
[2026-02-23 13:18:24] User ID: 1
[2026-02-23 13:18:24] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_699c53a024e6e1.50903381.jpg
[2026-02-23 13:18:24] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_699c53a024e6e1.50903381.jpg
[2026-02-23 13:18:24] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_699c53a024e6e1.50903381.jpg
[2026-02-23 13:18:24] Using OCR.space API
[2026-02-23 13:18:24] Using API key: K8465...
[2026-02-23 13:18:26] OCR.space API request completed with HTTP code: 200
[2026-02-23 13:18:26] Request info: {"total_time":1.859545,"size_upload":421661,"size_download":8406}
[2026-02-23 13:18:26] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":200.0,"Top":117.0,"Height":40.0,"Width":171.0}],"MaxHeight":40.0,"MinTop":117.0},{"LineText":"161.3 Ibs","Words":[{"WordText":"161.3","Left":102.0,"Top":303.0,"Height":98.0,"Width":206.0},{"WordText":"Ibs","Left":320.0,"Top":303.0,"Height":98.0,"Width":94.0}],"MaxHeight":98.0,"MinTop":303.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":122.0,"Top":425.0,"Height":44.0,"Width":112.0}],"Max...
[2026-02-23 13:18:26] OCR.space API extracted text: WEIGHT
161.3 Ibs
HIGH
% BODY FAT %
18.3%
Standard
MASS %
77.8%
EXCELLENT
36 BMR
1451 kcal
LOW
BODY
*...
[2026-02-23 13:18:26] Extracting health metrics from text
[2026-02-23 13:18:26] Found bmi using specific pattern: 25.9
[2026-02-23 13:18:26] Found body_fat_percent using specific pattern: 18.3
[2026-02-23 13:18:26] Found bone_mass_percent using specific pattern: 4.0
[2026-02-23 13:18:26] Found bmr using specific pattern: 1451
[2026-02-23 13:18:26] Found water_percent using specific pattern: 56.0
[2026-02-23 13:18:26] Found bone_mass_lbs using specific pattern: 6.3
[2026-02-23 13:18:26] Found visceral_fat using specific pattern: 11
[2026-02-23 13:18:26] Found weight in trends overview but value 6.3 seems invalid - ignoring
[2026-02-23 13:18:26] Found weight using generic pattern: 161.3
[2026-02-23 13:18:26] No match found for lean_body_mass_lbs
[2026-02-23 13:18:26] Found muscle_mass_lbs using generic pattern: 125.6
[2026-02-23 13:18:26] No match found for muscle_mass_percent
[2026-02-23 13:18:26] Found body_fat_mass_lbs using generic pattern: 29.3
[2026-02-23 13:18:26] Found 10 metrics in total
[2026-02-23 13:18:26] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-02-23 13:18:26] Adding missing metric muscle_mass_percent with default value: 76.7
[2026-02-23 13:18:26] Extracted data: {"date":"2026-02-23","weight":161.3,"body_fat_percent":18.3,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":125.6,"bmi":25.9,"water_percent":56,"muscle_mass_percent":76.7,"bone_mass_percent":4,"bmr":1451,"visceral_fat":11,"body_fat_mass_lbs":29.3,"bone_mass_lbs":6.3}
[2026-02-23 13:18:26] Final data for insertion: {"date":"2026-02-23","weight":161.3,"body_fat_percent":18.3,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":125.6,"bmi":25.9,"water_percent":56,"muscle_mass_percent":76.7,"bone_mass_percent":4,"bmr":1451,"visceral_fat":11,"body_fat_mass_lbs":29.3,"bone_mass_lbs":6.3}
[2026-02-23 13:18:26] Inserted record with ID: 112
[2026-02-23 13:18:26] Weight also stored in weights table
[2026-02-23 13:18:26] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-02-23","weight":161.3,"body_fat_percent":18.3,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":125.6,"bmi":25.9,"water_percent":56,"muscle_mass_percent":76.7,"bone_mass_percent":4,"bmr":1451,"visceral_fat":11,"body_fat_mass_lbs":29.3,"bone_mass_lbs":6.3},"record_id":"112"}
[2026-02-24 05:46:24] Health image upload received
[2026-02-24 05:46:24] User ID: 1
[2026-02-24 05:46:24] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_699d3b301e8247.02530257.jpg
[2026-02-24 05:46:24] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_699d3b301e8247.02530257.jpg
[2026-02-24 05:46:24] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_699d3b301e8247.02530257.jpg
[2026-02-24 05:46:24] Using OCR.space API
[2026-02-24 05:46:24] Using API key: K8465...
[2026-02-24 05:46:26] OCR.space API request completed with HTTP code: 200
[2026-02-24 05:46:26] Request info: {"total_time":2.023034,"size_upload":115105,"size_download":8037}
[2026-02-24 05:46:26] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-02-24 05:46:26] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-02-24 05:46:26] Extracting health metrics from text
[2026-02-24 05:46:26] Found weight using specific pattern: 167.5
[2026-02-24 05:46:26] Found bmi using specific pattern: 26.9
[2026-02-24 05:46:26] Found body_fat_percent using specific pattern: 19.4
[2026-02-24 05:46:26] Found muscle_mass_lbs using specific pattern: 128.5
[2026-02-24 05:46:26] Found muscle_mass_percent using specific pattern: 76.7
[2026-02-24 05:46:26] Found bone_mass_percent using specific pattern: 3.9
[2026-02-24 05:46:26] Found bmr using specific pattern: 1510
[2026-02-24 05:46:26] Found water_percent using specific pattern: 55.3
[2026-02-24 05:46:26] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-02-24 05:46:26] Found bone_mass_lbs using specific pattern: 6.6
[2026-02-24 05:46:26] Found visceral_fat using specific pattern: 11
[2026-02-24 05:46:26] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-02-24 05:46:26] Found 12 metrics in total
[2026-02-24 05:46:26] Extracted data: {"date":"2026-02-24","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-24 05:46:26] Final data for insertion: {"date":"2026-02-24","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-24 05:46:26] Inserted record with ID: 113
[2026-02-24 05:46:26] Weight also stored in weights table
[2026-02-24 05:46:26] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-02-24","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"113"}
[2026-02-24 05:46:38] Health image upload received
[2026-02-24 05:46:38] Error: Missing or invalid user_id
[2026-02-24 05:46:38] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-02-24 05:46:44] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-02-24 05:46:44] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-02-24 05:46:44] Using OCR.space API
[2026-02-24 05:46:44] Using API key: K8465...
[2026-02-24 05:46:46] OCR.space API request completed with HTTP code: 200
[2026-02-24 05:46:46] Request info: {"total_time":1.958895,"size_upload":113045,"size_download":7478}
[2026-02-24 05:46:46] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-02-24 05:46:46] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-02-24 05:46:46] Extracting health metrics from text
[2026-02-24 05:46:46] Found bmi but value 167.5 seems invalid - ignoring
[2026-02-24 05:46:46] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-24 05:46:46] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-24 05:46:46] Found visceral_fat using specific pattern: 6
[2026-02-24 05:46:46] Found weight using trends overview pattern: 167.5
[2026-02-24 05:46:46] Found bmi using trends overview pattern: 26.9
[2026-02-24 05:46:46] Found body_fat_percent using trends overview pattern: 19.4
[2026-02-24 05:46:46] Found water_percent using trends overview pattern: 55.3
[2026-02-24 05:46:46] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-02-24 05:46:46] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-02-24 05:46:46] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-24 05:46:46] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-02-24 05:46:46] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-24 05:46:46] No match found for bmr
[2026-02-24 05:46:46] No match found for body_fat_mass_lbs
[2026-02-24 05:46:46] No match found for bone_mass_lbs
[2026-02-24 05:46:46] Found 6 metrics in total
[2026-02-24 05:46:46] Critical metric muscle_mass_lbs is missing, using default value
[2026-02-24 05:46:46] Critical metric bone_mass_lbs is missing, using default value
[2026-02-24 05:46:46] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-02-24 05:46:46] Adding missing metric bone_mass_percent with default value: 3.9
[2026-02-24 05:46:46] Adding missing metric bmr with default value: 1510
[2026-02-24 05:46:46] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-02-24 05:47:38] Health image upload received
[2026-02-24 05:47:38] User ID: 1
[2026-02-24 05:47:38] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_699d3b7a62d234.41900093.jpg
[2026-02-24 05:47:38] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_699d3b7a62d234.41900093.jpg
[2026-02-24 05:47:38] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_699d3b7a62d234.41900093.jpg
[2026-02-24 05:47:38] Using OCR.space API
[2026-02-24 05:47:38] Using API key: K8465...
[2026-02-24 05:47:40] OCR.space API request completed with HTTP code: 200
[2026-02-24 05:47:40] Request info: {"total_time":1.78915,"size_upload":113045,"size_download":7478}
[2026-02-24 05:47:40] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-02-24 05:47:40] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-02-24 05:47:40] Extracting health metrics from text
[2026-02-24 05:47:40] Found bmi but value 167.5 seems invalid - ignoring
[2026-02-24 05:47:40] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-24 05:47:40] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-24 05:47:40] Found visceral_fat using specific pattern: 6
[2026-02-24 05:47:40] Found weight using trends overview pattern: 167.5
[2026-02-24 05:47:40] Found bmi using trends overview pattern: 26.9
[2026-02-24 05:47:40] Found body_fat_percent using trends overview pattern: 19.4
[2026-02-24 05:47:40] Found water_percent using trends overview pattern: 55.3
[2026-02-24 05:47:40] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-02-24 05:47:40] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-02-24 05:47:40] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-24 05:47:40] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-02-24 05:47:40] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-24 05:47:40] No match found for bmr
[2026-02-24 05:47:40] No match found for body_fat_mass_lbs
[2026-02-24 05:47:40] No match found for bone_mass_lbs
[2026-02-24 05:47:40] Found 6 metrics in total
[2026-02-24 05:47:40] Critical metric muscle_mass_lbs is missing, using default value
[2026-02-24 05:47:40] Critical metric bone_mass_lbs is missing, using default value
[2026-02-24 05:47:40] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-02-24 05:47:40] Adding missing metric bone_mass_percent with default value: 3.9
[2026-02-24 05:47:40] Adding missing metric bmr with default value: 1510
[2026-02-24 05:47:40] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-02-24 05:47:40] Extracted data: {"date":"2026-02-24","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-24 05:47:40] Final data for insertion: {"date":"2026-02-24","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-24 05:47:40] Inserted record with ID: 114
[2026-02-24 05:47:40] Weight also stored in weights table
[2026-02-24 05:47:40] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-02-24","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"114"}
[2026-02-28 05:02:15] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-02-28 05:02:15] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-02-28 05:02:15] Using OCR.space API
[2026-02-28 05:02:15] Using API key: K8465...
[2026-02-28 05:02:17] OCR.space API request completed with HTTP code: 200
[2026-02-28 05:02:17] Request info: {"total_time":1.690435,"size_upload":113045,"size_download":7478}
[2026-02-28 05:02:17] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-02-28 05:02:17] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-02-28 05:02:17] Extracting health metrics from text
[2026-02-28 05:02:17] Found bmi but value 167.5 seems invalid - ignoring
[2026-02-28 05:02:17] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-28 05:02:17] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-28 05:02:17] Found visceral_fat using specific pattern: 6
[2026-02-28 05:02:17] Found weight using trends overview pattern: 167.5
[2026-02-28 05:02:17] Found bmi using trends overview pattern: 26.9
[2026-02-28 05:02:17] Found body_fat_percent using trends overview pattern: 19.4
[2026-02-28 05:02:17] Found water_percent using trends overview pattern: 55.3
[2026-02-28 05:02:17] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-02-28 05:02:17] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-02-28 05:02:17] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-02-28 05:02:17] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-02-28 05:02:17] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-02-28 05:02:17] No match found for bmr
[2026-02-28 05:02:17] No match found for body_fat_mass_lbs
[2026-02-28 05:02:17] No match found for bone_mass_lbs
[2026-02-28 05:02:17] Found 6 metrics in total
[2026-02-28 05:02:17] Critical metric muscle_mass_lbs is missing, using default value
[2026-02-28 05:02:17] Critical metric bone_mass_lbs is missing, using default value
[2026-02-28 05:02:17] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-02-28 05:02:17] Adding missing metric bone_mass_percent with default value: 3.9
[2026-02-28 05:02:17] Adding missing metric bmr with default value: 1510
[2026-02-28 05:02:17] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-02-28 05:05:15] Health image upload received
[2026-02-28 05:05:15] User ID: 1
[2026-02-28 05:05:15] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69a2778b3dd3d1.74624680.jpg
[2026-02-28 05:05:15] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69a2778b3dd3d1.74624680.jpg
[2026-02-28 05:05:15] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69a2778b3dd3d1.74624680.jpg
[2026-02-28 05:05:15] Using OCR.space API
[2026-02-28 05:05:15] Using API key: K8465...
[2026-02-28 05:05:16] OCR.space API request completed with HTTP code: 200
[2026-02-28 05:05:16] Request info: {"total_time":1.664834,"size_upload":115105,"size_download":8037}
[2026-02-28 05:05:16] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-02-28 05:05:16] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-02-28 05:05:16] Extracting health metrics from text
[2026-02-28 05:05:16] Found weight using specific pattern: 167.5
[2026-02-28 05:05:16] Found bmi using specific pattern: 26.9
[2026-02-28 05:05:16] Found body_fat_percent using specific pattern: 19.4
[2026-02-28 05:05:16] Found muscle_mass_lbs using specific pattern: 128.5
[2026-02-28 05:05:16] Found muscle_mass_percent using specific pattern: 76.7
[2026-02-28 05:05:16] Found bone_mass_percent using specific pattern: 3.9
[2026-02-28 05:05:16] Found bmr using specific pattern: 1510
[2026-02-28 05:05:16] Found water_percent using specific pattern: 55.3
[2026-02-28 05:05:16] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-02-28 05:05:16] Found bone_mass_lbs using specific pattern: 6.6
[2026-02-28 05:05:16] Found visceral_fat using specific pattern: 11
[2026-02-28 05:05:16] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-02-28 05:05:16] Found 12 metrics in total
[2026-02-28 05:05:16] Extracted data: {"date":"2026-02-28","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-28 05:05:16] Final data for insertion: {"date":"2026-02-28","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-28 05:05:16] Inserted record with ID: 115
[2026-02-28 05:05:16] Weight also stored in weights table
[2026-02-28 05:05:16] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-02-28","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"115"}
[2026-02-28 11:03:24] Health image upload received
[2026-02-28 11:03:24] User ID: 1
[2026-02-28 11:03:24] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69a2cb7ce4d9d0.40702041.jpg
[2026-02-28 11:03:24] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69a2cb7ce4d9d0.40702041.jpg
[2026-02-28 11:03:24] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69a2cb7ce4d9d0.40702041.jpg
[2026-02-28 11:03:24] Using OCR.space API
[2026-02-28 11:03:24] Using API key: K8465...
[2026-02-28 11:03:27] OCR.space API request completed with HTTP code: 200
[2026-02-28 11:03:27] Request info: {"total_time":2.238085,"size_upload":115105,"size_download":8038}
[2026-02-28 11:03:27] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-02-28 11:03:27] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-02-28 11:03:27] Extracting health metrics from text
[2026-02-28 11:03:27] Found weight using specific pattern: 167.5
[2026-02-28 11:03:27] Found bmi using specific pattern: 26.9
[2026-02-28 11:03:27] Found body_fat_percent using specific pattern: 19.4
[2026-02-28 11:03:27] Found muscle_mass_lbs using specific pattern: 128.5
[2026-02-28 11:03:27] Found muscle_mass_percent using specific pattern: 76.7
[2026-02-28 11:03:27] Found bone_mass_percent using specific pattern: 3.9
[2026-02-28 11:03:27] Found bmr using specific pattern: 1510
[2026-02-28 11:03:27] Found water_percent using specific pattern: 55.3
[2026-02-28 11:03:27] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-02-28 11:03:27] Found bone_mass_lbs using specific pattern: 6.6
[2026-02-28 11:03:27] Found visceral_fat using specific pattern: 11
[2026-02-28 11:03:27] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-02-28 11:03:27] Found 12 metrics in total
[2026-02-28 11:03:27] Extracted data: {"date":"2026-02-28","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-28 11:03:27] Final data for insertion: {"date":"2026-02-28","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-02-28 11:03:27] Inserted record with ID: 116
[2026-02-28 11:03:27] Weight also stored in weights table
[2026-02-28 11:03:27] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-02-28","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"116"}
[2026-03-02 03:23:17] Health image upload received
[2026-03-02 03:23:17] Error: Missing or invalid user_id
[2026-03-02 03:23:17] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-03-02 06:32:35] Health image upload received
[2026-03-02 06:32:35] User ID: 1
[2026-03-02 06:32:35] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69a52f03638202.08829475.jpg
[2026-03-02 06:32:35] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69a52f03638202.08829475.jpg
[2026-03-02 06:32:35] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69a52f03638202.08829475.jpg
[2026-03-02 06:32:35] Using OCR.space API
[2026-03-02 06:32:35] Using API key: K8465...
[2026-03-02 06:32:37] OCR.space API request completed with HTTP code: 200
[2026-03-02 06:32:37] Request info: {"total_time":2.273825,"size_upload":115105,"size_download":8038}
[2026-03-02 06:32:37] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-03-02 06:32:37] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-03-02 06:32:37] Extracting health metrics from text
[2026-03-02 06:32:37] Found weight using specific pattern: 167.5
[2026-03-02 06:32:37] Found bmi using specific pattern: 26.9
[2026-03-02 06:32:37] Found body_fat_percent using specific pattern: 19.4
[2026-03-02 06:32:37] Found muscle_mass_lbs using specific pattern: 128.5
[2026-03-02 06:32:37] Found muscle_mass_percent using specific pattern: 76.7
[2026-03-02 06:32:37] Found bone_mass_percent using specific pattern: 3.9
[2026-03-02 06:32:37] Found bmr using specific pattern: 1510
[2026-03-02 06:32:37] Found water_percent using specific pattern: 55.3
[2026-03-02 06:32:37] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-03-02 06:32:37] Found bone_mass_lbs using specific pattern: 6.6
[2026-03-02 06:32:37] Found visceral_fat using specific pattern: 11
[2026-03-02 06:32:37] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-03-02 06:32:37] Found 12 metrics in total
[2026-03-02 06:32:37] Extracted data: {"date":"2026-03-02","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-02 06:32:37] Final data for insertion: {"date":"2026-03-02","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-02 06:32:37] Inserted record with ID: 117
[2026-03-02 06:32:37] Weight also stored in weights table
[2026-03-02 06:32:37] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-02","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"117"}
[2026-03-02 19:17:35] Health image upload received
[2026-03-02 19:17:35] User ID: 1
[2026-03-02 19:17:35] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69a5e24f885882.58558907.jpg
[2026-03-02 19:17:35] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69a5e24f885882.58558907.jpg
[2026-03-02 19:17:35] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69a5e24f885882.58558907.jpg
[2026-03-02 19:17:35] Using OCR.space API
[2026-03-02 19:17:35] Using API key: K8465...
[2026-03-02 19:17:37] OCR.space API request completed with HTTP code: 200
[2026-03-02 19:17:37] Request info: {"total_time":1.639733,"size_upload":115105,"size_download":8037}
[2026-03-02 19:17:37] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-03-02 19:17:37] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-03-02 19:17:37] Extracting health metrics from text
[2026-03-02 19:17:37] Found weight using specific pattern: 167.5
[2026-03-02 19:17:37] Found bmi using specific pattern: 26.9
[2026-03-02 19:17:37] Found body_fat_percent using specific pattern: 19.4
[2026-03-02 19:17:37] Found muscle_mass_lbs using specific pattern: 128.5
[2026-03-02 19:17:37] Found muscle_mass_percent using specific pattern: 76.7
[2026-03-02 19:17:37] Found bone_mass_percent using specific pattern: 3.9
[2026-03-02 19:17:37] Found bmr using specific pattern: 1510
[2026-03-02 19:17:37] Found water_percent using specific pattern: 55.3
[2026-03-02 19:17:37] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-03-02 19:17:37] Found bone_mass_lbs using specific pattern: 6.6
[2026-03-02 19:17:37] Found visceral_fat using specific pattern: 11
[2026-03-02 19:17:37] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-03-02 19:17:37] Found 12 metrics in total
[2026-03-02 19:17:37] Extracted data: {"date":"2026-03-02","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-02 19:17:37] Final data for insertion: {"date":"2026-03-02","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-02 19:17:37] Inserted record with ID: 118
[2026-03-02 19:17:37] Weight also stored in weights table
[2026-03-02 19:17:37] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-02","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"118"}
[2026-03-04 00:22:51] Health image upload received
[2026-03-04 00:22:51] User ID: 1
[2026-03-04 00:22:51] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69a77b5b2b8414.48665407.jpg
[2026-03-04 00:22:51] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69a77b5b2b8414.48665407.jpg
[2026-03-04 00:22:51] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69a77b5b2b8414.48665407.jpg
[2026-03-04 00:22:51] Using OCR.space API
[2026-03-04 00:22:51] Using API key: K8465...
[2026-03-04 00:22:52] OCR.space API request completed with HTTP code: 200
[2026-03-04 00:22:52] Request info: {"total_time":1.560561,"size_upload":115105,"size_download":8037}
[2026-03-04 00:22:52] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-03-04 00:22:52] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-03-04 00:22:52] Extracting health metrics from text
[2026-03-04 00:22:52] Found weight using specific pattern: 167.5
[2026-03-04 00:22:52] Found bmi using specific pattern: 26.9
[2026-03-04 00:22:52] Found body_fat_percent using specific pattern: 19.4
[2026-03-04 00:22:52] Found muscle_mass_lbs using specific pattern: 128.5
[2026-03-04 00:22:52] Found muscle_mass_percent using specific pattern: 76.7
[2026-03-04 00:22:52] Found bone_mass_percent using specific pattern: 3.9
[2026-03-04 00:22:52] Found bmr using specific pattern: 1510
[2026-03-04 00:22:52] Found water_percent using specific pattern: 55.3
[2026-03-04 00:22:52] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-03-04 00:22:52] Found bone_mass_lbs using specific pattern: 6.6
[2026-03-04 00:22:52] Found visceral_fat using specific pattern: 11
[2026-03-04 00:22:52] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-03-04 00:22:52] Found 12 metrics in total
[2026-03-04 00:22:52] Extracted data: {"date":"2026-03-04","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-04 00:22:52] Final data for insertion: {"date":"2026-03-04","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-04 00:22:52] Inserted record with ID: 119
[2026-03-04 00:22:52] Weight also stored in weights table
[2026-03-04 00:22:52] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-04","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"119"}
[2026-03-04 00:36:01] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-04 00:36:01] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-04 00:36:01] Using OCR.space API
[2026-03-04 00:36:01] Using API key: K8465...
[2026-03-04 00:36:03] OCR.space API request completed with HTTP code: 200
[2026-03-04 00:36:03] Request info: {"total_time":1.936569,"size_upload":113045,"size_download":7478}
[2026-03-04 00:36:03] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-03-04 00:36:03] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-03-04 00:36:03] Extracting health metrics from text
[2026-03-04 00:36:03] Found bmi but value 167.5 seems invalid - ignoring
[2026-03-04 00:36:03] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-04 00:36:03] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-04 00:36:03] Found visceral_fat using specific pattern: 6
[2026-03-04 00:36:03] Found weight using trends overview pattern: 167.5
[2026-03-04 00:36:03] Found bmi using trends overview pattern: 26.9
[2026-03-04 00:36:03] Found body_fat_percent using trends overview pattern: 19.4
[2026-03-04 00:36:03] Found water_percent using trends overview pattern: 55.3
[2026-03-04 00:36:03] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-03-04 00:36:03] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-03-04 00:36:03] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-04 00:36:03] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-03-04 00:36:03] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-04 00:36:03] No match found for bmr
[2026-03-04 00:36:03] No match found for body_fat_mass_lbs
[2026-03-04 00:36:03] No match found for bone_mass_lbs
[2026-03-04 00:36:03] Found 6 metrics in total
[2026-03-04 00:36:03] Critical metric muscle_mass_lbs is missing, using default value
[2026-03-04 00:36:03] Critical metric bone_mass_lbs is missing, using default value
[2026-03-04 00:36:03] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-03-04 00:36:03] Adding missing metric bone_mass_percent with default value: 3.9
[2026-03-04 00:36:03] Adding missing metric bmr with default value: 1510
[2026-03-04 00:36:03] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-03-04 00:38:07] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-04 00:38:07] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-04 00:38:07] Using OCR.space API
[2026-03-04 00:38:07] Using API key: K8465...
[2026-03-04 00:38:09] OCR.space API request completed with HTTP code: 200
[2026-03-04 00:38:09] Request info: {"total_time":1.877149,"size_upload":113045,"size_download":7478}
[2026-03-04 00:38:09] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-03-04 00:38:09] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-03-04 00:38:09] Extracting health metrics from text
[2026-03-04 00:38:09] Found bmi but value 167.5 seems invalid - ignoring
[2026-03-04 00:38:09] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-04 00:38:09] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-04 00:38:09] Found visceral_fat using specific pattern: 6
[2026-03-04 00:38:09] Found weight using trends overview pattern: 167.5
[2026-03-04 00:38:09] Found bmi using trends overview pattern: 26.9
[2026-03-04 00:38:09] Found body_fat_percent using trends overview pattern: 19.4
[2026-03-04 00:38:09] Found water_percent using trends overview pattern: 55.3
[2026-03-04 00:38:09] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-03-04 00:38:09] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-03-04 00:38:09] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-04 00:38:09] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-03-04 00:38:09] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-04 00:38:09] No match found for bmr
[2026-03-04 00:38:09] No match found for body_fat_mass_lbs
[2026-03-04 00:38:09] No match found for bone_mass_lbs
[2026-03-04 00:38:09] Found 6 metrics in total
[2026-03-04 00:38:09] Critical metric muscle_mass_lbs is missing, using default value
[2026-03-04 00:38:09] Critical metric bone_mass_lbs is missing, using default value
[2026-03-04 00:38:09] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-03-04 00:38:09] Adding missing metric bone_mass_percent with default value: 3.9
[2026-03-04 00:38:09] Adding missing metric bmr with default value: 1510
[2026-03-04 00:38:09] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-03-04 01:06:07] Health image upload received
[2026-03-04 01:06:07] User ID: 1
[2026-03-04 01:06:07] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69a7857f9e13b1.72507031.jpg
[2026-03-04 01:06:07] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69a7857f9e13b1.72507031.jpg
[2026-03-04 01:06:07] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69a7857f9e13b1.72507031.jpg
[2026-03-04 01:06:07] Using OCR.space API
[2026-03-04 01:06:07] Using API key: K8465...
[2026-03-04 01:06:09] OCR.space API request completed with HTTP code: 200
[2026-03-04 01:06:09] Request info: {"total_time":1.568301,"size_upload":113045,"size_download":7478}
[2026-03-04 01:06:09] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-03-04 01:06:09] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-03-04 01:06:09] Extracting health metrics from text
[2026-03-04 01:06:09] Found bmi but value 167.5 seems invalid - ignoring
[2026-03-04 01:06:09] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-04 01:06:09] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-04 01:06:09] Found visceral_fat using specific pattern: 6
[2026-03-04 01:06:09] Found weight using trends overview pattern: 167.5
[2026-03-04 01:06:09] Found bmi using trends overview pattern: 26.9
[2026-03-04 01:06:09] Found body_fat_percent using trends overview pattern: 19.4
[2026-03-04 01:06:09] Found water_percent using trends overview pattern: 55.3
[2026-03-04 01:06:09] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-03-04 01:06:09] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-03-04 01:06:09] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-04 01:06:09] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-03-04 01:06:09] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-04 01:06:09] No match found for bmr
[2026-03-04 01:06:09] No match found for body_fat_mass_lbs
[2026-03-04 01:06:09] No match found for bone_mass_lbs
[2026-03-04 01:06:09] Found 6 metrics in total
[2026-03-04 01:06:09] Critical metric muscle_mass_lbs is missing, using default value
[2026-03-04 01:06:09] Critical metric bone_mass_lbs is missing, using default value
[2026-03-04 01:06:09] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-03-04 01:06:09] Adding missing metric bone_mass_percent with default value: 3.9
[2026-03-04 01:06:09] Adding missing metric bmr with default value: 1510
[2026-03-04 01:06:09] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-03-04 01:06:09] Extracted data: {"date":"2026-03-04","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-04 01:06:09] Final data for insertion: {"date":"2026-03-04","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-04 01:06:09] Inserted record with ID: 120
[2026-03-04 01:06:09] Weight also stored in weights table
[2026-03-04 01:06:09] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-04","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"120"}
[2026-03-04 02:17:43] Health image upload received
[2026-03-04 02:17:43] User ID: 1
[2026-03-04 02:17:43] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69a79647c75dd7.51365129.jpg
[2026-03-04 02:17:43] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69a79647c75dd7.51365129.jpg
[2026-03-04 02:17:43] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69a79647c75dd7.51365129.jpg
[2026-03-04 02:17:43] Using OCR.space API
[2026-03-04 02:17:43] Using API key: K8465...
[2026-03-04 02:17:45] OCR.space API request completed with HTTP code: 200
[2026-03-04 02:17:45] Request info: {"total_time":1.586216,"size_upload":115105,"size_download":8037}
[2026-03-04 02:17:45] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-03-04 02:17:45] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-03-04 02:17:45] Extracting health metrics from text
[2026-03-04 02:17:45] Found weight using specific pattern: 167.5
[2026-03-04 02:17:45] Found bmi using specific pattern: 26.9
[2026-03-04 02:17:45] Found body_fat_percent using specific pattern: 19.4
[2026-03-04 02:17:45] Found muscle_mass_lbs using specific pattern: 128.5
[2026-03-04 02:17:45] Found muscle_mass_percent using specific pattern: 76.7
[2026-03-04 02:17:45] Found bone_mass_percent using specific pattern: 3.9
[2026-03-04 02:17:45] Found bmr using specific pattern: 1510
[2026-03-04 02:17:45] Found water_percent using specific pattern: 55.3
[2026-03-04 02:17:45] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-03-04 02:17:45] Found bone_mass_lbs using specific pattern: 6.6
[2026-03-04 02:17:45] Found visceral_fat using specific pattern: 11
[2026-03-04 02:17:45] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-03-04 02:17:45] Found 12 metrics in total
[2026-03-04 02:17:45] Extracted data: {"date":"2026-03-04","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-04 02:17:45] Final data for insertion: {"date":"2026-03-04","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-04 02:17:45] Inserted record with ID: 121
[2026-03-04 02:17:45] Weight also stored in weights table
[2026-03-04 02:17:45] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-04","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"121"}
[2026-03-04 02:31:42] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-04 02:31:42] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-04 02:31:42] Using OCR.space API
[2026-03-04 02:31:42] Using API key: K8465...
[2026-03-04 02:31:43] OCR.space API request completed with HTTP code: 200
[2026-03-04 02:31:43] Request info: {"total_time":1.894868,"size_upload":113045,"size_download":7478}
[2026-03-04 02:31:43] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-03-04 02:31:43] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-03-04 02:31:43] Extracting health metrics from text
[2026-03-04 02:31:43] Found bmi but value 167.5 seems invalid - ignoring
[2026-03-04 02:31:43] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-04 02:31:43] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-04 02:31:43] Found visceral_fat using specific pattern: 6
[2026-03-04 02:31:43] Found weight using trends overview pattern: 167.5
[2026-03-04 02:31:43] Found bmi using trends overview pattern: 26.9
[2026-03-04 02:31:43] Found body_fat_percent using trends overview pattern: 19.4
[2026-03-04 02:31:43] Found water_percent using trends overview pattern: 55.3
[2026-03-04 02:31:43] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-03-04 02:31:43] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-03-04 02:31:43] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-04 02:31:43] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-03-04 02:31:43] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-04 02:31:43] No match found for bmr
[2026-03-04 02:31:43] No match found for body_fat_mass_lbs
[2026-03-04 02:31:43] No match found for bone_mass_lbs
[2026-03-04 02:31:43] Found 6 metrics in total
[2026-03-04 02:31:43] Critical metric muscle_mass_lbs is missing, using default value
[2026-03-04 02:31:43] Critical metric bone_mass_lbs is missing, using default value
[2026-03-04 02:31:43] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-03-04 02:31:43] Adding missing metric bone_mass_percent with default value: 3.9
[2026-03-04 02:31:43] Adding missing metric bmr with default value: 1510
[2026-03-04 02:31:43] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-03-04 03:22:41] Health image upload received
[2026-03-04 03:22:41] User ID: 1
[2026-03-04 03:22:41] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69a7a58140dee1.23125479.jpg
[2026-03-04 03:22:41] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69a7a58140dee1.23125479.jpg
[2026-03-04 03:22:41] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69a7a58140dee1.23125479.jpg
[2026-03-04 03:22:41] Using OCR.space API
[2026-03-04 03:22:41] Using API key: K8465...
[2026-03-04 03:22:43] OCR.space API request completed with HTTP code: 200
[2026-03-04 03:22:43] Request info: {"total_time":2.213864,"size_upload":113045,"size_download":7479}
[2026-03-04 03:22:43] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-03-04 03:22:43] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-03-04 03:22:43] Extracting health metrics from text
[2026-03-04 03:22:43] Found bmi but value 167.5 seems invalid - ignoring
[2026-03-04 03:22:43] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-04 03:22:43] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-04 03:22:43] Found visceral_fat using specific pattern: 6
[2026-03-04 03:22:43] Found weight using trends overview pattern: 167.5
[2026-03-04 03:22:43] Found bmi using trends overview pattern: 26.9
[2026-03-04 03:22:43] Found body_fat_percent using trends overview pattern: 19.4
[2026-03-04 03:22:43] Found water_percent using trends overview pattern: 55.3
[2026-03-04 03:22:43] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-03-04 03:22:43] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-03-04 03:22:43] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-04 03:22:43] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-03-04 03:22:43] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-04 03:22:43] No match found for bmr
[2026-03-04 03:22:43] No match found for body_fat_mass_lbs
[2026-03-04 03:22:43] No match found for bone_mass_lbs
[2026-03-04 03:22:43] Found 6 metrics in total
[2026-03-04 03:22:43] Critical metric muscle_mass_lbs is missing, using default value
[2026-03-04 03:22:43] Critical metric bone_mass_lbs is missing, using default value
[2026-03-04 03:22:43] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-03-04 03:22:43] Adding missing metric bone_mass_percent with default value: 3.9
[2026-03-04 03:22:43] Adding missing metric bmr with default value: 1510
[2026-03-04 03:22:43] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-03-04 03:22:43] Extracted data: {"date":"2026-03-04","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-04 03:22:43] Final data for insertion: {"date":"2026-03-04","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-04 03:22:43] Inserted record with ID: 122
[2026-03-04 03:22:43] Weight also stored in weights table
[2026-03-04 03:22:43] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-04","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"122"}
[2026-03-04 14:40:33] Health image upload received
[2026-03-04 14:40:34] User ID: 1
[2026-03-04 14:40:34] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69a844620006f9.11368999.jpg
[2026-03-04 14:40:34] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69a844620006f9.11368999.jpg
[2026-03-04 14:40:34] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69a844620006f9.11368999.jpg
[2026-03-04 14:40:34] Using OCR.space API
[2026-03-04 14:40:34] Using API key: K8465...
[2026-03-04 14:40:36] OCR.space API request completed with HTTP code: 200
[2026-03-04 14:40:36] Request info: {"total_time":2.266897,"size_upload":115105,"size_download":8038}
[2026-03-04 14:40:36] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-03-04 14:40:36] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-03-04 14:40:36] Extracting health metrics from text
[2026-03-04 14:40:36] Found weight using specific pattern: 167.5
[2026-03-04 14:40:36] Found bmi using specific pattern: 26.9
[2026-03-04 14:40:36] Found body_fat_percent using specific pattern: 19.4
[2026-03-04 14:40:36] Found muscle_mass_lbs using specific pattern: 128.5
[2026-03-04 14:40:36] Found muscle_mass_percent using specific pattern: 76.7
[2026-03-04 14:40:36] Found bone_mass_percent using specific pattern: 3.9
[2026-03-04 14:40:36] Found bmr using specific pattern: 1510
[2026-03-04 14:40:36] Found water_percent using specific pattern: 55.3
[2026-03-04 14:40:36] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-03-04 14:40:36] Found bone_mass_lbs using specific pattern: 6.6
[2026-03-04 14:40:36] Found visceral_fat using specific pattern: 11
[2026-03-04 14:40:36] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-03-04 14:40:36] Found 12 metrics in total
[2026-03-04 14:40:36] Extracted data: {"date":"2026-03-04","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-04 14:40:36] Final data for insertion: {"date":"2026-03-04","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-04 14:40:36] Inserted record with ID: 123
[2026-03-04 14:40:36] Weight also stored in weights table
[2026-03-04 14:40:36] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-04","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"123"}
[2026-03-04 14:55:25] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-04 14:55:25] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-04 14:55:25] Using OCR.space API
[2026-03-04 14:55:25] Using API key: K8465...
[2026-03-04 14:55:27] OCR.space API request completed with HTTP code: 200
[2026-03-04 14:55:27] Request info: {"total_time":1.949847,"size_upload":113045,"size_download":7478}
[2026-03-04 14:55:27] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-03-04 14:55:27] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-03-04 14:55:27] Extracting health metrics from text
[2026-03-04 14:55:27] Found bmi but value 167.5 seems invalid - ignoring
[2026-03-04 14:55:27] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-04 14:55:27] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-04 14:55:27] Found visceral_fat using specific pattern: 6
[2026-03-04 14:55:27] Found weight using trends overview pattern: 167.5
[2026-03-04 14:55:27] Found bmi using trends overview pattern: 26.9
[2026-03-04 14:55:27] Found body_fat_percent using trends overview pattern: 19.4
[2026-03-04 14:55:27] Found water_percent using trends overview pattern: 55.3
[2026-03-04 14:55:27] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-03-04 14:55:27] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-03-04 14:55:27] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-04 14:55:27] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-03-04 14:55:27] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-04 14:55:27] No match found for bmr
[2026-03-04 14:55:27] No match found for body_fat_mass_lbs
[2026-03-04 14:55:27] No match found for bone_mass_lbs
[2026-03-04 14:55:27] Found 6 metrics in total
[2026-03-04 14:55:27] Critical metric muscle_mass_lbs is missing, using default value
[2026-03-04 14:55:27] Critical metric bone_mass_lbs is missing, using default value
[2026-03-04 14:55:27] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-03-04 14:55:27] Adding missing metric bone_mass_percent with default value: 3.9
[2026-03-04 14:55:27] Adding missing metric bmr with default value: 1510
[2026-03-04 14:55:27] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-03-04 23:00:21] Health image upload received
[2026-03-04 23:00:21] User ID: 1
[2026-03-04 23:00:21] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69a8b985a3fc35.15070392.jpg
[2026-03-04 23:00:21] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69a8b985a3fc35.15070392.jpg
[2026-03-04 23:00:21] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69a8b985a3fc35.15070392.jpg
[2026-03-04 23:00:21] Using OCR.space API
[2026-03-04 23:00:21] Using API key: K8465...
[2026-03-04 23:00:23] OCR.space API request completed with HTTP code: 200
[2026-03-04 23:00:23] Request info: {"total_time":1.979143,"size_upload":113045,"size_download":7478}
[2026-03-04 23:00:23] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-03-04 23:00:23] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-03-04 23:00:23] Extracting health metrics from text
[2026-03-04 23:00:23] Found bmi but value 167.5 seems invalid - ignoring
[2026-03-04 23:00:23] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-04 23:00:23] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-04 23:00:23] Found visceral_fat using specific pattern: 6
[2026-03-04 23:00:23] Found weight using trends overview pattern: 167.5
[2026-03-04 23:00:23] Found bmi using trends overview pattern: 26.9
[2026-03-04 23:00:23] Found body_fat_percent using trends overview pattern: 19.4
[2026-03-04 23:00:23] Found water_percent using trends overview pattern: 55.3
[2026-03-04 23:00:23] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-03-04 23:00:23] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-03-04 23:00:23] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-04 23:00:23] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-03-04 23:00:23] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-04 23:00:23] No match found for bmr
[2026-03-04 23:00:23] No match found for body_fat_mass_lbs
[2026-03-04 23:00:23] No match found for bone_mass_lbs
[2026-03-04 23:00:23] Found 6 metrics in total
[2026-03-04 23:00:23] Critical metric muscle_mass_lbs is missing, using default value
[2026-03-04 23:00:23] Critical metric bone_mass_lbs is missing, using default value
[2026-03-04 23:00:23] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-03-04 23:00:23] Adding missing metric bone_mass_percent with default value: 3.9
[2026-03-04 23:00:23] Adding missing metric bmr with default value: 1510
[2026-03-04 23:00:23] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-03-04 23:00:23] Extracted data: {"date":"2026-03-04","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-04 23:00:23] Final data for insertion: {"date":"2026-03-04","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-04 23:00:23] Inserted record with ID: 124
[2026-03-04 23:00:23] Weight also stored in weights table
[2026-03-04 23:00:23] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-04","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"124"}
[2026-03-05 09:43:12] Health image upload received
[2026-03-05 09:43:12] Error: Missing or invalid user_id
[2026-03-05 09:43:12] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-03-05 18:30:01] Health image upload received
[2026-03-05 18:30:01] Error: Missing or invalid user_id
[2026-03-05 18:30:01] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-03-06 07:43:06] Health image upload received
[2026-03-06 07:43:06] Error: Missing or invalid user_id
[2026-03-06 07:43:06] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-03-06 13:52:36] Health image upload received
[2026-03-06 13:52:36] Error: Missing or invalid user_id
[2026-03-06 13:52:36] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-03-07 16:55:04] Health image upload received
[2026-03-07 16:55:04] Error: Missing or invalid user_id
[2026-03-07 16:55:04] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-03-09 09:17:20] Health image upload received
[2026-03-09 09:17:20] User ID: 1
[2026-03-09 09:17:20] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ae9020ba0b89.44795909.jpg
[2026-03-09 09:17:20] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ae9020ba0b89.44795909.jpg
[2026-03-09 09:17:20] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ae9020ba0b89.44795909.jpg
[2026-03-09 09:17:20] Using OCR.space API
[2026-03-09 09:17:20] Using API key: K8465...
[2026-03-09 09:17:22] OCR.space API request completed with HTTP code: 200
[2026-03-09 09:17:22] Request info: {"total_time":1.944511,"size_upload":113045,"size_download":7478}
[2026-03-09 09:17:22] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-03-09 09:17:22] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-03-09 09:17:22] Extracting health metrics from text
[2026-03-09 09:17:22] Found bmi but value 167.5 seems invalid - ignoring
[2026-03-09 09:17:22] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-09 09:17:22] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-09 09:17:22] Found visceral_fat using specific pattern: 6
[2026-03-09 09:17:22] Found weight using trends overview pattern: 167.5
[2026-03-09 09:17:22] Found bmi using trends overview pattern: 26.9
[2026-03-09 09:17:22] Found body_fat_percent using trends overview pattern: 19.4
[2026-03-09 09:17:22] Found water_percent using trends overview pattern: 55.3
[2026-03-09 09:17:22] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-03-09 09:17:22] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-03-09 09:17:22] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-09 09:17:22] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-03-09 09:17:22] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-09 09:17:22] No match found for bmr
[2026-03-09 09:17:22] No match found for body_fat_mass_lbs
[2026-03-09 09:17:22] No match found for bone_mass_lbs
[2026-03-09 09:17:22] Found 6 metrics in total
[2026-03-09 09:17:22] Critical metric muscle_mass_lbs is missing, using default value
[2026-03-09 09:17:22] Critical metric bone_mass_lbs is missing, using default value
[2026-03-09 09:17:22] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-03-09 09:17:22] Adding missing metric bone_mass_percent with default value: 3.9
[2026-03-09 09:17:22] Adding missing metric bmr with default value: 1510
[2026-03-09 09:17:22] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-03-09 09:17:22] Extracted data: {"date":"2026-03-09","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-09 09:17:22] Final data for insertion: {"date":"2026-03-09","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-09 09:17:22] Inserted record with ID: 125
[2026-03-09 09:17:22] Weight also stored in weights table
[2026-03-09 09:17:22] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-09","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"125"}
[2026-03-09 09:20:22] Health image upload received
[2026-03-09 09:20:22] User ID: 1
[2026-03-09 09:20:22] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ae90d6db2f52.59989564.jpg
[2026-03-09 09:20:22] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ae90d6db2f52.59989564.jpg
[2026-03-09 09:20:22] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ae90d6db2f52.59989564.jpg
[2026-03-09 09:20:22] Using OCR.space API
[2026-03-09 09:20:22] Using API key: K8465...
[2026-03-09 09:20:24] OCR.space API request completed with HTTP code: 200
[2026-03-09 09:20:24] Request info: {"total_time":1.654679,"size_upload":115105,"size_download":8037}
[2026-03-09 09:20:24] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-03-09 09:20:24] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-03-09 09:20:24] Extracting health metrics from text
[2026-03-09 09:20:24] Found weight using specific pattern: 167.5
[2026-03-09 09:20:24] Found bmi using specific pattern: 26.9
[2026-03-09 09:20:24] Found body_fat_percent using specific pattern: 19.4
[2026-03-09 09:20:24] Found muscle_mass_lbs using specific pattern: 128.5
[2026-03-09 09:20:24] Found muscle_mass_percent using specific pattern: 76.7
[2026-03-09 09:20:24] Found bone_mass_percent using specific pattern: 3.9
[2026-03-09 09:20:24] Found bmr using specific pattern: 1510
[2026-03-09 09:20:24] Found water_percent using specific pattern: 55.3
[2026-03-09 09:20:24] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-03-09 09:20:24] Found bone_mass_lbs using specific pattern: 6.6
[2026-03-09 09:20:24] Found visceral_fat using specific pattern: 11
[2026-03-09 09:20:24] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-03-09 09:20:24] Found 12 metrics in total
[2026-03-09 09:20:24] Extracted data: {"date":"2026-03-09","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-09 09:20:24] Final data for insertion: {"date":"2026-03-09","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-09 09:20:24] Inserted record with ID: 126
[2026-03-09 09:20:24] Weight also stored in weights table
[2026-03-09 09:20:24] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-09","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"126"}
[2026-03-09 14:23:51] Health image upload received
[2026-03-09 14:23:51] User ID: 1
[2026-03-09 14:23:51] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69aed7f7c109b3.71727511.jpg
[2026-03-09 14:23:51] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69aed7f7c109b3.71727511.jpg
[2026-03-09 14:23:51] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69aed7f7c109b3.71727511.jpg
[2026-03-09 14:23:51] Using OCR.space API
[2026-03-09 14:23:51] Using API key: K8465...
[2026-03-09 14:23:53] OCR.space API request completed with HTTP code: 200
[2026-03-09 14:23:53] Request info: {"total_time":1.941856,"size_upload":115105,"size_download":8037}
[2026-03-09 14:23:53] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-03-09 14:23:53] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-03-09 14:23:53] Extracting health metrics from text
[2026-03-09 14:23:53] Found weight using specific pattern: 167.5
[2026-03-09 14:23:53] Found bmi using specific pattern: 26.9
[2026-03-09 14:23:53] Found body_fat_percent using specific pattern: 19.4
[2026-03-09 14:23:53] Found muscle_mass_lbs using specific pattern: 128.5
[2026-03-09 14:23:53] Found muscle_mass_percent using specific pattern: 76.7
[2026-03-09 14:23:53] Found bone_mass_percent using specific pattern: 3.9
[2026-03-09 14:23:53] Found bmr using specific pattern: 1510
[2026-03-09 14:23:53] Found water_percent using specific pattern: 55.3
[2026-03-09 14:23:53] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-03-09 14:23:53] Found bone_mass_lbs using specific pattern: 6.6
[2026-03-09 14:23:53] Found visceral_fat using specific pattern: 11
[2026-03-09 14:23:53] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-03-09 14:23:53] Found 12 metrics in total
[2026-03-09 14:23:53] Extracted data: {"date":"2026-03-09","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-09 14:23:53] Final data for insertion: {"date":"2026-03-09","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-09 14:23:53] Inserted record with ID: 127
[2026-03-09 14:23:53] Weight also stored in weights table
[2026-03-09 14:23:53] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-09","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"127"}
[2026-03-10 06:28:37] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-10 06:28:37] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-10 06:28:37] Using OCR.space API
[2026-03-10 06:28:37] Using API key: K8465...
[2026-03-10 06:28:46] OCR.space API request completed with HTTP code: 200
[2026-03-10 06:28:46] Request info: {"total_time":8.821477,"size_upload":113045,"size_download":7479}
[2026-03-10 06:28:46] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-03-10 06:28:46] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-03-10 06:28:46] Extracting health metrics from text
[2026-03-10 06:28:46] Found bmi but value 167.5 seems invalid - ignoring
[2026-03-10 06:28:46] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-10 06:28:46] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-10 06:28:46] Found visceral_fat using specific pattern: 6
[2026-03-10 06:28:46] Found weight using trends overview pattern: 167.5
[2026-03-10 06:28:46] Found bmi using trends overview pattern: 26.9
[2026-03-10 06:28:46] Found body_fat_percent using trends overview pattern: 19.4
[2026-03-10 06:28:46] Found water_percent using trends overview pattern: 55.3
[2026-03-10 06:28:46] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-03-10 06:28:46] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-03-10 06:28:46] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-10 06:28:46] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-03-10 06:28:46] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-10 06:28:46] No match found for bmr
[2026-03-10 06:28:46] No match found for body_fat_mass_lbs
[2026-03-10 06:28:46] No match found for bone_mass_lbs
[2026-03-10 06:28:46] Found 6 metrics in total
[2026-03-10 06:28:46] Critical metric muscle_mass_lbs is missing, using default value
[2026-03-10 06:28:46] Critical metric bone_mass_lbs is missing, using default value
[2026-03-10 06:28:46] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-03-10 06:28:46] Adding missing metric bone_mass_percent with default value: 3.9
[2026-03-10 06:28:46] Adding missing metric bmr with default value: 1510
[2026-03-10 06:28:46] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-03-10 12:46:17] Health image upload received
[2026-03-10 12:46:17] User ID: 1
[2026-03-10 12:46:17] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b01299946d45.95944006.jpg
[2026-03-10 12:46:17] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b01299946d45.95944006.jpg
[2026-03-10 12:46:17] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b01299946d45.95944006.jpg
[2026-03-10 12:46:17] Using OCR.space API
[2026-03-10 12:46:17] Using API key: K8465...
[2026-03-10 12:46:19] OCR.space API request completed with HTTP code: 200
[2026-03-10 12:46:19] Request info: {"total_time":1.623813,"size_upload":115105,"size_download":8037}
[2026-03-10 12:46:19] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-03-10 12:46:19] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-03-10 12:46:19] Extracting health metrics from text
[2026-03-10 12:46:19] Found weight using specific pattern: 167.5
[2026-03-10 12:46:19] Found bmi using specific pattern: 26.9
[2026-03-10 12:46:19] Found body_fat_percent using specific pattern: 19.4
[2026-03-10 12:46:19] Found muscle_mass_lbs using specific pattern: 128.5
[2026-03-10 12:46:19] Found muscle_mass_percent using specific pattern: 76.7
[2026-03-10 12:46:19] Found bone_mass_percent using specific pattern: 3.9
[2026-03-10 12:46:19] Found bmr using specific pattern: 1510
[2026-03-10 12:46:19] Found water_percent using specific pattern: 55.3
[2026-03-10 12:46:19] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-03-10 12:46:19] Found bone_mass_lbs using specific pattern: 6.6
[2026-03-10 12:46:19] Found visceral_fat using specific pattern: 11
[2026-03-10 12:46:19] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-03-10 12:46:19] Found 12 metrics in total
[2026-03-10 12:46:19] Extracted data: {"date":"2026-03-10","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-10 12:46:19] Final data for insertion: {"date":"2026-03-10","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-10 12:46:19] Inserted record with ID: 128
[2026-03-10 12:46:19] Weight also stored in weights table
[2026-03-10 12:46:19] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-10","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"128"}
[2026-03-10 18:03:37] Health image upload received
[2026-03-10 18:03:37] Error: Missing or invalid user_id
[2026-03-10 18:03:37] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-03-10 18:03:50] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-10 18:03:50] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-10 18:03:50] Using OCR.space API
[2026-03-10 18:03:50] Using API key: K8465...
[2026-03-10 18:03:52] OCR.space API request completed with HTTP code: 200
[2026-03-10 18:03:52] Request info: {"total_time":1.656224,"size_upload":113045,"size_download":7478}
[2026-03-10 18:03:52] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-03-10 18:03:52] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-03-10 18:03:52] Extracting health metrics from text
[2026-03-10 18:03:52] Found bmi but value 167.5 seems invalid - ignoring
[2026-03-10 18:03:52] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-10 18:03:52] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-10 18:03:52] Found visceral_fat using specific pattern: 6
[2026-03-10 18:03:52] Found weight using trends overview pattern: 167.5
[2026-03-10 18:03:52] Found bmi using trends overview pattern: 26.9
[2026-03-10 18:03:52] Found body_fat_percent using trends overview pattern: 19.4
[2026-03-10 18:03:52] Found water_percent using trends overview pattern: 55.3
[2026-03-10 18:03:52] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-03-10 18:03:52] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-03-10 18:03:52] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-10 18:03:52] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-03-10 18:03:52] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-10 18:03:52] No match found for bmr
[2026-03-10 18:03:52] No match found for body_fat_mass_lbs
[2026-03-10 18:03:52] No match found for bone_mass_lbs
[2026-03-10 18:03:52] Found 6 metrics in total
[2026-03-10 18:03:52] Critical metric muscle_mass_lbs is missing, using default value
[2026-03-10 18:03:52] Critical metric bone_mass_lbs is missing, using default value
[2026-03-10 18:03:52] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-03-10 18:03:52] Adding missing metric bone_mass_percent with default value: 3.9
[2026-03-10 18:03:52] Adding missing metric bmr with default value: 1510
[2026-03-10 18:03:52] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-03-10 18:05:33] Health image upload received
[2026-03-10 18:05:33] User ID: 1
[2026-03-10 18:05:33] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b05d6de05c84.52749520.jpg
[2026-03-10 18:05:33] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b05d6de05c84.52749520.jpg
[2026-03-10 18:05:33] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b05d6de05c84.52749520.jpg
[2026-03-10 18:05:33] Using OCR.space API
[2026-03-10 18:05:33] Using API key: K8465...
[2026-03-10 18:05:35] OCR.space API request completed with HTTP code: 200
[2026-03-10 18:05:35] Request info: {"total_time":1.654389,"size_upload":113045,"size_download":7478}
[2026-03-10 18:05:35] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-03-10 18:05:35] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-03-10 18:05:35] Extracting health metrics from text
[2026-03-10 18:05:35] Found bmi but value 167.5 seems invalid - ignoring
[2026-03-10 18:05:35] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-10 18:05:35] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-10 18:05:35] Found visceral_fat using specific pattern: 6
[2026-03-10 18:05:35] Found weight using trends overview pattern: 167.5
[2026-03-10 18:05:35] Found bmi using trends overview pattern: 26.9
[2026-03-10 18:05:35] Found body_fat_percent using trends overview pattern: 19.4
[2026-03-10 18:05:35] Found water_percent using trends overview pattern: 55.3
[2026-03-10 18:05:35] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-03-10 18:05:35] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-03-10 18:05:35] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-10 18:05:35] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-03-10 18:05:35] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-10 18:05:35] No match found for bmr
[2026-03-10 18:05:35] No match found for body_fat_mass_lbs
[2026-03-10 18:05:35] No match found for bone_mass_lbs
[2026-03-10 18:05:35] Found 6 metrics in total
[2026-03-10 18:05:35] Critical metric muscle_mass_lbs is missing, using default value
[2026-03-10 18:05:35] Critical metric bone_mass_lbs is missing, using default value
[2026-03-10 18:05:35] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-03-10 18:05:35] Adding missing metric bone_mass_percent with default value: 3.9
[2026-03-10 18:05:35] Adding missing metric bmr with default value: 1510
[2026-03-10 18:05:35] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-03-10 18:05:35] Extracted data: {"date":"2026-03-10","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-10 18:05:35] Final data for insertion: {"date":"2026-03-10","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-10 18:05:35] Inserted record with ID: 129
[2026-03-10 18:05:35] Weight also stored in weights table
[2026-03-10 18:05:35] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-10","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"129"}
[2026-03-10 18:13:30] Health image upload received
[2026-03-10 18:13:30] User ID: 1
[2026-03-10 18:13:30] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b05f4a946708.66414143.jpg
[2026-03-10 18:13:30] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b05f4a946708.66414143.jpg
[2026-03-10 18:13:30] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b05f4a946708.66414143.jpg
[2026-03-10 18:13:30] Using OCR.space API
[2026-03-10 18:13:30] Using API key: K8465...
[2026-03-10 18:13:32] OCR.space API request completed with HTTP code: 200
[2026-03-10 18:13:32] Request info: {"total_time":1.668129,"size_upload":115105,"size_download":8037}
[2026-03-10 18:13:32] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-03-10 18:13:32] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-03-10 18:13:32] Extracting health metrics from text
[2026-03-10 18:13:32] Found weight using specific pattern: 167.5
[2026-03-10 18:13:32] Found bmi using specific pattern: 26.9
[2026-03-10 18:13:32] Found body_fat_percent using specific pattern: 19.4
[2026-03-10 18:13:32] Found muscle_mass_lbs using specific pattern: 128.5
[2026-03-10 18:13:32] Found muscle_mass_percent using specific pattern: 76.7
[2026-03-10 18:13:32] Found bone_mass_percent using specific pattern: 3.9
[2026-03-10 18:13:32] Found bmr using specific pattern: 1510
[2026-03-10 18:13:32] Found water_percent using specific pattern: 55.3
[2026-03-10 18:13:32] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-03-10 18:13:32] Found bone_mass_lbs using specific pattern: 6.6
[2026-03-10 18:13:32] Found visceral_fat using specific pattern: 11
[2026-03-10 18:13:32] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-03-10 18:13:32] Found 12 metrics in total
[2026-03-10 18:13:32] Extracted data: {"date":"2026-03-10","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-10 18:13:32] Final data for insertion: {"date":"2026-03-10","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-10 18:13:32] Inserted record with ID: 130
[2026-03-10 18:13:32] Weight also stored in weights table
[2026-03-10 18:13:32] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-10","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"130"}
[2026-03-11 19:57:45] Health image upload received
[2026-03-11 19:57:45] Error: Missing or invalid user_id
[2026-03-11 19:57:45] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-03-11 21:03:09] Health image upload received
[2026-03-11 21:03:09] User ID: 1
[2026-03-11 21:03:09] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b1d88d255113.52554067.jpg
[2026-03-11 21:03:09] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b1d88d255113.52554067.jpg
[2026-03-11 21:03:09] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b1d88d255113.52554067.jpg
[2026-03-11 21:03:09] Using OCR.space API
[2026-03-11 21:03:09] Using API key: K8465...
[2026-03-11 21:03:10] OCR.space API request completed with HTTP code: 200
[2026-03-11 21:03:10] Request info: {"total_time":1.768049,"size_upload":115105,"size_download":8037}
[2026-03-11 21:03:10] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-03-11 21:03:10] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-03-11 21:03:10] Extracting health metrics from text
[2026-03-11 21:03:10] Found weight using specific pattern: 167.5
[2026-03-11 21:03:10] Found bmi using specific pattern: 26.9
[2026-03-11 21:03:10] Found body_fat_percent using specific pattern: 19.4
[2026-03-11 21:03:10] Found muscle_mass_lbs using specific pattern: 128.5
[2026-03-11 21:03:10] Found muscle_mass_percent using specific pattern: 76.7
[2026-03-11 21:03:10] Found bone_mass_percent using specific pattern: 3.9
[2026-03-11 21:03:10] Found bmr using specific pattern: 1510
[2026-03-11 21:03:10] Found water_percent using specific pattern: 55.3
[2026-03-11 21:03:10] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-03-11 21:03:10] Found bone_mass_lbs using specific pattern: 6.6
[2026-03-11 21:03:10] Found visceral_fat using specific pattern: 11
[2026-03-11 21:03:10] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-03-11 21:03:10] Found 12 metrics in total
[2026-03-11 21:03:10] Extracted data: {"date":"2026-03-11","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-11 21:03:10] Final data for insertion: {"date":"2026-03-11","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-11 21:03:10] Inserted record with ID: 131
[2026-03-11 21:03:10] Weight also stored in weights table
[2026-03-11 21:03:10] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-11","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"131"}
[2026-03-12 13:33:11] Health image upload received
[2026-03-12 13:33:11] User ID: 1
[2026-03-12 13:33:11] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b2c097a9f519.20570821.jpg
[2026-03-12 13:33:11] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b2c097a9f519.20570821.jpg
[2026-03-12 13:33:11] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b2c097a9f519.20570821.jpg
[2026-03-12 13:33:11] Using OCR.space API
[2026-03-12 13:33:11] Using API key: K8465...
[2026-03-12 13:33:13] OCR.space API request completed with HTTP code: 200
[2026-03-12 13:33:13] Request info: {"total_time":1.974249,"size_upload":115105,"size_download":8037}
[2026-03-12 13:33:13] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-03-12 13:33:13] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-03-12 13:33:13] Extracting health metrics from text
[2026-03-12 13:33:13] Found weight using specific pattern: 167.5
[2026-03-12 13:33:13] Found bmi using specific pattern: 26.9
[2026-03-12 13:33:13] Found body_fat_percent using specific pattern: 19.4
[2026-03-12 13:33:13] Found muscle_mass_lbs using specific pattern: 128.5
[2026-03-12 13:33:13] Found muscle_mass_percent using specific pattern: 76.7
[2026-03-12 13:33:13] Found bone_mass_percent using specific pattern: 3.9
[2026-03-12 13:33:13] Found bmr using specific pattern: 1510
[2026-03-12 13:33:13] Found water_percent using specific pattern: 55.3
[2026-03-12 13:33:13] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-03-12 13:33:13] Found bone_mass_lbs using specific pattern: 6.6
[2026-03-12 13:33:13] Found visceral_fat using specific pattern: 11
[2026-03-12 13:33:13] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-03-12 13:33:13] Found 12 metrics in total
[2026-03-12 13:33:13] Extracted data: {"date":"2026-03-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-12 13:33:13] Final data for insertion: {"date":"2026-03-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-12 13:33:13] Inserted record with ID: 132
[2026-03-12 13:33:13] Weight also stored in weights table
[2026-03-12 13:33:13] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"132"}
[2026-03-12 17:04:57] Health image upload received
[2026-03-12 17:04:57] User ID: 1
[2026-03-12 17:04:57] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b2f23903a493.77195200.jpg
[2026-03-12 17:04:57] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b2f23903a493.77195200.jpg
[2026-03-12 17:04:57] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b2f23903a493.77195200.jpg
[2026-03-12 17:04:57] Using OCR.space API
[2026-03-12 17:04:57] Using API key: K8465...
[2026-03-12 17:04:58] OCR.space API request completed with HTTP code: 200
[2026-03-12 17:04:58] Request info: {"total_time":1.624768,"size_upload":115105,"size_download":8037}
[2026-03-12 17:04:58] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-03-12 17:04:58] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-03-12 17:04:58] Extracting health metrics from text
[2026-03-12 17:04:58] Found weight using specific pattern: 167.5
[2026-03-12 17:04:58] Found bmi using specific pattern: 26.9
[2026-03-12 17:04:58] Found body_fat_percent using specific pattern: 19.4
[2026-03-12 17:04:58] Found muscle_mass_lbs using specific pattern: 128.5
[2026-03-12 17:04:58] Found muscle_mass_percent using specific pattern: 76.7
[2026-03-12 17:04:58] Found bone_mass_percent using specific pattern: 3.9
[2026-03-12 17:04:58] Found bmr using specific pattern: 1510
[2026-03-12 17:04:58] Found water_percent using specific pattern: 55.3
[2026-03-12 17:04:58] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-03-12 17:04:58] Found bone_mass_lbs using specific pattern: 6.6
[2026-03-12 17:04:58] Found visceral_fat using specific pattern: 11
[2026-03-12 17:04:58] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-03-12 17:04:58] Found 12 metrics in total
[2026-03-12 17:04:58] Extracted data: {"date":"2026-03-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-12 17:04:58] Final data for insertion: {"date":"2026-03-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-12 17:04:58] Inserted record with ID: 133
[2026-03-12 17:04:58] Weight also stored in weights table
[2026-03-12 17:04:58] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"133"}
[2026-03-12 17:16:39] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-12 17:16:39] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-12 17:16:39] Using OCR.space API
[2026-03-12 17:16:39] Using API key: K8465...
[2026-03-12 17:16:41] OCR.space API request completed with HTTP code: 200
[2026-03-12 17:16:41] Request info: {"total_time":1.978063,"size_upload":113045,"size_download":7478}
[2026-03-12 17:16:41] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-03-12 17:16:41] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-03-12 17:16:41] Extracting health metrics from text
[2026-03-12 17:16:41] Found bmi but value 167.5 seems invalid - ignoring
[2026-03-12 17:16:41] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-12 17:16:41] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-12 17:16:41] Found visceral_fat using specific pattern: 6
[2026-03-12 17:16:41] Found weight using trends overview pattern: 167.5
[2026-03-12 17:16:41] Found bmi using trends overview pattern: 26.9
[2026-03-12 17:16:41] Found body_fat_percent using trends overview pattern: 19.4
[2026-03-12 17:16:41] Found water_percent using trends overview pattern: 55.3
[2026-03-12 17:16:41] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-03-12 17:16:41] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-03-12 17:16:41] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-12 17:16:41] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-03-12 17:16:41] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-12 17:16:41] No match found for bmr
[2026-03-12 17:16:41] No match found for body_fat_mass_lbs
[2026-03-12 17:16:41] No match found for bone_mass_lbs
[2026-03-12 17:16:41] Found 6 metrics in total
[2026-03-12 17:16:41] Critical metric muscle_mass_lbs is missing, using default value
[2026-03-12 17:16:41] Critical metric bone_mass_lbs is missing, using default value
[2026-03-12 17:16:41] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-03-12 17:16:41] Adding missing metric bone_mass_percent with default value: 3.9
[2026-03-12 17:16:41] Adding missing metric bmr with default value: 1510
[2026-03-12 17:16:41] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-03-12 17:27:49] Health image upload received
[2026-03-12 17:27:49] User ID: 1
[2026-03-12 17:27:49] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b2f7952d7a79.34998979.jpg
[2026-03-12 17:27:49] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b2f7952d7a79.34998979.jpg
[2026-03-12 17:27:49] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b2f7952d7a79.34998979.jpg
[2026-03-12 17:27:49] Using OCR.space API
[2026-03-12 17:27:49] Using API key: K8465...
[2026-03-12 17:27:51] OCR.space API request completed with HTTP code: 200
[2026-03-12 17:27:51] Request info: {"total_time":1.97726,"size_upload":115105,"size_download":8037}
[2026-03-12 17:27:51] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-03-12 17:27:51] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-03-12 17:27:51] Extracting health metrics from text
[2026-03-12 17:27:51] Found weight using specific pattern: 167.5
[2026-03-12 17:27:51] Found bmi using specific pattern: 26.9
[2026-03-12 17:27:51] Found body_fat_percent using specific pattern: 19.4
[2026-03-12 17:27:51] Found muscle_mass_lbs using specific pattern: 128.5
[2026-03-12 17:27:51] Found muscle_mass_percent using specific pattern: 76.7
[2026-03-12 17:27:51] Found bone_mass_percent using specific pattern: 3.9
[2026-03-12 17:27:51] Found bmr using specific pattern: 1510
[2026-03-12 17:27:51] Found water_percent using specific pattern: 55.3
[2026-03-12 17:27:51] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-03-12 17:27:51] Found bone_mass_lbs using specific pattern: 6.6
[2026-03-12 17:27:51] Found visceral_fat using specific pattern: 11
[2026-03-12 17:27:51] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-03-12 17:27:51] Found 12 metrics in total
[2026-03-12 17:27:51] Extracted data: {"date":"2026-03-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-12 17:27:51] Final data for insertion: {"date":"2026-03-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-12 17:27:51] Inserted record with ID: 134
[2026-03-12 17:27:51] Weight also stored in weights table
[2026-03-12 17:27:51] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"134"}
[2026-03-12 18:28:24] Health image upload received
[2026-03-12 18:28:24] User ID: 1
[2026-03-12 18:28:24] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b305c8396615.40710610.jpg
[2026-03-12 18:28:24] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b305c8396615.40710610.jpg
[2026-03-12 18:28:24] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b305c8396615.40710610.jpg
[2026-03-12 18:28:24] Using OCR.space API
[2026-03-12 18:28:24] Using API key: K8465...
[2026-03-12 18:28:25] OCR.space API request completed with HTTP code: 200
[2026-03-12 18:28:25] Request info: {"total_time":1.640782,"size_upload":115105,"size_download":8037}
[2026-03-12 18:28:25] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-03-12 18:28:25] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-03-12 18:28:25] Extracting health metrics from text
[2026-03-12 18:28:25] Found weight using specific pattern: 167.5
[2026-03-12 18:28:25] Found bmi using specific pattern: 26.9
[2026-03-12 18:28:25] Found body_fat_percent using specific pattern: 19.4
[2026-03-12 18:28:25] Found muscle_mass_lbs using specific pattern: 128.5
[2026-03-12 18:28:25] Found muscle_mass_percent using specific pattern: 76.7
[2026-03-12 18:28:25] Found bone_mass_percent using specific pattern: 3.9
[2026-03-12 18:28:25] Found bmr using specific pattern: 1510
[2026-03-12 18:28:25] Found water_percent using specific pattern: 55.3
[2026-03-12 18:28:25] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-03-12 18:28:25] Found bone_mass_lbs using specific pattern: 6.6
[2026-03-12 18:28:25] Found visceral_fat using specific pattern: 11
[2026-03-12 18:28:25] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-03-12 18:28:25] Found 12 metrics in total
[2026-03-12 18:28:25] Extracted data: {"date":"2026-03-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-12 18:28:25] Final data for insertion: {"date":"2026-03-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-12 18:28:25] Inserted record with ID: 135
[2026-03-12 18:28:25] Weight also stored in weights table
[2026-03-12 18:28:25] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"135"}
[2026-03-12 19:03:11] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-12 19:03:11] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-12 19:03:11] Using OCR.space API
[2026-03-12 19:03:11] Using API key: K8465...
[2026-03-12 19:03:13] OCR.space API request completed with HTTP code: 200
[2026-03-12 19:03:13] Request info: {"total_time":1.890564,"size_upload":113045,"size_download":7478}
[2026-03-12 19:03:13] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-03-12 19:03:13] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-03-12 19:03:13] Extracting health metrics from text
[2026-03-12 19:03:13] Found bmi but value 167.5 seems invalid - ignoring
[2026-03-12 19:03:13] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-12 19:03:13] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-12 19:03:13] Found visceral_fat using specific pattern: 6
[2026-03-12 19:03:13] Found weight using trends overview pattern: 167.5
[2026-03-12 19:03:13] Found bmi using trends overview pattern: 26.9
[2026-03-12 19:03:13] Found body_fat_percent using trends overview pattern: 19.4
[2026-03-12 19:03:13] Found water_percent using trends overview pattern: 55.3
[2026-03-12 19:03:13] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-03-12 19:03:13] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-03-12 19:03:13] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-12 19:03:13] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-03-12 19:03:13] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-12 19:03:13] No match found for bmr
[2026-03-12 19:03:13] No match found for body_fat_mass_lbs
[2026-03-12 19:03:13] No match found for bone_mass_lbs
[2026-03-12 19:03:13] Found 6 metrics in total
[2026-03-12 19:03:13] Critical metric muscle_mass_lbs is missing, using default value
[2026-03-12 19:03:13] Critical metric bone_mass_lbs is missing, using default value
[2026-03-12 19:03:13] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-03-12 19:03:13] Adding missing metric bone_mass_percent with default value: 3.9
[2026-03-12 19:03:13] Adding missing metric bmr with default value: 1510
[2026-03-12 19:03:13] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-03-12 19:04:02] Health image upload received
[2026-03-12 19:04:02] User ID: 1
[2026-03-12 19:04:02] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b30e226204c5.24931965.jpg
[2026-03-12 19:04:02] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b30e226204c5.24931965.jpg
[2026-03-12 19:04:02] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b30e226204c5.24931965.jpg
[2026-03-12 19:04:02] Using OCR.space API
[2026-03-12 19:04:02] Using API key: K8465...
[2026-03-12 19:04:04] OCR.space API request completed with HTTP code: 200
[2026-03-12 19:04:04] Request info: {"total_time":1.943032,"size_upload":115105,"size_download":8037}
[2026-03-12 19:04:04] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-03-12 19:04:04] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-03-12 19:04:04] Extracting health metrics from text
[2026-03-12 19:04:04] Found weight using specific pattern: 167.5
[2026-03-12 19:04:04] Found bmi using specific pattern: 26.9
[2026-03-12 19:04:04] Found body_fat_percent using specific pattern: 19.4
[2026-03-12 19:04:04] Found muscle_mass_lbs using specific pattern: 128.5
[2026-03-12 19:04:04] Found muscle_mass_percent using specific pattern: 76.7
[2026-03-12 19:04:04] Found bone_mass_percent using specific pattern: 3.9
[2026-03-12 19:04:04] Found bmr using specific pattern: 1510
[2026-03-12 19:04:04] Found water_percent using specific pattern: 55.3
[2026-03-12 19:04:04] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-03-12 19:04:04] Found bone_mass_lbs using specific pattern: 6.6
[2026-03-12 19:04:04] Found visceral_fat using specific pattern: 11
[2026-03-12 19:04:04] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-03-12 19:04:04] Found 12 metrics in total
[2026-03-12 19:04:04] Extracted data: {"date":"2026-03-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-12 19:04:04] Final data for insertion: {"date":"2026-03-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-12 19:04:04] Inserted record with ID: 136
[2026-03-12 19:04:04] Weight also stored in weights table
[2026-03-12 19:04:04] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"136"}
[2026-03-12 19:54:36] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-12 19:54:36] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-12 19:54:36] Using OCR.space API
[2026-03-12 19:54:36] Using API key: K8465...
[2026-03-12 19:54:37] OCR.space API request completed with HTTP code: 200
[2026-03-12 19:54:37] Request info: {"total_time":1.647165,"size_upload":113045,"size_download":7478}
[2026-03-12 19:54:37] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-03-12 19:54:37] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-03-12 19:54:37] Extracting health metrics from text
[2026-03-12 19:54:37] Found bmi but value 167.5 seems invalid - ignoring
[2026-03-12 19:54:37] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-12 19:54:37] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-12 19:54:37] Found visceral_fat using specific pattern: 6
[2026-03-12 19:54:37] Found weight using trends overview pattern: 167.5
[2026-03-12 19:54:37] Found bmi using trends overview pattern: 26.9
[2026-03-12 19:54:37] Found body_fat_percent using trends overview pattern: 19.4
[2026-03-12 19:54:37] Found water_percent using trends overview pattern: 55.3
[2026-03-12 19:54:37] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-03-12 19:54:37] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-03-12 19:54:37] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-12 19:54:37] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-03-12 19:54:37] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-12 19:54:37] No match found for bmr
[2026-03-12 19:54:37] No match found for body_fat_mass_lbs
[2026-03-12 19:54:37] No match found for bone_mass_lbs
[2026-03-12 19:54:37] Found 6 metrics in total
[2026-03-12 19:54:37] Critical metric muscle_mass_lbs is missing, using default value
[2026-03-12 19:54:37] Critical metric bone_mass_lbs is missing, using default value
[2026-03-12 19:54:37] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-03-12 19:54:37] Adding missing metric bone_mass_percent with default value: 3.9
[2026-03-12 19:54:37] Adding missing metric bmr with default value: 1510
[2026-03-12 19:54:37] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-03-12 20:06:33] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-12 20:06:33] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-12 20:06:33] Using OCR.space API
[2026-03-12 20:06:33] Using API key: K8465...
[2026-03-12 20:06:35] OCR.space API request completed with HTTP code: 200
[2026-03-12 20:06:35] Request info: {"total_time":1.634283,"size_upload":113045,"size_download":7478}
[2026-03-12 20:06:35] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-03-12 20:06:35] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-03-12 20:06:35] Extracting health metrics from text
[2026-03-12 20:06:35] Found bmi but value 167.5 seems invalid - ignoring
[2026-03-12 20:06:35] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-12 20:06:35] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-12 20:06:35] Found visceral_fat using specific pattern: 6
[2026-03-12 20:06:35] Found weight using trends overview pattern: 167.5
[2026-03-12 20:06:35] Found bmi using trends overview pattern: 26.9
[2026-03-12 20:06:35] Found body_fat_percent using trends overview pattern: 19.4
[2026-03-12 20:06:35] Found water_percent using trends overview pattern: 55.3
[2026-03-12 20:06:35] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-03-12 20:06:35] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-03-12 20:06:35] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-12 20:06:35] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-03-12 20:06:35] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-12 20:06:35] No match found for bmr
[2026-03-12 20:06:35] No match found for body_fat_mass_lbs
[2026-03-12 20:06:35] No match found for bone_mass_lbs
[2026-03-12 20:06:35] Found 6 metrics in total
[2026-03-12 20:06:35] Critical metric muscle_mass_lbs is missing, using default value
[2026-03-12 20:06:35] Critical metric bone_mass_lbs is missing, using default value
[2026-03-12 20:06:35] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-03-12 20:06:35] Adding missing metric bone_mass_percent with default value: 3.9
[2026-03-12 20:06:35] Adding missing metric bmr with default value: 1510
[2026-03-12 20:06:35] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-03-12 20:29:00] Health image upload received
[2026-03-12 20:29:00] User ID: 1
[2026-03-12 20:29:00] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b3220cbbec09.19713208.jpg
[2026-03-12 20:29:00] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b3220cbbec09.19713208.jpg
[2026-03-12 20:29:00] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b3220cbbec09.19713208.jpg
[2026-03-12 20:29:00] Using OCR.space API
[2026-03-12 20:29:00] Using API key: K8465...
[2026-03-12 20:29:02] OCR.space API request completed with HTTP code: 200
[2026-03-12 20:29:02] Request info: {"total_time":1.935018,"size_upload":113045,"size_download":7478}
[2026-03-12 20:29:02] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-03-12 20:29:02] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-03-12 20:29:02] Extracting health metrics from text
[2026-03-12 20:29:02] Found bmi but value 167.5 seems invalid - ignoring
[2026-03-12 20:29:02] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-12 20:29:02] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-12 20:29:02] Found visceral_fat using specific pattern: 6
[2026-03-12 20:29:02] Found weight using trends overview pattern: 167.5
[2026-03-12 20:29:02] Found bmi using trends overview pattern: 26.9
[2026-03-12 20:29:02] Found body_fat_percent using trends overview pattern: 19.4
[2026-03-12 20:29:02] Found water_percent using trends overview pattern: 55.3
[2026-03-12 20:29:02] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-03-12 20:29:02] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-03-12 20:29:02] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-12 20:29:02] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-03-12 20:29:02] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-12 20:29:02] No match found for bmr
[2026-03-12 20:29:02] No match found for body_fat_mass_lbs
[2026-03-12 20:29:02] No match found for bone_mass_lbs
[2026-03-12 20:29:02] Found 6 metrics in total
[2026-03-12 20:29:02] Critical metric muscle_mass_lbs is missing, using default value
[2026-03-12 20:29:02] Critical metric bone_mass_lbs is missing, using default value
[2026-03-12 20:29:02] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-03-12 20:29:02] Adding missing metric bone_mass_percent with default value: 3.9
[2026-03-12 20:29:02] Adding missing metric bmr with default value: 1510
[2026-03-12 20:29:02] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-03-12 20:29:02] Extracted data: {"date":"2026-03-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-12 20:29:02] Final data for insertion: {"date":"2026-03-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-12 20:29:02] Inserted record with ID: 137
[2026-03-12 20:29:02] Weight also stored in weights table
[2026-03-12 20:29:02] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"137"}
[2026-03-12 20:40:38] Health image upload received
[2026-03-12 20:40:38] User ID: 1
[2026-03-12 20:40:38] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b324c6a0f645.23818484.jpg
[2026-03-12 20:40:38] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b324c6a0f645.23818484.jpg
[2026-03-12 20:40:38] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b324c6a0f645.23818484.jpg
[2026-03-12 20:40:38] Using OCR.space API
[2026-03-12 20:40:38] Using API key: K8465...
[2026-03-12 20:40:40] OCR.space API request completed with HTTP code: 200
[2026-03-12 20:40:40] Request info: {"total_time":1.678659,"size_upload":113045,"size_download":7478}
[2026-03-12 20:40:40] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-03-12 20:40:40] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-03-12 20:40:40] Extracting health metrics from text
[2026-03-12 20:40:40] Found bmi but value 167.5 seems invalid - ignoring
[2026-03-12 20:40:40] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-12 20:40:40] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-12 20:40:40] Found visceral_fat using specific pattern: 6
[2026-03-12 20:40:40] Found weight using trends overview pattern: 167.5
[2026-03-12 20:40:40] Found bmi using trends overview pattern: 26.9
[2026-03-12 20:40:40] Found body_fat_percent using trends overview pattern: 19.4
[2026-03-12 20:40:40] Found water_percent using trends overview pattern: 55.3
[2026-03-12 20:40:40] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-03-12 20:40:40] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-03-12 20:40:40] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-12 20:40:40] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-03-12 20:40:40] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-12 20:40:40] No match found for bmr
[2026-03-12 20:40:40] No match found for body_fat_mass_lbs
[2026-03-12 20:40:40] No match found for bone_mass_lbs
[2026-03-12 20:40:40] Found 6 metrics in total
[2026-03-12 20:40:40] Critical metric muscle_mass_lbs is missing, using default value
[2026-03-12 20:40:40] Critical metric bone_mass_lbs is missing, using default value
[2026-03-12 20:40:40] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-03-12 20:40:40] Adding missing metric bone_mass_percent with default value: 3.9
[2026-03-12 20:40:40] Adding missing metric bmr with default value: 1510
[2026-03-12 20:40:40] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-03-12 20:40:40] Extracted data: {"date":"2026-03-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-12 20:40:40] Final data for insertion: {"date":"2026-03-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-12 20:40:40] Inserted record with ID: 138
[2026-03-12 20:40:40] Weight also stored in weights table
[2026-03-12 20:40:40] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"138"}
[2026-03-12 21:03:49] Health image upload received
[2026-03-12 21:03:49] User ID: 1
[2026-03-12 21:03:49] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b32a356e4874.69106015.jpg
[2026-03-12 21:03:49] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b32a356e4874.69106015.jpg
[2026-03-12 21:03:49] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b32a356e4874.69106015.jpg
[2026-03-12 21:03:49] Using OCR.space API
[2026-03-12 21:03:49] Using API key: K8465...
[2026-03-12 21:03:51] OCR.space API request completed with HTTP code: 200
[2026-03-12 21:03:51] Request info: {"total_time":1.643239,"size_upload":115105,"size_download":8037}
[2026-03-12 21:03:51] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-03-12 21:03:51] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-03-12 21:03:51] Extracting health metrics from text
[2026-03-12 21:03:51] Found weight using specific pattern: 167.5
[2026-03-12 21:03:51] Found bmi using specific pattern: 26.9
[2026-03-12 21:03:51] Found body_fat_percent using specific pattern: 19.4
[2026-03-12 21:03:51] Found muscle_mass_lbs using specific pattern: 128.5
[2026-03-12 21:03:51] Found muscle_mass_percent using specific pattern: 76.7
[2026-03-12 21:03:51] Found bone_mass_percent using specific pattern: 3.9
[2026-03-12 21:03:51] Found bmr using specific pattern: 1510
[2026-03-12 21:03:51] Found water_percent using specific pattern: 55.3
[2026-03-12 21:03:51] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-03-12 21:03:51] Found bone_mass_lbs using specific pattern: 6.6
[2026-03-12 21:03:51] Found visceral_fat using specific pattern: 11
[2026-03-12 21:03:51] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-03-12 21:03:51] Found 12 metrics in total
[2026-03-12 21:03:51] Extracted data: {"date":"2026-03-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-12 21:03:51] Final data for insertion: {"date":"2026-03-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-12 21:03:51] Inserted record with ID: 139
[2026-03-12 21:03:51] Weight also stored in weights table
[2026-03-12 21:03:51] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"139"}
[2026-03-12 22:01:38] Health image upload received
[2026-03-12 22:01:38] Error: Missing or invalid user_id
[2026-03-12 22:01:38] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-03-15 00:27:05] Health image upload received
[2026-03-15 00:27:05] Error: Missing or invalid user_id
[2026-03-15 00:27:05] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-03-15 16:43:37] Health image upload received
[2026-03-15 16:43:37] User ID: 1
[2026-03-15 16:43:37] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b6e1b9a772e4.78230055.jpg
[2026-03-15 16:43:37] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b6e1b9a772e4.78230055.jpg
[2026-03-15 16:43:37] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b6e1b9a772e4.78230055.jpg
[2026-03-15 16:43:37] Using OCR.space API
[2026-03-15 16:43:37] Using API key: K8465...
[2026-03-15 16:43:39] OCR.space API request completed with HTTP code: 200
[2026-03-15 16:43:39] Request info: {"total_time":1.661288,"size_upload":115105,"size_download":8037}
[2026-03-15 16:43:39] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-03-15 16:43:39] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-03-15 16:43:39] Extracting health metrics from text
[2026-03-15 16:43:39] Found weight using specific pattern: 167.5
[2026-03-15 16:43:39] Found bmi using specific pattern: 26.9
[2026-03-15 16:43:39] Found body_fat_percent using specific pattern: 19.4
[2026-03-15 16:43:39] Found muscle_mass_lbs using specific pattern: 128.5
[2026-03-15 16:43:39] Found muscle_mass_percent using specific pattern: 76.7
[2026-03-15 16:43:39] Found bone_mass_percent using specific pattern: 3.9
[2026-03-15 16:43:39] Found bmr using specific pattern: 1510
[2026-03-15 16:43:39] Found water_percent using specific pattern: 55.3
[2026-03-15 16:43:39] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-03-15 16:43:39] Found bone_mass_lbs using specific pattern: 6.6
[2026-03-15 16:43:39] Found visceral_fat using specific pattern: 11
[2026-03-15 16:43:39] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-03-15 16:43:39] Found 12 metrics in total
[2026-03-15 16:43:39] Extracted data: {"date":"2026-03-15","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-15 16:43:39] Final data for insertion: {"date":"2026-03-15","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-15 16:43:39] Inserted record with ID: 140
[2026-03-15 16:43:39] Weight also stored in weights table
[2026-03-15 16:43:39] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-15","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"140"}
[2026-03-15 16:47:40] Health image upload received
[2026-03-15 16:47:40] Error: Missing or invalid user_id
[2026-03-15 16:47:40] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-03-16 11:20:47] Health image upload received
[2026-03-16 11:20:47] User ID: 1
[2026-03-16 11:20:47] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b7e78f810561.34542120.jpg
[2026-03-16 11:20:47] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b7e78f810561.34542120.jpg
[2026-03-16 11:20:47] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69b7e78f810561.34542120.jpg
[2026-03-16 11:20:47] Using OCR.space API
[2026-03-16 11:20:47] Using API key: K8465...
[2026-03-16 11:20:49] OCR.space API request completed with HTTP code: 200
[2026-03-16 11:20:49] Request info: {"total_time":1.685448,"size_upload":115105,"size_download":8037}
[2026-03-16 11:20:49] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-03-16 11:20:49] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-03-16 11:20:49] Extracting health metrics from text
[2026-03-16 11:20:49] Found weight using specific pattern: 167.5
[2026-03-16 11:20:49] Found bmi using specific pattern: 26.9
[2026-03-16 11:20:49] Found body_fat_percent using specific pattern: 19.4
[2026-03-16 11:20:49] Found muscle_mass_lbs using specific pattern: 128.5
[2026-03-16 11:20:49] Found muscle_mass_percent using specific pattern: 76.7
[2026-03-16 11:20:49] Found bone_mass_percent using specific pattern: 3.9
[2026-03-16 11:20:49] Found bmr using specific pattern: 1510
[2026-03-16 11:20:49] Found water_percent using specific pattern: 55.3
[2026-03-16 11:20:49] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-03-16 11:20:49] Found bone_mass_lbs using specific pattern: 6.6
[2026-03-16 11:20:49] Found visceral_fat using specific pattern: 11
[2026-03-16 11:20:49] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-03-16 11:20:49] Found 12 metrics in total
[2026-03-16 11:20:49] Extracted data: {"date":"2026-03-16","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-16 11:20:49] Final data for insertion: {"date":"2026-03-16","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-16 11:20:49] Inserted record with ID: 141
[2026-03-16 11:20:49] Weight also stored in weights table
[2026-03-16 11:20:49] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-16","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"141"}
[2026-03-18 20:19:50] Health image upload received
[2026-03-18 20:19:50] User ID: 1
[2026-03-18 20:19:50] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69bb08e6556f64.63536590.jpg
[2026-03-18 20:19:50] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69bb08e6556f64.63536590.jpg
[2026-03-18 20:19:50] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69bb08e6556f64.63536590.jpg
[2026-03-18 20:19:50] Using OCR.space API
[2026-03-18 20:19:50] Using API key: K8465...
[2026-03-18 20:19:52] OCR.space API request completed with HTTP code: 200
[2026-03-18 20:19:52] Request info: {"total_time":1.698498,"size_upload":115105,"size_download":8037}
[2026-03-18 20:19:52] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-03-18 20:19:52] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-03-18 20:19:52] Extracting health metrics from text
[2026-03-18 20:19:52] Found weight using specific pattern: 167.5
[2026-03-18 20:19:52] Found bmi using specific pattern: 26.9
[2026-03-18 20:19:52] Found body_fat_percent using specific pattern: 19.4
[2026-03-18 20:19:52] Found muscle_mass_lbs using specific pattern: 128.5
[2026-03-18 20:19:52] Found muscle_mass_percent using specific pattern: 76.7
[2026-03-18 20:19:52] Found bone_mass_percent using specific pattern: 3.9
[2026-03-18 20:19:52] Found bmr using specific pattern: 1510
[2026-03-18 20:19:52] Found water_percent using specific pattern: 55.3
[2026-03-18 20:19:52] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-03-18 20:19:52] Found bone_mass_lbs using specific pattern: 6.6
[2026-03-18 20:19:52] Found visceral_fat using specific pattern: 11
[2026-03-18 20:19:52] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-03-18 20:19:52] Found 12 metrics in total
[2026-03-18 20:19:52] Extracted data: {"date":"2026-03-18","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-18 20:19:52] Final data for insertion: {"date":"2026-03-18","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-18 20:19:52] Inserted record with ID: 142
[2026-03-18 20:19:52] Weight also stored in weights table
[2026-03-18 20:19:52] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-18","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"142"}
[2026-03-20 14:45:50] Health image upload received
[2026-03-20 14:45:50] Error: Missing or invalid user_id
[2026-03-20 14:45:50] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-03-21 02:06:51] Health image upload received
[2026-03-21 02:06:51] User ID: 1
[2026-03-21 02:06:51] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69bdfd3b2704d3.57480311.jpg
[2026-03-21 02:06:51] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69bdfd3b2704d3.57480311.jpg
[2026-03-21 02:06:51] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69bdfd3b2704d3.57480311.jpg
[2026-03-21 02:06:51] Using OCR.space API
[2026-03-21 02:06:51] Using API key: K8465...
[2026-03-21 02:06:52] OCR.space API request completed with HTTP code: 200
[2026-03-21 02:06:52] Request info: {"total_time":1.677972,"size_upload":115105,"size_download":8037}
[2026-03-21 02:06:52] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-03-21 02:06:52] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-03-21 02:06:52] Extracting health metrics from text
[2026-03-21 02:06:52] Found weight using specific pattern: 167.5
[2026-03-21 02:06:52] Found bmi using specific pattern: 26.9
[2026-03-21 02:06:52] Found body_fat_percent using specific pattern: 19.4
[2026-03-21 02:06:52] Found muscle_mass_lbs using specific pattern: 128.5
[2026-03-21 02:06:52] Found muscle_mass_percent using specific pattern: 76.7
[2026-03-21 02:06:52] Found bone_mass_percent using specific pattern: 3.9
[2026-03-21 02:06:52] Found bmr using specific pattern: 1510
[2026-03-21 02:06:52] Found water_percent using specific pattern: 55.3
[2026-03-21 02:06:52] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-03-21 02:06:52] Found bone_mass_lbs using specific pattern: 6.6
[2026-03-21 02:06:52] Found visceral_fat using specific pattern: 11
[2026-03-21 02:06:52] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-03-21 02:06:52] Found 12 metrics in total
[2026-03-21 02:06:52] Extracted data: {"date":"2026-03-21","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-21 02:06:52] Final data for insertion: {"date":"2026-03-21","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-21 02:06:52] Inserted record with ID: 143
[2026-03-21 02:06:52] Weight also stored in weights table
[2026-03-21 02:06:52] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-21","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"143"}
[2026-03-21 11:08:35] Health image upload received
[2026-03-21 11:08:35] User ID: 1
[2026-03-21 11:08:35] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69be7c33d7a1e3.03475396.jpg
[2026-03-21 11:08:35] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69be7c33d7a1e3.03475396.jpg
[2026-03-21 11:08:35] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69be7c33d7a1e3.03475396.jpg
[2026-03-21 11:08:35] Using OCR.space API
[2026-03-21 11:08:35] Using API key: K8465...
[2026-03-21 11:08:37] OCR.space API request completed with HTTP code: 200
[2026-03-21 11:08:37] Request info: {"total_time":1.646888,"size_upload":115105,"size_download":8037}
[2026-03-21 11:08:37] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-03-21 11:08:37] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-03-21 11:08:37] Extracting health metrics from text
[2026-03-21 11:08:37] Found weight using specific pattern: 167.5
[2026-03-21 11:08:37] Found bmi using specific pattern: 26.9
[2026-03-21 11:08:37] Found body_fat_percent using specific pattern: 19.4
[2026-03-21 11:08:37] Found muscle_mass_lbs using specific pattern: 128.5
[2026-03-21 11:08:37] Found muscle_mass_percent using specific pattern: 76.7
[2026-03-21 11:08:37] Found bone_mass_percent using specific pattern: 3.9
[2026-03-21 11:08:37] Found bmr using specific pattern: 1510
[2026-03-21 11:08:37] Found water_percent using specific pattern: 55.3
[2026-03-21 11:08:37] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-03-21 11:08:37] Found bone_mass_lbs using specific pattern: 6.6
[2026-03-21 11:08:37] Found visceral_fat using specific pattern: 11
[2026-03-21 11:08:37] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-03-21 11:08:37] Found 12 metrics in total
[2026-03-21 11:08:37] Extracted data: {"date":"2026-03-21","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-21 11:08:37] Final data for insertion: {"date":"2026-03-21","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-21 11:08:37] Inserted record with ID: 144
[2026-03-21 11:08:37] Weight also stored in weights table
[2026-03-21 11:08:37] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-21","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"144"}
[2026-03-21 11:45:32] Health image upload received
[2026-03-21 11:45:32] User ID: 1
[2026-03-21 11:45:32] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69be84dc195fc5.02632612.jpg
[2026-03-21 11:45:32] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69be84dc195fc5.02632612.jpg
[2026-03-21 11:45:32] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69be84dc195fc5.02632612.jpg
[2026-03-21 11:45:32] Using OCR.space API
[2026-03-21 11:45:32] Using API key: K8465...
[2026-03-21 11:45:33] OCR.space API request completed with HTTP code: 200
[2026-03-21 11:45:33] Request info: {"total_time":1.649402,"size_upload":115105,"size_download":8037}
[2026-03-21 11:45:33] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-03-21 11:45:33] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-03-21 11:45:33] Extracting health metrics from text
[2026-03-21 11:45:33] Found weight using specific pattern: 167.5
[2026-03-21 11:45:33] Found bmi using specific pattern: 26.9
[2026-03-21 11:45:33] Found body_fat_percent using specific pattern: 19.4
[2026-03-21 11:45:33] Found muscle_mass_lbs using specific pattern: 128.5
[2026-03-21 11:45:33] Found muscle_mass_percent using specific pattern: 76.7
[2026-03-21 11:45:33] Found bone_mass_percent using specific pattern: 3.9
[2026-03-21 11:45:33] Found bmr using specific pattern: 1510
[2026-03-21 11:45:33] Found water_percent using specific pattern: 55.3
[2026-03-21 11:45:33] Found lean_body_mass_lbs using specific pattern: 135.1
[2026-03-21 11:45:33] Found bone_mass_lbs using specific pattern: 6.6
[2026-03-21 11:45:33] Found visceral_fat using specific pattern: 11
[2026-03-21 11:45:33] Found body_fat_mass_lbs using generic pattern: 32.4
[2026-03-21 11:45:33] Found 12 metrics in total
[2026-03-21 11:45:33] Extracted data: {"date":"2026-03-21","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-21 11:45:33] Final data for insertion: {"date":"2026-03-21","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-21 11:45:33] Inserted record with ID: 145
[2026-03-21 11:45:33] Weight also stored in weights table
[2026-03-21 11:45:33] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-21","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"145"}
[2026-03-21 22:35:19] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-21 22:35:19] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-21 22:35:19] Using OCR.space API
[2026-03-21 22:35:19] Using API key: K8465...
[2026-03-21 22:35:21] OCR.space API request completed with HTTP code: 200
[2026-03-21 22:35:21] Request info: {"total_time":1.898735,"size_upload":113045,"size_download":7478}
[2026-03-21 22:35:21] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-03-21 22:35:21] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-03-21 22:35:21] Extracting health metrics from text
[2026-03-21 22:35:21] Found bmi but value 167.5 seems invalid - ignoring
[2026-03-21 22:35:21] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-21 22:35:21] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-21 22:35:21] Found visceral_fat using specific pattern: 6
[2026-03-21 22:35:21] Found weight using trends overview pattern: 167.5
[2026-03-21 22:35:21] Found bmi using trends overview pattern: 26.9
[2026-03-21 22:35:21] Found body_fat_percent using trends overview pattern: 19.4
[2026-03-21 22:35:21] Found water_percent using trends overview pattern: 55.3
[2026-03-21 22:35:21] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-03-21 22:35:21] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-03-21 22:35:21] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-21 22:35:21] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-03-21 22:35:21] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-21 22:35:21] No match found for bmr
[2026-03-21 22:35:21] No match found for body_fat_mass_lbs
[2026-03-21 22:35:21] No match found for bone_mass_lbs
[2026-03-21 22:35:21] Found 6 metrics in total
[2026-03-21 22:35:21] Critical metric muscle_mass_lbs is missing, using default value
[2026-03-21 22:35:21] Critical metric bone_mass_lbs is missing, using default value
[2026-03-21 22:35:21] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-03-21 22:35:21] Adding missing metric bone_mass_percent with default value: 3.9
[2026-03-21 22:35:21] Adding missing metric bmr with default value: 1510
[2026-03-21 22:35:21] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-03-23 03:44:16] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-23 03:44:16] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-23 03:44:16] Using OCR.space API
[2026-03-23 03:44:16] Using API key: K8465...
[2026-03-23 03:44:18] OCR.space API request completed with HTTP code: 200
[2026-03-23 03:44:18] Request info: {"total_time":1.587988,"size_upload":113045,"size_download":7478}
[2026-03-23 03:44:18] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-03-23 03:44:18] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-03-23 03:44:18] Extracting health metrics from text
[2026-03-23 03:44:18] Found bmi but value 167.5 seems invalid - ignoring
[2026-03-23 03:44:18] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-23 03:44:18] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-23 03:44:18] Found visceral_fat using specific pattern: 6
[2026-03-23 03:44:18] Found weight using trends overview pattern: 167.5
[2026-03-23 03:44:18] Found bmi using trends overview pattern: 26.9
[2026-03-23 03:44:18] Found body_fat_percent using trends overview pattern: 19.4
[2026-03-23 03:44:18] Found water_percent using trends overview pattern: 55.3
[2026-03-23 03:44:18] Found muscle_mass_percent using trends overview pattern: 76.7
[2026-03-23 03:44:18] Found bone_mass_percent in trends overview but value 76.7 seems invalid - ignoring
[2026-03-23 03:44:18] Found lean_body_mass_lbs but value 32.4 seems invalid - ignoring
[2026-03-23 03:44:18] Found muscle_mass_lbs but value 19.4 seems invalid - ignoring
[2026-03-23 03:44:18] Found bone_mass_percent but value 76.7 seems invalid - ignoring
[2026-03-23 03:44:18] No match found for bmr
[2026-03-23 03:44:18] No match found for body_fat_mass_lbs
[2026-03-23 03:44:18] No match found for bone_mass_lbs
[2026-03-23 03:44:18] Found 6 metrics in total
[2026-03-23 03:44:18] Critical metric muscle_mass_lbs is missing, using default value
[2026-03-23 03:44:18] Critical metric bone_mass_lbs is missing, using default value
[2026-03-23 03:44:18] Adding missing metric lean_body_mass_lbs with default value: 135.1
[2026-03-23 03:44:18] Adding missing metric bone_mass_percent with default value: 3.9
[2026-03-23 03:44:18] Adding missing metric bmr with default value: 1510
[2026-03-23 03:44:18] Adding missing metric body_fat_mass_lbs with default value: 32.4
[2026-03-23 19:48:13] Health image upload received
[2026-03-23 19:48:13] User ID: 1
[2026-03-23 19:48:13] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c198fd476003.54045144.jpg
[2026-03-23 19:48:13] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c198fd476003.54045144.jpg
[2026-03-23 19:48:13] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c198fd476003.54045144.jpg
[2026-03-23 19:48:13] Using OCR.space API
[2026-03-23 19:48:13] Using API key: K8465...
[2026-03-23 19:48:15] OCR.space API request completed with HTTP code: 200
[2026-03-23 19:48:15] Request info: {"total_time":1.743409,"size_upload":2039885,"size_download":256}
[2026-03-23 19:48:15] OCR.space API raw response: {"OCRExitCode":3,"IsErroredOnProcessing":true,"ErrorMessage":["File size exceeds the maximum size limit. Maximum size limit 1024 KB"],"ErrorDetails":"File size exceeds the maximum size limit. Maximum size limit 1024 KB","ProcessingTimeInMilliseconds":"15"}...
[2026-03-23 19:48:15] OCR.space API error: Array
[2026-03-23 19:48:15] Text extraction failed, using fallback values
[2026-03-23 19:48:15] Extracted data: {"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-23 19:48:15] Final data for insertion: {"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-23 19:48:15] Inserted record with ID: 146
[2026-03-23 19:48:15] Weight also stored in weights table
[2026-03-23 19:48:15] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"146"}
[2026-03-23 19:48:36] Health image upload received
[2026-03-23 19:48:36] User ID: 1
[2026-03-23 19:48:36] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c19914efa586.41356007.jpg
[2026-03-23 19:48:36] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c19914efa586.41356007.jpg
[2026-03-23 19:48:36] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c19914efa586.41356007.jpg
[2026-03-23 19:48:36] Using OCR.space API
[2026-03-23 19:48:36] Using API key: K8465...
[2026-03-23 19:48:38] OCR.space API request completed with HTTP code: 200
[2026-03-23 19:48:38] Request info: {"total_time":1.712594,"size_upload":2039885,"size_download":256}
[2026-03-23 19:48:38] OCR.space API raw response: {"OCRExitCode":3,"IsErroredOnProcessing":true,"ErrorMessage":["File size exceeds the maximum size limit. Maximum size limit 1024 KB"],"ErrorDetails":"File size exceeds the maximum size limit. Maximum size limit 1024 KB","ProcessingTimeInMilliseconds":"15"}...
[2026-03-23 19:48:38] OCR.space API error: Array
[2026-03-23 19:48:38] Text extraction failed, using fallback values
[2026-03-23 19:48:38] Extracted data: {"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-23 19:48:38] Final data for insertion: {"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-23 19:48:38] Inserted record with ID: 147
[2026-03-23 19:48:38] Weight also stored in weights table
[2026-03-23 19:48:38] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"147"}
[2026-03-23 19:49:08] Health image upload received
[2026-03-23 19:49:08] User ID: 1
[2026-03-23 19:49:08] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c199340e47c9.13008153.jpg
[2026-03-23 19:49:08] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c199340e47c9.13008153.jpg
[2026-03-23 19:49:08] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c199340e47c9.13008153.jpg
[2026-03-23 19:49:08] Using OCR.space API
[2026-03-23 19:49:08] Using API key: K8465...
[2026-03-23 19:49:09] OCR.space API request completed with HTTP code: 200
[2026-03-23 19:49:09] Request info: {"total_time":1.708834,"size_upload":2039885,"size_download":256}
[2026-03-23 19:49:09] OCR.space API raw response: {"OCRExitCode":3,"IsErroredOnProcessing":true,"ErrorMessage":["File size exceeds the maximum size limit. Maximum size limit 1024 KB"],"ErrorDetails":"File size exceeds the maximum size limit. Maximum size limit 1024 KB","ProcessingTimeInMilliseconds":"31"}...
[2026-03-23 19:49:09] OCR.space API error: Array
[2026-03-23 19:49:09] Text extraction failed, using fallback values
[2026-03-23 19:49:09] Extracted data: {"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-23 19:49:09] Final data for insertion: {"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-23 19:49:09] Inserted record with ID: 148
[2026-03-23 19:49:09] Weight also stored in weights table
[2026-03-23 19:49:09] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"148"}
[2026-03-23 19:55:52] Health image upload received
[2026-03-23 19:55:52] User ID: 1
[2026-03-23 19:55:52] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c19ac8889996.79205196.jpg
[2026-03-23 19:55:52] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c19ac8889996.79205196.jpg
[2026-03-23 19:55:52] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c19ac8889996.79205196.jpg
[2026-03-23 19:55:52] Using OCR.space API
[2026-03-23 19:55:52] Using API key: K8465...
[2026-03-23 19:55:54] OCR.space API request completed with HTTP code: 200
[2026-03-23 19:55:54] Request info: {"total_time":1.745418,"size_upload":2039885,"size_download":256}
[2026-03-23 19:55:54] OCR.space API raw response: {"OCRExitCode":3,"IsErroredOnProcessing":true,"ErrorMessage":["File size exceeds the maximum size limit. Maximum size limit 1024 KB"],"ErrorDetails":"File size exceeds the maximum size limit. Maximum size limit 1024 KB","ProcessingTimeInMilliseconds":"31"}...
[2026-03-23 19:55:54] OCR.space API error: Array
[2026-03-23 19:55:54] Text extraction failed, using fallback values
[2026-03-23 19:55:54] Extracted data: {"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-23 19:55:54] Final data for insertion: {"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-23 19:55:54] Inserted record with ID: 149
[2026-03-23 19:55:54] Weight also stored in weights table
[2026-03-23 19:55:54] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"149"}
[2026-03-23 19:57:28] Health image upload received
[2026-03-23 19:57:28] User ID: 1
[2026-03-23 19:57:28] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c19b282a8af4.89725373.jpg
[2026-03-23 19:57:28] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c19b282a8af4.89725373.jpg
[2026-03-23 19:57:28] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c19b282a8af4.89725373.jpg
[2026-03-23 19:57:28] Using OCR.space API
[2026-03-23 19:57:28] Using API key: K8465...
[2026-03-23 19:57:29] OCR.space API request completed with HTTP code: 200
[2026-03-23 19:57:29] Request info: {"total_time":1.732387,"size_upload":2039885,"size_download":256}
[2026-03-23 19:57:29] OCR.space API raw response: {"OCRExitCode":3,"IsErroredOnProcessing":true,"ErrorMessage":["File size exceeds the maximum size limit. Maximum size limit 1024 KB"],"ErrorDetails":"File size exceeds the maximum size limit. Maximum size limit 1024 KB","ProcessingTimeInMilliseconds":"31"}...
[2026-03-23 19:57:29] OCR.space API error: Array
[2026-03-23 19:57:29] Text extraction failed, using fallback values
[2026-03-23 19:57:29] Extracted data: {"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-23 19:57:29] Final data for insertion: {"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-23 19:57:29] Inserted record with ID: 150
[2026-03-23 19:57:29] Weight also stored in weights table
[2026-03-23 19:57:29] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"150"}
[2026-03-23 20:20:43] Health image upload received
[2026-03-23 20:20:43] User ID: 1
[2026-03-23 20:20:43] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1a09b8fbf94.93468411.jpg
[2026-03-23 20:20:43] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1a09b8fbf94.93468411.jpg
[2026-03-23 20:20:43] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1a09b8fbf94.93468411.jpg
[2026-03-23 20:20:43] Using OCR.space API
[2026-03-23 20:20:43] Using API key: K8465...
[2026-03-23 20:20:45] OCR.space API request completed with HTTP code: 200
[2026-03-23 20:20:45] Request info: {"total_time":1.696823,"size_upload":2039885,"size_download":256}
[2026-03-23 20:20:45] OCR.space API raw response: {"OCRExitCode":3,"IsErroredOnProcessing":true,"ErrorMessage":["File size exceeds the maximum size limit. Maximum size limit 1024 KB"],"ErrorDetails":"File size exceeds the maximum size limit. Maximum size limit 1024 KB","ProcessingTimeInMilliseconds":"31"}...
[2026-03-23 20:20:45] OCR.space API error: Array
[2026-03-23 20:20:45] Text extraction failed, using fallback values
[2026-03-23 20:20:45] Extracted data: {"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-23 20:20:45] Final data for insertion: {"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-23 20:20:45] Inserted record with ID: 151
[2026-03-23 20:20:45] Weight also stored in weights table
[2026-03-23 20:20:45] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"151"}
[2026-03-23 20:28:39] Health image upload received
[2026-03-23 20:28:39] User ID: 1
[2026-03-23 20:28:39] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1a277b89865.64044298.jpg
[2026-03-23 20:28:39] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1a277b89865.64044298.jpg
[2026-03-23 20:28:39] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1a277b89865.64044298.jpg
[2026-03-23 20:28:39] Using OCR.space API
[2026-03-23 20:28:39] Using API key: K8465...
[2026-03-23 20:28:41] OCR.space API request completed with HTTP code: 200
[2026-03-23 20:28:41] Request info: {"total_time":1.678733,"size_upload":2039885,"size_download":256}
[2026-03-23 20:28:41] OCR.space API raw response: {"OCRExitCode":3,"IsErroredOnProcessing":true,"ErrorMessage":["File size exceeds the maximum size limit. Maximum size limit 1024 KB"],"ErrorDetails":"File size exceeds the maximum size limit. Maximum size limit 1024 KB","ProcessingTimeInMilliseconds":"15"}...
[2026-03-23 20:28:41] OCR.space API error: Array
[2026-03-23 20:28:41] Text extraction failed, using fallback values
[2026-03-23 20:28:41] Extracted data: {"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-23 20:28:41] Final data for insertion: {"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-23 20:28:41] Inserted record with ID: 152
[2026-03-23 20:28:41] Weight also stored in weights table
[2026-03-23 20:28:41] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"152"}
[2026-03-23 20:29:46] Health image upload received
[2026-03-23 20:29:46] User ID: 1
[2026-03-23 20:29:46] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1a2bac9e524.61559173.jpg
[2026-03-23 20:29:46] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1a2bac9e524.61559173.jpg
[2026-03-23 20:29:46] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1a2bac9e524.61559173.jpg
[2026-03-23 20:29:46] Using OCR.space API
[2026-03-23 20:29:46] Using API key: K8465...
[2026-03-23 20:29:48] OCR.space API request completed with HTTP code: 200
[2026-03-23 20:29:48] Request info: {"total_time":1.732126,"size_upload":2039885,"size_download":256}
[2026-03-23 20:29:48] OCR.space API raw response: {"OCRExitCode":3,"IsErroredOnProcessing":true,"ErrorMessage":["File size exceeds the maximum size limit. Maximum size limit 1024 KB"],"ErrorDetails":"File size exceeds the maximum size limit. Maximum size limit 1024 KB","ProcessingTimeInMilliseconds":"15"}...
[2026-03-23 20:29:48] OCR.space API error: Array
[2026-03-23 20:29:48] Text extraction failed, using fallback values
[2026-03-23 20:29:48] Extracted data: {"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-23 20:29:48] Final data for insertion: {"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-23 20:29:48] Inserted record with ID: 153
[2026-03-23 20:29:48] Weight also stored in weights table
[2026-03-23 20:29:48] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"153"}
[2026-03-23 20:44:07] Health image upload received
[2026-03-23 20:44:07] User ID: 1
[2026-03-23 20:44:07] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1a6175fd4a9.90808168.jpg
[2026-03-23 20:44:07] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1a6175fd4a9.90808168.jpg
[2026-03-23 20:44:07] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1a6175fd4a9.90808168.jpg
[2026-03-23 20:44:07] Using OCR.space API
[2026-03-23 20:44:07] Using API key: K8465...
[2026-03-23 20:44:09] OCR.space API request completed with HTTP code: 200
[2026-03-23 20:44:09] Request info: {"total_time":1.659828,"size_upload":2039885,"size_download":256}
[2026-03-23 20:44:09] OCR.space API raw response: {"OCRExitCode":3,"IsErroredOnProcessing":true,"ErrorMessage":["File size exceeds the maximum size limit. Maximum size limit 1024 KB"],"ErrorDetails":"File size exceeds the maximum size limit. Maximum size limit 1024 KB","ProcessingTimeInMilliseconds":"15"}...
[2026-03-23 20:44:09] OCR.space API error: Array
[2026-03-23 20:44:09] Text extraction failed, using fallback values
[2026-03-23 20:44:09] Extracted data: {"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-23 20:44:09] Final data for insertion: {"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-23 20:44:09] Inserted record with ID: 154
[2026-03-23 20:44:09] Weight also stored in weights table
[2026-03-23 20:44:09] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"154"}
[2026-03-23 20:54:39] Health image upload received
[2026-03-23 20:54:39] User ID: 1
[2026-03-23 20:54:39] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1a88fad1952.08114706.jpg
[2026-03-23 20:54:39] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1a88fad1952.08114706.jpg
[2026-03-23 20:54:39] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1a88fad1952.08114706.jpg
[2026-03-23 20:54:39] Using OCR.space API
[2026-03-23 20:54:39] Using API key: K8465...
[2026-03-23 20:54:41] OCR.space API request completed with HTTP code: 200
[2026-03-23 20:54:41] Request info: {"total_time":1.71043,"size_upload":2039885,"size_download":256}
[2026-03-23 20:54:41] OCR.space API raw response: {"OCRExitCode":3,"IsErroredOnProcessing":true,"ErrorMessage":["File size exceeds the maximum size limit. Maximum size limit 1024 KB"],"ErrorDetails":"File size exceeds the maximum size limit. Maximum size limit 1024 KB","ProcessingTimeInMilliseconds":"31"}...
[2026-03-23 20:54:41] OCR.space API error: Array
[2026-03-23 20:54:41] Text extraction failed, using fallback values
[2026-03-23 20:54:41] Extracted data: {"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-23 20:54:41] Final data for insertion: {"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-23 20:54:41] Inserted record with ID: 155
[2026-03-23 20:54:41] Weight also stored in weights table
[2026-03-23 20:54:41] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"155"}
[2026-03-23 21:22:19] Health image upload received
[2026-03-23 21:22:19] User ID: 1
[2026-03-23 21:22:19] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1af0bf1fbb7.20338963.png
[2026-03-23 21:22:19] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1af0bf1fbb7.20338963.png
[2026-03-23 21:22:19] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1af0bf1fbb7.20338963.png
[2026-03-23 21:22:19] Using OCR.space API
[2026-03-23 21:22:19] Using API key: K8465...
[2026-03-23 21:22:21] OCR.space API request completed with HTTP code: 200
[2026-03-23 21:22:21] Request info: {"total_time":1.778512,"size_upload":48597,"size_download":8052}
[2026-03-23 21:22:21] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"Body Composition Analysis","Words":[{"WordText":"Body","Left":26.0,"Top":42.0,"Height":22.0,"Width":44.0},{"WordText":"Composition","Left":73.0,"Top":42.0,"Height":22.0,"Width":107.0},{"WordText":"Analysis","Left":183.0,"Top":42.0,"Height":22.0,"Width":71.0}],"MaxHeight":22.0,"MinTop":42.0},{"LineText":"Body Water","Words":[{"WordText":"Body","Left":42.0,"Top":126.0,"Height":20.0,"Width":38.0},{"WordText":"Water","Left":82.0,"Top":126.0,"He...
[2026-03-23 21:22:21] OCR.space API extracted text: Body Composition Analysis
Body Water
Protein
Bone Mass
Body Fat Mass
Measurement (Ib)
95.1
26.0
8.6
...
[2026-03-23 21:22:21] Extracting health metrics from text
[2026-03-23 21:22:21] Found water_percent using trends overview pattern: 23.7
[2026-03-23 21:22:21] Found weight using generic pattern: 169.8
[2026-03-23 21:22:21] No match found for body_fat_percent
[2026-03-23 21:22:21] No match found for lean_body_mass_lbs
[2026-03-23 21:22:21] No match found for muscle_mass_lbs
[2026-03-23 21:22:21] No match found for bmi
[2026-03-23 21:22:21] No match found for muscle_mass_percent
[2026-03-23 21:22:21] No match found for bone_mass_percent
[2026-03-23 21:22:21] No match found for bmr
[2026-03-23 21:22:21] No match found for visceral_fat
[2026-03-23 21:22:21] No match found for body_fat_mass_lbs
[2026-03-23 21:22:21] No match found for bone_mass_lbs
[2026-03-23 21:22:21] Found 2 metrics in total
[2026-03-23 21:22:21] Not enough metrics found, falling back to default values
[2026-03-23 21:22:21] Extracted data: {"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-23 21:22:21] Final data for insertion: {"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-23 21:22:21] Inserted record with ID: 156
[2026-03-23 21:22:21] Weight also stored in weights table
[2026-03-23 21:22:21] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"156"}
[2026-03-23 21:54:06] Health image upload received
[2026-03-23 21:54:06] User ID: 1
[2026-03-23 21:54:06] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1b67e0cd500.44511876.jpg
[2026-03-23 21:54:06] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1b67e0cd500.44511876.jpg
[2026-03-23 21:54:06] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1b67e0cd500.44511876.jpg
[2026-03-23 21:54:06] Using OCR.space API
[2026-03-23 21:54:06] Using API key: K8465...
[2026-03-23 21:54:07] OCR.space API request completed with HTTP code: 200
[2026-03-23 21:54:07] Request info: {"total_time":1.76927,"size_upload":369157,"size_download":8346}
[2026-03-23 21:54:07] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"Body Composition Analysis","Words":[{"WordText":"Body","Left":173.0,"Top":157.0,"Height":70.0,"Width":149.0},{"WordText":"Composition","Left":331.0,"Top":157.0,"Height":70.0,"Width":385.0},{"WordText":"Analysis","Left":724.0,"Top":157.0,"Height":70.0,"Width":244.0}],"MaxHeight":70.0,"MinTop":157.0},{"LineText":"Body Water","Words":[{"WordText":"Body","Left":221.0,"Top":452.0,"Height":56.0,"Width":142.0},{"WordText":"Water","Left":370.0,"Top...
[2026-03-23 21:54:07] OCR.space API extracted text: Body Composition Analysis
Body Water
Protein
Bone Mass
Body Fat Mass
Measurement (Ib)
95.1
26.0
8.6
...
[2026-03-23 21:54:07] Extracting health metrics from text
[2026-03-23 21:54:07] Found water_percent using trends overview pattern: 23.7
[2026-03-23 21:54:07] Found weight using generic pattern: 169.8
[2026-03-23 21:54:07] No match found for body_fat_percent
[2026-03-23 21:54:07] No match found for lean_body_mass_lbs
[2026-03-23 21:54:07] No match found for muscle_mass_lbs
[2026-03-23 21:54:07] No match found for bmi
[2026-03-23 21:54:07] No match found for muscle_mass_percent
[2026-03-23 21:54:07] No match found for bone_mass_percent
[2026-03-23 21:54:07] No match found for bmr
[2026-03-23 21:54:07] No match found for visceral_fat
[2026-03-23 21:54:07] No match found for body_fat_mass_lbs
[2026-03-23 21:54:07] No match found for bone_mass_lbs
[2026-03-23 21:54:07] Found 2 metrics in total
[2026-03-23 21:54:07] Not enough metrics found, falling back to default values
[2026-03-23 21:54:07] Extracted data: {"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-23 21:54:07] Final data for insertion: {"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-23 21:54:07] Inserted record with ID: 157
[2026-03-23 21:54:07] Weight also stored in weights table
[2026-03-23 21:54:07] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"157"}
[2026-03-23 22:17:43] Health image upload received
[2026-03-23 22:17:43] User ID: 1
[2026-03-23 22:17:43] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1bc077b2c42.06270944.jpg
[2026-03-23 22:17:43] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1bc077b2c42.06270944.jpg
[2026-03-23 22:17:43] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1bc077b2c42.06270944.jpg
[2026-03-23 22:17:43] Using OCR.space API
[2026-03-23 22:17:43] Using API key: K8465...
[2026-03-23 22:17:45] OCR.space API request completed with HTTP code: 200
[2026-03-23 22:17:45] Request info: {"total_time":1.850111,"size_upload":369157,"size_download":8346}
[2026-03-23 22:17:45] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"Body Composition Analysis","Words":[{"WordText":"Body","Left":173.0,"Top":157.0,"Height":70.0,"Width":149.0},{"WordText":"Composition","Left":331.0,"Top":157.0,"Height":70.0,"Width":385.0},{"WordText":"Analysis","Left":724.0,"Top":157.0,"Height":70.0,"Width":244.0}],"MaxHeight":70.0,"MinTop":157.0},{"LineText":"Body Water","Words":[{"WordText":"Body","Left":221.0,"Top":452.0,"Height":56.0,"Width":142.0},{"WordText":"Water","Left":370.0,"Top...
[2026-03-23 22:17:45] OCR.space API extracted text: Body Composition Analysis
Body Water
Protein
Bone Mass
Body Fat Mass
Measurement (Ib)
95.1
26.0
8.6
...
[2026-03-23 22:17:45] Extracting health metrics from text
[2026-03-23 22:17:45] Found water_percent using trends overview pattern: 23.7
[2026-03-23 22:17:45] Found weight using generic pattern: 169.8
[2026-03-23 22:17:45] No match found for body_fat_percent
[2026-03-23 22:17:45] No match found for lean_body_mass_lbs
[2026-03-23 22:17:45] No match found for muscle_mass_lbs
[2026-03-23 22:17:45] No match found for bmi
[2026-03-23 22:17:45] No match found for muscle_mass_percent
[2026-03-23 22:17:45] No match found for bone_mass_percent
[2026-03-23 22:17:45] No match found for bmr
[2026-03-23 22:17:45] No match found for visceral_fat
[2026-03-23 22:17:45] No match found for body_fat_mass_lbs
[2026-03-23 22:17:45] No match found for bone_mass_lbs
[2026-03-23 22:17:45] Found 2 metrics in total
[2026-03-23 22:17:45] Not enough metrics found, falling back to default values
[2026-03-23 22:17:45] Extracted data: {"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-23 22:17:45] Final data for insertion: {"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-23 22:17:45] Inserted record with ID: 158
[2026-03-23 22:17:45] Weight also stored in weights table
[2026-03-23 22:17:45] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"158"}
[2026-03-23 22:25:43] Health image upload received
[2026-03-23 22:25:43] User ID: 1
[2026-03-23 22:25:43] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1bde7661955.60842660.jpg
[2026-03-23 22:25:43] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1bde7661955.60842660.jpg
[2026-03-23 22:25:43] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1bde7661955.60842660.jpg
[2026-03-23 22:25:43] Using OCR.space API
[2026-03-23 22:25:43] Using API key: K8465...
[2026-03-23 22:25:45] OCR.space API request completed with HTTP code: 200
[2026-03-23 22:25:45] Request info: {"total_time":1.754883,"size_upload":369157,"size_download":8346}
[2026-03-23 22:25:45] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"Body Composition Analysis","Words":[{"WordText":"Body","Left":173.0,"Top":157.0,"Height":70.0,"Width":149.0},{"WordText":"Composition","Left":331.0,"Top":157.0,"Height":70.0,"Width":385.0},{"WordText":"Analysis","Left":724.0,"Top":157.0,"Height":70.0,"Width":244.0}],"MaxHeight":70.0,"MinTop":157.0},{"LineText":"Body Water","Words":[{"WordText":"Body","Left":221.0,"Top":452.0,"Height":56.0,"Width":142.0},{"WordText":"Water","Left":370.0,"Top...
[2026-03-23 22:25:45] OCR.space API extracted text: Body Composition Analysis
Body Water
Protein
Bone Mass
Body Fat Mass
Measurement (Ib)
95.1
26.0
8.6
...
[2026-03-23 22:25:45] Extracting health metrics from text
[2026-03-23 22:25:45] Found water_percent using trends overview pattern: 23.7
[2026-03-23 22:25:45] Found weight using generic pattern: 169.8
[2026-03-23 22:25:45] No match found for body_fat_percent
[2026-03-23 22:25:45] No match found for lean_body_mass_lbs
[2026-03-23 22:25:45] No match found for muscle_mass_lbs
[2026-03-23 22:25:45] No match found for bmi
[2026-03-23 22:25:45] No match found for muscle_mass_percent
[2026-03-23 22:25:45] No match found for bone_mass_percent
[2026-03-23 22:25:45] No match found for bmr
[2026-03-23 22:25:45] No match found for visceral_fat
[2026-03-23 22:25:45] No match found for body_fat_mass_lbs
[2026-03-23 22:25:45] No match found for bone_mass_lbs
[2026-03-23 22:25:45] Found 2 metrics in total
[2026-03-23 22:25:45] Low OCR match count (2). Returning partial/null metrics without defaults.
[2026-03-23 22:25:45] Extracted data: {"date":"2026-03-23","weight":169.8,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":23.7,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":null,"visceral_fat":null,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-03-23 22:25:45] Final data for insertion: {"date":"2026-03-23","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":23.7,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":null,"visceral_fat":null,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-03-23 22:25:45] Inserted record with ID: 159
[2026-03-23 22:25:45] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-23","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":23.7,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":null,"visceral_fat":null,"body_fat_mass_lbs":null,"bone_mass_lbs":null},"record_id":"159"}
[2026-03-23 22:29:18] Health image upload received
[2026-03-23 22:29:18] User ID: 1
[2026-03-23 22:29:18] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1bebee74474.43845188.jpg
[2026-03-23 22:29:18] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1bebee74474.43845188.jpg
[2026-03-23 22:29:18] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1bebee74474.43845188.jpg
[2026-03-23 22:29:18] Using OCR.space API
[2026-03-23 22:29:18] Using API key: K8465...
[2026-03-23 22:29:20] OCR.space API request completed with HTTP code: 200
[2026-03-23 22:29:20] Request info: {"total_time":1.827501,"size_upload":369157,"size_download":8346}
[2026-03-23 22:29:20] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"Body Composition Analysis","Words":[{"WordText":"Body","Left":173.0,"Top":157.0,"Height":70.0,"Width":149.0},{"WordText":"Composition","Left":331.0,"Top":157.0,"Height":70.0,"Width":385.0},{"WordText":"Analysis","Left":724.0,"Top":157.0,"Height":70.0,"Width":244.0}],"MaxHeight":70.0,"MinTop":157.0},{"LineText":"Body Water","Words":[{"WordText":"Body","Left":221.0,"Top":452.0,"Height":56.0,"Width":142.0},{"WordText":"Water","Left":370.0,"Top...
[2026-03-23 22:29:20] OCR.space API extracted text: Body Composition Analysis
Body Water
Protein
Bone Mass
Body Fat Mass
Measurement (Ib)
95.1
26.0
8.6
...
[2026-03-23 22:29:20] Extracting health metrics from text
[2026-03-23 22:29:20] Found water_percent using trends overview pattern: 23.7
[2026-03-23 22:29:20] Found weight using generic pattern: 169.8
[2026-03-23 22:29:20] No match found for body_fat_percent
[2026-03-23 22:29:20] No match found for lean_body_mass_lbs
[2026-03-23 22:29:20] No match found for muscle_mass_lbs
[2026-03-23 22:29:20] No match found for bmi
[2026-03-23 22:29:20] No match found for muscle_mass_percent
[2026-03-23 22:29:20] No match found for bone_mass_percent
[2026-03-23 22:29:20] No match found for bmr
[2026-03-23 22:29:20] No match found for visceral_fat
[2026-03-23 22:29:20] No match found for body_fat_mass_lbs
[2026-03-23 22:29:20] No match found for bone_mass_lbs
[2026-03-23 22:29:20] Found 2 metrics in total
[2026-03-23 22:29:20] Low OCR match count (2). Returning partial/null metrics without defaults.
[2026-03-23 22:29:20] Extracted data: {"date":"2026-03-23","weight":169.8,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":23.7,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":null,"visceral_fat":null,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-03-23 22:29:20] Final data for insertion: {"date":"2026-03-23","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":23.7,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":null,"visceral_fat":null,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-03-23 22:29:20] Inserted record with ID: 160
[2026-03-23 22:29:20] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-23","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":23.7,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":null,"visceral_fat":null,"body_fat_mass_lbs":null,"bone_mass_lbs":null},"record_id":"160"}
[2026-03-23 22:36:16] Health image upload received
[2026-03-23 22:36:16] User ID: 1
[2026-03-23 22:36:16] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1c060ab4424.19103145.jpg
[2026-03-23 22:36:16] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1c060ab4424.19103145.jpg
[2026-03-23 22:36:16] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1c060ab4424.19103145.jpg
[2026-03-23 22:36:16] Using OCR.space API
[2026-03-23 22:36:16] Using API key: K8465...
[2026-03-23 22:36:18] OCR.space API request completed with HTTP code: 200
[2026-03-23 22:36:18] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"Body Composition Analysis","Words":[{"WordText":"Body","Left":173.0,"Top":157.0,"Height":70.0,"Width":149.0},{"WordText":"Composition","Left":331.0,"Top":157.0,"Height":70.0,"Width":385.0},{"WordText":"Analysis","Left":724.0,"Top":157.0,"Height":70.0,"Width":244.0}],"MaxHeight":70.0,"MinTop":157.0},{"LineText":"Body Water","Words":[{"WordText":"Body","Left":221.0,"Top":452.0,"Height":56.0,"Width":142.0},{"WordText":"Water","Left":370.0,"Top...
[2026-03-23 22:36:18] OCR.space API extracted text: Body Composition Analysis
Body Water
Protein
Bone Mass
Body Fat Mass
Measurement (Ib)
95.1
26.0
8.6
...
[2026-03-23 22:36:18] Extracting health metrics from text
[2026-03-23 22:36:18] Full OCR text for parsing:
Body Composition Analysis
Body Water
Protein
Bone Mass
Body Fat Mass
Measurement (Ib)
95.1
26.0
8.6
40.2
Weight
169.8
Standard (Ib)
(72.4~90.2)
(19.7~24.6)
(6.6~8.2)
(16.2~32.5)
(115.0~155.6)
Other Metrics
Body Fat
Muscle Mass
Lean Body Mass
Visceral Fat
BMR
Metabolic Age
Skeletal Muscle
23.7%
121.016
129.61b
6
1640kcal
51
73.4lb
[2026-03-23 22:36:18] No match for visceral_fat
[2026-03-23 22:36:18] No match for bmr
[2026-03-23 22:36:18] No match for bmi
[2026-03-23 22:36:18] Matched body_fat_mass_lbs = 95.1 (label: 'body\s+fat\s+mass')
[2026-03-23 22:36:18] No match for body_fat_percent
[2026-03-23 22:36:18] No match for bone_mass_percent
[2026-03-23 22:36:18] No match for bone_mass_lbs
[2026-03-23 22:36:18] No match for water_percent
[2026-03-23 22:36:18] No match for muscle_mass_percent
[2026-03-23 22:36:18] No match for lean_body_mass_lbs
[2026-03-23 22:36:18] No match for muscle_mass_lbs
[2026-03-23 22:36:18] Matched weight = 169.8 (label: 'weight')
[2026-03-23 22:36:18] Found 2 metrics in total
[2026-03-23 22:36:18] Extracted data: {"date":"2026-03-23","weight":169.8,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":null,"visceral_fat":null,"body_fat_mass_lbs":95.1,"bone_mass_lbs":null}
[2026-03-23 22:36:18] Final data for insertion: {"date":"2026-03-23","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":null,"visceral_fat":null,"body_fat_mass_lbs":95.1,"bone_mass_lbs":null}
[2026-03-23 22:36:18] Inserted record with ID: 161
[2026-03-23 22:36:18] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-23","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":null,"visceral_fat":null,"body_fat_mass_lbs":95.1,"bone_mass_lbs":null},"record_id":"161"}
[2026-03-23 22:41:38] Health image upload received
[2026-03-23 22:41:38] User ID: 1
[2026-03-23 22:41:38] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1c1a2788345.42942271.jpg
[2026-03-23 22:41:38] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1c1a2788345.42942271.jpg
[2026-03-23 22:41:38] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1c1a2788345.42942271.jpg
[2026-03-23 22:41:38] Using OCR.space API
[2026-03-23 22:41:38] Using API key: K8465...
[2026-03-23 22:42:08] OCR.space API request completed with HTTP code: 0
[2026-03-23 22:42:08] cURL error: Operation timed out after 30002 milliseconds with 0 bytes received
[2026-03-23 22:42:08] Text extraction failed
[2026-03-23 22:42:08] Error: Failed to extract data from image
[2026-03-23 22:42:08] Response: {"success":false,"message":"Error: Failed to extract data from image"}
[2026-03-23 22:44:49] Health image upload received
[2026-03-23 22:44:49] User ID: 1
[2026-03-23 22:44:49] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1c261678481.19611727.jpg
[2026-03-23 22:44:49] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1c261678481.19611727.jpg
[2026-03-23 22:44:49] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c1c261678481.19611727.jpg
[2026-03-23 22:44:49] Using OCR.space API
[2026-03-23 22:44:49] Using API key: K8465...
[2026-03-23 22:44:51] OCR.space API attempt 1 completed with HTTP code: 200
[2026-03-23 22:44:51] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"Body Composition Analysis","Words":[{"WordText":"Body","Left":173.0,"Top":157.0,"Height":70.0,"Width":149.0},{"WordText":"Composition","Left":331.0,"Top":157.0,"Height":70.0,"Width":385.0},{"WordText":"Analysis","Left":724.0,"Top":157.0,"Height":70.0,"Width":244.0}],"MaxHeight":70.0,"MinTop":157.0},{"LineText":"Body Water","Words":[{"WordText":"Body","Left":221.0,"Top":452.0,"Height":56.0,"Width":142.0},{"WordText":"Water","Left":370.0,"Top...
[2026-03-23 22:44:51] OCR.space API extracted text: Body Composition Analysis
Body Water
Protein
Bone Mass
Body Fat Mass
Measurement (Ib)
95.1
26.0
8.6
...
[2026-03-23 22:44:51] Extracting health metrics from text
[2026-03-23 22:44:51] Full OCR text for parsing:
Body Composition Analysis
Body Water
Protein
Bone Mass
Body Fat Mass
Measurement (Ib)
95.1
26.0
8.6
40.2
Weight
169.8
Standard (Ib)
(72.4~90.2)
(19.7~24.6)
(6.6~8.2)
(16.2~32.5)
(115.0~155.6)
Other Metrics
Body Fat
Muscle Mass
Lean Body Mass
Visceral Fat
BMR
Metabolic Age
Skeletal Muscle
23.7%
121.016
129.61b
6
1640kcal
51
73.4lb
[2026-03-23 22:44:51] Detected 'Other Metrics' section — trying columnar extraction
[2026-03-23 22:44:51] Other Metrics lines: ["body fat","muscle mass","lean body mass","visceral fat","bmr","metabolic age","skeletal muscle","23.7%","121.016","129.61b","6","1640kcal","51","73.4lb"]
[2026-03-23 22:44:51] Labels: ["body fat","muscle mass","lean body mass","visceral fat","bmr","metabolic age","skeletal muscle"] | Values: ["23.7%","121.016","129.61b","6","1640kcal","51","73.4lb"]
[2026-03-23 22:44:51] Pass2 columnar matched body_fat_percent = 23.7 (label line: 'body fat')
[2026-03-23 22:44:51] Pass2 columnar matched muscle_mass_lbs = 121.016 (label line: 'muscle mass')
[2026-03-23 22:44:51] Pass2 columnar matched lean_body_mass_lbs = 129.61 (label line: 'lean body mass')
[2026-03-23 22:44:51] Pass2 columnar matched visceral_fat = 6 (label line: 'visceral fat')
[2026-03-23 22:44:51] Pass2 columnar matched bmr = 1640 (label line: 'bmr')
[2026-03-23 22:44:51] Detected 'Body Composition Analysis' section — trying table extraction
[2026-03-23 22:44:51] Composition lines: ["body water","protein","bone mass","body fat mass","measurement (ib)","95.1","26.0","8.6","40.2","weight","169.8","standard (ib)","(72.4~90.2)","(19.7~24.6)","(6.6~8.2)","(16.2~32.5)","(115.0~155.6)"]
[2026-03-23 22:44:51] Pass3 table matched bone_mass_lbs = 8.6 (label line: 'bone mass')
[2026-03-23 22:44:51] Pass3 table matched body_fat_mass_lbs = 40.2 (label line: 'body fat mass')
[2026-03-23 22:44:51] Pass3 table matched weight = 169.8 (label line: 'weight')
[2026-03-23 22:44:51] Found 8 metrics in total
[2026-03-23 22:44:51] Extracted data: {"date":"2026-03-23","weight":169.8,"body_fat_percent":23.7,"lean_body_mass_lbs":129.61,"muscle_mass_lbs":121.016,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1640,"visceral_fat":6,"body_fat_mass_lbs":40.2,"bone_mass_lbs":8.6}
[2026-03-23 22:44:51] Final data for insertion: {"date":"2026-03-23","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1640,"visceral_fat":6,"body_fat_mass_lbs":40.2,"bone_mass_lbs":8.6}
[2026-03-23 22:44:51] Inserted record with ID: 162
[2026-03-23 22:44:51] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-23","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1640,"visceral_fat":6,"body_fat_mass_lbs":40.2,"bone_mass_lbs":8.6},"record_id":"162"}
[2026-03-24 09:54:07] Health image upload received
[2026-03-24 09:54:07] Error: Missing or invalid user_id
[2026-03-24 09:54:07] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-03-24 16:25:51] Health image upload received
[2026-03-24 16:25:51] User ID: 1
[2026-03-24 16:25:51] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c2bb0f625c62.00749770.jpg
[2026-03-24 16:25:51] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c2bb0f625c62.00749770.jpg
[2026-03-24 16:25:51] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c2bb0f625c62.00749770.jpg
[2026-03-24 16:25:51] Using OCR.space API
[2026-03-24 16:25:51] Using API key: K8465...
[2026-03-24 16:25:53] OCR.space API attempt 1 completed with HTTP code: 200
[2026-03-24 16:25:53] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"Body Composition Analysis","Words":[{"WordText":"Body","Left":174.0,"Top":137.0,"Height":64.0,"Width":152.0},{"WordText":"Composition","Left":334.0,"Top":137.0,"Height":64.0,"Width":384.0},{"WordText":"Analysis","Left":726.0,"Top":137.0,"Height":64.0,"Width":241.0}],"MaxHeight":64.0,"MinTop":137.0},{"LineText":"Body Water","Words":[{"WordText":"Body","Left":222.0,"Top":428.0,"Height":64.0,"Width":134.0},{"WordText":"Water","Left":364.0,"Top...
[2026-03-24 16:25:53] OCR.space API extracted text: Body Composition Analysis
Body Water
Protein
Bone Mass
Body Fat Mass
Measurement (Ib)
Standard (lb)
...
[2026-03-24 16:25:53] Extracting health metrics from text
[2026-03-24 16:25:53] Full OCR text for parsing:
Body Composition Analysis
Body Water
Protein
Bone Mass
Body Fat Mass
Measurement (Ib)
Standard (lb)
94.3
25.7
8.6
40.5
(72.4~90.2)
(19.7~24.6)
(6.6~8.2)
(16.2~32.5)
Weight
169.3
(115.0~155.6)
Other Metrics
Body Fat
Muscle Mass
Lean Body Mass
Visceral Fat
BMR
Metabolic Age
Skeletal Muscle
23.9%
120.21b
128.7lb
1631kcal
51
73.01b
[2026-03-24 16:25:53] Detected 'Other Metrics' section — trying columnar extraction
[2026-03-24 16:25:53] Other Metrics lines: ["body fat","muscle mass","lean body mass","visceral fat","bmr","metabolic age","skeletal muscle","23.9%","120.21b","128.7lb","1631kcal","51","73.01b"]
[2026-03-24 16:25:53] Labels: ["body fat","muscle mass","lean body mass","visceral fat","bmr","metabolic age","skeletal muscle"] | Values: ["23.9%","120.21b","128.7lb","1631kcal","51","73.01b"]
[2026-03-24 16:25:53] Pass2 columnar matched body_fat_percent = 23.9 (label line: 'body fat')
[2026-03-24 16:25:53] Pass2 columnar matched muscle_mass_lbs = 120.21 (label line: 'muscle mass')
[2026-03-24 16:25:53] Pass2 columnar matched lean_body_mass_lbs = 128.7 (label line: 'lean body mass')
[2026-03-24 16:25:53] Detected 'Body Composition Analysis' section — trying table extraction
[2026-03-24 16:25:53] Composition lines: ["body water","protein","bone mass","body fat mass","measurement (ib)","standard (lb)","94.3","25.7","8.6","40.5","(72.4~90.2)","(19.7~24.6)","(6.6~8.2)","(16.2~32.5)","weight","169.3","(115.0~155.6)"]
[2026-03-24 16:25:53] Pass3 table matched bone_mass_lbs = 8.6 (label line: 'bone mass')
[2026-03-24 16:25:53] Pass3 table matched body_fat_mass_lbs = 40.5 (label line: 'body fat mass')
[2026-03-24 16:25:53] Pass3 table matched weight = 169.3 (label line: 'weight')
[2026-03-24 16:25:53] Found 6 metrics in total
[2026-03-24 16:25:53] Extracted data: {"date":"2026-03-24","weight":169.3,"body_fat_percent":23.9,"lean_body_mass_lbs":128.7,"muscle_mass_lbs":120.21,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":null,"visceral_fat":null,"body_fat_mass_lbs":40.5,"bone_mass_lbs":8.6}
[2026-03-24 16:25:53] Final data for insertion: {"date":"2026-03-24","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":null,"visceral_fat":null,"body_fat_mass_lbs":40.5,"bone_mass_lbs":8.6}
[2026-03-24 16:25:53] Inserted record with ID: 163
[2026-03-24 16:25:53] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-24","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":null,"visceral_fat":null,"body_fat_mass_lbs":40.5,"bone_mass_lbs":8.6},"record_id":"163"}
[2026-03-24 16:27:37] Health image upload received
[2026-03-24 16:27:37] User ID: 1
[2026-03-24 16:27:37] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c2bb79cf75d0.26272074.jpg
[2026-03-24 16:27:37] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c2bb79cf75d0.26272074.jpg
[2026-03-24 16:27:37] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c2bb79cf75d0.26272074.jpg
[2026-03-24 16:27:37] Using OCR.space API
[2026-03-24 16:27:37] Using API key: K8465...
[2026-03-24 16:27:39] OCR.space API attempt 1 completed with HTTP code: 200
[2026-03-24 16:27:39] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"Body Composition Analysis","Words":[{"WordText":"Body","Left":174.0,"Top":137.0,"Height":64.0,"Width":152.0},{"WordText":"Composition","Left":334.0,"Top":137.0,"Height":64.0,"Width":384.0},{"WordText":"Analysis","Left":726.0,"Top":137.0,"Height":64.0,"Width":241.0}],"MaxHeight":64.0,"MinTop":137.0},{"LineText":"Body Water","Words":[{"WordText":"Body","Left":222.0,"Top":428.0,"Height":64.0,"Width":134.0},{"WordText":"Water","Left":364.0,"Top...
[2026-03-24 16:27:39] OCR.space API extracted text: Body Composition Analysis
Body Water
Protein
Bone Mass
Body Fat Mass
Measurement (Ib)
Standard (lb)
...
[2026-03-24 16:27:39] Extracting health metrics from text
[2026-03-24 16:27:39] Full OCR text for parsing:
Body Composition Analysis
Body Water
Protein
Bone Mass
Body Fat Mass
Measurement (Ib)
Standard (lb)
94.3
25.7
8.6
40.5
(72.4~90.2)
(19.7~24.6)
(6.6~8.2)
(16.2~32.5)
Weight
169.3
(115.0~155.6)
Other Metrics
Body Fat
Muscle Mass
Lean Body Mass
Visceral Fat
BMR
Metabolic Age
Skeletal Muscle
23.9%
120.21b
128.7lb
1631kcal
51
73.01b
[2026-03-24 16:27:39] Detected 'Other Metrics' section — trying columnar extraction
[2026-03-24 16:27:39] Other Metrics lines: ["body fat","muscle mass","lean body mass","visceral fat","bmr","metabolic age","skeletal muscle","23.9%","120.21b","128.7lb","1631kcal","51","73.01b"]
[2026-03-24 16:27:39] Labels: ["body fat","muscle mass","lean body mass","visceral fat","bmr","metabolic age","skeletal muscle"] | Values: ["23.9%","120.21b","128.7lb","1631kcal","51","73.01b"]
[2026-03-24 16:27:39] Pass2 columnar matched body_fat_percent = 23.9 (label line: 'body fat')
[2026-03-24 16:27:39] Pass2 columnar matched muscle_mass_lbs = 120.21 (label line: 'muscle mass')
[2026-03-24 16:27:39] Pass2 columnar matched lean_body_mass_lbs = 128.7 (label line: 'lean body mass')
[2026-03-24 16:27:39] Detected 'Body Composition Analysis' section — trying table extraction
[2026-03-24 16:27:39] Composition lines: ["body water","protein","bone mass","body fat mass","measurement (ib)","standard (lb)","94.3","25.7","8.6","40.5","(72.4~90.2)","(19.7~24.6)","(6.6~8.2)","(16.2~32.5)","weight","169.3","(115.0~155.6)"]
[2026-03-24 16:27:39] Pass3 table matched bone_mass_lbs = 8.6 (label line: 'bone mass')
[2026-03-24 16:27:39] Pass3 table matched body_fat_mass_lbs = 40.5 (label line: 'body fat mass')
[2026-03-24 16:27:39] Pass3 table matched weight = 169.3 (label line: 'weight')
[2026-03-24 16:27:39] Found 6 metrics in total
[2026-03-24 16:27:39] Extracted data: {"date":"2026-03-24","weight":169.3,"body_fat_percent":23.9,"lean_body_mass_lbs":128.7,"muscle_mass_lbs":120.21,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":null,"visceral_fat":null,"body_fat_mass_lbs":40.5,"bone_mass_lbs":8.6}
[2026-03-24 16:27:39] Final data for insertion: {"date":"2026-03-24","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":null,"visceral_fat":null,"body_fat_mass_lbs":40.5,"bone_mass_lbs":8.6}
[2026-03-24 16:27:39] Inserted record with ID: 164
[2026-03-24 16:27:39] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-24","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":null,"visceral_fat":null,"body_fat_mass_lbs":40.5,"bone_mass_lbs":8.6},"record_id":"164"}
[2026-03-24 16:28:50] Health image upload received
[2026-03-24 16:28:50] User ID: 1
[2026-03-24 16:28:50] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c2bbc227a219.71328894.jpg
[2026-03-24 16:28:50] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c2bbc227a219.71328894.jpg
[2026-03-24 16:28:50] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c2bbc227a219.71328894.jpg
[2026-03-24 16:28:50] Using OCR.space API
[2026-03-24 16:28:50] Using API key: K8465...
[2026-03-24 16:28:52] OCR.space API attempt 1 completed with HTTP code: 200
[2026-03-24 16:28:52] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"Body Fat","Words":[{"WordText":"Body","Left":38.0,"Top":53.0,"Height":49.0,"Width":120.0},{"WordText":"Fat","Left":164.0,"Top":54.0,"Height":49.0,"Width":78.0}],"MaxHeight":49.0,"MinTop":53.0},{"LineText":"Muscle Mass","Words":[{"WordText":"Muscle","Left":40.0,"Top":184.0,"Height":42.0,"Width":163.0},{"WordText":"Mass","Left":208.0,"Top":184.0,"Height":42.0,"Width":124.0}],"MaxHeight":42.0,"MinTop":184.0},{"LineText":"Lean Body Mass","Words...
[2026-03-24 16:28:52] OCR.space API extracted text: Body Fat
Muscle Mass
Lean Body Mass
Visceral Fat
BMR
Metabolic Age
Skeletal Muscle
23.9%
120.2lb
128...
[2026-03-24 16:28:52] Extracting health metrics from text
[2026-03-24 16:28:52] Full OCR text for parsing:
Body Fat
Muscle Mass
Lean Body Mass
Visceral Fat
BMR
Metabolic Age
Skeletal Muscle
23.9%
120.2lb
128.7lb
7
1631kcal
51
73.0lb
[2026-03-24 16:28:52] Found 0 metrics in total
[2026-03-24 16:28:52] Extracted data: {"date":"2026-03-24","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":null,"visceral_fat":null,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-03-24 16:28:52] Error: No OCR metrics were detected from this image. Please upload a clearer report screenshot.
[2026-03-24 16:28:52] Response: {"success":false,"message":"Error: No OCR metrics were detected from this image. Please upload a clearer report screenshot."}
[2026-03-24 16:29:31] Health image upload received
[2026-03-24 16:29:31] User ID: 1
[2026-03-24 16:29:31] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c2bbebd8a760.27968688.jpg
[2026-03-24 16:29:31] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c2bbebd8a760.27968688.jpg
[2026-03-24 16:29:31] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c2bbebd8a760.27968688.jpg
[2026-03-24 16:29:31] Using OCR.space API
[2026-03-24 16:29:31] Using API key: K8465...
[2026-03-24 16:29:33] OCR.space API attempt 1 completed with HTTP code: 200
[2026-03-24 16:29:33] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"Body Fat","Words":[{"WordText":"Body","Left":38.0,"Top":53.0,"Height":49.0,"Width":120.0},{"WordText":"Fat","Left":164.0,"Top":54.0,"Height":49.0,"Width":78.0}],"MaxHeight":49.0,"MinTop":53.0},{"LineText":"Muscle Mass","Words":[{"WordText":"Muscle","Left":40.0,"Top":184.0,"Height":42.0,"Width":163.0},{"WordText":"Mass","Left":208.0,"Top":184.0,"Height":42.0,"Width":124.0}],"MaxHeight":42.0,"MinTop":184.0},{"LineText":"Lean Body Mass","Words...
[2026-03-24 16:29:33] OCR.space API extracted text: Body Fat
Muscle Mass
Lean Body Mass
Visceral Fat
BMR
Metabolic Age
Skeletal Muscle
23.9%
120.2lb
128...
[2026-03-24 16:29:33] Extracting health metrics from text
[2026-03-24 16:29:33] Full OCR text for parsing:
Body Fat
Muscle Mass
Lean Body Mass
Visceral Fat
BMR
Metabolic Age
Skeletal Muscle
23.9%
120.2lb
128.7lb
7
1631kcal
51
73.0lb
[2026-03-24 16:29:33] Found 0 metrics in total
[2026-03-24 16:29:33] Extracted data: {"date":"2026-03-24","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":null,"visceral_fat":null,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-03-24 16:29:33] Error: No OCR metrics were detected from this image. Please upload a clearer report screenshot.
[2026-03-24 16:29:33] Response: {"success":false,"message":"Error: No OCR metrics were detected from this image. Please upload a clearer report screenshot."}
[2026-03-24 16:29:41] Health image upload received
[2026-03-24 16:29:41] User ID: 1
[2026-03-24 16:29:41] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c2bbf57299f2.96094892.jpg
[2026-03-24 16:29:41] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c2bbf57299f2.96094892.jpg
[2026-03-24 16:29:41] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c2bbf57299f2.96094892.jpg
[2026-03-24 16:29:41] Using OCR.space API
[2026-03-24 16:29:41] Using API key: K8465...
[2026-03-24 16:29:43] OCR.space API attempt 1 completed with HTTP code: 200
[2026-03-24 16:29:43] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"Body Composition Analysis","Words":[{"WordText":"Body","Left":174.0,"Top":61.0,"Height":67.0,"Width":151.0},{"WordText":"Composition","Left":333.0,"Top":61.0,"Height":67.0,"Width":377.0},{"WordText":"Analysis","Left":718.0,"Top":61.0,"Height":67.0,"Width":249.0}],"MaxHeight":67.0,"MinTop":61.0},{"LineText":"Body Water","Words":[{"WordText":"Body","Left":225.0,"Top":347.0,"Height":62.0,"Width":130.0},{"WordText":"Water","Left":362.0,"Top":34...
[2026-03-24 16:29:43] OCR.space API extracted text: Body Composition Analysis
Body Water
Protein
Bone Mass
Body Fat Mass
Measurement (Ib)
94.3
25.7
8.6
...
[2026-03-24 16:29:43] Extracting health metrics from text
[2026-03-24 16:29:43] Full OCR text for parsing:
Body Composition Analysis
Body Water
Protein
Bone Mass
Body Fat Mass
Measurement (Ib)
94.3
25.7
8.6
40.5
Weight
169.3
Standard (Ib)
(72.4~90.2)
(19.7~24.6)
(6.6~8.2)
(16.2~32.5)
(115.0~155.6)
Other Metrics
Body Fat
Muscle Mass
Lean Body Mass
Visceral Fat
BMR
Metabolic Age
Skeletal Muscle
23.9%
120.216
128.71b
7
1631kcal
51
73.01b
[2026-03-24 16:29:43] Detected 'Other Metrics' section — trying columnar extraction
[2026-03-24 16:29:43] Other Metrics lines: ["body fat","muscle mass","lean body mass","visceral fat","bmr","metabolic age","skeletal muscle","23.9%","120.216","128.71b","7","1631kcal","51","73.01b"]
[2026-03-24 16:29:43] Labels: ["body fat","muscle mass","lean body mass","visceral fat","bmr","metabolic age","skeletal muscle"] | Values: ["23.9%","120.216","128.71b","7","1631kcal","51","73.01b"]
[2026-03-24 16:29:43] Pass2 columnar matched body_fat_percent = 23.9 (label line: 'body fat')
[2026-03-24 16:29:43] Pass2 columnar matched muscle_mass_lbs = 120.216 (label line: 'muscle mass')
[2026-03-24 16:29:43] Pass2 columnar matched lean_body_mass_lbs = 128.71 (label line: 'lean body mass')
[2026-03-24 16:29:43] Pass2 columnar matched visceral_fat = 7 (label line: 'visceral fat')
[2026-03-24 16:29:43] Pass2 columnar matched bmr = 1631 (label line: 'bmr')
[2026-03-24 16:29:43] Detected 'Body Composition Analysis' section — trying table extraction
[2026-03-24 16:29:43] Composition lines: ["body water","protein","bone mass","body fat mass","measurement (ib)","94.3","25.7","8.6","40.5","weight","169.3","standard (ib)","(72.4~90.2)","(19.7~24.6)","(6.6~8.2)","(16.2~32.5)","(115.0~155.6)"]
[2026-03-24 16:29:43] Pass3 table matched bone_mass_lbs = 8.6 (label line: 'bone mass')
[2026-03-24 16:29:43] Pass3 table matched body_fat_mass_lbs = 40.5 (label line: 'body fat mass')
[2026-03-24 16:29:43] Pass3 table matched weight = 169.3 (label line: 'weight')
[2026-03-24 16:29:43] Found 8 metrics in total
[2026-03-24 16:29:43] Extracted data: {"date":"2026-03-24","weight":169.3,"body_fat_percent":23.9,"lean_body_mass_lbs":128.71,"muscle_mass_lbs":120.216,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1631,"visceral_fat":7,"body_fat_mass_lbs":40.5,"bone_mass_lbs":8.6}
[2026-03-24 16:29:43] Final data for insertion: {"date":"2026-03-24","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1631,"visceral_fat":7,"body_fat_mass_lbs":40.5,"bone_mass_lbs":8.6}
[2026-03-24 16:29:43] Inserted record with ID: 165
[2026-03-24 16:29:43] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-24","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1631,"visceral_fat":7,"body_fat_mass_lbs":40.5,"bone_mass_lbs":8.6},"record_id":"165"}
[2026-03-25 08:03:44] Health image upload received
[2026-03-25 08:03:44] Error: Missing or invalid user_id
[2026-03-25 08:03:44] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-03-25 10:30:55] Health image upload received
[2026-03-25 10:30:55] User ID: 1
[2026-03-25 10:30:55] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c3b95fac7855.17732329.jpg
[2026-03-25 10:30:55] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c3b95fac7855.17732329.jpg
[2026-03-25 10:30:55] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c3b95fac7855.17732329.jpg
[2026-03-25 10:30:55] Using OCR.space API
[2026-03-25 10:30:55] Using API key: K8465...
[2026-03-25 10:30:57] OCR.space API attempt 1 completed with HTTP code: 200
[2026-03-25 10:30:57] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-03-25 10:30:57] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-03-25 10:30:57] Extracting health metrics from text
[2026-03-25 10:30:57] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-03-25 10:30:57] Pass1 matched visceral_fat = 11
[2026-03-25 10:30:57] Pass1 matched bmr = 1510
[2026-03-25 10:30:57] Pass1 matched bmi = 26.9
[2026-03-25 10:30:57] Pass1 matched body_fat_percent = 19.4
[2026-03-25 10:30:57] Pass1 matched bone_mass_percent = 3.9
[2026-03-25 10:30:57] Pass1 matched water_percent = 55.3
[2026-03-25 10:30:57] Pass1 matched muscle_mass_percent = 76.7
[2026-03-25 10:30:57] Pass1 matched body_fat_mass_lbs = 32.4
[2026-03-25 10:30:57] Pass1 matched bone_mass_lbs = 6.6
[2026-03-25 10:30:57] Pass1 matched lean_body_mass_lbs = 135.1
[2026-03-25 10:30:57] Pass1 matched muscle_mass_lbs = 128.5
[2026-03-25 10:30:57] Pass1 matched weight = 167.5
[2026-03-25 10:30:57] Found 12 metrics in total
[2026-03-25 10:30:57] Extracted data: {"date":"2026-03-25","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-25 10:30:57] Final data for insertion: {"date":"2026-03-25","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-25 10:30:57] Inserted record with ID: 166
[2026-03-25 10:30:57] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-25","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"166"}
[2026-03-25 11:37:33] Health image upload received
[2026-03-25 11:37:33] Error: Missing or invalid user_id
[2026-03-25 11:37:33] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-03-25 11:37:45] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-25 11:37:45] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-25 11:37:45] Using OCR.space API
[2026-03-25 11:37:45] Using API key: K8465...
[2026-03-25 11:37:47] OCR.space API attempt 1 completed with HTTP code: 200
[2026-03-25 11:37:47] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-03-25 11:37:47] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-03-25 11:37:47] Extracting health metrics from text
[2026-03-25 11:37:47] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-03-25 11:37:47] Pass1 matched visceral_fat = 6.6
[2026-03-25 11:37:47] Pass1 matched bmr = 1510
[2026-03-25 11:37:47] Pass1 matched body_fat_percent = 19.4
[2026-03-25 11:37:47] Pass1 matched muscle_mass_percent = 76.7
[2026-03-25 11:37:47] Pass1 matched body_fat_mass_lbs = 32.4
[2026-03-25 11:37:47] Pass1 matched bone_mass_lbs = 6.6
[2026-03-25 11:37:47] Pass1 matched weight = 167.5
[2026-03-25 11:37:47] Found 7 metrics in total
[2026-03-25 12:15:24] Health image upload received
[2026-03-25 12:15:24] User ID: 1
[2026-03-25 12:15:24] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c3d1dc4f1c09.48318004.jpg
[2026-03-25 12:15:24] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c3d1dc4f1c09.48318004.jpg
[2026-03-25 12:15:24] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c3d1dc4f1c09.48318004.jpg
[2026-03-25 12:15:24] Using OCR.space API
[2026-03-25 12:15:24] Using API key: K8465...
[2026-03-25 12:15:39] OCR.space API attempt 1 completed with HTTP code: 200
[2026-03-25 12:15:39] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-03-25 12:15:39] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-03-25 12:15:39] Extracting health metrics from text
[2026-03-25 12:15:39] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-03-25 12:15:39] Pass1 matched visceral_fat = 11
[2026-03-25 12:15:39] Pass1 matched bmr = 1510
[2026-03-25 12:15:39] Pass1 matched bmi = 26.9
[2026-03-25 12:15:39] Pass1 matched body_fat_percent = 19.4
[2026-03-25 12:15:39] Pass1 matched bone_mass_percent = 3.9
[2026-03-25 12:15:39] Pass1 matched water_percent = 55.3
[2026-03-25 12:15:39] Pass1 matched muscle_mass_percent = 76.7
[2026-03-25 12:15:39] Pass1 matched body_fat_mass_lbs = 32.4
[2026-03-25 12:15:39] Pass1 matched bone_mass_lbs = 6.6
[2026-03-25 12:15:39] Pass1 matched lean_body_mass_lbs = 135.1
[2026-03-25 12:15:39] Pass1 matched muscle_mass_lbs = 128.5
[2026-03-25 12:15:39] Pass1 matched weight = 167.5
[2026-03-25 12:15:39] Found 12 metrics in total
[2026-03-25 12:15:39] Extracted data: {"date":"2026-03-25","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-25 12:15:39] Final data for insertion: {"date":"2026-03-25","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-25 12:15:39] Inserted record with ID: 167
[2026-03-25 12:15:39] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-25","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"167"}
[2026-03-26 15:09:29] Health image upload received
[2026-03-26 15:09:29] Error: Missing or invalid user_id
[2026-03-26 15:09:29] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-03-26 17:42:56] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-26 17:42:56] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-26 17:42:56] Using OCR.space API
[2026-03-26 17:42:56] Using API key: K8465...
[2026-03-26 17:42:59] OCR.space API attempt 1 completed with HTTP code: 200
[2026-03-26 17:42:59] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-03-26 17:42:59] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-03-26 17:42:59] Extracting health metrics from text
[2026-03-26 17:42:59] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-03-26 17:42:59] Pass1 matched visceral_fat = 6.6
[2026-03-26 17:42:59] Pass1 matched bmr = 1510
[2026-03-26 17:42:59] Pass1 matched body_fat_percent = 19.4
[2026-03-26 17:42:59] Pass1 matched muscle_mass_percent = 76.7
[2026-03-26 17:42:59] Pass1 matched body_fat_mass_lbs = 32.4
[2026-03-26 17:42:59] Pass1 matched bone_mass_lbs = 6.6
[2026-03-26 17:42:59] Pass1 matched weight = 167.5
[2026-03-26 17:42:59] Found 7 metrics in total
[2026-03-27 03:14:40] Health image upload received
[2026-03-27 03:14:40] User ID: 1
[2026-03-27 03:14:40] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c5f6207a8366.33172745.jpg
[2026-03-27 03:14:40] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c5f6207a8366.33172745.jpg
[2026-03-27 03:14:40] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c5f6207a8366.33172745.jpg
[2026-03-27 03:14:40] Using OCR.space API
[2026-03-27 03:14:40] Using API key: K8465...
[2026-03-27 03:14:42] OCR.space API attempt 1 completed with HTTP code: 200
[2026-03-27 03:14:42] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-03-27 03:14:42] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-03-27 03:14:42] Extracting health metrics from text
[2026-03-27 03:14:42] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-03-27 03:14:42] Pass1 matched visceral_fat = 6.6
[2026-03-27 03:14:42] Pass1 matched bmr = 1510
[2026-03-27 03:14:42] Pass1 matched body_fat_percent = 19.4
[2026-03-27 03:14:42] Pass1 matched muscle_mass_percent = 76.7
[2026-03-27 03:14:42] Pass1 matched body_fat_mass_lbs = 32.4
[2026-03-27 03:14:42] Pass1 matched bone_mass_lbs = 6.6
[2026-03-27 03:14:42] Pass1 matched weight = 167.5
[2026-03-27 03:14:42] Found 7 metrics in total
[2026-03-27 03:14:42] Extracted data: {"date":"2026-03-27","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-27 03:14:42] Final data for insertion: {"date":"2026-03-27","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-27 03:14:42] Inserted record with ID: 168
[2026-03-27 03:14:42] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-27","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"168"}
[2026-03-27 18:56:54] Health image upload received
[2026-03-27 18:56:54] User ID: 1
[2026-03-27 18:56:54] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c6d2f62e1dd3.95058252.jpg
[2026-03-27 18:56:54] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c6d2f62e1dd3.95058252.jpg
[2026-03-27 18:56:54] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c6d2f62e1dd3.95058252.jpg
[2026-03-27 18:56:54] Using OCR.space API
[2026-03-27 18:56:54] Using API key: K8465...
[2026-03-27 18:56:56] OCR.space API attempt 1 completed with HTTP code: 200
[2026-03-27 18:56:56] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-03-27 18:56:56] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-03-27 18:56:56] Extracting health metrics from text
[2026-03-27 18:56:56] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-03-27 18:56:56] Pass1 matched visceral_fat = 11
[2026-03-27 18:56:56] Pass1 matched bmr = 1510
[2026-03-27 18:56:56] Pass1 matched bmi = 26.9
[2026-03-27 18:56:56] Pass1 matched body_fat_percent = 19.4
[2026-03-27 18:56:56] Pass1 matched bone_mass_percent = 3.9
[2026-03-27 18:56:56] Pass1 matched water_percent = 55.3
[2026-03-27 18:56:56] Pass1 matched muscle_mass_percent = 76.7
[2026-03-27 18:56:56] Pass1 matched body_fat_mass_lbs = 32.4
[2026-03-27 18:56:56] Pass1 matched bone_mass_lbs = 6.6
[2026-03-27 18:56:56] Pass1 matched lean_body_mass_lbs = 135.1
[2026-03-27 18:56:56] Pass1 matched muscle_mass_lbs = 128.5
[2026-03-27 18:56:56] Pass1 matched weight = 167.5
[2026-03-27 18:56:56] Found 12 metrics in total
[2026-03-27 18:56:56] Extracted data: {"date":"2026-03-27","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-27 18:56:56] Final data for insertion: {"date":"2026-03-27","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-27 18:56:56] Inserted record with ID: 169
[2026-03-27 18:56:56] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-27","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"169"}
[2026-03-28 04:09:54] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-28 04:09:54] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-28 04:09:54] Using OCR.space API
[2026-03-28 04:09:54] Using API key: K8465...
[2026-03-28 04:09:56] OCR.space API attempt 1 completed with HTTP code: 200
[2026-03-28 04:09:56] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-03-28 04:09:56] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-03-28 04:09:56] Extracting health metrics from text
[2026-03-28 04:09:56] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-03-28 04:09:56] Pass1 matched visceral_fat = 6.6
[2026-03-28 04:09:56] Pass1 matched bmr = 1510
[2026-03-28 04:09:56] Pass1 matched body_fat_percent = 19.4
[2026-03-28 04:09:56] Pass1 matched muscle_mass_percent = 76.7
[2026-03-28 04:09:56] Pass1 matched body_fat_mass_lbs = 32.4
[2026-03-28 04:09:56] Pass1 matched bone_mass_lbs = 6.6
[2026-03-28 04:09:56] Pass1 matched weight = 167.5
[2026-03-28 04:09:56] Found 7 metrics in total
[2026-03-28 13:41:06] Health image upload received
[2026-03-28 13:41:06] User ID: 1
[2026-03-28 13:41:06] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c7da72496321.01620628.jpg
[2026-03-28 13:41:06] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c7da72496321.01620628.jpg
[2026-03-28 13:41:06] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c7da72496321.01620628.jpg
[2026-03-28 13:41:06] Using OCR.space API
[2026-03-28 13:41:06] Using API key: K8465...
[2026-03-28 13:41:08] OCR.space API attempt 1 completed with HTTP code: 200
[2026-03-28 13:41:08] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"Body Water","Words":[{"WordText":"Body","Left":225.0,"Top":210.0,"Height":58.0,"Width":134.0},{"WordText":"Water","Left":365.0,"Top":212.0,"Height":58.0,"Width":168.0}],"MaxHeight":60.0,"MinTop":210.0},{"LineText":"Protein","Words":[{"WordText":"Protein","Left":225.0,"Top":355.0,"Height":48.0,"Width":186.0}],"MaxHeight":48.0,"MinTop":355.0},{"LineText":"Bone Mass","Words":[{"WordText":"Bone","Left":225.0,"Top":494.0,"Height":48.0,"Width":14...
[2026-03-28 13:41:08] OCR.space API extracted text: Body Water
Protein
Bone Mass
Body Fat Mass
Measurement (Ib)
Standard (Ib)
93.7
25.5
8.6
40.2
(72.4~9...
[2026-03-28 13:41:08] Extracting health metrics from text
[2026-03-28 13:41:08] Full OCR text for parsing:
Body Water
Protein
Bone Mass
Body Fat Mass
Measurement (Ib)
Standard (Ib)
93.7
25.5
8.6
40.2
(72.4~90.2)
(19.7~24.6)
(6.6~8.2)
(16.2~32.5)
Weight
168.0
(115.0~155.6)
Body Fat
Muscle Mass
Lean Body Mass
Visceral Fat
BMR
Metabolic Age
Skeletal Muscle
23.9%
119.31b
127.91b
6
1622kcal
51
72.316
[2026-03-28 13:41:08] Pass1 matched weight = 168
[2026-03-28 13:41:08] Found 1 metrics in total
[2026-03-28 13:41:08] Extracted data: {"date":"2026-03-28","weight":168,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":null,"visceral_fat":null,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-03-28 13:41:08] Error: No OCR metrics were detected from this image. Please upload a clearer report screenshot.
[2026-03-28 13:41:08] Response: {"success":false,"message":"Error: No OCR metrics were detected from this image. Please upload a clearer report screenshot."}
[2026-03-28 13:41:35] Health image upload received
[2026-03-28 13:41:35] User ID: 1
[2026-03-28 13:41:35] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c7da8f2aba55.44555711.jpg
[2026-03-28 13:41:35] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c7da8f2aba55.44555711.jpg
[2026-03-28 13:41:35] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c7da8f2aba55.44555711.jpg
[2026-03-28 13:41:35] Using OCR.space API
[2026-03-28 13:41:35] Using API key: K8465...
[2026-03-28 13:41:36] OCR.space API attempt 1 completed with HTTP code: 200
[2026-03-28 13:41:36] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"Body Fat","Words":[{"WordText":"Body","Left":86.0,"Top":78.0,"Height":49.0,"Width":118.0},{"WordText":"Fat","Left":209.0,"Top":80.0,"Height":48.0,"Width":84.0}],"MaxHeight":50.0,"MinTop":78.0},{"LineText":"Muscle Mass","Words":[{"WordText":"Muscle","Left":88.0,"Top":208.0,"Height":43.0,"Width":166.0},{"WordText":"Mass","Left":260.0,"Top":208.0,"Height":43.0,"Width":121.0}],"MaxHeight":43.0,"MinTop":208.0},{"LineText":"Lean Body Mass","Words...
[2026-03-28 13:41:36] OCR.space API extracted text: Body Fat
Muscle Mass
Lean Body Mass
Visceral Fat
BMR
Metabolic Age
Skeletal Muscle
23.9%
119.3lb
127...
[2026-03-28 13:41:36] Extracting health metrics from text
[2026-03-28 13:41:36] Full OCR text for parsing:
Body Fat
Muscle Mass
Lean Body Mass
Visceral Fat
BMR
Metabolic Age
Skeletal Muscle
23.9%
119.3lb
127.91b
6
1622kcal
51
72.3lb
[2026-03-28 13:41:36] Found 0 metrics in total
[2026-03-28 13:41:36] Extracted data: {"date":"2026-03-28","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":null,"visceral_fat":null,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-03-28 13:41:36] Error: No OCR metrics were detected from this image. Please upload a clearer report screenshot.
[2026-03-28 13:41:36] Response: {"success":false,"message":"Error: No OCR metrics were detected from this image. Please upload a clearer report screenshot."}
[2026-03-28 13:42:15] Health image upload received
[2026-03-28 13:42:15] User ID: 1
[2026-03-28 13:42:15] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c7dab743fd90.18119629.jpg
[2026-03-28 13:42:15] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c7dab743fd90.18119629.jpg
[2026-03-28 13:42:15] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69c7dab743fd90.18119629.jpg
[2026-03-28 13:42:15] Using OCR.space API
[2026-03-28 13:42:15] Using API key: K8465...
[2026-03-28 13:42:17] OCR.space API attempt 1 completed with HTTP code: 200
[2026-03-28 13:42:17] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"Body Composition Analysis","Words":[{"WordText":"Body","Left":174.0,"Top":97.0,"Height":67.0,"Width":148.0},{"WordText":"Composition","Left":331.0,"Top":98.0,"Height":66.0,"Width":379.0},{"WordText":"Analysis","Left":718.0,"Top":97.0,"Height":67.0,"Width":251.0}],"MaxHeight":67.0,"MinTop":97.0},{"LineText":"Body Water","Words":[{"WordText":"Body","Left":226.0,"Top":389.0,"Height":57.0,"Width":133.0},{"WordText":"Water","Left":366.0,"Top":39...
[2026-03-28 13:42:17] OCR.space API extracted text: Body Composition Analysis
Body Water
Protein
Bone Mass
Body Fat Mass
Measurement (Ib)
93.7
25.5
8.6
...
[2026-03-28 13:42:17] Extracting health metrics from text
[2026-03-28 13:42:17] Full OCR text for parsing:
Body Composition Analysis
Body Water
Protein
Bone Mass
Body Fat Mass
Measurement (Ib)
93.7
25.5
8.6
40.2
Weight
168.0
Standard (Ib)
(72.4~90.2)
(19.7~24.6)
(6.6~8.2)
(16.2~32.5)
(115.0~155.6)
Other Metrics
Body Fat
Muscle Mass
Lean Body Mass
Visceral Fat
BMR
Metabolic Age
Skeletal Muscle
23.9%
119.31b
127.91b
6
1622kcal
51
72.31b
[2026-03-28 13:42:17] Detected 'Other Metrics' section — trying columnar extraction
[2026-03-28 13:42:17] Other Metrics lines: ["body fat","muscle mass","lean body mass","visceral fat","bmr","metabolic age","skeletal muscle","23.9%","119.31b","127.91b","6","1622kcal","51","72.31b"]
[2026-03-28 13:42:17] Labels: ["body fat","muscle mass","lean body mass","visceral fat","bmr","metabolic age","skeletal muscle"] | Values: ["23.9%","119.31b","127.91b","6","1622kcal","51","72.31b"]
[2026-03-28 13:42:17] Pass2 columnar matched body_fat_percent = 23.9 (label line: 'body fat')
[2026-03-28 13:42:17] Pass2 columnar matched muscle_mass_lbs = 119.31 (label line: 'muscle mass')
[2026-03-28 13:42:17] Pass2 columnar matched lean_body_mass_lbs = 127.91 (label line: 'lean body mass')
[2026-03-28 13:42:17] Pass2 columnar matched visceral_fat = 6 (label line: 'visceral fat')
[2026-03-28 13:42:17] Pass2 columnar matched bmr = 1622 (label line: 'bmr')
[2026-03-28 13:42:17] Detected 'Body Composition Analysis' section — trying table extraction
[2026-03-28 13:42:17] Composition lines: ["body water","protein","bone mass","body fat mass","measurement (ib)","93.7","25.5","8.6","40.2","weight","168.0","standard (ib)","(72.4~90.2)","(19.7~24.6)","(6.6~8.2)","(16.2~32.5)","(115.0~155.6)"]
[2026-03-28 13:42:17] Pass3 table matched bone_mass_lbs = 8.6 (label line: 'bone mass')
[2026-03-28 13:42:17] Pass3 table matched body_fat_mass_lbs = 40.2 (label line: 'body fat mass')
[2026-03-28 13:42:17] Pass3 table matched weight = 168 (label line: 'weight')
[2026-03-28 13:42:17] Found 8 metrics in total
[2026-03-28 13:42:17] Extracted data: {"date":"2026-03-28","weight":168,"body_fat_percent":23.9,"lean_body_mass_lbs":127.91,"muscle_mass_lbs":119.31,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1622,"visceral_fat":6,"body_fat_mass_lbs":40.2,"bone_mass_lbs":8.6}
[2026-03-28 13:42:17] Final data for insertion: {"date":"2026-03-28","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1622,"visceral_fat":6,"body_fat_mass_lbs":40.2,"bone_mass_lbs":8.6}
[2026-03-28 13:42:17] Inserted record with ID: 170
[2026-03-28 13:42:17] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-28","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1622,"visceral_fat":6,"body_fat_mass_lbs":40.2,"bone_mass_lbs":8.6},"record_id":"170"}
[2026-03-30 07:21:57] Health image upload received
[2026-03-30 07:21:57] User ID: 1
[2026-03-30 07:21:57] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ca2495755224.04852116.jpg
[2026-03-30 07:21:57] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ca2495755224.04852116.jpg
[2026-03-30 07:21:57] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ca2495755224.04852116.jpg
[2026-03-30 07:21:57] Using OCR.space API
[2026-03-30 07:21:57] Using API key: K8465...
[2026-03-30 07:21:59] OCR.space API attempt 1 completed with HTTP code: 200
[2026-03-30 07:21:59] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-03-30 07:21:59] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-03-30 07:21:59] Extracting health metrics from text
[2026-03-30 07:21:59] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-03-30 07:21:59] Pass1 matched visceral_fat = 11
[2026-03-30 07:21:59] Pass1 matched bmr = 1510
[2026-03-30 07:21:59] Pass1 matched bmi = 26.9
[2026-03-30 07:21:59] Pass1 matched body_fat_percent = 19.4
[2026-03-30 07:21:59] Pass1 matched bone_mass_percent = 3.9
[2026-03-30 07:21:59] Pass1 matched water_percent = 55.3
[2026-03-30 07:21:59] Pass1 matched muscle_mass_percent = 76.7
[2026-03-30 07:21:59] Pass1 matched body_fat_mass_lbs = 32.4
[2026-03-30 07:21:59] Pass1 matched bone_mass_lbs = 6.6
[2026-03-30 07:21:59] Pass1 matched lean_body_mass_lbs = 135.1
[2026-03-30 07:21:59] Pass1 matched muscle_mass_lbs = 128.5
[2026-03-30 07:21:59] Pass1 matched weight = 167.5
[2026-03-30 07:21:59] Found 12 metrics in total
[2026-03-30 07:21:59] Extracted data: {"date":"2026-03-30","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-30 07:21:59] Final data for insertion: {"date":"2026-03-30","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-30 07:21:59] Inserted record with ID: 171
[2026-03-30 07:21:59] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-30","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"171"}
[2026-03-30 07:27:21] Health image upload received
[2026-03-30 07:27:21] Error: Missing or invalid user_id
[2026-03-30 07:27:21] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-03-30 15:02:19] Health image upload received
[2026-03-30 15:02:19] User ID: 1
[2026-03-30 15:02:19] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ca907b6c03f6.95120439.jpg
[2026-03-30 15:02:19] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ca907b6c03f6.95120439.jpg
[2026-03-30 15:02:19] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ca907b6c03f6.95120439.jpg
[2026-03-30 15:02:19] Using OCR.space API
[2026-03-30 15:02:19] Using API key: K8465...
[2026-03-30 15:02:21] OCR.space API attempt 1 completed with HTTP code: 200
[2026-03-30 15:02:21] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-03-30 15:02:21] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-03-30 15:02:21] Extracting health metrics from text
[2026-03-30 15:02:21] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-03-30 15:02:21] Pass1 matched visceral_fat = 11
[2026-03-30 15:02:21] Pass1 matched bmr = 1510
[2026-03-30 15:02:21] Pass1 matched bmi = 26.9
[2026-03-30 15:02:21] Pass1 matched body_fat_percent = 19.4
[2026-03-30 15:02:21] Pass1 matched bone_mass_percent = 3.9
[2026-03-30 15:02:21] Pass1 matched water_percent = 55.3
[2026-03-30 15:02:21] Pass1 matched muscle_mass_percent = 76.7
[2026-03-30 15:02:21] Pass1 matched body_fat_mass_lbs = 32.4
[2026-03-30 15:02:21] Pass1 matched bone_mass_lbs = 6.6
[2026-03-30 15:02:21] Pass1 matched lean_body_mass_lbs = 135.1
[2026-03-30 15:02:21] Pass1 matched muscle_mass_lbs = 128.5
[2026-03-30 15:02:21] Pass1 matched weight = 167.5
[2026-03-30 15:02:21] Found 12 metrics in total
[2026-03-30 15:02:21] Extracted data: {"date":"2026-03-30","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-30 15:02:21] Final data for insertion: {"date":"2026-03-30","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-30 15:02:21] Inserted record with ID: 172
[2026-03-30 15:02:21] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-30","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"172"}
[2026-03-30 15:49:45] Health image upload received
[2026-03-30 15:49:45] User ID: 1
[2026-03-30 15:49:45] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ca9b99b423f6.67588942.jpg
[2026-03-30 15:49:45] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ca9b99b423f6.67588942.jpg
[2026-03-30 15:49:45] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ca9b99b423f6.67588942.jpg
[2026-03-30 15:49:45] Using OCR.space API
[2026-03-30 15:49:45] Using API key: K8465...
[2026-03-30 15:49:47] OCR.space API attempt 1 completed with HTTP code: 200
[2026-03-30 15:49:47] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-03-30 15:49:47] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-03-30 15:49:47] Extracting health metrics from text
[2026-03-30 15:49:47] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-03-30 15:49:47] Pass1 matched visceral_fat = 11
[2026-03-30 15:49:47] Pass1 matched bmr = 1510
[2026-03-30 15:49:47] Pass1 matched bmi = 26.9
[2026-03-30 15:49:47] Pass1 matched body_fat_percent = 19.4
[2026-03-30 15:49:47] Pass1 matched bone_mass_percent = 3.9
[2026-03-30 15:49:47] Pass1 matched water_percent = 55.3
[2026-03-30 15:49:47] Pass1 matched muscle_mass_percent = 76.7
[2026-03-30 15:49:47] Pass1 matched body_fat_mass_lbs = 32.4
[2026-03-30 15:49:47] Pass1 matched bone_mass_lbs = 6.6
[2026-03-30 15:49:47] Pass1 matched lean_body_mass_lbs = 135.1
[2026-03-30 15:49:47] Pass1 matched muscle_mass_lbs = 128.5
[2026-03-30 15:49:47] Pass1 matched weight = 167.5
[2026-03-30 15:49:47] Found 12 metrics in total
[2026-03-30 15:49:47] Extracted data: {"date":"2026-03-30","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-30 15:49:47] Final data for insertion: {"date":"2026-03-30","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-30 15:49:47] Inserted record with ID: 173
[2026-03-30 15:49:47] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-30","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"173"}
[2026-03-30 18:39:53] Health image upload received
[2026-03-30 18:39:53] Error: Missing or invalid user_id
[2026-03-30 18:39:53] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-03-31 08:44:05] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-31 08:44:05] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-31 08:44:05] Using OCR.space API
[2026-03-31 08:44:05] Using API key: K8465...
[2026-03-31 08:44:06] OCR.space API attempt 1 completed with HTTP code: 200
[2026-03-31 08:44:06] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-03-31 08:44:06] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-03-31 08:44:06] Extracting health metrics from text
[2026-03-31 08:44:06] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-03-31 08:44:06] Pass1 matched visceral_fat = 6.6
[2026-03-31 08:44:06] Pass1 matched bmr = 1510
[2026-03-31 08:44:06] Pass1 matched body_fat_percent = 19.4
[2026-03-31 08:44:06] Pass1 matched muscle_mass_percent = 76.7
[2026-03-31 08:44:06] Pass1 matched body_fat_mass_lbs = 32.4
[2026-03-31 08:44:06] Pass1 matched bone_mass_lbs = 6.6
[2026-03-31 08:44:06] Pass1 matched weight = 167.5
[2026-03-31 08:44:06] Found 7 metrics in total
[2026-03-31 11:00:37] Health image upload received
[2026-03-31 11:00:37] User ID: 1
[2026-03-31 11:00:37] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69cba955b9da63.83660971.jpg
[2026-03-31 11:00:37] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69cba955b9da63.83660971.jpg
[2026-03-31 11:00:37] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69cba955b9da63.83660971.jpg
[2026-03-31 11:00:37] Using OCR.space API
[2026-03-31 11:00:37] Using API key: K8465...
[2026-03-31 11:00:39] OCR.space API attempt 1 completed with HTTP code: 200
[2026-03-31 11:00:39] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-03-31 11:00:39] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-03-31 11:00:39] Extracting health metrics from text
[2026-03-31 11:00:39] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-03-31 11:00:39] Pass1 matched visceral_fat = 11
[2026-03-31 11:00:39] Pass1 matched bmr = 1510
[2026-03-31 11:00:39] Pass1 matched bmi = 26.9
[2026-03-31 11:00:39] Pass1 matched body_fat_percent = 19.4
[2026-03-31 11:00:39] Pass1 matched bone_mass_percent = 3.9
[2026-03-31 11:00:39] Pass1 matched water_percent = 55.3
[2026-03-31 11:00:39] Pass1 matched muscle_mass_percent = 76.7
[2026-03-31 11:00:39] Pass1 matched body_fat_mass_lbs = 32.4
[2026-03-31 11:00:39] Pass1 matched bone_mass_lbs = 6.6
[2026-03-31 11:00:39] Pass1 matched lean_body_mass_lbs = 135.1
[2026-03-31 11:00:39] Pass1 matched muscle_mass_lbs = 128.5
[2026-03-31 11:00:39] Pass1 matched weight = 167.5
[2026-03-31 11:00:39] Found 12 metrics in total
[2026-03-31 11:00:39] Extracted data: {"date":"2026-03-31","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-31 11:00:39] Final data for insertion: {"date":"2026-03-31","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-31 11:00:39] Inserted record with ID: 174
[2026-03-31 11:00:39] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-31","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"174"}
[2026-03-31 11:08:07] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-31 11:08:07] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-31 11:08:07] Using OCR.space API
[2026-03-31 11:08:07] Using API key: K8465...
[2026-03-31 11:08:09] OCR.space API attempt 1 completed with HTTP code: 200
[2026-03-31 11:08:09] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-03-31 11:08:09] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-03-31 11:08:09] Extracting health metrics from text
[2026-03-31 11:08:09] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-03-31 11:08:09] Pass1 matched visceral_fat = 6.6
[2026-03-31 11:08:09] Pass1 matched bmr = 1510
[2026-03-31 11:08:09] Pass1 matched body_fat_percent = 19.4
[2026-03-31 11:08:09] Pass1 matched muscle_mass_percent = 76.7
[2026-03-31 11:08:09] Pass1 matched body_fat_mass_lbs = 32.4
[2026-03-31 11:08:09] Pass1 matched bone_mass_lbs = 6.6
[2026-03-31 11:08:09] Pass1 matched weight = 167.5
[2026-03-31 11:08:09] Found 7 metrics in total
[2026-03-31 11:16:04] Health image upload received
[2026-03-31 11:16:04] User ID: 1
[2026-03-31 11:16:04] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69cbacf4ee4739.67076503.jpg
[2026-03-31 11:16:04] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69cbacf4ee4739.67076503.jpg
[2026-03-31 11:16:04] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69cbacf4ee4739.67076503.jpg
[2026-03-31 11:16:04] Using OCR.space API
[2026-03-31 11:16:04] Using API key: K8465...
[2026-03-31 11:16:06] OCR.space API attempt 1 completed with HTTP code: 200
[2026-03-31 11:16:06] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-03-31 11:16:06] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-03-31 11:16:06] Extracting health metrics from text
[2026-03-31 11:16:06] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-03-31 11:16:06] Pass1 matched visceral_fat = 6.6
[2026-03-31 11:16:06] Pass1 matched bmr = 1510
[2026-03-31 11:16:06] Pass1 matched body_fat_percent = 19.4
[2026-03-31 11:16:06] Pass1 matched muscle_mass_percent = 76.7
[2026-03-31 11:16:06] Pass1 matched body_fat_mass_lbs = 32.4
[2026-03-31 11:16:06] Pass1 matched bone_mass_lbs = 6.6
[2026-03-31 11:16:06] Pass1 matched weight = 167.5
[2026-03-31 11:16:06] Found 7 metrics in total
[2026-03-31 11:16:06] Extracted data: {"date":"2026-03-31","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-31 11:16:06] Final data for insertion: {"date":"2026-03-31","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-31 11:16:06] Inserted record with ID: 175
[2026-03-31 11:16:06] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-31","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"175"}
[2026-03-31 12:11:58] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-31 12:11:58] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-03-31 12:11:58] Using OCR.space API
[2026-03-31 12:11:58] Using API key: K8465...
[2026-03-31 12:12:00] OCR.space API attempt 1 completed with HTTP code: 200
[2026-03-31 12:12:00] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-03-31 12:12:00] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-03-31 12:12:00] Extracting health metrics from text
[2026-03-31 12:12:00] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-03-31 12:12:00] Pass1 matched visceral_fat = 6.6
[2026-03-31 12:12:00] Pass1 matched bmr = 1510
[2026-03-31 12:12:00] Pass1 matched body_fat_percent = 19.4
[2026-03-31 12:12:00] Pass1 matched muscle_mass_percent = 76.7
[2026-03-31 12:12:00] Pass1 matched body_fat_mass_lbs = 32.4
[2026-03-31 12:12:00] Pass1 matched bone_mass_lbs = 6.6
[2026-03-31 12:12:00] Pass1 matched weight = 167.5
[2026-03-31 12:12:00] Found 7 metrics in total
[2026-03-31 12:29:00] Health image upload received
[2026-03-31 12:29:00] User ID: 1
[2026-03-31 12:29:00] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69cbbe0c06e268.70530712.jpg
[2026-03-31 12:29:00] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69cbbe0c06e268.70530712.jpg
[2026-03-31 12:29:00] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69cbbe0c06e268.70530712.jpg
[2026-03-31 12:29:00] Using OCR.space API
[2026-03-31 12:29:00] Using API key: K8465...
[2026-03-31 12:29:01] OCR.space API attempt 1 completed with HTTP code: 200
[2026-03-31 12:29:01] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-03-31 12:29:01] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-03-31 12:29:01] Extracting health metrics from text
[2026-03-31 12:29:01] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-03-31 12:29:01] Pass1 matched visceral_fat = 6.6
[2026-03-31 12:29:01] Pass1 matched bmr = 1510
[2026-03-31 12:29:01] Pass1 matched body_fat_percent = 19.4
[2026-03-31 12:29:01] Pass1 matched muscle_mass_percent = 76.7
[2026-03-31 12:29:01] Pass1 matched body_fat_mass_lbs = 32.4
[2026-03-31 12:29:01] Pass1 matched bone_mass_lbs = 6.6
[2026-03-31 12:29:01] Pass1 matched weight = 167.5
[2026-03-31 12:29:01] Found 7 metrics in total
[2026-03-31 12:29:01] Extracted data: {"date":"2026-03-31","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-31 12:29:01] Final data for insertion: {"date":"2026-03-31","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-31 12:29:01] Inserted record with ID: 176
[2026-03-31 12:29:01] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-31","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"176"}
[2026-03-31 12:44:44] Health image upload received
[2026-03-31 12:44:44] User ID: 1
[2026-03-31 12:44:44] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69cbc1bccb5f48.80927578.jpg
[2026-03-31 12:44:44] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69cbc1bccb5f48.80927578.jpg
[2026-03-31 12:44:44] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69cbc1bccb5f48.80927578.jpg
[2026-03-31 12:44:44] Using OCR.space API
[2026-03-31 12:44:44] Using API key: K8465...
[2026-03-31 12:44:46] OCR.space API attempt 1 completed with HTTP code: 200
[2026-03-31 12:44:46] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-03-31 12:44:46] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-03-31 12:44:46] Extracting health metrics from text
[2026-03-31 12:44:46] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-03-31 12:44:46] Pass1 matched visceral_fat = 11
[2026-03-31 12:44:46] Pass1 matched bmr = 1510
[2026-03-31 12:44:46] Pass1 matched bmi = 26.9
[2026-03-31 12:44:46] Pass1 matched body_fat_percent = 19.4
[2026-03-31 12:44:46] Pass1 matched bone_mass_percent = 3.9
[2026-03-31 12:44:46] Pass1 matched water_percent = 55.3
[2026-03-31 12:44:46] Pass1 matched muscle_mass_percent = 76.7
[2026-03-31 12:44:46] Pass1 matched body_fat_mass_lbs = 32.4
[2026-03-31 12:44:46] Pass1 matched bone_mass_lbs = 6.6
[2026-03-31 12:44:46] Pass1 matched lean_body_mass_lbs = 135.1
[2026-03-31 12:44:46] Pass1 matched muscle_mass_lbs = 128.5
[2026-03-31 12:44:46] Pass1 matched weight = 167.5
[2026-03-31 12:44:46] Found 12 metrics in total
[2026-03-31 12:44:46] Extracted data: {"date":"2026-03-31","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-31 12:44:46] Final data for insertion: {"date":"2026-03-31","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-03-31 12:44:46] Inserted record with ID: 177
[2026-03-31 12:44:46] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-03-31","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"177"}
[2026-03-31 17:38:08] Health image upload received
[2026-03-31 17:38:08] Error: Missing or invalid user_id
[2026-03-31 17:38:08] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-04-01 10:48:01] Health image upload received
[2026-04-01 10:48:01] User ID: 1
[2026-04-01 10:48:01] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ccf7e1e66e39.90102718.jpg
[2026-04-01 10:48:01] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ccf7e1e66e39.90102718.jpg
[2026-04-01 10:48:01] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ccf7e1e66e39.90102718.jpg
[2026-04-01 10:48:01] Using OCR.space API
[2026-04-01 10:48:01] Using API key: K8465...
[2026-04-01 10:48:03] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-01 10:48:03] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-04-01 10:48:03] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-04-01 10:48:03] Extracting health metrics from text
[2026-04-01 10:48:03] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-04-01 10:48:03] Pass1 matched visceral_fat = 11
[2026-04-01 10:48:03] Pass1 matched bmr = 1510
[2026-04-01 10:48:03] Pass1 matched bmi = 26.9
[2026-04-01 10:48:03] Pass1 matched body_fat_percent = 19.4
[2026-04-01 10:48:03] Pass1 matched bone_mass_percent = 3.9
[2026-04-01 10:48:03] Pass1 matched water_percent = 55.3
[2026-04-01 10:48:03] Pass1 matched muscle_mass_percent = 76.7
[2026-04-01 10:48:03] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-01 10:48:03] Pass1 matched bone_mass_lbs = 6.6
[2026-04-01 10:48:03] Pass1 matched lean_body_mass_lbs = 135.1
[2026-04-01 10:48:03] Pass1 matched muscle_mass_lbs = 128.5
[2026-04-01 10:48:03] Pass1 matched weight = 167.5
[2026-04-01 10:48:03] Found 12 metrics in total
[2026-04-01 10:48:03] Extracted data: {"date":"2026-04-01","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-01 10:48:03] Final data for insertion: {"date":"2026-04-01","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-01 10:48:03] Inserted record with ID: 178
[2026-04-01 10:48:03] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-01","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"178"}
[2026-04-02 05:56:38] Health image upload received
[2026-04-02 05:56:38] User ID: 1
[2026-04-02 05:56:38] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ce051637f029.28030088.jpg
[2026-04-02 05:56:38] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ce051637f029.28030088.jpg
[2026-04-02 05:56:38] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ce051637f029.28030088.jpg
[2026-04-02 05:56:38] Using OCR.space API
[2026-04-02 05:56:38] Using API key: K8465...
[2026-04-02 05:56:39] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-02 05:56:39] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-04-02 05:56:39] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-04-02 05:56:39] Extracting health metrics from text
[2026-04-02 05:56:39] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-04-02 05:56:39] Pass1 matched visceral_fat = 11
[2026-04-02 05:56:39] Pass1 matched bmr = 1510
[2026-04-02 05:56:39] Pass1 matched bmi = 26.9
[2026-04-02 05:56:39] Pass1 matched body_fat_percent = 19.4
[2026-04-02 05:56:39] Pass1 matched bone_mass_percent = 3.9
[2026-04-02 05:56:39] Pass1 matched water_percent = 55.3
[2026-04-02 05:56:39] Pass1 matched muscle_mass_percent = 76.7
[2026-04-02 05:56:39] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-02 05:56:39] Pass1 matched bone_mass_lbs = 6.6
[2026-04-02 05:56:39] Pass1 matched lean_body_mass_lbs = 135.1
[2026-04-02 05:56:39] Pass1 matched muscle_mass_lbs = 128.5
[2026-04-02 05:56:39] Pass1 matched weight = 167.5
[2026-04-02 05:56:39] Found 12 metrics in total
[2026-04-02 05:56:39] Extracted data: {"date":"2026-04-02","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-02 05:56:39] Final data for insertion: {"date":"2026-04-02","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-02 05:56:39] Inserted record with ID: 179
[2026-04-02 05:56:39] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-02","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"179"}
[2026-04-02 19:21:22] Health image upload received
[2026-04-02 19:21:22] User ID: 1
[2026-04-02 19:21:22] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69cec1b24c83b6.83874058.jpg
[2026-04-02 19:21:22] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69cec1b24c83b6.83874058.jpg
[2026-04-02 19:21:22] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69cec1b24c83b6.83874058.jpg
[2026-04-02 19:21:22] Using OCR.space API
[2026-04-02 19:21:22] Using API key: K8465...
[2026-04-02 19:21:25] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-02 19:21:25] OCR.space API raw response: {"ParsedResults":[],"OCRExitCode":99,"IsErroredOnProcessing":true,"ErrorMessage":["Error E500: System Resource Exhaustion (OCR Binary Failed)"],"ProcessingTimeInMilliseconds":"2501"}...
[2026-04-02 19:21:25] OCR.space API error: Array
[2026-04-02 19:21:25] Text extraction failed
[2026-04-02 19:21:25] Error: Failed to extract data from image
[2026-04-02 19:21:25] Response: {"success":false,"message":"Error: Failed to extract data from image"}
[2026-04-03 10:13:41] Health image upload received
[2026-04-03 10:13:41] User ID: 1
[2026-04-03 10:13:41] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69cf92d581d582.06331495.jpg
[2026-04-03 10:13:41] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69cf92d581d582.06331495.jpg
[2026-04-03 10:13:41] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69cf92d581d582.06331495.jpg
[2026-04-03 10:13:41] Using OCR.space API
[2026-04-03 10:13:41] Using API key: K8465...
[2026-04-03 10:14:41] OCR.space API attempt 1 completed with HTTP code: 0
[2026-04-03 10:14:41] Attempt 1 failed: Operation timed out after 60002 milliseconds with 0 bytes received (HTTP 0)
[2026-04-03 10:14:41] Retrying in 2 seconds...
[2026-04-03 10:15:43] OCR.space API attempt 2 completed with HTTP code: 0
[2026-04-03 10:15:43] Attempt 2 failed: Operation timed out after 60003 milliseconds with 0 bytes received (HTTP 0)
[2026-04-03 10:15:43] cURL error after 2 attempts: Operation timed out after 60003 milliseconds with 0 bytes received
[2026-04-03 10:15:43] Text extraction failed
[2026-04-03 10:15:43] Error: Failed to extract data from image
[2026-04-03 10:15:43] Response: {"success":false,"message":"Error: Failed to extract data from image"}
[2026-04-03 14:43:54] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-03 14:43:54] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-03 14:43:54] Using OCR.space API
[2026-04-03 14:43:54] Using API key: K8465...
[2026-04-03 14:43:55] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-03 14:43:55] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-04-03 14:43:55] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-04-03 14:43:55] Extracting health metrics from text
[2026-04-03 14:43:55] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-04-03 14:43:55] Pass1 matched visceral_fat = 6.6
[2026-04-03 14:43:55] Pass1 matched bmr = 1510
[2026-04-03 14:43:55] Pass1 matched body_fat_percent = 19.4
[2026-04-03 14:43:55] Pass1 matched muscle_mass_percent = 76.7
[2026-04-03 14:43:55] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-03 14:43:55] Pass1 matched bone_mass_lbs = 6.6
[2026-04-03 14:43:55] Pass1 matched weight = 167.5
[2026-04-03 14:43:55] Found 7 metrics in total
[2026-04-04 02:39:25] Health image upload received
[2026-04-04 02:39:25] Error: Missing or invalid user_id
[2026-04-04 02:39:25] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-04-04 03:13:58] Health image upload received
[2026-04-04 03:13:58] User ID: 1
[2026-04-04 03:13:58] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69d081f6ab7f63.98430009.jpg
[2026-04-04 03:13:58] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69d081f6ab7f63.98430009.jpg
[2026-04-04 03:13:58] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69d081f6ab7f63.98430009.jpg
[2026-04-04 03:13:58] Using OCR.space API
[2026-04-04 03:13:58] Using API key: K8465...
[2026-04-04 03:14:01] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-04 03:14:01] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-04-04 03:14:01] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-04-04 03:14:01] Extracting health metrics from text
[2026-04-04 03:14:01] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-04-04 03:14:01] Pass1 matched visceral_fat = 11
[2026-04-04 03:14:01] Pass1 matched bmr = 1510
[2026-04-04 03:14:01] Pass1 matched bmi = 26.9
[2026-04-04 03:14:01] Pass1 matched body_fat_percent = 19.4
[2026-04-04 03:14:01] Pass1 matched bone_mass_percent = 3.9
[2026-04-04 03:14:01] Pass1 matched water_percent = 55.3
[2026-04-04 03:14:01] Pass1 matched muscle_mass_percent = 76.7
[2026-04-04 03:14:01] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-04 03:14:01] Pass1 matched bone_mass_lbs = 6.6
[2026-04-04 03:14:01] Pass1 matched lean_body_mass_lbs = 135.1
[2026-04-04 03:14:01] Pass1 matched muscle_mass_lbs = 128.5
[2026-04-04 03:14:01] Pass1 matched weight = 167.5
[2026-04-04 03:14:01] Found 12 metrics in total
[2026-04-04 03:14:01] Extracted data: {"date":"2026-04-04","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-04 03:14:01] Final data for insertion: {"date":"2026-04-04","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-04 03:14:01] Inserted record with ID: 180
[2026-04-04 03:14:01] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-04","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"180"}
[2026-04-04 03:14:30] Health image upload received
[2026-04-04 03:14:30] Error: Missing or invalid user_id
[2026-04-04 03:14:30] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-04-04 03:15:00] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-04 03:15:00] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-04 03:15:00] Using OCR.space API
[2026-04-04 03:15:00] Using API key: K8465...
[2026-04-04 03:15:02] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-04 03:15:02] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-04-04 03:15:02] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-04-04 03:15:02] Extracting health metrics from text
[2026-04-04 03:15:02] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-04-04 03:15:02] Pass1 matched visceral_fat = 6.6
[2026-04-04 03:15:02] Pass1 matched bmr = 1510
[2026-04-04 03:15:02] Pass1 matched body_fat_percent = 19.4
[2026-04-04 03:15:02] Pass1 matched muscle_mass_percent = 76.7
[2026-04-04 03:15:02] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-04 03:15:02] Pass1 matched bone_mass_lbs = 6.6
[2026-04-04 03:15:02] Pass1 matched weight = 167.5
[2026-04-04 03:15:02] Found 7 metrics in total
[2026-04-04 03:15:54] Health image upload received
[2026-04-04 03:15:54] User ID: 1
[2026-04-04 03:15:54] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69d0826a985796.42266924.jpg
[2026-04-04 03:15:54] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69d0826a985796.42266924.jpg
[2026-04-04 03:15:54] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69d0826a985796.42266924.jpg
[2026-04-04 03:15:54] Using OCR.space API
[2026-04-04 03:15:54] Using API key: K8465...
[2026-04-04 03:15:56] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-04 03:15:56] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-04-04 03:15:56] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-04-04 03:15:56] Extracting health metrics from text
[2026-04-04 03:15:56] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-04-04 03:15:56] Pass1 matched visceral_fat = 6.6
[2026-04-04 03:15:56] Pass1 matched bmr = 1510
[2026-04-04 03:15:56] Pass1 matched body_fat_percent = 19.4
[2026-04-04 03:15:56] Pass1 matched muscle_mass_percent = 76.7
[2026-04-04 03:15:56] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-04 03:15:56] Pass1 matched bone_mass_lbs = 6.6
[2026-04-04 03:15:56] Pass1 matched weight = 167.5
[2026-04-04 03:15:56] Found 7 metrics in total
[2026-04-04 03:15:56] Extracted data: {"date":"2026-04-04","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-04 03:15:56] Final data for insertion: {"date":"2026-04-04","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-04 03:15:56] Inserted record with ID: 181
[2026-04-04 03:15:56] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-04","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"181"}
[2026-04-04 06:23:14] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-04 06:23:14] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-04 06:23:14] Using OCR.space API
[2026-04-04 06:23:14] Using API key: K8465...
[2026-04-04 06:23:15] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-04 06:23:15] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-04-04 06:23:15] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-04-04 06:23:15] Extracting health metrics from text
[2026-04-04 06:23:15] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-04-04 06:23:15] Pass1 matched visceral_fat = 6.6
[2026-04-04 06:23:15] Pass1 matched bmr = 1510
[2026-04-04 06:23:15] Pass1 matched body_fat_percent = 19.4
[2026-04-04 06:23:15] Pass1 matched muscle_mass_percent = 76.7
[2026-04-04 06:23:15] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-04 06:23:15] Pass1 matched bone_mass_lbs = 6.6
[2026-04-04 06:23:15] Pass1 matched weight = 167.5
[2026-04-04 06:23:15] Found 7 metrics in total
[2026-04-04 10:41:45] Health image upload received
[2026-04-04 10:41:45] User ID: 1
[2026-04-04 10:41:45] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69d0eae90abb55.07594596.jpg
[2026-04-04 10:41:45] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69d0eae90abb55.07594596.jpg
[2026-04-04 10:41:45] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69d0eae90abb55.07594596.jpg
[2026-04-04 10:41:45] Using OCR.space API
[2026-04-04 10:41:45] Using API key: K8465...
[2026-04-04 10:41:47] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-04 10:41:47] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-04-04 10:41:47] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-04-04 10:41:47] Extracting health metrics from text
[2026-04-04 10:41:47] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-04-04 10:41:47] Pass1 matched visceral_fat = 6.6
[2026-04-04 10:41:47] Pass1 matched bmr = 1510
[2026-04-04 10:41:47] Pass1 matched body_fat_percent = 19.4
[2026-04-04 10:41:47] Pass1 matched muscle_mass_percent = 76.7
[2026-04-04 10:41:47] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-04 10:41:47] Pass1 matched bone_mass_lbs = 6.6
[2026-04-04 10:41:47] Pass1 matched weight = 167.5
[2026-04-04 10:41:47] Found 7 metrics in total
[2026-04-04 10:41:47] Extracted data: {"date":"2026-04-04","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-04 10:41:47] Final data for insertion: {"date":"2026-04-04","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-04 10:41:47] Inserted record with ID: 182
[2026-04-04 10:41:47] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-04","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"182"}
[2026-04-06 06:59:01] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-06 06:59:01] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-06 06:59:01] Using OCR.space API
[2026-04-06 06:59:01] Using API key: K8465...
[2026-04-06 06:59:03] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-06 06:59:03] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-04-06 06:59:03] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-04-06 06:59:03] Extracting health metrics from text
[2026-04-06 06:59:03] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-04-06 06:59:03] Pass1 matched visceral_fat = 6.6
[2026-04-06 06:59:03] Pass1 matched bmr = 1510
[2026-04-06 06:59:03] Pass1 matched body_fat_percent = 19.4
[2026-04-06 06:59:03] Pass1 matched muscle_mass_percent = 76.7
[2026-04-06 06:59:03] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-06 06:59:03] Pass1 matched bone_mass_lbs = 6.6
[2026-04-06 06:59:03] Pass1 matched weight = 167.5
[2026-04-06 06:59:03] Found 7 metrics in total
[2026-04-06 11:25:41] Health image upload received
[2026-04-06 11:25:41] Error: Missing or invalid user_id
[2026-04-06 11:25:41] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-04-06 17:53:10] Health image upload received
[2026-04-06 17:53:10] Error: Missing or invalid user_id
[2026-04-06 17:53:10] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-04-07 17:45:37] Health image upload received
[2026-04-07 17:45:37] User ID: 1
[2026-04-07 17:45:37] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69d542c17eae31.73882725.jpg
[2026-04-07 17:45:37] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69d542c17eae31.73882725.jpg
[2026-04-07 17:45:37] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69d542c17eae31.73882725.jpg
[2026-04-07 17:45:37] Using OCR.space API
[2026-04-07 17:45:37] Using API key: K8465...
[2026-04-07 17:45:39] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-07 17:45:39] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-04-07 17:45:39] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-04-07 17:45:39] Extracting health metrics from text
[2026-04-07 17:45:39] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-04-07 17:45:39] Pass1 matched visceral_fat = 11
[2026-04-07 17:45:39] Pass1 matched bmr = 1510
[2026-04-07 17:45:39] Pass1 matched bmi = 26.9
[2026-04-07 17:45:39] Pass1 matched body_fat_percent = 19.4
[2026-04-07 17:45:39] Pass1 matched bone_mass_percent = 3.9
[2026-04-07 17:45:39] Pass1 matched water_percent = 55.3
[2026-04-07 17:45:39] Pass1 matched muscle_mass_percent = 76.7
[2026-04-07 17:45:39] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-07 17:45:39] Pass1 matched bone_mass_lbs = 6.6
[2026-04-07 17:45:39] Pass1 matched lean_body_mass_lbs = 135.1
[2026-04-07 17:45:39] Pass1 matched muscle_mass_lbs = 128.5
[2026-04-07 17:45:39] Pass1 matched weight = 167.5
[2026-04-07 17:45:39] Found 12 metrics in total
[2026-04-07 17:45:39] Extracted data: {"date":"2026-04-07","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-07 17:45:39] Final data for insertion: {"date":"2026-04-07","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-07 17:45:39] Inserted record with ID: 183
[2026-04-07 17:45:39] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-07","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"183"}
[2026-04-08 16:07:45] Health image upload received
[2026-04-08 16:07:45] User ID: 1
[2026-04-08 16:07:45] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69d67d512fb9a9.56460221.jpg
[2026-04-08 16:07:45] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69d67d512fb9a9.56460221.jpg
[2026-04-08 16:07:45] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69d67d512fb9a9.56460221.jpg
[2026-04-08 16:07:45] Using OCR.space API
[2026-04-08 16:07:45] Using API key: K8465...
[2026-04-08 16:07:47] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-08 16:07:47] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-04-08 16:07:47] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-04-08 16:07:47] Extracting health metrics from text
[2026-04-08 16:07:47] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-04-08 16:07:47] Pass1 matched visceral_fat = 11
[2026-04-08 16:07:47] Pass1 matched bmr = 1510
[2026-04-08 16:07:47] Pass1 matched bmi = 26.9
[2026-04-08 16:07:47] Pass1 matched body_fat_percent = 19.4
[2026-04-08 16:07:47] Pass1 matched bone_mass_percent = 3.9
[2026-04-08 16:07:47] Pass1 matched water_percent = 55.3
[2026-04-08 16:07:47] Pass1 matched muscle_mass_percent = 76.7
[2026-04-08 16:07:47] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-08 16:07:47] Pass1 matched bone_mass_lbs = 6.6
[2026-04-08 16:07:47] Pass1 matched lean_body_mass_lbs = 135.1
[2026-04-08 16:07:47] Pass1 matched muscle_mass_lbs = 128.5
[2026-04-08 16:07:47] Pass1 matched weight = 167.5
[2026-04-08 16:07:47] Found 12 metrics in total
[2026-04-08 16:07:47] Extracted data: {"date":"2026-04-08","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-08 16:07:47] Final data for insertion: {"date":"2026-04-08","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-08 16:07:47] Inserted record with ID: 184
[2026-04-08 16:07:47] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-08","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"184"}
[2026-04-08 21:40:31] Health image upload received
[2026-04-08 21:40:31] Error: Missing or invalid user_id
[2026-04-08 21:40:31] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-04-08 21:40:43] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-08 21:40:43] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-08 21:40:43] Using OCR.space API
[2026-04-08 21:40:43] Using API key: K8465...
[2026-04-08 21:40:45] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-08 21:40:45] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-04-08 21:40:45] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-04-08 21:40:45] Extracting health metrics from text
[2026-04-08 21:40:45] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-04-08 21:40:45] Pass1 matched visceral_fat = 6.6
[2026-04-08 21:40:45] Pass1 matched bmr = 1510
[2026-04-08 21:40:45] Pass1 matched body_fat_percent = 19.4
[2026-04-08 21:40:45] Pass1 matched muscle_mass_percent = 76.7
[2026-04-08 21:40:45] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-08 21:40:45] Pass1 matched bone_mass_lbs = 6.6
[2026-04-08 21:40:45] Pass1 matched weight = 167.5
[2026-04-08 21:40:45] Found 7 metrics in total
[2026-04-08 22:11:41] Health image upload received
[2026-04-08 22:11:41] User ID: 1
[2026-04-08 22:11:41] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69d6d29d084453.86313184.jpg
[2026-04-08 22:11:41] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69d6d29d084453.86313184.jpg
[2026-04-08 22:11:41] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69d6d29d084453.86313184.jpg
[2026-04-08 22:11:41] Using OCR.space API
[2026-04-08 22:11:41] Using API key: K8465...
[2026-04-08 22:11:42] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-08 22:11:42] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-04-08 22:11:42] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-04-08 22:11:42] Extracting health metrics from text
[2026-04-08 22:11:42] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-04-08 22:11:42] Pass1 matched visceral_fat = 11
[2026-04-08 22:11:42] Pass1 matched bmr = 1510
[2026-04-08 22:11:42] Pass1 matched bmi = 26.9
[2026-04-08 22:11:42] Pass1 matched body_fat_percent = 19.4
[2026-04-08 22:11:42] Pass1 matched bone_mass_percent = 3.9
[2026-04-08 22:11:42] Pass1 matched water_percent = 55.3
[2026-04-08 22:11:42] Pass1 matched muscle_mass_percent = 76.7
[2026-04-08 22:11:42] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-08 22:11:42] Pass1 matched bone_mass_lbs = 6.6
[2026-04-08 22:11:42] Pass1 matched lean_body_mass_lbs = 135.1
[2026-04-08 22:11:42] Pass1 matched muscle_mass_lbs = 128.5
[2026-04-08 22:11:42] Pass1 matched weight = 167.5
[2026-04-08 22:11:42] Found 12 metrics in total
[2026-04-08 22:11:42] Extracted data: {"date":"2026-04-08","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-08 22:11:42] Final data for insertion: {"date":"2026-04-08","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-08 22:11:42] Inserted record with ID: 185
[2026-04-08 22:11:42] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-08","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"185"}
[2026-04-09 09:22:45] Health image upload received
[2026-04-09 09:22:45] Error: Missing or invalid user_id
[2026-04-09 09:22:45] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-04-10 01:34:40] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-10 01:34:40] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-10 01:34:40] Using OCR.space API
[2026-04-10 01:34:40] Using API key: K8465...
[2026-04-10 01:34:42] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-10 01:34:42] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-04-10 01:34:42] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-04-10 01:34:42] Extracting health metrics from text
[2026-04-10 01:34:42] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-04-10 01:34:42] Pass1 matched visceral_fat = 6.6
[2026-04-10 01:34:42] Pass1 matched bmr = 1510
[2026-04-10 01:34:42] Pass1 matched body_fat_percent = 19.4
[2026-04-10 01:34:42] Pass1 matched muscle_mass_percent = 76.7
[2026-04-10 01:34:42] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-10 01:34:42] Pass1 matched bone_mass_lbs = 6.6
[2026-04-10 01:34:42] Pass1 matched weight = 167.5
[2026-04-10 01:34:42] Found 7 metrics in total
[2026-04-10 10:55:39] Health image upload received
[2026-04-10 10:55:39] User ID: 1
[2026-04-10 10:55:39] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69d8d72b64f517.37952952.jpg
[2026-04-10 10:55:39] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69d8d72b64f517.37952952.jpg
[2026-04-10 10:55:39] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69d8d72b64f517.37952952.jpg
[2026-04-10 10:55:39] Using OCR.space API
[2026-04-10 10:55:39] Using API key: K8465...
[2026-04-10 10:55:41] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-10 10:55:41] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-04-10 10:55:41] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-04-10 10:55:41] Extracting health metrics from text
[2026-04-10 10:55:41] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-04-10 10:55:41] Pass1 matched visceral_fat = 6.6
[2026-04-10 10:55:41] Pass1 matched bmr = 1510
[2026-04-10 10:55:41] Pass1 matched body_fat_percent = 19.4
[2026-04-10 10:55:41] Pass1 matched muscle_mass_percent = 76.7
[2026-04-10 10:55:41] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-10 10:55:41] Pass1 matched bone_mass_lbs = 6.6
[2026-04-10 10:55:41] Pass1 matched weight = 167.5
[2026-04-10 10:55:41] Found 7 metrics in total
[2026-04-10 10:55:41] Extracted data: {"date":"2026-04-10","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-10 10:55:41] Final data for insertion: {"date":"2026-04-10","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-10 10:55:41] Inserted record with ID: 186
[2026-04-10 10:55:41] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-10","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"186"}
[2026-04-10 13:35:03] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-10 13:35:03] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-10 13:35:03] Using OCR.space API
[2026-04-10 13:35:03] Using API key: K8465...
[2026-04-10 13:35:05] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-10 13:35:05] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-04-10 13:35:05] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-04-10 13:35:05] Extracting health metrics from text
[2026-04-10 13:35:05] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-04-10 13:35:05] Pass1 matched visceral_fat = 6.6
[2026-04-10 13:35:05] Pass1 matched bmr = 1510
[2026-04-10 13:35:05] Pass1 matched body_fat_percent = 19.4
[2026-04-10 13:35:05] Pass1 matched muscle_mass_percent = 76.7
[2026-04-10 13:35:05] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-10 13:35:05] Pass1 matched bone_mass_lbs = 6.6
[2026-04-10 13:35:05] Pass1 matched weight = 167.5
[2026-04-10 13:35:05] Found 7 metrics in total
[2026-04-11 19:44:06] Health image upload received
[2026-04-11 19:44:06] User ID: 1
[2026-04-11 19:44:06] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69daa4869ac1e1.61737336.jpg
[2026-04-11 19:44:06] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69daa4869ac1e1.61737336.jpg
[2026-04-11 19:44:06] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69daa4869ac1e1.61737336.jpg
[2026-04-11 19:44:06] Using OCR.space API
[2026-04-11 19:44:06] Using API key: K8465...
[2026-04-11 19:44:08] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-11 19:44:08] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-04-11 19:44:08] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-04-11 19:44:08] Extracting health metrics from text
[2026-04-11 19:44:08] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-04-11 19:44:08] Pass1 matched visceral_fat = 11
[2026-04-11 19:44:08] Pass1 matched bmr = 1510
[2026-04-11 19:44:08] Pass1 matched bmi = 26.9
[2026-04-11 19:44:08] Pass1 matched body_fat_percent = 19.4
[2026-04-11 19:44:08] Pass1 matched bone_mass_percent = 3.9
[2026-04-11 19:44:08] Pass1 matched water_percent = 55.3
[2026-04-11 19:44:08] Pass1 matched muscle_mass_percent = 76.7
[2026-04-11 19:44:08] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-11 19:44:08] Pass1 matched bone_mass_lbs = 6.6
[2026-04-11 19:44:08] Pass1 matched lean_body_mass_lbs = 135.1
[2026-04-11 19:44:08] Pass1 matched muscle_mass_lbs = 128.5
[2026-04-11 19:44:08] Pass1 matched weight = 167.5
[2026-04-11 19:44:08] Found 12 metrics in total
[2026-04-11 19:44:08] Extracted data: {"date":"2026-04-11","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-11 19:44:08] Final data for insertion: {"date":"2026-04-11","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-11 19:44:08] Inserted record with ID: 187
[2026-04-11 19:44:08] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-11","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"187"}
[2026-04-11 20:03:24] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-11 20:03:24] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-11 20:03:24] Using OCR.space API
[2026-04-11 20:03:24] Using API key: K8465...
[2026-04-11 20:03:26] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-11 20:03:26] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-04-11 20:03:26] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-04-11 20:03:26] Extracting health metrics from text
[2026-04-11 20:03:26] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-04-11 20:03:26] Pass1 matched visceral_fat = 6.6
[2026-04-11 20:03:26] Pass1 matched bmr = 1510
[2026-04-11 20:03:26] Pass1 matched body_fat_percent = 19.4
[2026-04-11 20:03:26] Pass1 matched muscle_mass_percent = 76.7
[2026-04-11 20:03:26] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-11 20:03:26] Pass1 matched bone_mass_lbs = 6.6
[2026-04-11 20:03:26] Pass1 matched weight = 167.5
[2026-04-11 20:03:26] Found 7 metrics in total
[2026-04-11 20:12:04] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-11 20:12:04] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-11 20:12:04] Using OCR.space API
[2026-04-11 20:12:04] Using API key: K8465...
[2026-04-11 20:12:07] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-11 20:12:07] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-04-11 20:12:07] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-04-11 20:12:07] Extracting health metrics from text
[2026-04-11 20:12:07] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-04-11 20:12:07] Pass1 matched visceral_fat = 6.6
[2026-04-11 20:12:07] Pass1 matched bmr = 1510
[2026-04-11 20:12:07] Pass1 matched body_fat_percent = 19.4
[2026-04-11 20:12:07] Pass1 matched muscle_mass_percent = 76.7
[2026-04-11 20:12:07] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-11 20:12:07] Pass1 matched bone_mass_lbs = 6.6
[2026-04-11 20:12:07] Pass1 matched weight = 167.5
[2026-04-11 20:12:07] Found 7 metrics in total
[2026-04-11 20:26:48] Health image upload received
[2026-04-11 20:26:48] User ID: 1
[2026-04-11 20:26:48] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69daae8852aa02.44592573.jpg
[2026-04-11 20:26:48] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69daae8852aa02.44592573.jpg
[2026-04-11 20:26:48] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69daae8852aa02.44592573.jpg
[2026-04-11 20:26:48] Using OCR.space API
[2026-04-11 20:26:48] Using API key: K8465...
[2026-04-11 20:26:49] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-11 20:26:49] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-04-11 20:26:49] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-04-11 20:26:49] Extracting health metrics from text
[2026-04-11 20:26:49] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-04-11 20:26:49] Pass1 matched visceral_fat = 6.6
[2026-04-11 20:26:49] Pass1 matched bmr = 1510
[2026-04-11 20:26:49] Pass1 matched body_fat_percent = 19.4
[2026-04-11 20:26:49] Pass1 matched muscle_mass_percent = 76.7
[2026-04-11 20:26:49] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-11 20:26:49] Pass1 matched bone_mass_lbs = 6.6
[2026-04-11 20:26:49] Pass1 matched weight = 167.5
[2026-04-11 20:26:49] Found 7 metrics in total
[2026-04-11 20:26:49] Extracted data: {"date":"2026-04-11","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-11 20:26:49] Final data for insertion: {"date":"2026-04-11","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-11 20:26:49] Inserted record with ID: 188
[2026-04-11 20:26:49] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-11","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"188"}
[2026-04-11 20:34:15] Health image upload received
[2026-04-11 20:34:15] User ID: 1
[2026-04-11 20:34:15] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69dab047ce0aa1.66138572.jpg
[2026-04-11 20:34:15] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69dab047ce0aa1.66138572.jpg
[2026-04-11 20:34:15] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69dab047ce0aa1.66138572.jpg
[2026-04-11 20:34:15] Using OCR.space API
[2026-04-11 20:34:15] Using API key: K8465...
[2026-04-11 20:34:17] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-11 20:34:17] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-04-11 20:34:17] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-04-11 20:34:17] Extracting health metrics from text
[2026-04-11 20:34:17] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-04-11 20:34:17] Pass1 matched visceral_fat = 6.6
[2026-04-11 20:34:17] Pass1 matched bmr = 1510
[2026-04-11 20:34:17] Pass1 matched body_fat_percent = 19.4
[2026-04-11 20:34:17] Pass1 matched muscle_mass_percent = 76.7
[2026-04-11 20:34:17] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-11 20:34:17] Pass1 matched bone_mass_lbs = 6.6
[2026-04-11 20:34:17] Pass1 matched weight = 167.5
[2026-04-11 20:34:17] Found 7 metrics in total
[2026-04-11 20:34:17] Extracted data: {"date":"2026-04-11","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-11 20:34:17] Final data for insertion: {"date":"2026-04-11","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-11 20:34:17] Inserted record with ID: 189
[2026-04-11 20:34:17] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-11","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"189"}
[2026-04-11 20:47:31] Health image upload received
[2026-04-11 20:47:31] User ID: 1
[2026-04-11 20:47:31] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69dab3639ed487.35657421.jpg
[2026-04-11 20:47:31] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69dab3639ed487.35657421.jpg
[2026-04-11 20:47:31] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69dab3639ed487.35657421.jpg
[2026-04-11 20:47:31] Using OCR.space API
[2026-04-11 20:47:31] Using API key: K8465...
[2026-04-11 20:47:33] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-11 20:47:33] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-04-11 20:47:33] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-04-11 20:47:33] Extracting health metrics from text
[2026-04-11 20:47:33] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-04-11 20:47:33] Pass1 matched visceral_fat = 11
[2026-04-11 20:47:33] Pass1 matched bmr = 1510
[2026-04-11 20:47:33] Pass1 matched bmi = 26.9
[2026-04-11 20:47:33] Pass1 matched body_fat_percent = 19.4
[2026-04-11 20:47:33] Pass1 matched bone_mass_percent = 3.9
[2026-04-11 20:47:33] Pass1 matched water_percent = 55.3
[2026-04-11 20:47:33] Pass1 matched muscle_mass_percent = 76.7
[2026-04-11 20:47:33] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-11 20:47:33] Pass1 matched bone_mass_lbs = 6.6
[2026-04-11 20:47:33] Pass1 matched lean_body_mass_lbs = 135.1
[2026-04-11 20:47:33] Pass1 matched muscle_mass_lbs = 128.5
[2026-04-11 20:47:33] Pass1 matched weight = 167.5
[2026-04-11 20:47:33] Found 12 metrics in total
[2026-04-11 20:47:33] Extracted data: {"date":"2026-04-11","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-11 20:47:33] Final data for insertion: {"date":"2026-04-11","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-11 20:47:33] Inserted record with ID: 190
[2026-04-11 20:47:33] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-11","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"190"}
[2026-04-12 05:02:37] Health image upload received
[2026-04-12 05:02:37] Error: Missing or invalid user_id
[2026-04-12 05:02:37] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-04-12 12:13:58] Health image upload received
[2026-04-12 12:13:58] Error: Missing or invalid user_id
[2026-04-12 12:13:58] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-04-12 15:37:26] Health image upload received
[2026-04-12 15:37:26] User ID: 1
[2026-04-12 15:37:26] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69dbbc369326d0.69443553.jpg
[2026-04-12 15:37:26] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69dbbc369326d0.69443553.jpg
[2026-04-12 15:37:26] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69dbbc369326d0.69443553.jpg
[2026-04-12 15:37:26] Using OCR.space API
[2026-04-12 15:37:26] Using API key: K8465...
[2026-04-12 15:37:28] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-12 15:37:28] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-04-12 15:37:28] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-04-12 15:37:28] Extracting health metrics from text
[2026-04-12 15:37:28] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-04-12 15:37:28] Pass1 matched visceral_fat = 11
[2026-04-12 15:37:28] Pass1 matched bmr = 1510
[2026-04-12 15:37:28] Pass1 matched bmi = 26.9
[2026-04-12 15:37:28] Pass1 matched body_fat_percent = 19.4
[2026-04-12 15:37:28] Pass1 matched bone_mass_percent = 3.9
[2026-04-12 15:37:28] Pass1 matched water_percent = 55.3
[2026-04-12 15:37:28] Pass1 matched muscle_mass_percent = 76.7
[2026-04-12 15:37:28] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-12 15:37:28] Pass1 matched bone_mass_lbs = 6.6
[2026-04-12 15:37:28] Pass1 matched lean_body_mass_lbs = 135.1
[2026-04-12 15:37:28] Pass1 matched muscle_mass_lbs = 128.5
[2026-04-12 15:37:28] Pass1 matched weight = 167.5
[2026-04-12 15:37:28] Found 12 metrics in total
[2026-04-12 15:37:28] Extracted data: {"date":"2026-04-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-12 15:37:28] Final data for insertion: {"date":"2026-04-12","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-12 15:37:28] Inserted record with ID: 191
[2026-04-12 15:37:28] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-12","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"191"}
[2026-04-12 15:38:50] Health image upload received
[2026-04-12 15:38:50] User ID: 1
[2026-04-12 15:38:50] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69dbbc8a9d10f5.94911899.jpg
[2026-04-12 15:38:50] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69dbbc8a9d10f5.94911899.jpg
[2026-04-12 15:38:50] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69dbbc8a9d10f5.94911899.jpg
[2026-04-12 15:38:50] Using OCR.space API
[2026-04-12 15:38:50] Using API key: K8465...
[2026-04-12 15:38:52] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-12 15:38:52] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-04-12 15:38:52] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-04-12 15:38:52] Extracting health metrics from text
[2026-04-12 15:38:52] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-04-12 15:38:52] Pass1 matched visceral_fat = 11
[2026-04-12 15:38:52] Pass1 matched bmr = 1510
[2026-04-12 15:38:52] Pass1 matched bmi = 26.9
[2026-04-12 15:38:52] Pass1 matched body_fat_percent = 19.4
[2026-04-12 15:38:52] Pass1 matched bone_mass_percent = 3.9
[2026-04-12 15:38:52] Pass1 matched water_percent = 55.3
[2026-04-12 15:38:52] Pass1 matched muscle_mass_percent = 76.7
[2026-04-12 15:38:52] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-12 15:38:52] Pass1 matched bone_mass_lbs = 6.6
[2026-04-12 15:38:52] Pass1 matched lean_body_mass_lbs = 135.1
[2026-04-12 15:38:52] Pass1 matched muscle_mass_lbs = 128.5
[2026-04-12 15:38:52] Pass1 matched weight = 167.5
[2026-04-12 15:38:52] Found 12 metrics in total
[2026-04-12 15:38:52] Extracted data: {"date":"2026-04-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-12 15:38:52] Final data for insertion: {"date":"2026-04-12","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-12 15:38:52] Inserted record with ID: 192
[2026-04-12 15:38:52] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-12","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"192"}
[2026-04-12 15:51:55] Health image upload received
[2026-04-12 15:51:55] User ID: 1
[2026-04-12 15:51:55] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69dbbf9bc1e974.14202222.jpg
[2026-04-12 15:51:55] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69dbbf9bc1e974.14202222.jpg
[2026-04-12 15:51:55] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69dbbf9bc1e974.14202222.jpg
[2026-04-12 15:51:55] Using OCR.space API
[2026-04-12 15:51:55] Using API key: K8465...
[2026-04-12 15:51:57] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-12 15:51:57] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-04-12 15:51:57] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-04-12 15:51:57] Extracting health metrics from text
[2026-04-12 15:51:57] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-04-12 15:51:57] Pass1 matched visceral_fat = 11
[2026-04-12 15:51:57] Pass1 matched bmr = 1510
[2026-04-12 15:51:57] Pass1 matched bmi = 26.9
[2026-04-12 15:51:57] Pass1 matched body_fat_percent = 19.4
[2026-04-12 15:51:57] Pass1 matched bone_mass_percent = 3.9
[2026-04-12 15:51:57] Pass1 matched water_percent = 55.3
[2026-04-12 15:51:57] Pass1 matched muscle_mass_percent = 76.7
[2026-04-12 15:51:57] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-12 15:51:57] Pass1 matched bone_mass_lbs = 6.6
[2026-04-12 15:51:57] Pass1 matched lean_body_mass_lbs = 135.1
[2026-04-12 15:51:57] Pass1 matched muscle_mass_lbs = 128.5
[2026-04-12 15:51:57] Pass1 matched weight = 167.5
[2026-04-12 15:51:57] Found 12 metrics in total
[2026-04-12 15:51:57] Extracted data: {"date":"2026-04-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-12 15:51:57] Final data for insertion: {"date":"2026-04-12","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-12 15:51:57] Inserted record with ID: 193
[2026-04-12 15:51:57] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-12","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"193"}
[2026-04-12 16:14:25] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-12 16:14:25] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-12 16:14:25] Using OCR.space API
[2026-04-12 16:14:25] Using API key: K8465...
[2026-04-12 16:14:27] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-12 16:14:27] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-04-12 16:14:27] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-04-12 16:14:27] Extracting health metrics from text
[2026-04-12 16:14:27] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-04-12 16:14:27] Pass1 matched visceral_fat = 6.6
[2026-04-12 16:14:27] Pass1 matched bmr = 1510
[2026-04-12 16:14:27] Pass1 matched body_fat_percent = 19.4
[2026-04-12 16:14:27] Pass1 matched muscle_mass_percent = 76.7
[2026-04-12 16:14:27] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-12 16:14:27] Pass1 matched bone_mass_lbs = 6.6
[2026-04-12 16:14:27] Pass1 matched weight = 167.5
[2026-04-12 16:14:27] Found 7 metrics in total
[2026-04-12 17:43:27] Health image upload received
[2026-04-12 17:43:27] User ID: 1
[2026-04-12 17:43:27] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69dbd9bf770ee9.59587676.jpg
[2026-04-12 17:43:27] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69dbd9bf770ee9.59587676.jpg
[2026-04-12 17:43:27] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69dbd9bf770ee9.59587676.jpg
[2026-04-12 17:43:27] Using OCR.space API
[2026-04-12 17:43:27] Using API key: K8465...
[2026-04-12 17:43:29] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-12 17:43:29] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-04-12 17:43:29] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-04-12 17:43:29] Extracting health metrics from text
[2026-04-12 17:43:29] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-04-12 17:43:29] Pass1 matched visceral_fat = 11
[2026-04-12 17:43:29] Pass1 matched bmr = 1510
[2026-04-12 17:43:29] Pass1 matched bmi = 26.9
[2026-04-12 17:43:29] Pass1 matched body_fat_percent = 19.4
[2026-04-12 17:43:29] Pass1 matched bone_mass_percent = 3.9
[2026-04-12 17:43:29] Pass1 matched water_percent = 55.3
[2026-04-12 17:43:29] Pass1 matched muscle_mass_percent = 76.7
[2026-04-12 17:43:29] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-12 17:43:29] Pass1 matched bone_mass_lbs = 6.6
[2026-04-12 17:43:29] Pass1 matched lean_body_mass_lbs = 135.1
[2026-04-12 17:43:29] Pass1 matched muscle_mass_lbs = 128.5
[2026-04-12 17:43:29] Pass1 matched weight = 167.5
[2026-04-12 17:43:29] Found 12 metrics in total
[2026-04-12 17:43:29] Extracted data: {"date":"2026-04-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-12 17:43:29] Final data for insertion: {"date":"2026-04-12","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-12 17:43:29] Inserted record with ID: 194
[2026-04-12 17:43:29] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-12","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"194"}
[2026-04-13 13:06:54] Health image upload received
[2026-04-13 13:06:54] Error: Missing or invalid user_id
[2026-04-13 13:06:54] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-04-13 15:38:48] Health image upload received
[2026-04-13 15:38:48] User ID: 1
[2026-04-13 15:38:48] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69dd0e082d40b5.76342118.jpg
[2026-04-13 15:38:48] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69dd0e082d40b5.76342118.jpg
[2026-04-13 15:38:48] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69dd0e082d40b5.76342118.jpg
[2026-04-13 15:38:48] Using OCR.space API
[2026-04-13 15:38:48] Using API key: K8465...
[2026-04-13 15:38:49] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-13 15:38:49] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-04-13 15:38:49] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-04-13 15:38:49] Extracting health metrics from text
[2026-04-13 15:38:49] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-04-13 15:38:49] Pass1 matched visceral_fat = 11
[2026-04-13 15:38:49] Pass1 matched bmr = 1510
[2026-04-13 15:38:49] Pass1 matched bmi = 26.9
[2026-04-13 15:38:49] Pass1 matched body_fat_percent = 19.4
[2026-04-13 15:38:49] Pass1 matched bone_mass_percent = 3.9
[2026-04-13 15:38:49] Pass1 matched water_percent = 55.3
[2026-04-13 15:38:49] Pass1 matched muscle_mass_percent = 76.7
[2026-04-13 15:38:49] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-13 15:38:49] Pass1 matched bone_mass_lbs = 6.6
[2026-04-13 15:38:49] Pass1 matched lean_body_mass_lbs = 135.1
[2026-04-13 15:38:49] Pass1 matched muscle_mass_lbs = 128.5
[2026-04-13 15:38:49] Pass1 matched weight = 167.5
[2026-04-13 15:38:49] Found 12 metrics in total
[2026-04-13 15:38:49] Extracted data: {"date":"2026-04-13","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-13 15:38:49] Final data for insertion: {"date":"2026-04-13","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-13 15:38:49] Inserted record with ID: 195
[2026-04-13 15:38:49] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-13","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"195"}
[2026-04-13 16:26:14] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-13 16:26:14] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-13 16:26:14] Using OCR.space API
[2026-04-13 16:26:14] Using API key: K8465...
[2026-04-13 16:26:15] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-13 16:26:15] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-04-13 16:26:15] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-04-13 16:26:15] Extracting health metrics from text
[2026-04-13 16:26:15] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-04-13 16:26:15] Pass1 matched visceral_fat = 6.6
[2026-04-13 16:26:15] Pass1 matched bmr = 1510
[2026-04-13 16:26:15] Pass1 matched body_fat_percent = 19.4
[2026-04-13 16:26:15] Pass1 matched muscle_mass_percent = 76.7
[2026-04-13 16:26:15] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-13 16:26:15] Pass1 matched bone_mass_lbs = 6.6
[2026-04-13 16:26:15] Pass1 matched weight = 167.5
[2026-04-13 16:26:15] Found 7 metrics in total
[2026-04-13 16:47:56] Health image upload received
[2026-04-13 16:47:56] User ID: 1
[2026-04-13 16:47:56] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69dd1e3c794658.53046647.jpg
[2026-04-13 16:47:56] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69dd1e3c794658.53046647.jpg
[2026-04-13 16:47:56] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69dd1e3c794658.53046647.jpg
[2026-04-13 16:47:56] Using OCR.space API
[2026-04-13 16:47:56] Using API key: K8465...
[2026-04-13 16:47:58] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-13 16:47:58] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-04-13 16:47:58] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-04-13 16:47:58] Extracting health metrics from text
[2026-04-13 16:47:58] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-04-13 16:47:58] Pass1 matched visceral_fat = 6.6
[2026-04-13 16:47:58] Pass1 matched bmr = 1510
[2026-04-13 16:47:58] Pass1 matched body_fat_percent = 19.4
[2026-04-13 16:47:58] Pass1 matched muscle_mass_percent = 76.7
[2026-04-13 16:47:58] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-13 16:47:58] Pass1 matched bone_mass_lbs = 6.6
[2026-04-13 16:47:58] Pass1 matched weight = 167.5
[2026-04-13 16:47:58] Found 7 metrics in total
[2026-04-13 16:47:58] Extracted data: {"date":"2026-04-13","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-13 16:47:58] Final data for insertion: {"date":"2026-04-13","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-13 16:47:58] Inserted record with ID: 196
[2026-04-13 16:47:58] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-13","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"196"}
[2026-04-13 16:54:27] Health image upload received
[2026-04-13 16:54:27] Error: Missing or invalid user_id
[2026-04-13 16:54:27] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-04-13 16:59:34] Health image upload received
[2026-04-13 16:59:34] User ID: 1
[2026-04-13 16:59:34] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69dd20f6812d48.51805011.jpg
[2026-04-13 16:59:34] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69dd20f6812d48.51805011.jpg
[2026-04-13 16:59:34] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69dd20f6812d48.51805011.jpg
[2026-04-13 16:59:34] Using OCR.space API
[2026-04-13 16:59:34] Using API key: K8465...
[2026-04-13 16:59:36] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-13 16:59:36] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-04-13 16:59:36] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-04-13 16:59:36] Extracting health metrics from text
[2026-04-13 16:59:36] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-04-13 16:59:36] Pass1 matched visceral_fat = 11
[2026-04-13 16:59:36] Pass1 matched bmr = 1510
[2026-04-13 16:59:36] Pass1 matched bmi = 26.9
[2026-04-13 16:59:36] Pass1 matched body_fat_percent = 19.4
[2026-04-13 16:59:36] Pass1 matched bone_mass_percent = 3.9
[2026-04-13 16:59:36] Pass1 matched water_percent = 55.3
[2026-04-13 16:59:36] Pass1 matched muscle_mass_percent = 76.7
[2026-04-13 16:59:36] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-13 16:59:36] Pass1 matched bone_mass_lbs = 6.6
[2026-04-13 16:59:36] Pass1 matched lean_body_mass_lbs = 135.1
[2026-04-13 16:59:36] Pass1 matched muscle_mass_lbs = 128.5
[2026-04-13 16:59:36] Pass1 matched weight = 167.5
[2026-04-13 16:59:36] Found 12 metrics in total
[2026-04-13 16:59:36] Extracted data: {"date":"2026-04-13","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-13 16:59:36] Final data for insertion: {"date":"2026-04-13","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-13 16:59:36] Inserted record with ID: 197
[2026-04-13 16:59:36] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-13","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"197"}
[2026-04-14 00:57:41] Health image upload received
[2026-04-14 00:57:41] User ID: 1
[2026-04-14 00:57:41] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69dd9105d9fc29.63738017.jpg
[2026-04-14 00:57:41] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69dd9105d9fc29.63738017.jpg
[2026-04-14 00:57:41] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69dd9105d9fc29.63738017.jpg
[2026-04-14 00:57:41] Using OCR.space API
[2026-04-14 00:57:41] Using API key: K8465...
[2026-04-14 00:57:43] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-14 00:57:43] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-04-14 00:57:43] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-04-14 00:57:43] Extracting health metrics from text
[2026-04-14 00:57:43] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-04-14 00:57:43] Pass1 matched visceral_fat = 11
[2026-04-14 00:57:43] Pass1 matched bmr = 1510
[2026-04-14 00:57:43] Pass1 matched bmi = 26.9
[2026-04-14 00:57:43] Pass1 matched body_fat_percent = 19.4
[2026-04-14 00:57:43] Pass1 matched bone_mass_percent = 3.9
[2026-04-14 00:57:43] Pass1 matched water_percent = 55.3
[2026-04-14 00:57:43] Pass1 matched muscle_mass_percent = 76.7
[2026-04-14 00:57:43] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-14 00:57:43] Pass1 matched bone_mass_lbs = 6.6
[2026-04-14 00:57:43] Pass1 matched lean_body_mass_lbs = 135.1
[2026-04-14 00:57:43] Pass1 matched muscle_mass_lbs = 128.5
[2026-04-14 00:57:43] Pass1 matched weight = 167.5
[2026-04-14 00:57:43] Found 12 metrics in total
[2026-04-14 00:57:43] Extracted data: {"date":"2026-04-14","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-14 00:57:43] Final data for insertion: {"date":"2026-04-14","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-14 00:57:43] Inserted record with ID: 198
[2026-04-14 00:57:43] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-14","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"198"}
[2026-04-14 04:22:01] Health image upload received
[2026-04-14 04:22:01] User ID: 1
[2026-04-14 04:22:01] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ddc0e9857c02.94975075.jpg
[2026-04-14 04:22:01] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ddc0e9857c02.94975075.jpg
[2026-04-14 04:22:01] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ddc0e9857c02.94975075.jpg
[2026-04-14 04:22:01] Using OCR.space API
[2026-04-14 04:22:01] Using API key: K8465...
[2026-04-14 04:22:03] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-14 04:22:03] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-04-14 04:22:03] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-04-14 04:22:03] Extracting health metrics from text
[2026-04-14 04:22:03] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-04-14 04:22:03] Pass1 matched visceral_fat = 11
[2026-04-14 04:22:03] Pass1 matched bmr = 1510
[2026-04-14 04:22:03] Pass1 matched bmi = 26.9
[2026-04-14 04:22:03] Pass1 matched body_fat_percent = 19.4
[2026-04-14 04:22:03] Pass1 matched bone_mass_percent = 3.9
[2026-04-14 04:22:03] Pass1 matched water_percent = 55.3
[2026-04-14 04:22:03] Pass1 matched muscle_mass_percent = 76.7
[2026-04-14 04:22:03] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-14 04:22:03] Pass1 matched bone_mass_lbs = 6.6
[2026-04-14 04:22:03] Pass1 matched lean_body_mass_lbs = 135.1
[2026-04-14 04:22:03] Pass1 matched muscle_mass_lbs = 128.5
[2026-04-14 04:22:03] Pass1 matched weight = 167.5
[2026-04-14 04:22:03] Found 12 metrics in total
[2026-04-14 04:22:03] Extracted data: {"date":"2026-04-14","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-14 04:22:03] Final data for insertion: {"date":"2026-04-14","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-14 04:22:03] Inserted record with ID: 199
[2026-04-14 04:22:03] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-14","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"199"}
[2026-04-14 20:13:27] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-14 20:13:27] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-14 20:13:27] Using OCR.space API
[2026-04-14 20:13:27] Using API key: K8465...
[2026-04-14 20:13:28] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-14 20:13:28] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-04-14 20:13:28] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-04-14 20:13:28] Extracting health metrics from text
[2026-04-14 20:13:28] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-04-14 20:13:28] Pass1 matched visceral_fat = 6.6
[2026-04-14 20:13:28] Pass1 matched bmr = 1510
[2026-04-14 20:13:28] Pass1 matched body_fat_percent = 19.4
[2026-04-14 20:13:28] Pass1 matched muscle_mass_percent = 76.7
[2026-04-14 20:13:28] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-14 20:13:28] Pass1 matched bone_mass_lbs = 6.6
[2026-04-14 20:13:28] Pass1 matched weight = 167.5
[2026-04-14 20:13:28] Found 7 metrics in total
[2026-04-14 21:49:31] Health image upload received
[2026-04-14 21:49:31] User ID: 1
[2026-04-14 21:49:31] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69deb66ba4f342.04103257.jpg
[2026-04-14 21:49:31] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69deb66ba4f342.04103257.jpg
[2026-04-14 21:49:31] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69deb66ba4f342.04103257.jpg
[2026-04-14 21:49:31] Using OCR.space API
[2026-04-14 21:49:31] Using API key: K8465...
[2026-04-14 21:49:33] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-14 21:49:33] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-04-14 21:49:33] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-04-14 21:49:33] Extracting health metrics from text
[2026-04-14 21:49:33] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-04-14 21:49:33] Pass1 matched visceral_fat = 11
[2026-04-14 21:49:33] Pass1 matched bmr = 1510
[2026-04-14 21:49:33] Pass1 matched bmi = 26.9
[2026-04-14 21:49:33] Pass1 matched body_fat_percent = 19.4
[2026-04-14 21:49:33] Pass1 matched bone_mass_percent = 3.9
[2026-04-14 21:49:33] Pass1 matched water_percent = 55.3
[2026-04-14 21:49:33] Pass1 matched muscle_mass_percent = 76.7
[2026-04-14 21:49:33] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-14 21:49:33] Pass1 matched bone_mass_lbs = 6.6
[2026-04-14 21:49:33] Pass1 matched lean_body_mass_lbs = 135.1
[2026-04-14 21:49:33] Pass1 matched muscle_mass_lbs = 128.5
[2026-04-14 21:49:33] Pass1 matched weight = 167.5
[2026-04-14 21:49:33] Found 12 metrics in total
[2026-04-14 21:49:33] Extracted data: {"date":"2026-04-14","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-14 21:49:33] Final data for insertion: {"date":"2026-04-14","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-14 21:49:33] Inserted record with ID: 200
[2026-04-14 21:49:33] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-14","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"200"}
[2026-04-15 00:15:37] Health image upload received
[2026-04-15 00:15:37] User ID: 1
[2026-04-15 00:15:37] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ded8a99d5c55.99083647.jpg
[2026-04-15 00:15:37] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ded8a99d5c55.99083647.jpg
[2026-04-15 00:15:37] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ded8a99d5c55.99083647.jpg
[2026-04-15 00:15:37] Using OCR.space API
[2026-04-15 00:15:37] Using API key: K8465...
[2026-04-15 00:15:39] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-15 00:15:39] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-04-15 00:15:39] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-04-15 00:15:39] Extracting health metrics from text
[2026-04-15 00:15:39] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-04-15 00:15:39] Pass1 matched visceral_fat = 11
[2026-04-15 00:15:39] Pass1 matched bmr = 1510
[2026-04-15 00:15:39] Pass1 matched bmi = 26.9
[2026-04-15 00:15:39] Pass1 matched body_fat_percent = 19.4
[2026-04-15 00:15:39] Pass1 matched bone_mass_percent = 3.9
[2026-04-15 00:15:39] Pass1 matched water_percent = 55.3
[2026-04-15 00:15:39] Pass1 matched muscle_mass_percent = 76.7
[2026-04-15 00:15:39] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-15 00:15:39] Pass1 matched bone_mass_lbs = 6.6
[2026-04-15 00:15:39] Pass1 matched lean_body_mass_lbs = 135.1
[2026-04-15 00:15:39] Pass1 matched muscle_mass_lbs = 128.5
[2026-04-15 00:15:39] Pass1 matched weight = 167.5
[2026-04-15 00:15:39] Found 12 metrics in total
[2026-04-15 00:15:39] Extracted data: {"date":"2026-04-15","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-15 00:15:39] Final data for insertion: {"date":"2026-04-15","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-15 00:15:39] Inserted record with ID: 201
[2026-04-15 00:15:39] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-15","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"201"}
[2026-04-15 00:16:01] Health image upload received
[2026-04-15 00:16:01] Error: Missing or invalid user_id
[2026-04-15 00:16:01] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-04-15 18:26:12] Health image upload received
[2026-04-15 18:26:12] User ID: 1
[2026-04-15 18:26:12] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69dfd844105b65.23267316.jpg
[2026-04-15 18:26:12] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69dfd844105b65.23267316.jpg
[2026-04-15 18:26:12] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69dfd844105b65.23267316.jpg
[2026-04-15 18:26:12] Using OCR.space API
[2026-04-15 18:26:12] Using API key: K8465...
[2026-04-15 18:26:14] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-15 18:26:14] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-04-15 18:26:14] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-04-15 18:26:14] Extracting health metrics from text
[2026-04-15 18:26:14] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-04-15 18:26:14] Pass1 matched visceral_fat = 11
[2026-04-15 18:26:14] Pass1 matched bmr = 1510
[2026-04-15 18:26:14] Pass1 matched bmi = 26.9
[2026-04-15 18:26:14] Pass1 matched body_fat_percent = 19.4
[2026-04-15 18:26:14] Pass1 matched bone_mass_percent = 3.9
[2026-04-15 18:26:14] Pass1 matched water_percent = 55.3
[2026-04-15 18:26:14] Pass1 matched muscle_mass_percent = 76.7
[2026-04-15 18:26:14] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-15 18:26:14] Pass1 matched bone_mass_lbs = 6.6
[2026-04-15 18:26:14] Pass1 matched lean_body_mass_lbs = 135.1
[2026-04-15 18:26:14] Pass1 matched muscle_mass_lbs = 128.5
[2026-04-15 18:26:14] Pass1 matched weight = 167.5
[2026-04-15 18:26:14] Found 12 metrics in total
[2026-04-15 18:26:14] Extracted data: {"date":"2026-04-15","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-15 18:26:14] Final data for insertion: {"date":"2026-04-15","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-15 18:26:14] Inserted record with ID: 202
[2026-04-15 18:26:14] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-15","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"202"}
[2026-04-15 21:13:24] Health image upload received
[2026-04-15 21:13:24] Error: Missing or invalid user_id
[2026-04-15 21:13:24] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-04-15 21:32:45] Health image upload received
[2026-04-15 21:32:45] Error: Missing or invalid user_id
[2026-04-15 21:32:45] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-04-16 04:18:39] Health image upload received
[2026-04-16 04:18:39] User ID: 1
[2026-04-16 04:18:39] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69e0631fed19e7.20595408.jpg
[2026-04-16 04:18:39] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69e0631fed19e7.20595408.jpg
[2026-04-16 04:18:39] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69e0631fed19e7.20595408.jpg
[2026-04-16 04:18:39] Using OCR.space API
[2026-04-16 04:18:39] Using API key: K8465...
[2026-04-16 04:19:39] OCR.space API attempt 1 completed with HTTP code: 0
[2026-04-16 04:19:39] Attempt 1 failed: Operation timed out after 60002 milliseconds with 0 bytes received (HTTP 0)
[2026-04-16 04:19:39] Retrying in 2 seconds...
[2026-04-16 04:20:41] OCR.space API attempt 2 completed with HTTP code: 0
[2026-04-16 04:20:41] Attempt 2 failed: Operation timed out after 60006 milliseconds with 0 bytes received (HTTP 0)
[2026-04-16 04:20:41] cURL error after 2 attempts: Operation timed out after 60006 milliseconds with 0 bytes received
[2026-04-16 04:20:41] Text extraction failed
[2026-04-16 04:20:41] Error: Failed to extract data from image
[2026-04-16 04:20:41] Response: {"success":false,"message":"Error: Failed to extract data from image"}
[2026-04-16 07:03:15] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-16 07:03:15] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-16 07:03:15] Using OCR.space API
[2026-04-16 07:03:15] Using API key: K8465...
[2026-04-17 09:32:37] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-17 09:32:37] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-17 09:32:37] Using OCR.space API
[2026-04-17 09:32:37] Using API key: K8465...
[2026-04-17 09:32:39] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-17 09:32:39] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-04-17 09:32:39] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-04-17 09:32:39] Extracting health metrics from text
[2026-04-17 09:32:39] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-04-17 09:32:39] Pass1 matched visceral_fat = 6.6
[2026-04-17 09:32:39] Pass1 matched bmr = 1510
[2026-04-17 09:32:39] Pass1 matched body_fat_percent = 19.4
[2026-04-17 09:32:39] Pass1 matched muscle_mass_percent = 76.7
[2026-04-17 09:32:39] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-17 09:32:39] Pass1 matched bone_mass_lbs = 6.6
[2026-04-17 09:32:39] Pass1 matched weight = 167.5
[2026-04-17 09:32:39] Found 7 metrics in total
[2026-04-17 10:41:24] Health image upload received
[2026-04-17 10:41:24] User ID: 1
[2026-04-17 10:41:24] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69e20e549814d5.59485380.jpg
[2026-04-17 10:41:24] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69e20e549814d5.59485380.jpg
[2026-04-17 10:41:24] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69e20e549814d5.59485380.jpg
[2026-04-17 10:41:24] Using OCR.space API
[2026-04-17 10:41:24] Using API key: K8465...
[2026-04-17 10:41:26] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-17 10:41:26] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-04-17 10:41:26] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-04-17 10:41:26] Extracting health metrics from text
[2026-04-17 10:41:26] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-04-17 10:41:26] Pass1 matched visceral_fat = 11
[2026-04-17 10:41:26] Pass1 matched bmr = 1510
[2026-04-17 10:41:26] Pass1 matched bmi = 26.9
[2026-04-17 10:41:26] Pass1 matched body_fat_percent = 19.4
[2026-04-17 10:41:26] Pass1 matched bone_mass_percent = 3.9
[2026-04-17 10:41:26] Pass1 matched water_percent = 55.3
[2026-04-17 10:41:26] Pass1 matched muscle_mass_percent = 76.7
[2026-04-17 10:41:26] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-17 10:41:26] Pass1 matched bone_mass_lbs = 6.6
[2026-04-17 10:41:26] Pass1 matched lean_body_mass_lbs = 135.1
[2026-04-17 10:41:26] Pass1 matched muscle_mass_lbs = 128.5
[2026-04-17 10:41:26] Pass1 matched weight = 167.5
[2026-04-17 10:41:26] Found 12 metrics in total
[2026-04-17 10:41:26] Extracted data: {"date":"2026-04-17","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-17 10:41:26] Final data for insertion: {"date":"2026-04-17","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-17 10:41:26] Inserted record with ID: 203
[2026-04-17 10:41:26] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-17","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"203"}
[2026-04-17 12:23:13] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-17 12:23:13] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-17 12:23:13] Using OCR.space API
[2026-04-17 12:23:13] Using API key: K8465...
[2026-04-17 12:23:18] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-17 12:23:18] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-04-17 12:23:18] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-04-17 12:23:18] Extracting health metrics from text
[2026-04-17 12:23:18] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-04-17 12:23:18] Pass1 matched visceral_fat = 6.6
[2026-04-17 12:23:18] Pass1 matched bmr = 1510
[2026-04-17 12:23:18] Pass1 matched body_fat_percent = 19.4
[2026-04-17 12:23:18] Pass1 matched muscle_mass_percent = 76.7
[2026-04-17 12:23:18] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-17 12:23:18] Pass1 matched bone_mass_lbs = 6.6
[2026-04-17 12:23:18] Pass1 matched weight = 167.5
[2026-04-17 12:23:18] Found 7 metrics in total
[2026-04-17 12:25:07] Health image upload received
[2026-04-17 12:25:07] Error: Missing or invalid user_id
[2026-04-17 12:25:07] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-04-18 01:52:17] Health image upload received
[2026-04-18 01:52:17] User ID: 1
[2026-04-18 01:52:17] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69e2e3d1deee48.96169212.jpg
[2026-04-18 01:52:17] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69e2e3d1deee48.96169212.jpg
[2026-04-18 01:52:17] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69e2e3d1deee48.96169212.jpg
[2026-04-18 01:52:17] Using OCR.space API
[2026-04-18 01:52:17] Using API key: K8465...
[2026-04-18 01:52:19] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-18 01:52:19] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-04-18 01:52:19] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-04-18 01:52:19] Extracting health metrics from text
[2026-04-18 01:52:19] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-04-18 01:52:19] Pass1 matched visceral_fat = 11
[2026-04-18 01:52:19] Pass1 matched bmr = 1510
[2026-04-18 01:52:19] Pass1 matched bmi = 26.9
[2026-04-18 01:52:19] Pass1 matched body_fat_percent = 19.4
[2026-04-18 01:52:19] Pass1 matched bone_mass_percent = 3.9
[2026-04-18 01:52:19] Pass1 matched water_percent = 55.3
[2026-04-18 01:52:19] Pass1 matched muscle_mass_percent = 76.7
[2026-04-18 01:52:19] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-18 01:52:19] Pass1 matched bone_mass_lbs = 6.6
[2026-04-18 01:52:19] Pass1 matched lean_body_mass_lbs = 135.1
[2026-04-18 01:52:19] Pass1 matched muscle_mass_lbs = 128.5
[2026-04-18 01:52:19] Pass1 matched weight = 167.5
[2026-04-18 01:52:19] Found 12 metrics in total
[2026-04-18 01:52:19] Extracted data: {"date":"2026-04-18","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-18 01:52:19] Final data for insertion: {"date":"2026-04-18","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-18 01:52:19] Inserted record with ID: 204
[2026-04-18 01:52:19] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-18","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"204"}
[2026-04-18 11:56:17] Health image upload received
[2026-04-18 11:56:17] Error: Missing or invalid user_id
[2026-04-18 11:56:17] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-04-18 19:02:28] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-18 19:02:28] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-18 19:02:28] Using OCR.space API
[2026-04-18 19:02:28] Using API key: K8465...
[2026-04-18 19:02:30] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-18 19:02:30] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-04-18 19:02:30] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-04-18 19:02:30] Extracting health metrics from text
[2026-04-18 19:02:30] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-04-18 19:02:30] Pass1 matched visceral_fat = 6.6
[2026-04-18 19:02:30] Pass1 matched bmr = 1510
[2026-04-18 19:02:30] Pass1 matched body_fat_percent = 19.4
[2026-04-18 19:02:30] Pass1 matched muscle_mass_percent = 76.7
[2026-04-18 19:02:30] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-18 19:02:30] Pass1 matched bone_mass_lbs = 6.6
[2026-04-18 19:02:30] Pass1 matched weight = 167.5
[2026-04-18 19:02:30] Found 7 metrics in total
[2026-04-19 01:27:20] Health image upload received
[2026-04-19 01:27:20] Error: Missing or invalid user_id
[2026-04-19 01:27:20] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-04-19 05:38:13] Health image upload received
[2026-04-19 05:38:13] User ID: 1
[2026-04-19 05:38:13] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69e46a45b0ed96.67009250.jpg
[2026-04-19 05:38:13] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69e46a45b0ed96.67009250.jpg
[2026-04-19 05:38:13] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69e46a45b0ed96.67009250.jpg
[2026-04-19 05:38:13] Using OCR.space API
[2026-04-19 05:38:13] Using API key: K8465...
[2026-04-19 05:38:15] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-19 05:38:15] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-04-19 05:38:15] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-04-19 05:38:15] Extracting health metrics from text
[2026-04-19 05:38:15] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-04-19 05:38:15] Pass1 matched visceral_fat = 11
[2026-04-19 05:38:15] Pass1 matched bmr = 1510
[2026-04-19 05:38:15] Pass1 matched bmi = 26.9
[2026-04-19 05:38:15] Pass1 matched body_fat_percent = 19.4
[2026-04-19 05:38:15] Pass1 matched bone_mass_percent = 3.9
[2026-04-19 05:38:15] Pass1 matched water_percent = 55.3
[2026-04-19 05:38:15] Pass1 matched muscle_mass_percent = 76.7
[2026-04-19 05:38:15] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-19 05:38:15] Pass1 matched bone_mass_lbs = 6.6
[2026-04-19 05:38:15] Pass1 matched lean_body_mass_lbs = 135.1
[2026-04-19 05:38:15] Pass1 matched muscle_mass_lbs = 128.5
[2026-04-19 05:38:15] Pass1 matched weight = 167.5
[2026-04-19 05:38:15] Found 12 metrics in total
[2026-04-19 05:38:15] Extracted data: {"date":"2026-04-19","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-19 05:38:15] Final data for insertion: {"date":"2026-04-19","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-19 05:38:15] Inserted record with ID: 205
[2026-04-19 05:38:15] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-19","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"205"}
[2026-04-19 05:51:29] Health image upload received
[2026-04-19 05:51:29] Error: Missing or invalid user_id
[2026-04-19 05:51:29] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-04-20 01:41:36] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-20 01:41:36] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-20 01:41:36] Using OCR.space API
[2026-04-20 01:41:36] Using API key: K8465...
[2026-04-20 01:41:38] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-20 01:41:38] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-04-20 01:41:38] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-04-20 01:41:38] Extracting health metrics from text
[2026-04-20 01:41:38] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-04-20 01:41:38] Pass1 matched visceral_fat = 6.6
[2026-04-20 01:41:38] Pass1 matched bmr = 1510
[2026-04-20 01:41:38] Pass1 matched body_fat_percent = 19.4
[2026-04-20 01:41:38] Pass1 matched muscle_mass_percent = 76.7
[2026-04-20 01:41:38] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-20 01:41:38] Pass1 matched bone_mass_lbs = 6.6
[2026-04-20 01:41:38] Pass1 matched weight = 167.5
[2026-04-20 01:41:38] Found 7 metrics in total
[2026-04-20 09:42:20] Health image upload received
[2026-04-20 09:42:20] User ID: 1
[2026-04-20 09:42:20] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69e5f4fcaf9b39.92541712.jpg
[2026-04-20 09:42:20] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69e5f4fcaf9b39.92541712.jpg
[2026-04-20 09:42:20] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69e5f4fcaf9b39.92541712.jpg
[2026-04-20 09:42:20] Using OCR.space API
[2026-04-20 09:42:20] Using API key: K8465...
[2026-04-20 09:42:22] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-20 09:42:22] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-04-20 09:42:22] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-04-20 09:42:22] Extracting health metrics from text
[2026-04-20 09:42:22] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-04-20 09:42:22] Pass1 matched visceral_fat = 6.6
[2026-04-20 09:42:22] Pass1 matched bmr = 1510
[2026-04-20 09:42:22] Pass1 matched body_fat_percent = 19.4
[2026-04-20 09:42:22] Pass1 matched muscle_mass_percent = 76.7
[2026-04-20 09:42:22] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-20 09:42:22] Pass1 matched bone_mass_lbs = 6.6
[2026-04-20 09:42:22] Pass1 matched weight = 167.5
[2026-04-20 09:42:22] Found 7 metrics in total
[2026-04-20 09:42:22] Extracted data: {"date":"2026-04-20","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-20 09:42:22] Final data for insertion: {"date":"2026-04-20","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-20 09:42:22] Inserted record with ID: 206
[2026-04-20 09:42:22] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-20","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"206"}
[2026-04-21 18:14:42] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-21 18:14:42] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-21 18:14:42] Using OCR.space API
[2026-04-21 18:14:42] Using API key: K8465...
[2026-04-21 18:14:46] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-21 18:14:46] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-04-21 18:14:46] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-04-21 18:14:46] Extracting health metrics from text
[2026-04-21 18:14:46] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-04-21 18:14:46] Pass1 matched visceral_fat = 6.6
[2026-04-21 18:14:46] Pass1 matched bmr = 1510
[2026-04-21 18:14:46] Pass1 matched body_fat_percent = 19.4
[2026-04-21 18:14:46] Pass1 matched muscle_mass_percent = 76.7
[2026-04-21 18:14:46] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-21 18:14:46] Pass1 matched bone_mass_lbs = 6.6
[2026-04-21 18:14:46] Pass1 matched weight = 167.5
[2026-04-21 18:14:46] Found 7 metrics in total
[2026-04-21 18:41:23] Health image upload received
[2026-04-21 18:41:23] User ID: 1
[2026-04-21 18:41:23] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69e7c4d3c15d77.13463071.jpg
[2026-04-21 18:41:23] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69e7c4d3c15d77.13463071.jpg
[2026-04-21 18:41:23] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69e7c4d3c15d77.13463071.jpg
[2026-04-21 18:41:23] Using OCR.space API
[2026-04-21 18:41:23] Using API key: K8465...
[2026-04-21 18:41:25] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-21 18:41:25] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-04-21 18:41:25] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-04-21 18:41:25] Extracting health metrics from text
[2026-04-21 18:41:25] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-04-21 18:41:25] Pass1 matched visceral_fat = 11
[2026-04-21 18:41:25] Pass1 matched bmr = 1510
[2026-04-21 18:41:25] Pass1 matched bmi = 26.9
[2026-04-21 18:41:25] Pass1 matched body_fat_percent = 19.4
[2026-04-21 18:41:25] Pass1 matched bone_mass_percent = 3.9
[2026-04-21 18:41:25] Pass1 matched water_percent = 55.3
[2026-04-21 18:41:25] Pass1 matched muscle_mass_percent = 76.7
[2026-04-21 18:41:25] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-21 18:41:25] Pass1 matched bone_mass_lbs = 6.6
[2026-04-21 18:41:25] Pass1 matched lean_body_mass_lbs = 135.1
[2026-04-21 18:41:25] Pass1 matched muscle_mass_lbs = 128.5
[2026-04-21 18:41:25] Pass1 matched weight = 167.5
[2026-04-21 18:41:25] Found 12 metrics in total
[2026-04-21 18:41:25] Extracted data: {"date":"2026-04-21","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-21 18:41:25] Final data for insertion: {"date":"2026-04-21","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-21 18:41:25] Inserted record with ID: 207
[2026-04-21 18:41:25] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-21","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"207"}
[2026-04-21 18:46:39] Health image upload received
[2026-04-21 18:46:39] User ID: 1
[2026-04-21 18:46:39] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69e7c60f722993.93651897.jpg
[2026-04-21 18:46:39] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69e7c60f722993.93651897.jpg
[2026-04-21 18:46:39] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69e7c60f722993.93651897.jpg
[2026-04-21 18:46:39] Using OCR.space API
[2026-04-21 18:46:39] Using API key: K8465...
[2026-04-21 18:46:41] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-21 18:46:41] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-04-21 18:46:41] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-04-21 18:46:41] Extracting health metrics from text
[2026-04-21 18:46:41] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-04-21 18:46:41] Pass1 matched visceral_fat = 11
[2026-04-21 18:46:41] Pass1 matched bmr = 1510
[2026-04-21 18:46:41] Pass1 matched bmi = 26.9
[2026-04-21 18:46:41] Pass1 matched body_fat_percent = 19.4
[2026-04-21 18:46:41] Pass1 matched bone_mass_percent = 3.9
[2026-04-21 18:46:41] Pass1 matched water_percent = 55.3
[2026-04-21 18:46:41] Pass1 matched muscle_mass_percent = 76.7
[2026-04-21 18:46:41] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-21 18:46:41] Pass1 matched bone_mass_lbs = 6.6
[2026-04-21 18:46:41] Pass1 matched lean_body_mass_lbs = 135.1
[2026-04-21 18:46:41] Pass1 matched muscle_mass_lbs = 128.5
[2026-04-21 18:46:41] Pass1 matched weight = 167.5
[2026-04-21 18:46:41] Found 12 metrics in total
[2026-04-21 18:46:41] Extracted data: {"date":"2026-04-21","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-21 18:46:41] Final data for insertion: {"date":"2026-04-21","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-21 18:46:41] Inserted record with ID: 208
[2026-04-21 18:46:41] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-21","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"208"}
[2026-04-21 18:56:19] Health image upload received
[2026-04-21 18:56:19] User ID: 1
[2026-04-21 18:56:19] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69e7c85309ccf7.90208176.jpg
[2026-04-21 18:56:19] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69e7c85309ccf7.90208176.jpg
[2026-04-21 18:56:19] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69e7c85309ccf7.90208176.jpg
[2026-04-21 18:56:19] Using OCR.space API
[2026-04-21 18:56:19] Using API key: K8465...
[2026-04-21 18:56:20] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-21 18:56:20] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-04-21 18:56:20] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-04-21 18:56:20] Extracting health metrics from text
[2026-04-21 18:56:20] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-04-21 18:56:20] Pass1 matched visceral_fat = 11
[2026-04-21 18:56:20] Pass1 matched bmr = 1510
[2026-04-21 18:56:20] Pass1 matched bmi = 26.9
[2026-04-21 18:56:20] Pass1 matched body_fat_percent = 19.4
[2026-04-21 18:56:20] Pass1 matched bone_mass_percent = 3.9
[2026-04-21 18:56:20] Pass1 matched water_percent = 55.3
[2026-04-21 18:56:20] Pass1 matched muscle_mass_percent = 76.7
[2026-04-21 18:56:20] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-21 18:56:20] Pass1 matched bone_mass_lbs = 6.6
[2026-04-21 18:56:20] Pass1 matched lean_body_mass_lbs = 135.1
[2026-04-21 18:56:20] Pass1 matched muscle_mass_lbs = 128.5
[2026-04-21 18:56:20] Pass1 matched weight = 167.5
[2026-04-21 18:56:20] Found 12 metrics in total
[2026-04-21 18:56:20] Extracted data: {"date":"2026-04-21","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-21 18:56:20] Final data for insertion: {"date":"2026-04-21","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-21 18:56:20] Inserted record with ID: 209
[2026-04-21 18:56:20] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-21","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"209"}
[2026-04-21 19:20:56] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-21 19:20:56] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-21 19:20:56] Using OCR.space API
[2026-04-21 19:20:56] Using API key: K8465...
[2026-04-21 19:20:58] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-21 19:20:58] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-04-21 19:20:58] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-04-21 19:20:58] Extracting health metrics from text
[2026-04-21 19:20:58] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-04-21 19:20:58] Pass1 matched visceral_fat = 6.6
[2026-04-21 19:20:58] Pass1 matched bmr = 1510
[2026-04-21 19:20:58] Pass1 matched body_fat_percent = 19.4
[2026-04-21 19:20:58] Pass1 matched muscle_mass_percent = 76.7
[2026-04-21 19:20:58] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-21 19:20:58] Pass1 matched bone_mass_lbs = 6.6
[2026-04-21 19:20:58] Pass1 matched weight = 167.5
[2026-04-21 19:20:58] Found 7 metrics in total
[2026-04-21 20:07:01] Health image upload received
[2026-04-21 20:07:01] User ID: 1
[2026-04-21 20:07:01] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69e7d8e5520ca6.03666533.jpg
[2026-04-21 20:07:01] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69e7d8e5520ca6.03666533.jpg
[2026-04-21 20:07:01] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69e7d8e5520ca6.03666533.jpg
[2026-04-21 20:07:01] Using OCR.space API
[2026-04-21 20:07:01] Using API key: K8465...
[2026-04-21 20:07:02] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-21 20:07:02] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-04-21 20:07:02] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-04-21 20:07:02] Extracting health metrics from text
[2026-04-21 20:07:02] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-04-21 20:07:02] Pass1 matched visceral_fat = 6.6
[2026-04-21 20:07:02] Pass1 matched bmr = 1510
[2026-04-21 20:07:02] Pass1 matched body_fat_percent = 19.4
[2026-04-21 20:07:02] Pass1 matched muscle_mass_percent = 76.7
[2026-04-21 20:07:02] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-21 20:07:02] Pass1 matched bone_mass_lbs = 6.6
[2026-04-21 20:07:02] Pass1 matched weight = 167.5
[2026-04-21 20:07:02] Found 7 metrics in total
[2026-04-21 20:07:02] Extracted data: {"date":"2026-04-21","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-21 20:07:02] Final data for insertion: {"date":"2026-04-21","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-21 20:07:02] Inserted record with ID: 210
[2026-04-21 20:07:02] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-21","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"210"}
[2026-04-22 03:05:21] Health image upload received
[2026-04-22 03:05:21] Error: Missing or invalid user_id
[2026-04-22 03:05:21] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-04-22 03:31:09] Health image upload received
[2026-04-22 03:31:09] User ID: 1
[2026-04-22 03:31:09] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69e840fdcfbec2.47887429.jpg
[2026-04-22 03:31:09] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69e840fdcfbec2.47887429.jpg
[2026-04-22 03:31:09] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69e840fdcfbec2.47887429.jpg
[2026-04-22 03:31:09] Using OCR.space API
[2026-04-22 03:31:09] Using API key: K8465...
[2026-04-22 03:31:11] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-22 03:31:11] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68.0,"Top":162.0,"Height":17.0,"Width":52.0},{"WordText":"lbs","Left":122.0,"Top":161.0,"Height":17.0,"Width":28.0}],"MaxHeight":18.0,"MinTop":161.0},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68.0,"Top":202.0,"Height":12.0,"Width":34.0}],"MaxHeight...
[2026-04-22 03:31:11] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-04-22 03:31:11] Extracting health metrics from text
[2026-04-22 03:31:11] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-04-22 03:31:11] Pass1 matched visceral_fat = 11
[2026-04-22 03:31:11] Pass1 matched bmr = 1510
[2026-04-22 03:31:11] Pass1 matched bmi = 26.9
[2026-04-22 03:31:11] Pass1 matched body_fat_percent = 19.4
[2026-04-22 03:31:11] Pass1 matched bone_mass_percent = 3.9
[2026-04-22 03:31:11] Pass1 matched water_percent = 55.3
[2026-04-22 03:31:11] Pass1 matched muscle_mass_percent = 76.7
[2026-04-22 03:31:11] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-22 03:31:11] Pass1 matched bone_mass_lbs = 6.6
[2026-04-22 03:31:11] Pass1 matched lean_body_mass_lbs = 135.1
[2026-04-22 03:31:11] Pass1 matched muscle_mass_lbs = 128.5
[2026-04-22 03:31:11] Pass1 matched weight = 167.5
[2026-04-22 03:31:11] Found 12 metrics in total
[2026-04-22 03:31:11] Extracted data: {"date":"2026-04-22","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-22 03:31:11] Final data for insertion: {"date":"2026-04-22","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-22 03:31:11] Inserted record with ID: 211
[2026-04-22 03:31:11] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-22","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"211"}
[2026-04-23 06:46:01] Health image upload received
[2026-04-23 06:46:01] Error: Missing or invalid user_id
[2026-04-23 06:46:01] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-04-23 09:34:43] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-23 09:34:43] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-23 09:34:43] Using OCR.space API
[2026-04-23 09:34:43] Using API key: K8465...
[2026-04-23 09:34:44] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-23 09:34:44] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298.0,"Top":30.0,"Height":18.0,"Width":59.0},{"WordText":"METRICS","Left":359.0,"Top":30.0,"Height":18.0,"Width":67.0}],"MaxHeight":18.0,"MinTop":30.0},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68.0,"Top":122.0,"Height":13.0,"Width":50.0}],"MaxHeight":13.0,"MinTop":122.0},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448.0,"Top":122.0,"Height":12.0,"Width":26.0}],"Ma...
[2026-04-23 09:34:44] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-04-23 09:34:44] Extracting health metrics from text
[2026-04-23 09:34:44] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-04-23 09:34:44] Pass1 matched visceral_fat = 6.6
[2026-04-23 09:34:44] Pass1 matched bmr = 1510
[2026-04-23 09:34:44] Pass1 matched body_fat_percent = 19.4
[2026-04-23 09:34:44] Pass1 matched muscle_mass_percent = 76.7
[2026-04-23 09:34:44] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-23 09:34:44] Pass1 matched bone_mass_lbs = 6.6
[2026-04-23 09:34:44] Pass1 matched weight = 167.5
[2026-04-23 09:34:44] Found 7 metrics in total
[2026-04-25 13:08:14] Health image upload received
[2026-04-25 13:08:14] User ID: 1
[2026-04-25 13:08:14] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ecbcbeb144e1.82997009.jpg
[2026-04-25 13:08:14] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ecbcbeb144e1.82997009.jpg
[2026-04-25 13:08:14] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ecbcbeb144e1.82997009.jpg
[2026-04-25 13:08:14] Using OCR.space API
[2026-04-25 13:08:14] Using API key: K8465...
[2026-04-25 13:08:18] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-25 13:08:18] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68,"Top":122,"Height":13,"Width":50}],"MaxHeight":13,"MinTop":122},{"LineText":"167.5 lbs","Words":[{"WordText":"167.5","Left":68,"Top":162,"Height":17,"Width":52},{"WordText":"lbs","Left":122,"Top":161,"Height":17,"Width":28}],"MaxHeight":18,"MinTop":161},{"LineText":"HIGH","Words":[{"WordText":"HIGH","Left":68,"Top":202,"Height":12,"Width":34}],"MaxHeight":12,"MinTop":202},{"LineText":"BODY FAT...
[2026-04-25 13:08:18] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-04-25 13:08:18] Extracting health metrics from text
[2026-04-25 13:08:18] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-04-25 13:08:18] Pass1 matched visceral_fat = 11
[2026-04-25 13:08:18] Pass1 matched bmr = 1510
[2026-04-25 13:08:18] Pass1 matched bmi = 26.9
[2026-04-25 13:08:18] Pass1 matched body_fat_percent = 19.4
[2026-04-25 13:08:18] Pass1 matched bone_mass_percent = 3.9
[2026-04-25 13:08:18] Pass1 matched water_percent = 55.3
[2026-04-25 13:08:18] Pass1 matched muscle_mass_percent = 76.7
[2026-04-25 13:08:18] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-25 13:08:18] Pass1 matched bone_mass_lbs = 6.6
[2026-04-25 13:08:18] Pass1 matched lean_body_mass_lbs = 135.1
[2026-04-25 13:08:18] Pass1 matched muscle_mass_lbs = 128.5
[2026-04-25 13:08:18] Pass1 matched weight = 167.5
[2026-04-25 13:08:18] Found 12 metrics in total
[2026-04-25 13:08:18] Extracted data: {"date":"2026-04-25","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-25 13:08:18] Final data for insertion: {"date":"2026-04-25","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-25 13:08:18] Inserted record with ID: 212
[2026-04-25 13:08:18] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-25","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"212"}
[2026-04-25 22:26:53] Health image upload received
[2026-04-25 22:26:53] Error: Missing or invalid user_id
[2026-04-25 22:26:53] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-04-27 13:19:22] Health image upload received
[2026-04-27 13:19:22] Error: Missing or invalid user_id
[2026-04-27 13:19:22] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-04-28 04:37:52] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-28 04:37:52] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-28 04:37:52] Using OCR.space API
[2026-04-28 04:37:52] Using API key: K8465...
[2026-04-28 04:37:59] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-28 04:37:59] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298,"Top":30,"Height":18,"Width":59},{"WordText":"METRICS","Left":359,"Top":30,"Height":18,"Width":67}],"MaxHeight":18,"MinTop":30},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68,"Top":122,"Height":13,"Width":50}],"MaxHeight":13,"MinTop":122},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448,"Top":122,"Height":12,"Width":26}],"MaxHeight":12,"MinTop":122},{"LineText":"1...
[2026-04-28 04:37:59] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-04-28 04:37:59] Extracting health metrics from text
[2026-04-28 04:37:59] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-04-28 04:37:59] Pass1 matched visceral_fat = 6.6
[2026-04-28 04:37:59] Pass1 matched bmr = 1510
[2026-04-28 04:37:59] Pass1 matched body_fat_percent = 19.4
[2026-04-28 04:37:59] Pass1 matched muscle_mass_percent = 76.7
[2026-04-28 04:37:59] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-28 04:37:59] Pass1 matched bone_mass_lbs = 6.6
[2026-04-28 04:37:59] Pass1 matched weight = 167.5
[2026-04-28 04:37:59] Found 7 metrics in total
[2026-04-28 18:07:28] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-28 18:07:28] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-28 18:07:28] Using OCR.space API
[2026-04-28 18:07:28] Using API key: K8465...
[2026-04-28 18:07:30] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-28 18:07:30] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298,"Top":30,"Height":18,"Width":59},{"WordText":"METRICS","Left":359,"Top":30,"Height":18,"Width":67}],"MaxHeight":18,"MinTop":30},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68,"Top":122,"Height":13,"Width":50}],"MaxHeight":13,"MinTop":122},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448,"Top":122,"Height":12,"Width":26}],"MaxHeight":12,"MinTop":122},{"LineText":"1...
[2026-04-28 18:07:30] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-04-28 18:07:30] Extracting health metrics from text
[2026-04-28 18:07:30] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-04-28 18:07:30] Pass1 matched visceral_fat = 6.6
[2026-04-28 18:07:30] Pass1 matched bmr = 1510
[2026-04-28 18:07:30] Pass1 matched body_fat_percent = 19.4
[2026-04-28 18:07:30] Pass1 matched muscle_mass_percent = 76.7
[2026-04-28 18:07:30] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-28 18:07:30] Pass1 matched bone_mass_lbs = 6.6
[2026-04-28 18:07:30] Pass1 matched weight = 167.5
[2026-04-28 18:07:30] Found 7 metrics in total
[2026-04-29 00:28:09] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-29 00:28:09] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-29 00:28:09] Using OCR.space API
[2026-04-29 00:28:09] Using API key: K8465...
[2026-04-29 00:28:11] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-29 00:28:11] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[{"LineText":"HEALTH METRICS","Words":[{"WordText":"HEALTH","Left":298,"Top":30,"Height":18,"Width":59},{"WordText":"METRICS","Left":359,"Top":30,"Height":18,"Width":67}],"MaxHeight":18,"MinTop":30},{"LineText":"WEIGHT","Words":[{"WordText":"WEIGHT","Left":68,"Top":122,"Height":13,"Width":50}],"MaxHeight":13,"MinTop":122},{"LineText":"BMI","Words":[{"WordText":"BMI","Left":448,"Top":122,"Height":12,"Width":26}],"MaxHeight":12,"MinTop":122},{"LineText":"1...
[2026-04-29 00:28:11] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-04-29 00:28:11] Extracting health metrics from text
[2026-04-29 00:28:11] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-04-29 00:28:11] Pass1 matched visceral_fat = 6.6
[2026-04-29 00:28:11] Pass1 matched bmr = 1510
[2026-04-29 00:28:11] Pass1 matched body_fat_percent = 19.4
[2026-04-29 00:28:11] Pass1 matched muscle_mass_percent = 76.7
[2026-04-29 00:28:11] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-29 00:28:11] Pass1 matched bone_mass_lbs = 6.6
[2026-04-29 00:28:11] Pass1 matched weight = 167.5
[2026-04-29 00:28:11] Found 7 metrics in total
[2026-04-29 19:25:18] Health image upload received
[2026-04-29 19:25:18] Error: Missing or invalid user_id
[2026-04-29 19:25:18] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-04-30 09:23:09] Health image upload received
[2026-04-30 09:23:09] Error: Missing or invalid user_id
[2026-04-30 09:23:09] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-04-30 17:01:19] Health image upload received
[2026-04-30 17:01:19] User ID: 1
[2026-04-30 17:01:19] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f38adf4717e7.17303205.jpg
[2026-04-30 17:01:19] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f38adf4717e7.17303205.jpg
[2026-04-30 17:01:19] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f38adf4717e7.17303205.jpg
[2026-04-30 17:01:19] Using OCR.space API
[2026-04-30 17:01:19] Using API key: K8465...
[2026-04-30 17:01:21] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-30 17:01:21] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-04-30 17:01:21] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-04-30 17:01:21] Extracting health metrics from text
[2026-04-30 17:01:21] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-04-30 17:01:21] Pass1 matched visceral_fat = 11
[2026-04-30 17:01:21] Pass1 matched bmr = 1510
[2026-04-30 17:01:21] Pass1 matched bmi = 26.9
[2026-04-30 17:01:21] Pass1 matched body_fat_percent = 19.4
[2026-04-30 17:01:21] Pass1 matched bone_mass_percent = 3.9
[2026-04-30 17:01:21] Pass1 matched water_percent = 55.3
[2026-04-30 17:01:21] Pass1 matched muscle_mass_percent = 76.7
[2026-04-30 17:01:21] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-30 17:01:21] Pass1 matched bone_mass_lbs = 6.6
[2026-04-30 17:01:21] Pass1 matched lean_body_mass_lbs = 135.1
[2026-04-30 17:01:21] Pass1 matched muscle_mass_lbs = 128.5
[2026-04-30 17:01:21] Pass1 matched weight = 167.5
[2026-04-30 17:01:21] Found 12 metrics in total
[2026-04-30 17:01:21] Extracted data: {"date":"2026-04-30","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-30 17:01:21] Final data for insertion: {"date":"2026-04-30","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-30 17:01:21] Inserted record with ID: 213
[2026-04-30 17:01:21] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-30","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"213"}
[2026-04-30 17:02:41] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-30 17:02:41] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-04-30 17:02:41] Using OCR.space API
[2026-04-30 17:02:41] Using API key: K8465...
[2026-04-30 17:02:43] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-30 17:02:43] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-04-30 17:02:43] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-04-30 17:02:43] Extracting health metrics from text
[2026-04-30 17:02:43] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-04-30 17:02:43] Pass1 matched visceral_fat = 6.6
[2026-04-30 17:02:43] Pass1 matched bmr = 1510
[2026-04-30 17:02:43] Pass1 matched body_fat_percent = 19.4
[2026-04-30 17:02:43] Pass1 matched muscle_mass_percent = 76.7
[2026-04-30 17:02:43] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-30 17:02:43] Pass1 matched bone_mass_lbs = 6.6
[2026-04-30 17:02:43] Pass1 matched weight = 167.5
[2026-04-30 17:02:43] Found 7 metrics in total
[2026-04-30 17:05:35] Health image upload received
[2026-04-30 17:05:35] User ID: 1
[2026-04-30 17:05:35] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f38bdf909b92.33813276.jpg
[2026-04-30 17:05:35] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f38bdf909b92.33813276.jpg
[2026-04-30 17:05:35] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f38bdf909b92.33813276.jpg
[2026-04-30 17:05:35] Using OCR.space API
[2026-04-30 17:05:35] Using API key: K8465...
[2026-04-30 17:05:37] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-30 17:05:37] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-04-30 17:05:37] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-04-30 17:05:37] Extracting health metrics from text
[2026-04-30 17:05:37] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-04-30 17:05:37] Pass1 matched visceral_fat = 11
[2026-04-30 17:05:37] Pass1 matched bmr = 1510
[2026-04-30 17:05:37] Pass1 matched bmi = 26.9
[2026-04-30 17:05:37] Pass1 matched body_fat_percent = 19.4
[2026-04-30 17:05:37] Pass1 matched bone_mass_percent = 3.9
[2026-04-30 17:05:37] Pass1 matched water_percent = 55.3
[2026-04-30 17:05:37] Pass1 matched muscle_mass_percent = 76.7
[2026-04-30 17:05:37] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-30 17:05:37] Pass1 matched bone_mass_lbs = 6.6
[2026-04-30 17:05:37] Pass1 matched lean_body_mass_lbs = 135.1
[2026-04-30 17:05:37] Pass1 matched muscle_mass_lbs = 128.5
[2026-04-30 17:05:37] Pass1 matched weight = 167.5
[2026-04-30 17:05:37] Found 12 metrics in total
[2026-04-30 17:05:37] Extracted data: {"date":"2026-04-30","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-30 17:05:37] Final data for insertion: {"date":"2026-04-30","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-30 17:05:37] Inserted record with ID: 214
[2026-04-30 17:05:37] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-30","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"214"}
[2026-04-30 17:05:55] Health image upload received
[2026-04-30 17:05:55] User ID: 1
[2026-04-30 17:05:55] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f38bf35a9f30.68541774.jpg
[2026-04-30 17:05:55] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f38bf35a9f30.68541774.jpg
[2026-04-30 17:05:55] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f38bf35a9f30.68541774.jpg
[2026-04-30 17:05:55] Using OCR.space API
[2026-04-30 17:05:55] Using API key: K8465...
[2026-04-30 17:05:57] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-30 17:05:57] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-04-30 17:05:57] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-04-30 17:05:57] Extracting health metrics from text
[2026-04-30 17:05:57] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-04-30 17:05:57] Pass1 matched visceral_fat = 11
[2026-04-30 17:05:57] Pass1 matched bmr = 1510
[2026-04-30 17:05:57] Pass1 matched bmi = 26.9
[2026-04-30 17:05:57] Pass1 matched body_fat_percent = 19.4
[2026-04-30 17:05:57] Pass1 matched bone_mass_percent = 3.9
[2026-04-30 17:05:57] Pass1 matched water_percent = 55.3
[2026-04-30 17:05:57] Pass1 matched muscle_mass_percent = 76.7
[2026-04-30 17:05:57] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-30 17:05:57] Pass1 matched bone_mass_lbs = 6.6
[2026-04-30 17:05:57] Pass1 matched lean_body_mass_lbs = 135.1
[2026-04-30 17:05:57] Pass1 matched muscle_mass_lbs = 128.5
[2026-04-30 17:05:57] Pass1 matched weight = 167.5
[2026-04-30 17:05:57] Found 12 metrics in total
[2026-04-30 17:05:57] Extracted data: {"date":"2026-04-30","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-30 17:05:57] Final data for insertion: {"date":"2026-04-30","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-30 17:05:57] Inserted record with ID: 215
[2026-04-30 17:05:57] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-30","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"215"}
[2026-04-30 17:06:13] Health image upload received
[2026-04-30 17:06:13] User ID: 1
[2026-04-30 17:06:13] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f38c05a5b9b2.36114316.jpg
[2026-04-30 17:06:13] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f38c05a5b9b2.36114316.jpg
[2026-04-30 17:06:13] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f38c05a5b9b2.36114316.jpg
[2026-04-30 17:06:13] Using OCR.space API
[2026-04-30 17:06:13] Using API key: K8465...
[2026-04-30 17:06:15] OCR.space API attempt 1 completed with HTTP code: 200
[2026-04-30 17:06:15] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-04-30 17:06:15] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-04-30 17:06:15] Extracting health metrics from text
[2026-04-30 17:06:15] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-04-30 17:06:15] Pass1 matched visceral_fat = 11
[2026-04-30 17:06:15] Pass1 matched bmr = 1510
[2026-04-30 17:06:15] Pass1 matched bmi = 26.9
[2026-04-30 17:06:15] Pass1 matched body_fat_percent = 19.4
[2026-04-30 17:06:15] Pass1 matched bone_mass_percent = 3.9
[2026-04-30 17:06:15] Pass1 matched water_percent = 55.3
[2026-04-30 17:06:15] Pass1 matched muscle_mass_percent = 76.7
[2026-04-30 17:06:15] Pass1 matched body_fat_mass_lbs = 32.4
[2026-04-30 17:06:15] Pass1 matched bone_mass_lbs = 6.6
[2026-04-30 17:06:15] Pass1 matched lean_body_mass_lbs = 135.1
[2026-04-30 17:06:15] Pass1 matched muscle_mass_lbs = 128.5
[2026-04-30 17:06:15] Pass1 matched weight = 167.5
[2026-04-30 17:06:15] Found 12 metrics in total
[2026-04-30 17:06:15] Extracted data: {"date":"2026-04-30","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-30 17:06:15] Final data for insertion: {"date":"2026-04-30","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-04-30 17:06:15] Inserted record with ID: 216
[2026-04-30 17:06:15] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-04-30","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"216"}
[2026-05-01 04:40:23] Health image upload received
[2026-05-01 04:40:23] User ID: 1
[2026-05-01 04:40:23] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f42eb7a02964.55928519.jpg
[2026-05-01 04:40:23] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f42eb7a02964.55928519.jpg
[2026-05-01 04:40:23] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f42eb7a02964.55928519.jpg
[2026-05-01 04:40:23] Using OCR.space API
[2026-05-01 04:40:23] Using API key: K8465...
[2026-05-01 04:41:23] OCR.space API attempt 1 completed with HTTP code: 0
[2026-05-01 04:41:23] Attempt 1 failed: Operation timed out after 60001 milliseconds with 0 bytes received (HTTP 0)
[2026-05-01 04:41:23] Retrying in 2 seconds...
[2026-05-01 04:41:42] OCR.space API attempt 2 completed with HTTP code: 200
[2026-05-01 04:41:42] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-05-01 04:41:42] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-05-01 04:41:42] Extracting health metrics from text
[2026-05-01 04:41:42] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-05-01 04:41:42] Pass1 matched visceral_fat = 11
[2026-05-01 04:41:42] Pass1 matched bmr = 1510
[2026-05-01 04:41:42] Pass1 matched bmi = 26.9
[2026-05-01 04:41:42] Pass1 matched body_fat_percent = 19.4
[2026-05-01 04:41:42] Pass1 matched bone_mass_percent = 3.9
[2026-05-01 04:41:42] Pass1 matched water_percent = 55.3
[2026-05-01 04:41:42] Pass1 matched muscle_mass_percent = 76.7
[2026-05-01 04:41:42] Pass1 matched body_fat_mass_lbs = 32.4
[2026-05-01 04:41:42] Pass1 matched bone_mass_lbs = 6.6
[2026-05-01 04:41:42] Pass1 matched lean_body_mass_lbs = 135.1
[2026-05-01 04:41:42] Pass1 matched muscle_mass_lbs = 128.5
[2026-05-01 04:41:42] Pass1 matched weight = 167.5
[2026-05-01 04:41:42] Found 12 metrics in total
[2026-05-01 04:41:42] Extracted data: {"date":"2026-05-01","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-01 04:41:42] Final data for insertion: {"date":"2026-05-01","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-01 04:41:42] Inserted record with ID: 217
[2026-05-01 04:41:42] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-01","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"217"}
[2026-05-02 01:01:41] Health image upload received
[2026-05-02 01:01:41] User ID: 1
[2026-05-02 01:01:41] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f54cf5d5c301.79314190.jpg
[2026-05-02 01:01:41] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f54cf5d5c301.79314190.jpg
[2026-05-02 01:01:41] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f54cf5d5c301.79314190.jpg
[2026-05-02 01:01:41] Using OCR.space API
[2026-05-02 01:01:41] Using API key: K8465...
[2026-05-02 01:01:43] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-02 01:01:43] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-05-02 01:01:43] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-05-02 01:01:43] Extracting health metrics from text
[2026-05-02 01:01:43] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-05-02 01:01:43] Pass1 matched visceral_fat = 11
[2026-05-02 01:01:43] Pass1 matched bmr = 1510
[2026-05-02 01:01:43] Pass1 matched bmi = 26.9
[2026-05-02 01:01:43] Pass1 matched body_fat_percent = 19.4
[2026-05-02 01:01:43] Pass1 matched bone_mass_percent = 3.9
[2026-05-02 01:01:43] Pass1 matched water_percent = 55.3
[2026-05-02 01:01:43] Pass1 matched muscle_mass_percent = 76.7
[2026-05-02 01:01:43] Pass1 matched body_fat_mass_lbs = 32.4
[2026-05-02 01:01:43] Pass1 matched bone_mass_lbs = 6.6
[2026-05-02 01:01:43] Pass1 matched lean_body_mass_lbs = 135.1
[2026-05-02 01:01:43] Pass1 matched muscle_mass_lbs = 128.5
[2026-05-02 01:01:43] Pass1 matched weight = 167.5
[2026-05-02 01:01:43] Found 12 metrics in total
[2026-05-02 01:01:43] Extracted data: {"date":"2026-05-02","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-02 01:01:43] Final data for insertion: {"date":"2026-05-02","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-02 01:01:43] Inserted record with ID: 218
[2026-05-02 01:01:43] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-02","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"218"}
[2026-05-02 04:49:39] Health image upload received
[2026-05-02 04:49:39] Error: Missing or invalid user_id
[2026-05-02 04:49:39] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-05-03 01:45:57] Health image upload received
[2026-05-03 01:45:57] Error: Missing or invalid user_id
[2026-05-03 01:45:57] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-05-03 13:36:11] Health image upload received
[2026-05-03 13:36:11] User ID: 1
[2026-05-03 13:36:11] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f74f4b6bd432.38162260.jpg
[2026-05-03 13:36:11] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f74f4b6bd432.38162260.jpg
[2026-05-03 13:36:11] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f74f4b6bd432.38162260.jpg
[2026-05-03 13:36:11] Using OCR.space API
[2026-05-03 13:36:11] Using API key: K8465...
[2026-05-03 13:36:13] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-03 13:36:13] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-05-03 13:36:13] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-05-03 13:36:13] Extracting health metrics from text
[2026-05-03 13:36:13] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-05-03 13:36:13] Pass1 matched visceral_fat = 11
[2026-05-03 13:36:13] Pass1 matched bmr = 1510
[2026-05-03 13:36:13] Pass1 matched bmi = 26.9
[2026-05-03 13:36:13] Pass1 matched body_fat_percent = 19.4
[2026-05-03 13:36:13] Pass1 matched bone_mass_percent = 3.9
[2026-05-03 13:36:13] Pass1 matched water_percent = 55.3
[2026-05-03 13:36:13] Pass1 matched muscle_mass_percent = 76.7
[2026-05-03 13:36:13] Pass1 matched body_fat_mass_lbs = 32.4
[2026-05-03 13:36:13] Pass1 matched bone_mass_lbs = 6.6
[2026-05-03 13:36:13] Pass1 matched lean_body_mass_lbs = 135.1
[2026-05-03 13:36:13] Pass1 matched muscle_mass_lbs = 128.5
[2026-05-03 13:36:13] Pass1 matched weight = 167.5
[2026-05-03 13:36:13] Found 12 metrics in total
[2026-05-03 13:36:13] Extracted data: {"date":"2026-05-03","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-03 13:36:13] Final data for insertion: {"date":"2026-05-03","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-03 13:36:13] Inserted record with ID: 219
[2026-05-03 13:36:13] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-03","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"219"}
[2026-05-03 13:36:31] Health image upload received
[2026-05-03 13:36:31] Error: Missing or invalid user_id
[2026-05-03 13:36:31] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-05-03 13:36:39] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-03 13:36:39] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-03 13:36:39] Using OCR.space API
[2026-05-03 13:36:39] Using API key: K8465...
[2026-05-03 13:36:40] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-03 13:36:40] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-05-03 13:36:40] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-05-03 13:36:40] Extracting health metrics from text
[2026-05-03 13:36:40] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-05-03 13:36:40] Pass1 matched visceral_fat = 6.6
[2026-05-03 13:36:40] Pass1 matched bmr = 1510
[2026-05-03 13:36:40] Pass1 matched body_fat_percent = 19.4
[2026-05-03 13:36:40] Pass1 matched muscle_mass_percent = 76.7
[2026-05-03 13:36:40] Pass1 matched body_fat_mass_lbs = 32.4
[2026-05-03 13:36:40] Pass1 matched bone_mass_lbs = 6.6
[2026-05-03 13:36:40] Pass1 matched weight = 167.5
[2026-05-03 13:36:40] Found 7 metrics in total
[2026-05-03 13:37:59] Health image upload received
[2026-05-03 13:37:59] User ID: 1
[2026-05-03 13:37:59] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f74fb7cd4ba5.97826759.jpg
[2026-05-03 13:37:59] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f74fb7cd4ba5.97826759.jpg
[2026-05-03 13:37:59] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f74fb7cd4ba5.97826759.jpg
[2026-05-03 13:37:59] Using OCR.space API
[2026-05-03 13:37:59] Using API key: K8465...
[2026-05-03 13:38:01] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-03 13:38:01] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-05-03 13:38:01] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-05-03 13:38:01] Extracting health metrics from text
[2026-05-03 13:38:01] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-05-03 13:38:01] Pass1 matched visceral_fat = 6.6
[2026-05-03 13:38:01] Pass1 matched bmr = 1510
[2026-05-03 13:38:01] Pass1 matched body_fat_percent = 19.4
[2026-05-03 13:38:01] Pass1 matched muscle_mass_percent = 76.7
[2026-05-03 13:38:01] Pass1 matched body_fat_mass_lbs = 32.4
[2026-05-03 13:38:01] Pass1 matched bone_mass_lbs = 6.6
[2026-05-03 13:38:01] Pass1 matched weight = 167.5
[2026-05-03 13:38:01] Found 7 metrics in total
[2026-05-03 13:38:01] Extracted data: {"date":"2026-05-03","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-03 13:38:01] Final data for insertion: {"date":"2026-05-03","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-03 13:38:01] Inserted record with ID: 220
[2026-05-03 13:38:01] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-03","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":76.7,"bone_mass_percent":null,"bmr":1510,"visceral_fat":6.6,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"220"}
[2026-05-04 11:51:36] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-04 11:51:36] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-04 11:51:36] Using OCR.space API
[2026-05-04 11:51:36] Using API key: K8465...
[2026-05-04 11:51:38] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-04 11:51:38] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-05-04 11:51:38] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-05-04 11:51:38] Extracting health metrics from text
[2026-05-04 11:51:38] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-05-04 11:51:38] Pass1 matched visceral_fat = 6.6
[2026-05-04 11:51:38] Pass1 matched bmr = 1510
[2026-05-04 11:51:38] Pass1 matched body_fat_percent = 19.4
[2026-05-04 11:51:38] Pass1 matched muscle_mass_percent = 76.7
[2026-05-04 11:51:38] Pass1 matched body_fat_mass_lbs = 32.4
[2026-05-04 11:51:38] Pass1 matched bone_mass_lbs = 6.6
[2026-05-04 11:51:38] Pass1 matched weight = 167.5
[2026-05-04 11:51:38] Found 7 metrics in total
[2026-05-04 12:02:21] Health image upload received
[2026-05-04 12:02:21] User ID: 1
[2026-05-04 12:02:21] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f88acd74d941.59997417.jpg
[2026-05-04 12:02:21] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f88acd74d941.59997417.jpg
[2026-05-04 12:02:21] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f88acd74d941.59997417.jpg
[2026-05-04 12:02:21] Using OCR.space API
[2026-05-04 12:02:21] Using API key: K8465...
[2026-05-04 12:02:23] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-04 12:02:23] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"Body Composition Analysis\nBody Water\nProtein\nBone Mass\nBody Fat Mass\nMeasurement (Ib)\n93.9\n25.7\n8.6\n34.3\nWeight\n162.5\nStandard (Ib)\n(72.4~90.2)\n(19.7~24.6)\n(6.6~8.2)\n(16.2~32.5)\n(115.0~155.6)\nOther Metrics\nBody Fat\nMuscle Mass\nLean Body Mass\nVisceral Fat\nBMR\nMetabolic Age\nSkeletal Muscle...
[2026-05-04 12:02:23] OCR.space API extracted text: Body Composition Analysis
Body Water
Protein
Bone Mass
Body Fat Mass
Measurement (Ib)
93.9
25.7
8.6
...
[2026-05-04 12:02:23] Extracting health metrics from text
[2026-05-04 12:02:23] Full OCR text for parsing:
Body Composition Analysis
Body Water
Protein
Bone Mass
Body Fat Mass
Measurement (Ib)
93.9
25.7
8.6
34.3
Weight
162.5
Standard (Ib)
(72.4~90.2)
(19.7~24.6)
(6.6~8.2)
(16.2~32.5)
(115.0~155.6)
Other Metrics
Body Fat
Muscle Mass
Lean Body Mass
Visceral Fat
BMR
Metabolic Age
Skeletal Muscle
21.1%
119.5lb
128.11b
5
1624kcal
51
72.516
[2026-05-04 12:02:23] Detected 'Other Metrics' section — trying columnar extraction
[2026-05-04 12:02:23] Other Metrics lines: ["body fat","muscle mass","lean body mass","visceral fat","bmr","metabolic age","skeletal muscle","21.1%","119.5lb","128.11b","5","1624kcal","51","72.516"]
[2026-05-04 12:02:23] Labels: ["body fat","muscle mass","lean body mass","visceral fat","bmr","metabolic age","skeletal muscle"] | Values: ["21.1%","119.5lb","128.11b","5","1624kcal","51","72.516"]
[2026-05-04 12:02:23] Pass2 columnar matched body_fat_percent = 21.1 (label line: 'body fat')
[2026-05-04 12:02:23] Pass2 columnar matched muscle_mass_lbs = 119.5 (label line: 'muscle mass')
[2026-05-04 12:02:23] Pass2 columnar matched lean_body_mass_lbs = 128.11 (label line: 'lean body mass')
[2026-05-04 12:02:23] Pass2 columnar matched visceral_fat = 5 (label line: 'visceral fat')
[2026-05-04 12:02:23] Pass2 columnar matched bmr = 1624 (label line: 'bmr')
[2026-05-04 12:02:23] Detected 'Body Composition Analysis' section — trying table extraction
[2026-05-04 12:02:23] Composition lines: ["body water","protein","bone mass","body fat mass","measurement (ib)","93.9","25.7","8.6","34.3","weight","162.5","standard (ib)","(72.4~90.2)","(19.7~24.6)","(6.6~8.2)","(16.2~32.5)","(115.0~155.6)"]
[2026-05-04 12:02:23] Pass3 table matched bone_mass_lbs = 8.6 (label line: 'bone mass')
[2026-05-04 12:02:23] Pass3 table matched body_fat_mass_lbs = 34.3 (label line: 'body fat mass')
[2026-05-04 12:02:23] Pass3 table matched weight = 162.5 (label line: 'weight')
[2026-05-04 12:02:23] Found 8 metrics in total
[2026-05-04 12:02:23] Extracted data: {"date":"2026-05-04","weight":162.5,"body_fat_percent":21.1,"lean_body_mass_lbs":128.11,"muscle_mass_lbs":119.5,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1624,"visceral_fat":5,"body_fat_mass_lbs":34.3,"bone_mass_lbs":8.6}
[2026-05-04 12:02:23] Final data for insertion: {"date":"2026-05-04","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1624,"visceral_fat":5,"body_fat_mass_lbs":34.3,"bone_mass_lbs":8.6}
[2026-05-04 12:02:23] Inserted record with ID: 221
[2026-05-04 12:02:23] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-04","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1624,"visceral_fat":5,"body_fat_mass_lbs":34.3,"bone_mass_lbs":8.6},"record_id":"221"}
[2026-05-04 12:03:23] Health image upload received
[2026-05-04 12:03:23] User ID: 1
[2026-05-04 12:03:23] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f88b0b7c9649.97003864.jpg
[2026-05-04 12:03:23] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f88b0b7c9649.97003864.jpg
[2026-05-04 12:03:23] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f88b0b7c9649.97003864.jpg
[2026-05-04 12:03:23] Using OCR.space API
[2026-05-04 12:03:23] Using API key: K8465...
[2026-05-04 12:03:25] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-04 12:03:25] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"Body Composition Analysis\nBody Water\nProtein\nBone Mass\nBody Fat Mass\nMeasurement (Ib)\n93.9\n25.7\n8.6\n34.3\nWeight\n162.5\nStandard (Ib)\n(72.4~90.2)\n(19.7~24.6)\n(6.6~8.2)\n(16.2~32.5)\n(115.0~155.6)\nOther Metrics\nBody Fat\nMuscle Mass\nLean Body Mass\nVisceral Fat\nBMR\nMetabolic Age\nSkeletal Muscle...
[2026-05-04 12:03:25] OCR.space API extracted text: Body Composition Analysis
Body Water
Protein
Bone Mass
Body Fat Mass
Measurement (Ib)
93.9
25.7
8.6
...
[2026-05-04 12:03:25] Extracting health metrics from text
[2026-05-04 12:03:25] Full OCR text for parsing:
Body Composition Analysis
Body Water
Protein
Bone Mass
Body Fat Mass
Measurement (Ib)
93.9
25.7
8.6
34.3
Weight
162.5
Standard (Ib)
(72.4~90.2)
(19.7~24.6)
(6.6~8.2)
(16.2~32.5)
(115.0~155.6)
Other Metrics
Body Fat
Muscle Mass
Lean Body Mass
Visceral Fat
BMR
Metabolic Age
Skeletal Muscle
21.1%
119.5lb
128.11b
5
1624kcal
51
72.516
[2026-05-04 12:03:25] Detected 'Other Metrics' section — trying columnar extraction
[2026-05-04 12:03:25] Other Metrics lines: ["body fat","muscle mass","lean body mass","visceral fat","bmr","metabolic age","skeletal muscle","21.1%","119.5lb","128.11b","5","1624kcal","51","72.516"]
[2026-05-04 12:03:25] Labels: ["body fat","muscle mass","lean body mass","visceral fat","bmr","metabolic age","skeletal muscle"] | Values: ["21.1%","119.5lb","128.11b","5","1624kcal","51","72.516"]
[2026-05-04 12:03:25] Pass2 columnar matched body_fat_percent = 21.1 (label line: 'body fat')
[2026-05-04 12:03:25] Pass2 columnar matched muscle_mass_lbs = 119.5 (label line: 'muscle mass')
[2026-05-04 12:03:25] Pass2 columnar matched lean_body_mass_lbs = 128.11 (label line: 'lean body mass')
[2026-05-04 12:03:25] Pass2 columnar matched visceral_fat = 5 (label line: 'visceral fat')
[2026-05-04 12:03:25] Pass2 columnar matched bmr = 1624 (label line: 'bmr')
[2026-05-04 12:03:25] Detected 'Body Composition Analysis' section — trying table extraction
[2026-05-04 12:03:25] Composition lines: ["body water","protein","bone mass","body fat mass","measurement (ib)","93.9","25.7","8.6","34.3","weight","162.5","standard (ib)","(72.4~90.2)","(19.7~24.6)","(6.6~8.2)","(16.2~32.5)","(115.0~155.6)"]
[2026-05-04 12:03:25] Pass3 table matched bone_mass_lbs = 8.6 (label line: 'bone mass')
[2026-05-04 12:03:25] Pass3 table matched body_fat_mass_lbs = 34.3 (label line: 'body fat mass')
[2026-05-04 12:03:25] Pass3 table matched weight = 162.5 (label line: 'weight')
[2026-05-04 12:03:25] Found 8 metrics in total
[2026-05-04 12:03:25] Extracted data: {"date":"2026-05-04","weight":162.5,"body_fat_percent":21.1,"lean_body_mass_lbs":128.11,"muscle_mass_lbs":119.5,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1624,"visceral_fat":5,"body_fat_mass_lbs":34.3,"bone_mass_lbs":8.6}
[2026-05-04 12:03:25] Final data for insertion: {"date":"2026-05-04","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1624,"visceral_fat":5,"body_fat_mass_lbs":34.3,"bone_mass_lbs":8.6}
[2026-05-04 12:03:25] Inserted record with ID: 222
[2026-05-04 12:03:25] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-04","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1624,"visceral_fat":5,"body_fat_mass_lbs":34.3,"bone_mass_lbs":8.6},"record_id":"222"}
[2026-05-04 12:19:51] Health image upload received
[2026-05-04 12:19:51] User ID: 1
[2026-05-04 12:19:51] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f88ee77aff94.31492891.jpg
[2026-05-04 12:19:51] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f88ee77aff94.31492891.jpg
[2026-05-04 12:19:51] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f88ee77aff94.31492891.jpg
[2026-05-04 12:19:51] Using OCR.space API
[2026-05-04 12:19:51] Using API key: K8465...
[2026-05-04 12:19:53] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-04 12:19:53] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"Body Composition Analysis\nBody Water\nProtein\nBone Mass\nBody Fat Mass\nMeasurement (Ib)\n93.9\n25.7\n8.6\n34.3\nWeight\n162.5\nStandard (Ib)\n(72.4~90.2)\n(19.7~24.6)\n(6.6~8.2)\n(16.2~32.5)\n(115.0~155.6)\nOther Metrics\nBody Fat\nMuscle Mass\nLean Body Mass\nVisceral Fat\nBMR\nMetabolic Age\nSkeletal Muscle...
[2026-05-04 12:19:53] OCR.space API extracted text: Body Composition Analysis
Body Water
Protein
Bone Mass
Body Fat Mass
Measurement (Ib)
93.9
25.7
8.6
...
[2026-05-04 12:19:53] Extracting health metrics from text
[2026-05-04 12:19:53] Full OCR text for parsing:
Body Composition Analysis
Body Water
Protein
Bone Mass
Body Fat Mass
Measurement (Ib)
93.9
25.7
8.6
34.3
Weight
162.5
Standard (Ib)
(72.4~90.2)
(19.7~24.6)
(6.6~8.2)
(16.2~32.5)
(115.0~155.6)
Other Metrics
Body Fat
Muscle Mass
Lean Body Mass
Visceral Fat
BMR
Metabolic Age
Skeletal Muscle
21.1%
119.5lb
128.11b
5
1624kcal
51
72.516
[2026-05-04 12:19:53] Detected 'Other Metrics' section — trying columnar extraction
[2026-05-04 12:19:53] Other Metrics lines: ["body fat","muscle mass","lean body mass","visceral fat","bmr","metabolic age","skeletal muscle","21.1%","119.5lb","128.11b","5","1624kcal","51","72.516"]
[2026-05-04 12:19:53] Labels: ["body fat","muscle mass","lean body mass","visceral fat","bmr","metabolic age","skeletal muscle"] | Values: ["21.1%","119.5lb","128.11b","5","1624kcal","51","72.516"]
[2026-05-04 12:19:53] Pass2 columnar matched body_fat_percent = 21.1 (label line: 'body fat')
[2026-05-04 12:19:53] Pass2 columnar matched muscle_mass_lbs = 119.5 (label line: 'muscle mass')
[2026-05-04 12:19:53] Pass2 columnar matched lean_body_mass_lbs = 128.11 (label line: 'lean body mass')
[2026-05-04 12:19:53] Pass2 columnar matched visceral_fat = 5 (label line: 'visceral fat')
[2026-05-04 12:19:53] Pass2 columnar matched bmr = 1624 (label line: 'bmr')
[2026-05-04 12:19:53] Detected 'Body Composition Analysis' section — trying table extraction
[2026-05-04 12:19:53] Composition lines: ["body water","protein","bone mass","body fat mass","measurement (ib)","93.9","25.7","8.6","34.3","weight","162.5","standard (ib)","(72.4~90.2)","(19.7~24.6)","(6.6~8.2)","(16.2~32.5)","(115.0~155.6)"]
[2026-05-04 12:19:53] Pass3 table matched bone_mass_lbs = 8.6 (label line: 'bone mass')
[2026-05-04 12:19:53] Pass3 table matched body_fat_mass_lbs = 34.3 (label line: 'body fat mass')
[2026-05-04 12:19:53] Pass3 table matched weight = 162.5 (label line: 'weight')
[2026-05-04 12:19:53] Found 8 metrics in total
[2026-05-04 12:19:53] Extracted data: {"date":"2026-05-04","weight":162.5,"body_fat_percent":21.1,"lean_body_mass_lbs":128.11,"muscle_mass_lbs":119.5,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1624,"visceral_fat":5,"body_fat_mass_lbs":34.3,"bone_mass_lbs":8.6}
[2026-05-04 12:19:53] Final data for insertion: {"date":"2026-05-04","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1624,"visceral_fat":5,"body_fat_mass_lbs":34.3,"bone_mass_lbs":8.6}
[2026-05-04 12:19:53] Inserted record with ID: 223
[2026-05-04 12:19:53] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-04","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1624,"visceral_fat":5,"body_fat_mass_lbs":34.3,"bone_mass_lbs":8.6},"record_id":"223"}
[2026-05-04 12:24:38] Health image upload received
[2026-05-04 12:24:38] User ID: 1
[2026-05-04 12:24:38] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f89006b3c260.86934259.jpg
[2026-05-04 12:24:38] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f89006b3c260.86934259.jpg
[2026-05-04 12:24:38] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f89006b3c260.86934259.jpg
[2026-05-04 12:24:38] Using OCR.space API
[2026-05-04 12:24:38] Using API key: K8465...
[2026-05-04 12:24:40] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-04 12:24:40] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"Body Composition Analysis\nBody Water\nProtein\nBone Mass\nBody Fat Mass\nMeasurement (Ib)\n93.9\n25.7\n8.6\n34.3\nWeight\n162.5\nStandard (Ib)\n(72.4~90.2)\n(19.7~24.6)\n(6.6~8.2)\n(16.2~32.5)\n(115.0~155.6)\nOther Metrics\nBody Fat\nMuscle Mass\nLean Body Mass\nVisceral Fat\nBMR\nMetabolic Age\nSkeletal Muscle...
[2026-05-04 12:24:40] OCR.space API extracted text: Body Composition Analysis
Body Water
Protein
Bone Mass
Body Fat Mass
Measurement (Ib)
93.9
25.7
8.6
...
[2026-05-04 12:24:40] Extracting health metrics from text
[2026-05-04 12:24:40] Full OCR text for parsing:
Body Composition Analysis
Body Water
Protein
Bone Mass
Body Fat Mass
Measurement (Ib)
93.9
25.7
8.6
34.3
Weight
162.5
Standard (Ib)
(72.4~90.2)
(19.7~24.6)
(6.6~8.2)
(16.2~32.5)
(115.0~155.6)
Other Metrics
Body Fat
Muscle Mass
Lean Body Mass
Visceral Fat
BMR
Metabolic Age
Skeletal Muscle
21.1%
119.5lb
128.11b
5
1624kcal
51
72.516
[2026-05-04 12:24:40] Detected 'Other Metrics' section — trying columnar extraction
[2026-05-04 12:24:40] Other Metrics lines: ["body fat","muscle mass","lean body mass","visceral fat","bmr","metabolic age","skeletal muscle","21.1%","119.5lb","128.11b","5","1624kcal","51","72.516"]
[2026-05-04 12:24:40] Labels: ["body fat","muscle mass","lean body mass","visceral fat","bmr","metabolic age","skeletal muscle"] | Values: ["21.1%","119.5lb","128.11b","5","1624kcal","51","72.516"]
[2026-05-04 12:24:40] Pass2 columnar matched body_fat_percent = 21.1 (label line: 'body fat')
[2026-05-04 12:24:40] Pass2 columnar matched muscle_mass_lbs = 119.5 (label line: 'muscle mass')
[2026-05-04 12:24:40] Pass2 columnar matched lean_body_mass_lbs = 128.11 (label line: 'lean body mass')
[2026-05-04 12:24:40] Pass2 columnar matched visceral_fat = 5 (label line: 'visceral fat')
[2026-05-04 12:24:40] Pass2 columnar matched bmr = 1624 (label line: 'bmr')
[2026-05-04 12:24:40] Detected 'Body Composition Analysis' section — trying table extraction
[2026-05-04 12:24:40] Composition lines: ["body water","protein","bone mass","body fat mass","measurement (ib)","93.9","25.7","8.6","34.3","weight","162.5","standard (ib)","(72.4~90.2)","(19.7~24.6)","(6.6~8.2)","(16.2~32.5)","(115.0~155.6)"]
[2026-05-04 12:24:40] Pass3 table matched bone_mass_lbs = 8.6 (label line: 'bone mass')
[2026-05-04 12:24:40] Pass3 table matched body_fat_mass_lbs = 34.3 (label line: 'body fat mass')
[2026-05-04 12:24:40] Pass3 table matched weight = 162.5 (label line: 'weight')
[2026-05-04 12:24:40] Found 8 metrics in total
[2026-05-04 12:24:40] Extracted data: {"date":"2026-05-04","weight":162.5,"body_fat_percent":21.1,"lean_body_mass_lbs":128.11,"muscle_mass_lbs":119.5,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1624,"visceral_fat":5,"body_fat_mass_lbs":34.3,"bone_mass_lbs":8.6}
[2026-05-04 12:24:40] Final data for insertion: {"date":"2026-05-04","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1624,"visceral_fat":5,"body_fat_mass_lbs":34.3,"bone_mass_lbs":8.6}
[2026-05-04 12:24:40] Inserted record with ID: 224
[2026-05-04 12:24:40] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-04","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1624,"visceral_fat":5,"body_fat_mass_lbs":34.3,"bone_mass_lbs":8.6},"record_id":"224"}
[2026-05-04 12:32:16] Health image upload received
[2026-05-04 12:32:16] User ID: 1
[2026-05-04 12:32:16] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f891d0058bd5.76913453.jpg
[2026-05-04 12:32:16] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f891d0058bd5.76913453.jpg
[2026-05-04 12:32:16] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f891d0058bd5.76913453.jpg
[2026-05-04 12:32:16] Using OCR.space API
[2026-05-04 12:32:16] Using API key: K8465...
[2026-05-04 12:32:17] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-04 12:32:17] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"Body Composition Analysis\nBody Water\nProtein\nBone Mass\nBody Fat Mass\nMeasurement (Ib)\n93.9\n25.7\n8.6\n34.3\nWeight\n162.5\nStandard (Ib)\n(72.4~90.2)\n(19.7~24.6)\n(6.6~8.2)\n(16.2~32.5)\n(115.0~155.6)\nOther Metrics\nBody Fat\nMuscle Mass\nLean Body Mass\nVisceral Fat\nBMR\nMetabolic Age\nSkeletal Muscle...
[2026-05-04 12:32:17] OCR.space API extracted text: Body Composition Analysis
Body Water
Protein
Bone Mass
Body Fat Mass
Measurement (Ib)
93.9
25.7
8.6
...
[2026-05-04 12:32:17] Extracting health metrics from text
[2026-05-04 12:32:17] Full OCR text for parsing:
Body Composition Analysis
Body Water
Protein
Bone Mass
Body Fat Mass
Measurement (Ib)
93.9
25.7
8.6
34.3
Weight
162.5
Standard (Ib)
(72.4~90.2)
(19.7~24.6)
(6.6~8.2)
(16.2~32.5)
(115.0~155.6)
Other Metrics
Body Fat
Muscle Mass
Lean Body Mass
Visceral Fat
BMR
Metabolic Age
Skeletal Muscle
21.1%
119.5lb
128.11b
5
1624kcal
51
72.516
[2026-05-04 12:32:17] Detected 'Other Metrics' section — trying columnar extraction
[2026-05-04 12:32:17] Other Metrics lines: ["body fat","muscle mass","lean body mass","visceral fat","bmr","metabolic age","skeletal muscle","21.1%","119.5lb","128.11b","5","1624kcal","51","72.516"]
[2026-05-04 12:32:17] Labels: ["body fat","muscle mass","lean body mass","visceral fat","bmr","metabolic age","skeletal muscle"] | Values: ["21.1%","119.5lb","128.11b","5","1624kcal","51","72.516"]
[2026-05-04 12:32:17] Pass2 columnar matched body_fat_percent = 21.1 (label line: 'body fat')
[2026-05-04 12:32:17] Pass2 columnar matched muscle_mass_lbs = 119.5 (label line: 'muscle mass')
[2026-05-04 12:32:17] Pass2 columnar matched lean_body_mass_lbs = 128.11 (label line: 'lean body mass')
[2026-05-04 12:32:17] Pass2 columnar matched visceral_fat = 5 (label line: 'visceral fat')
[2026-05-04 12:32:17] Pass2 columnar matched bmr = 1624 (label line: 'bmr')
[2026-05-04 12:32:17] Detected 'Body Composition Analysis' section — trying table extraction
[2026-05-04 12:32:17] Composition lines: ["body water","protein","bone mass","body fat mass","measurement (ib)","93.9","25.7","8.6","34.3","weight","162.5","standard (ib)","(72.4~90.2)","(19.7~24.6)","(6.6~8.2)","(16.2~32.5)","(115.0~155.6)"]
[2026-05-04 12:32:17] Pass3 table matched bone_mass_lbs = 8.6 (label line: 'bone mass')
[2026-05-04 12:32:17] Pass3 table matched body_fat_mass_lbs = 34.3 (label line: 'body fat mass')
[2026-05-04 12:32:17] Pass3 table matched weight = 162.5 (label line: 'weight')
[2026-05-04 12:32:17] Found 8 metrics in total
[2026-05-04 12:32:17] Extracted data: {"date":"2026-05-04","weight":162.5,"body_fat_percent":21.1,"lean_body_mass_lbs":128.11,"muscle_mass_lbs":119.5,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1624,"visceral_fat":5,"body_fat_mass_lbs":34.3,"bone_mass_lbs":8.6}
[2026-05-04 12:32:17] Final data for insertion: {"date":"2026-05-04","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1624,"visceral_fat":5,"body_fat_mass_lbs":34.3,"bone_mass_lbs":8.6}
[2026-05-04 12:32:17] Inserted record with ID: 225
[2026-05-04 12:32:17] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-04","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1624,"visceral_fat":5,"body_fat_mass_lbs":34.3,"bone_mass_lbs":8.6},"record_id":"225"}
[2026-05-04 12:46:14] Health image upload received
[2026-05-04 12:46:14] User ID: 1
[2026-05-04 12:46:14] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f89516df2878.17798978.jpg
[2026-05-04 12:46:14] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f89516df2878.17798978.jpg
[2026-05-04 12:46:14] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f89516df2878.17798978.jpg
[2026-05-04 12:46:14] Using OCR.space API
[2026-05-04 12:46:14] Using API key: K8465...
[2026-05-04 12:46:16] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-04 12:46:16] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"Other Metrics\nBody Fat\nMuscle Mass\nLean Body Mass\nVisceral Fat\nBMR\nMetabolic Age\nSkeletal Muscle\n21.1%\n119.5lb\n128.1lb\n5\n1624kcal\n51\n72.5lb","ErrorMessage":"","ErrorDetails":""}],"OCRExitCode":1,"IsErroredOnProcessing":false,"ProcessingTimeInMilliseconds":"640","SearchablePDFURL":"Searchable PDF no...
[2026-05-04 12:46:16] OCR.space API extracted text: Other Metrics
Body Fat
Muscle Mass
Lean Body Mass
Visceral Fat
BMR
Metabolic Age
Skeletal Muscle
21....
[2026-05-04 12:46:16] Extracting health metrics from text
[2026-05-04 12:46:16] Full OCR text for parsing:
Other Metrics
Body Fat
Muscle Mass
Lean Body Mass
Visceral Fat
BMR
Metabolic Age
Skeletal Muscle
21.1%
119.5lb
128.1lb
5
1624kcal
51
72.5lb
[2026-05-04 12:46:16] Detected 'Other Metrics' section — trying columnar extraction
[2026-05-04 12:46:16] Other Metrics lines: ["body fat","muscle mass","lean body mass","visceral fat","bmr","metabolic age","skeletal muscle","21.1%","119.5lb","128.1lb","5","1624kcal","51","72.5lb"]
[2026-05-04 12:46:16] Labels: ["body fat","muscle mass","lean body mass","visceral fat","bmr","metabolic age","skeletal muscle"] | Values: ["21.1%","119.5lb","128.1lb","5","1624kcal","51","72.5lb"]
[2026-05-04 12:46:16] Pass2 columnar matched body_fat_percent = 21.1 (label line: 'body fat')
[2026-05-04 12:46:16] Pass2 columnar matched muscle_mass_lbs = 119.5 (label line: 'muscle mass')
[2026-05-04 12:46:16] Pass2 columnar matched lean_body_mass_lbs = 128.1 (label line: 'lean body mass')
[2026-05-04 12:46:16] Pass2 columnar matched visceral_fat = 5 (label line: 'visceral fat')
[2026-05-04 12:46:16] Pass2 columnar matched bmr = 1624 (label line: 'bmr')
[2026-05-04 12:46:16] Found 5 metrics in total
[2026-05-04 12:46:16] Extracted data: {"date":"2026-05-04","weight":null,"body_fat_percent":21.1,"lean_body_mass_lbs":128.1,"muscle_mass_lbs":119.5,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1624,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-05-04 12:46:16] Final data for insertion: {"date":"2026-05-04","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1624,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-05-04 12:46:16] Inserted record with ID: 226
[2026-05-04 12:46:16] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-04","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1624,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null},"record_id":"226"}
[2026-05-04 12:46:47] Health image upload received
[2026-05-04 12:46:47] User ID: 1
[2026-05-04 12:46:47] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f89537d7af46.76855455.jpg
[2026-05-04 12:46:47] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f89537d7af46.76855455.jpg
[2026-05-04 12:46:47] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f89537d7af46.76855455.jpg
[2026-05-04 12:46:47] Using OCR.space API
[2026-05-04 12:46:47] Using API key: K8465...
[2026-05-04 12:46:49] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-04 12:46:49] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"Other Metrics\nBody Fat\nMuscle Mass\nLean Body Mass\nVisceral Fat\nBMR\nMetabolic Age\nSkeletal Muscle\n21.1%\n119.5lb\n128.1lb\n5\n1624kcal\n51\n72.5lb","ErrorMessage":"","ErrorDetails":""}],"OCRExitCode":1,"IsErroredOnProcessing":false,"ProcessingTimeInMilliseconds":"640","SearchablePDFURL":"Searchable PDF no...
[2026-05-04 12:46:49] OCR.space API extracted text: Other Metrics
Body Fat
Muscle Mass
Lean Body Mass
Visceral Fat
BMR
Metabolic Age
Skeletal Muscle
21....
[2026-05-04 12:46:49] Extracting health metrics from text
[2026-05-04 12:46:49] Full OCR text for parsing:
Other Metrics
Body Fat
Muscle Mass
Lean Body Mass
Visceral Fat
BMR
Metabolic Age
Skeletal Muscle
21.1%
119.5lb
128.1lb
5
1624kcal
51
72.5lb
[2026-05-04 12:46:49] Detected 'Other Metrics' section — trying columnar extraction
[2026-05-04 12:46:49] Other Metrics lines: ["body fat","muscle mass","lean body mass","visceral fat","bmr","metabolic age","skeletal muscle","21.1%","119.5lb","128.1lb","5","1624kcal","51","72.5lb"]
[2026-05-04 12:46:49] Labels: ["body fat","muscle mass","lean body mass","visceral fat","bmr","metabolic age","skeletal muscle"] | Values: ["21.1%","119.5lb","128.1lb","5","1624kcal","51","72.5lb"]
[2026-05-04 12:46:49] Pass2 columnar matched body_fat_percent = 21.1 (label line: 'body fat')
[2026-05-04 12:46:49] Pass2 columnar matched muscle_mass_lbs = 119.5 (label line: 'muscle mass')
[2026-05-04 12:46:49] Pass2 columnar matched lean_body_mass_lbs = 128.1 (label line: 'lean body mass')
[2026-05-04 12:46:49] Pass2 columnar matched visceral_fat = 5 (label line: 'visceral fat')
[2026-05-04 12:46:49] Pass2 columnar matched bmr = 1624 (label line: 'bmr')
[2026-05-04 12:46:49] Found 5 metrics in total
[2026-05-04 12:46:49] Extracted data: {"date":"2026-05-04","weight":null,"body_fat_percent":21.1,"lean_body_mass_lbs":128.1,"muscle_mass_lbs":119.5,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1624,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-05-04 12:46:49] Final data for insertion: {"date":"2026-05-04","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1624,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-05-04 12:46:49] Inserted record with ID: 227
[2026-05-04 12:46:49] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-04","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1624,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null},"record_id":"227"}
[2026-05-04 12:47:58] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-04 12:47:58] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-04 12:47:58] Using OCR.space API
[2026-05-04 12:47:58] Using API key: K8465...
[2026-05-04 12:48:00] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-04 12:48:00] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-05-04 12:48:00] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-05-04 12:48:00] Extracting health metrics from text
[2026-05-04 12:48:00] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-05-04 12:48:00] Pass1 matched visceral_fat = 6.6
[2026-05-04 12:48:00] Pass1 matched bmr = 1510
[2026-05-04 12:48:00] Pass1 matched body_fat_percent = 19.4
[2026-05-04 12:48:00] Pass1 matched muscle_mass_percent = 76.7
[2026-05-04 12:48:00] Pass1 matched body_fat_mass_lbs = 32.4
[2026-05-04 12:48:00] Pass1 matched bone_mass_lbs = 6.6
[2026-05-04 12:48:00] Pass1 matched weight = 167.5
[2026-05-04 12:48:00] Found 7 metrics in total
[2026-05-04 13:32:35] Health image upload received
[2026-05-04 13:32:35] User ID: 1
[2026-05-04 13:32:35] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f89ff34e7f09.41317860.jpg
[2026-05-04 13:32:35] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f89ff34e7f09.41317860.jpg
[2026-05-04 13:32:35] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f89ff34e7f09.41317860.jpg
[2026-05-04 13:32:35] Using OCR.space API
[2026-05-04 13:32:35] Using API key: K8465...
[2026-05-04 13:32:36] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-04 13:32:36] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"Other Metrics\nBody Fat\nMuscle Mass\nLean Body Mass\nVisceral Fat\nBMR\nMetabolic Age\nSkeletal Muscle\n21.1%\n119.5lb\n128.1lb\n5\n1624kcal\n51\n72.5lb","ErrorMessage":"","ErrorDetails":""}],"OCRExitCode":1,"IsErroredOnProcessing":false,"ProcessingTimeInMilliseconds":"640","SearchablePDFURL":"Searchable PDF no...
[2026-05-04 13:32:36] OCR.space API extracted text: Other Metrics
Body Fat
Muscle Mass
Lean Body Mass
Visceral Fat
BMR
Metabolic Age
Skeletal Muscle
21....
[2026-05-04 13:32:36] Extracting health metrics from text
[2026-05-04 13:32:36] Full OCR text for parsing:
Other Metrics
Body Fat
Muscle Mass
Lean Body Mass
Visceral Fat
BMR
Metabolic Age
Skeletal Muscle
21.1%
119.5lb
128.1lb
5
1624kcal
51
72.5lb
[2026-05-04 13:32:36] Detected 'Other Metrics' section — trying columnar extraction
[2026-05-04 13:32:36] Other Metrics lines: ["body fat","muscle mass","lean body mass","visceral fat","bmr","metabolic age","skeletal muscle","21.1%","119.5lb","128.1lb","5","1624kcal","51","72.5lb"]
[2026-05-04 13:32:36] Labels: ["body fat","muscle mass","lean body mass","visceral fat","bmr","metabolic age","skeletal muscle"] | Values: ["21.1%","119.5lb","128.1lb","5","1624kcal","51","72.5lb"]
[2026-05-04 13:32:36] Pass2 columnar matched body_fat_percent = 21.1 (label line: 'body fat')
[2026-05-04 13:32:36] Pass2 columnar matched muscle_mass_lbs = 119.5 (label line: 'muscle mass')
[2026-05-04 13:32:36] Pass2 columnar matched lean_body_mass_lbs = 128.1 (label line: 'lean body mass')
[2026-05-04 13:32:36] Pass2 columnar matched visceral_fat = 5 (label line: 'visceral fat')
[2026-05-04 13:32:36] Pass2 columnar matched bmr = 1624 (label line: 'bmr')
[2026-05-04 13:32:36] Found 5 metrics in total
[2026-05-04 13:32:36] Extracted data: {"date":"2026-05-04","weight":null,"body_fat_percent":21.1,"lean_body_mass_lbs":128.1,"muscle_mass_lbs":119.5,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1624,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-05-04 13:32:36] Final data for insertion: {"date":"2026-05-04","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1624,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-05-04 13:32:36] Inserted record with ID: 228
[2026-05-04 13:32:36] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-04","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1624,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null},"record_id":"228"}
[2026-05-04 13:41:38] Health image upload received
[2026-05-04 13:41:38] User ID: 1
[2026-05-04 13:41:38] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f8a2129f8fd5.36975737.jpg
[2026-05-04 13:41:38] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f8a2129f8fd5.36975737.jpg
[2026-05-04 13:41:38] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f8a2129f8fd5.36975737.jpg
[2026-05-04 13:41:38] Using OCR.space API
[2026-05-04 13:41:38] Using API key: K8465...
[2026-05-04 13:41:40] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-04 13:41:40] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"Other Metrics\nBody Fat\nMuscle Mass\nLean Body Mass\nVisceral Fat\nBMR\nMetabolic Age\nSkeletal Muscle\n21.1%\n119.5lb\n128.1lb\n5\n1624kcal\n51\n72.5lb","ErrorMessage":"","ErrorDetails":""}],"OCRExitCode":1,"IsErroredOnProcessing":false,"ProcessingTimeInMilliseconds":"968","SearchablePDFURL":"Searchable PDF no...
[2026-05-04 13:41:40] OCR.space API extracted text: Other Metrics
Body Fat
Muscle Mass
Lean Body Mass
Visceral Fat
BMR
Metabolic Age
Skeletal Muscle
21....
[2026-05-04 13:41:40] Extracting health metrics from text
[2026-05-04 13:41:40] Full OCR text for parsing:
Other Metrics
Body Fat
Muscle Mass
Lean Body Mass
Visceral Fat
BMR
Metabolic Age
Skeletal Muscle
21.1%
119.5lb
128.1lb
5
1624kcal
51
72.5lb
[2026-05-04 13:41:40] Detected 'Other Metrics' section — trying columnar extraction
[2026-05-04 13:41:40] Other Metrics lines: ["body fat","muscle mass","lean body mass","visceral fat","bmr","metabolic age","skeletal muscle","21.1%","119.5lb","128.1lb","5","1624kcal","51","72.5lb"]
[2026-05-04 13:41:40] Labels: ["body fat","muscle mass","lean body mass","visceral fat","bmr","metabolic age","skeletal muscle"] | Values: ["21.1%","119.5lb","128.1lb","5","1624kcal","51","72.5lb"]
[2026-05-04 13:41:40] Pass2 columnar matched body_fat_percent = 21.1 (label line: 'body fat')
[2026-05-04 13:41:40] Pass2 columnar matched muscle_mass_lbs = 119.5 (label line: 'muscle mass')
[2026-05-04 13:41:40] Pass2 columnar matched lean_body_mass_lbs = 128.1 (label line: 'lean body mass')
[2026-05-04 13:41:40] Pass2 columnar matched visceral_fat = 5 (label line: 'visceral fat')
[2026-05-04 13:41:40] Pass2 columnar matched bmr = 1624 (label line: 'bmr')
[2026-05-04 13:41:40] Found 5 metrics in total
[2026-05-04 13:41:40] Extracted data: {"date":"2026-05-04","weight":null,"body_fat_percent":21.1,"lean_body_mass_lbs":128.1,"muscle_mass_lbs":119.5,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1624,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-05-04 13:41:40] Final data for insertion: {"date":"2026-05-04","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1624,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-05-04 13:41:40] Inserted record with ID: 229
[2026-05-04 13:41:40] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-04","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":1624,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null},"record_id":"229"}
[2026-05-04 13:47:15] Health image upload received
[2026-05-04 13:47:15] User ID: 1
[2026-05-04 13:47:15] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f8a363e56a35.49606306.png
[2026-05-04 13:47:15] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f8a363e56a35.49606306.png
[2026-05-04 13:47:15] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f8a363e56a35.49606306.png
[2026-05-04 13:47:15] Using OCR.space API
[2026-05-04 13:47:15] Using API key: K8465...
[2026-05-04 13:47:17] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-04 13:47:17] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"Body Fat\nMuscle Mass\nLean Body Mass\nVisceral Fat\n21.1%\n119.5lb\n128.1lb\n5","ErrorMessage":"","ErrorDetails":""}],"OCRExitCode":1,"IsErroredOnProcessing":false,"ProcessingTimeInMilliseconds":"937","SearchablePDFURL":"Searchable PDF not generated as it was not requested."}...
[2026-05-04 13:47:17] OCR.space API extracted text: Body Fat
Muscle Mass
Lean Body Mass
Visceral Fat
21.1%
119.5lb
128.1lb
5...
[2026-05-04 13:47:17] Extracting health metrics from text
[2026-05-04 13:47:17] Full OCR text for parsing:
Body Fat
Muscle Mass
Lean Body Mass
Visceral Fat
21.1%
119.5lb
128.1lb
5
[2026-05-04 13:47:17] Pass1 matched visceral_fat = 21.1
[2026-05-04 13:47:17] Found 1 metrics in total
[2026-05-04 13:47:17] Extracted data: {"date":"2026-05-04","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":null,"visceral_fat":21.1,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-05-04 13:47:17] Final data for insertion: {"date":"2026-05-04","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":null,"visceral_fat":21.1,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-05-04 13:47:17] Inserted record with ID: 230
[2026-05-04 13:47:17] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-04","weight":null,"body_fat_percent":null,"lean_body_mass_lbs":null,"muscle_mass_lbs":null,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":null,"visceral_fat":21.1,"body_fat_mass_lbs":null,"bone_mass_lbs":null},"record_id":"230"}
[2026-05-04 13:48:58] Health image upload received
[2026-05-04 13:48:58] User ID: 1
[2026-05-04 13:48:58] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f8a3ca75a179.92156770.png
[2026-05-04 13:48:58] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f8a3ca75a179.92156770.png
[2026-05-04 13:48:58] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69f8a3ca75a179.92156770.png
[2026-05-04 13:48:58] Using OCR.space API
[2026-05-04 13:48:58] Using API key: K8465...
[2026-05-04 13:49:05] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-04 13:49:05] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"Body Fat\nMuscle Mass\nLean Body Mass\nVisceral Fat\n21.1%\n119.5lb\n128.1lb\n5","ErrorMessage":"","ErrorDetails":""}],"OCRExitCode":1,"IsErroredOnProcessing":false,"ProcessingTimeInMilliseconds":"6562","SearchablePDFURL":"Searchable PDF not generated as it was not requested."}...
[2026-05-04 13:49:05] OCR.space API extracted text: Body Fat
Muscle Mass
Lean Body Mass
Visceral Fat
21.1%
119.5lb
128.1lb
5...
[2026-05-04 13:49:05] Extracting health metrics from text
[2026-05-04 13:49:05] Full OCR text for parsing:
Body Fat
Muscle Mass
Lean Body Mass
Visceral Fat
21.1%
119.5lb
128.1lb
5
[2026-05-04 13:49:05] Detected generic label/value column layout
[2026-05-04 13:49:05] Pass0 columnar matched body_fat_percent = 21.1
[2026-05-04 13:49:05] Pass0 columnar matched muscle_mass_lbs = 119.5
[2026-05-04 13:49:05] Pass0 columnar matched lean_body_mass_lbs = 128.1
[2026-05-04 13:49:05] Pass0 columnar matched visceral_fat = 5
[2026-05-04 13:49:05] Found 4 metrics in total
[2026-05-04 13:49:05] Extracted data: {"date":"2026-05-04","weight":null,"body_fat_percent":21.1,"lean_body_mass_lbs":128.1,"muscle_mass_lbs":119.5,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":null,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-05-04 13:49:05] Final data for insertion: {"date":"2026-05-04","weight":null,"body_fat_percent":21.1,"lean_body_mass_lbs":128.1,"muscle_mass_lbs":119.5,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":null,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-05-04 13:49:05] Inserted record with ID: 231
[2026-05-04 13:49:05] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-04","weight":null,"body_fat_percent":21.1,"lean_body_mass_lbs":128.1,"muscle_mass_lbs":119.5,"bmi":null,"water_percent":null,"muscle_mass_percent":null,"bone_mass_percent":null,"bmr":null,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null},"record_id":"231"}
[2026-05-06 16:24:31] Health image upload received
[2026-05-06 16:24:31] User ID: 1
[2026-05-06 16:24:31] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69fb6b3fb60064.31987361.jpg
[2026-05-06 16:24:31] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69fb6b3fb60064.31987361.jpg
[2026-05-06 16:24:31] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69fb6b3fb60064.31987361.jpg
[2026-05-06 16:24:31] Using OCR.space API
[2026-05-06 16:24:31] Using API key: K8465...
[2026-05-06 16:24:33] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-06 16:24:33] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-05-06 16:24:33] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-05-06 16:24:33] Extracting health metrics from text
[2026-05-06 16:24:33] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-05-06 16:24:33] Detected generic label/value column layout
[2026-05-06 16:24:33] Pass0 columnar matched weight = 167.5
[2026-05-06 16:24:33] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-06 16:24:33] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-06 16:24:33] Pass0 columnar matched bmr = 1510
[2026-05-06 16:24:33] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-06 16:24:33] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-06 16:24:33] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-05-06 16:24:33] Pass1 matched visceral_fat = 11
[2026-05-06 16:24:33] Pass1 matched bmi = 26.9
[2026-05-06 16:24:33] Pass1 matched bone_mass_percent = 3.9
[2026-05-06 16:24:33] Pass1 matched water_percent = 55.3
[2026-05-06 16:24:33] Found 11 metrics in total
[2026-05-06 16:24:33] Extracted data: {"date":"2026-05-06","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-06 16:24:33] Final data for insertion: {"date":"2026-05-06","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-06 16:24:33] Inserted record with ID: 232
[2026-05-06 16:24:33] Weight also stored in weights table
[2026-05-06 16:24:33] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-06","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"232"}
[2026-05-06 16:24:53] Health image upload received
[2026-05-06 16:24:53] User ID: 1
[2026-05-06 16:24:53] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69fb6b55535515.69223388.jpg
[2026-05-06 16:24:53] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69fb6b55535515.69223388.jpg
[2026-05-06 16:24:53] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69fb6b55535515.69223388.jpg
[2026-05-06 16:24:53] Using OCR.space API
[2026-05-06 16:24:53] Using API key: K8465...
[2026-05-06 16:24:55] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-06 16:24:55] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-05-06 16:24:55] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-05-06 16:24:55] Extracting health metrics from text
[2026-05-06 16:24:55] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-05-06 16:24:55] Detected generic label/value column layout
[2026-05-06 16:24:55] Pass0 columnar matched weight = 167.5
[2026-05-06 16:24:55] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-06 16:24:55] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-06 16:24:55] Pass0 columnar matched bmr = 1510
[2026-05-06 16:24:55] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-06 16:24:55] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-06 16:24:55] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-05-06 16:24:55] Pass1 matched visceral_fat = 11
[2026-05-06 16:24:55] Pass1 matched bmi = 26.9
[2026-05-06 16:24:55] Pass1 matched bone_mass_percent = 3.9
[2026-05-06 16:24:55] Pass1 matched water_percent = 55.3
[2026-05-06 16:24:55] Found 11 metrics in total
[2026-05-06 16:24:55] Extracted data: {"date":"2026-05-06","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-06 16:24:55] Final data for insertion: {"date":"2026-05-06","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-06 16:24:55] Inserted record with ID: 233
[2026-05-06 16:24:55] Weight also stored in weights table
[2026-05-06 16:24:55] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-06","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"233"}
[2026-05-06 16:25:11] Health image upload received
[2026-05-06 16:25:11] User ID: 1
[2026-05-06 16:25:11] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69fb6b674a2d09.26240161.jpg
[2026-05-06 16:25:11] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69fb6b674a2d09.26240161.jpg
[2026-05-06 16:25:11] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69fb6b674a2d09.26240161.jpg
[2026-05-06 16:25:11] Using OCR.space API
[2026-05-06 16:25:11] Using API key: K8465...
[2026-05-06 16:25:12] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-06 16:25:12] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-05-06 16:25:12] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-05-06 16:25:12] Extracting health metrics from text
[2026-05-06 16:25:12] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-05-06 16:25:12] Detected generic label/value column layout
[2026-05-06 16:25:12] Pass0 columnar matched weight = 167.5
[2026-05-06 16:25:12] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-06 16:25:12] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-06 16:25:12] Pass0 columnar matched bmr = 1510
[2026-05-06 16:25:12] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-06 16:25:12] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-06 16:25:12] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-05-06 16:25:12] Pass1 matched visceral_fat = 11
[2026-05-06 16:25:12] Pass1 matched bmi = 26.9
[2026-05-06 16:25:12] Pass1 matched bone_mass_percent = 3.9
[2026-05-06 16:25:12] Pass1 matched water_percent = 55.3
[2026-05-06 16:25:12] Found 11 metrics in total
[2026-05-06 16:25:12] Extracted data: {"date":"2026-05-06","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-06 16:25:12] Final data for insertion: {"date":"2026-05-06","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-06 16:25:12] Inserted record with ID: 234
[2026-05-06 16:25:12] Weight also stored in weights table
[2026-05-06 16:25:12] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-06","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"234"}
[2026-05-06 18:54:11] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-06 18:54:11] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-06 18:54:11] Using OCR.space API
[2026-05-06 18:54:11] Using API key: K8465...
[2026-05-06 18:54:13] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-06 18:54:13] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-05-06 18:54:13] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-05-06 18:54:13] Extracting health metrics from text
[2026-05-06 18:54:13] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-05-06 18:54:13] Detected generic label/value column layout
[2026-05-06 18:54:13] Pass0 columnar matched weight = 167.5
[2026-05-06 18:54:13] Pass0 columnar matched bmi = 26.9
[2026-05-06 18:54:13] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-06 18:54:13] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-05-06 18:54:13] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-06 18:54:13] Pass0 columnar matched bone_mass_percent = 3.9
[2026-05-06 18:54:13] Pass0 columnar matched bmr = 1510
[2026-05-06 18:54:13] Pass0 columnar matched water_percent = 55.3
[2026-05-06 18:54:13] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-06 18:54:13] Pass0 columnar matched lean_body_mass_lbs = 135.1
[2026-05-06 18:54:13] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-06 18:54:13] Pass0 columnar matched visceral_fat = 11
[2026-05-06 18:54:13] Found 12 metrics in total
[2026-05-07 08:02:41] Health image upload received
[2026-05-07 08:02:41] User ID: 1
[2026-05-07 08:02:41] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69fc47212d9da1.28054812.jpg
[2026-05-07 08:02:41] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69fc47212d9da1.28054812.jpg
[2026-05-07 08:02:41] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69fc47212d9da1.28054812.jpg
[2026-05-07 08:02:41] Using OCR.space API
[2026-05-07 08:02:41] Using API key: K8465...
[2026-05-07 08:03:41] OCR.space API attempt 1 completed with HTTP code: 0
[2026-05-07 08:03:41] Attempt 1 failed: Operation timed out after 60004 milliseconds with 0 bytes received (HTTP 0)
[2026-05-07 08:03:41] Retrying in 2 seconds...
[2026-05-07 08:04:43] OCR.space API attempt 2 completed with HTTP code: 0
[2026-05-07 08:04:43] Attempt 2 failed: Operation timed out after 60003 milliseconds with 0 bytes received (HTTP 0)
[2026-05-07 08:04:43] cURL error after 2 attempts: Operation timed out after 60003 milliseconds with 0 bytes received
[2026-05-07 08:04:43] Text extraction failed
[2026-05-07 08:04:43] Error: Failed to extract data from image
[2026-05-07 08:04:43] Response: {"success":false,"message":"Error: Failed to extract data from image"}
[2026-05-07 10:53:38] Health image upload received
[2026-05-07 10:53:38] User ID: 1
[2026-05-07 10:53:38] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69fc6f32367e77.15124587.jpg
[2026-05-07 10:53:38] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69fc6f32367e77.15124587.jpg
[2026-05-07 10:53:38] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69fc6f32367e77.15124587.jpg
[2026-05-07 10:53:38] Using OCR.space API
[2026-05-07 10:53:38] Using API key: K8465...
[2026-05-07 10:53:39] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-07 10:53:39] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"Body Fat\nMuscle Mass\nMuscle Mass%\nLean Body Mass\nVisceral Fat\n21.2%\n119.5lb\n73.5%\n128.1lb\n5","ErrorMessage":"","ErrorDetails":""}],"OCRExitCode":1,"IsErroredOnProcessing":false,"ProcessingTimeInMilliseconds":"640","SearchablePDFURL":"Searchable PDF not generated as it was not requested."}...
[2026-05-07 10:53:39] OCR.space API extracted text: Body Fat
Muscle Mass
Muscle Mass%
Lean Body Mass
Visceral Fat
21.2%
119.5lb
73.5%
128.1lb
5...
[2026-05-07 10:53:39] Extracting health metrics from text
[2026-05-07 10:53:39] Full OCR text for parsing:
Body Fat
Muscle Mass
Muscle Mass%
Lean Body Mass
Visceral Fat
21.2%
119.5lb
73.5%
128.1lb
5
[2026-05-07 10:53:39] Detected generic label/value column layout
[2026-05-07 10:53:39] Pass0 columnar matched body_fat_percent = 21.2
[2026-05-07 10:53:39] Pass0 columnar matched muscle_mass_lbs = 119.5
[2026-05-07 10:53:39] Pass0 columnar matched muscle_mass_percent = 73.5
[2026-05-07 10:53:39] Pass0 columnar matched lean_body_mass_lbs = 128.1
[2026-05-07 10:53:39] Pass0 columnar matched visceral_fat = 5
[2026-05-07 10:53:39] Found 5 metrics in total
[2026-05-07 10:53:39] Extracted data: {"date":"2026-05-07","weight":null,"body_fat_percent":21.2,"lean_body_mass_lbs":128.1,"muscle_mass_lbs":119.5,"bmi":null,"water_percent":null,"muscle_mass_percent":73.5,"bone_mass_percent":null,"bmr":null,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-05-07 10:53:39] Final data for insertion: {"date":"2026-05-07","weight":null,"body_fat_percent":21.2,"lean_body_mass_lbs":128.1,"muscle_mass_lbs":119.5,"bmi":null,"water_percent":null,"muscle_mass_percent":73.5,"bone_mass_percent":null,"bmr":null,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-05-07 10:53:39] Inserted record with ID: 235
[2026-05-07 10:53:39] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-07","weight":null,"body_fat_percent":21.2,"lean_body_mass_lbs":128.1,"muscle_mass_lbs":119.5,"bmi":null,"water_percent":null,"muscle_mass_percent":73.5,"bone_mass_percent":null,"bmr":null,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null},"record_id":"235"}
[2026-05-07 20:10:41] Health image upload received
[2026-05-07 20:10:41] User ID: 1
[2026-05-07 20:10:41] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69fcf1c1f21980.40666543.jpg
[2026-05-07 20:10:41] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69fcf1c1f21980.40666543.jpg
[2026-05-07 20:10:41] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69fcf1c1f21980.40666543.jpg
[2026-05-07 20:10:41] Using OCR.space API
[2026-05-07 20:10:41] Using API key: K8465...
[2026-05-07 20:10:44] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-07 20:10:44] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-05-07 20:10:44] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-05-07 20:10:44] Extracting health metrics from text
[2026-05-07 20:10:44] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-05-07 20:10:44] Detected generic label/value column layout
[2026-05-07 20:10:44] Pass0 columnar matched weight = 167.5
[2026-05-07 20:10:44] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-07 20:10:44] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-07 20:10:44] Pass0 columnar matched bmr = 1510
[2026-05-07 20:10:44] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-07 20:10:44] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-07 20:10:44] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-05-07 20:10:44] Pass1 matched visceral_fat = 11
[2026-05-07 20:10:44] Pass1 matched bmi = 26.9
[2026-05-07 20:10:44] Pass1 matched bone_mass_percent = 3.9
[2026-05-07 20:10:44] Pass1 matched water_percent = 55.3
[2026-05-07 20:10:44] Found 11 metrics in total
[2026-05-07 20:10:44] Extracted data: {"date":"2026-05-07","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-07 20:10:44] Final data for insertion: {"date":"2026-05-07","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-07 20:10:44] Inserted record with ID: 236
[2026-05-07 20:10:44] Weight also stored in weights table
[2026-05-07 20:10:44] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-07","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"236"}
[2026-05-07 22:28:44] Health image upload received
[2026-05-07 22:28:44] Error: Missing or invalid user_id
[2026-05-07 22:28:44] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-05-08 01:53:03] Health image upload received
[2026-05-08 01:53:03] User ID: 1
[2026-05-08 01:53:03] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69fd41ff47ea18.20818335.jpg
[2026-05-08 01:53:03] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69fd41ff47ea18.20818335.jpg
[2026-05-08 01:53:03] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69fd41ff47ea18.20818335.jpg
[2026-05-08 01:53:03] Using OCR.space API
[2026-05-08 01:53:03] Using API key: K8465...
[2026-05-08 01:53:05] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-08 01:53:05] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-05-08 01:53:05] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-05-08 01:53:05] Extracting health metrics from text
[2026-05-08 01:53:05] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-05-08 01:53:05] Detected generic label/value column layout
[2026-05-08 01:53:05] Pass0 columnar matched weight = 167.5
[2026-05-08 01:53:05] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-08 01:53:05] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-08 01:53:05] Pass0 columnar matched bmr = 1510
[2026-05-08 01:53:05] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-08 01:53:05] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-08 01:53:05] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-05-08 01:53:05] Pass1 matched visceral_fat = 11
[2026-05-08 01:53:05] Pass1 matched bmi = 26.9
[2026-05-08 01:53:05] Pass1 matched bone_mass_percent = 3.9
[2026-05-08 01:53:05] Pass1 matched water_percent = 55.3
[2026-05-08 01:53:05] Found 11 metrics in total
[2026-05-08 01:53:05] Extracted data: {"date":"2026-05-08","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-08 01:53:05] Final data for insertion: {"date":"2026-05-08","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-08 01:53:05] Inserted record with ID: 237
[2026-05-08 01:53:05] Weight also stored in weights table
[2026-05-08 01:53:05] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-08","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"237"}
[2026-05-08 19:42:07] Health image upload received
[2026-05-08 19:42:07] User ID: 1
[2026-05-08 19:42:07] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69fe3c8f714c37.91687917.jpg
[2026-05-08 19:42:07] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69fe3c8f714c37.91687917.jpg
[2026-05-08 19:42:07] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69fe3c8f714c37.91687917.jpg
[2026-05-08 19:42:07] Using OCR.space API
[2026-05-08 19:42:07] Using API key: K8465...
[2026-05-08 19:42:08] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-08 19:42:08] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"Body Fat\nMuscle Mass\nMuscle Mass%\nLean Body Mass\nVisceral Fat\n21.3%\n119.7lb\n73.5%\n128.3lb\n5","ErrorMessage":"","ErrorDetails":""}],"OCRExitCode":1,"IsErroredOnProcessing":false,"ProcessingTimeInMilliseconds":"640","SearchablePDFURL":"Searchable PDF not generated as it was not requested."}...
[2026-05-08 19:42:08] OCR.space API extracted text: Body Fat
Muscle Mass
Muscle Mass%
Lean Body Mass
Visceral Fat
21.3%
119.7lb
73.5%
128.3lb
5...
[2026-05-08 19:42:08] Extracting health metrics from text
[2026-05-08 19:42:08] Full OCR text for parsing:
Body Fat
Muscle Mass
Muscle Mass%
Lean Body Mass
Visceral Fat
21.3%
119.7lb
73.5%
128.3lb
5
[2026-05-08 19:42:08] Detected generic label/value column layout
[2026-05-08 19:42:08] Pass0 columnar matched body_fat_percent = 21.3
[2026-05-08 19:42:08] Pass0 columnar matched muscle_mass_lbs = 119.7
[2026-05-08 19:42:08] Pass0 columnar matched muscle_mass_percent = 73.5
[2026-05-08 19:42:08] Pass0 columnar matched lean_body_mass_lbs = 128.3
[2026-05-08 19:42:08] Pass0 columnar matched visceral_fat = 5
[2026-05-08 19:42:08] Found 5 metrics in total
[2026-05-08 19:42:08] Extracted data: {"date":"2026-05-08","weight":null,"body_fat_percent":21.3,"lean_body_mass_lbs":128.3,"muscle_mass_lbs":119.7,"bmi":null,"water_percent":null,"muscle_mass_percent":73.5,"bone_mass_percent":null,"bmr":null,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-05-08 19:42:08] Final data for insertion: {"date":"2026-05-08","weight":null,"body_fat_percent":21.3,"lean_body_mass_lbs":128.3,"muscle_mass_lbs":119.7,"bmi":null,"water_percent":null,"muscle_mass_percent":73.5,"bone_mass_percent":null,"bmr":null,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-05-08 19:42:08] Inserted record with ID: 238
[2026-05-08 19:42:08] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-08","weight":null,"body_fat_percent":21.3,"lean_body_mass_lbs":128.3,"muscle_mass_lbs":119.7,"bmi":null,"water_percent":null,"muscle_mass_percent":73.5,"bone_mass_percent":null,"bmr":null,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null},"record_id":"238"}
[2026-05-08 22:16:19] Health image upload received
[2026-05-08 22:16:19] Error: Missing or invalid user_id
[2026-05-08 22:16:19] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-05-09 11:50:04] Health image upload received
[2026-05-09 11:50:04] User ID: 1
[2026-05-09 11:50:04] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ff1f6c6fcbb1.70866242.jpg
[2026-05-09 11:50:04] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ff1f6c6fcbb1.70866242.jpg
[2026-05-09 11:50:04] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ff1f6c6fcbb1.70866242.jpg
[2026-05-09 11:50:04] Using OCR.space API
[2026-05-09 11:50:04] Using API key: K8465...
[2026-05-09 11:50:05] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-09 11:50:05] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"Body Fat\nMuscle Mass\nMuscle Mass%\nLean Body Mass\nVisceral Fat\n21.0%\n119.5lb\n73.6%\n128.1lb\n5","ErrorMessage":"","ErrorDetails":""}],"OCRExitCode":1,"IsErroredOnProcessing":false,"ProcessingTimeInMilliseconds":"640","SearchablePDFURL":"Searchable PDF not generated as it was not requested."}...
[2026-05-09 11:50:05] OCR.space API extracted text: Body Fat
Muscle Mass
Muscle Mass%
Lean Body Mass
Visceral Fat
21.0%
119.5lb
73.6%
128.1lb
5...
[2026-05-09 11:50:05] Extracting health metrics from text
[2026-05-09 11:50:05] Full OCR text for parsing:
Body Fat
Muscle Mass
Muscle Mass%
Lean Body Mass
Visceral Fat
21.0%
119.5lb
73.6%
128.1lb
5
[2026-05-09 11:50:05] Detected generic label/value column layout
[2026-05-09 11:50:05] Pass0 columnar matched body_fat_percent = 21
[2026-05-09 11:50:05] Pass0 columnar matched muscle_mass_lbs = 119.5
[2026-05-09 11:50:05] Pass0 columnar matched muscle_mass_percent = 73.6
[2026-05-09 11:50:05] Pass0 columnar matched lean_body_mass_lbs = 128.1
[2026-05-09 11:50:05] Pass0 columnar matched visceral_fat = 5
[2026-05-09 11:50:05] Found 5 metrics in total
[2026-05-09 11:50:05] Extracted data: {"date":"2026-05-09","weight":null,"body_fat_percent":21,"lean_body_mass_lbs":128.1,"muscle_mass_lbs":119.5,"bmi":null,"water_percent":null,"muscle_mass_percent":73.6,"bone_mass_percent":null,"bmr":null,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-05-09 11:50:05] Final data for insertion: {"date":"2026-05-09","weight":null,"body_fat_percent":21,"lean_body_mass_lbs":128.1,"muscle_mass_lbs":119.5,"bmi":null,"water_percent":null,"muscle_mass_percent":73.6,"bone_mass_percent":null,"bmr":null,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-05-09 11:50:05] Inserted record with ID: 239
[2026-05-09 11:50:05] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-09","weight":null,"body_fat_percent":21,"lean_body_mass_lbs":128.1,"muscle_mass_lbs":119.5,"bmi":null,"water_percent":null,"muscle_mass_percent":73.6,"bone_mass_percent":null,"bmr":null,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null},"record_id":"239"}
[2026-05-09 14:40:26] Health image upload received
[2026-05-09 14:40:26] User ID: 1
[2026-05-09 14:40:26] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ff475ac95971.50818603.jpg
[2026-05-09 14:40:26] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ff475ac95971.50818603.jpg
[2026-05-09 14:40:26] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ff475ac95971.50818603.jpg
[2026-05-09 14:40:26] Using OCR.space API
[2026-05-09 14:40:26] Using API key: K8465...
[2026-05-09 14:40:28] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-09 14:40:28] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"Body Fat\nMuscle Mass\nMuscle Mass%\nLean Body Mass\nVisceral Fat\n21.3%\n119.7lb\n73.5%\n128.3lb\n5","ErrorMessage":"","ErrorDetails":""}],"OCRExitCode":1,"IsErroredOnProcessing":false,"ProcessingTimeInMilliseconds":"640","SearchablePDFURL":"Searchable PDF not generated as it was not requested."}...
[2026-05-09 14:40:28] OCR.space API extracted text: Body Fat
Muscle Mass
Muscle Mass%
Lean Body Mass
Visceral Fat
21.3%
119.7lb
73.5%
128.3lb
5...
[2026-05-09 14:40:28] Extracting health metrics from text
[2026-05-09 14:40:28] Full OCR text for parsing:
Body Fat
Muscle Mass
Muscle Mass%
Lean Body Mass
Visceral Fat
21.3%
119.7lb
73.5%
128.3lb
5
[2026-05-09 14:40:28] Detected generic label/value column layout
[2026-05-09 14:40:28] Pass0 columnar matched body_fat_percent = 21.3
[2026-05-09 14:40:28] Pass0 columnar matched muscle_mass_lbs = 119.7
[2026-05-09 14:40:28] Pass0 columnar matched muscle_mass_percent = 73.5
[2026-05-09 14:40:28] Pass0 columnar matched lean_body_mass_lbs = 128.3
[2026-05-09 14:40:28] Pass0 columnar matched visceral_fat = 5
[2026-05-09 14:40:28] Found 5 metrics in total
[2026-05-09 14:40:28] Extracted data: {"date":"2026-05-09","weight":null,"body_fat_percent":21.3,"lean_body_mass_lbs":128.3,"muscle_mass_lbs":119.7,"bmi":null,"water_percent":null,"muscle_mass_percent":73.5,"bone_mass_percent":null,"bmr":null,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-05-09 14:40:28] Final data for insertion: {"date":"2026-05-09","weight":null,"body_fat_percent":21.3,"lean_body_mass_lbs":128.3,"muscle_mass_lbs":119.7,"bmi":null,"water_percent":null,"muscle_mass_percent":73.5,"bone_mass_percent":null,"bmr":null,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-05-09 14:40:28] Inserted record with ID: 240
[2026-05-09 14:40:28] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-09","weight":null,"body_fat_percent":21.3,"lean_body_mass_lbs":128.3,"muscle_mass_lbs":119.7,"bmi":null,"water_percent":null,"muscle_mass_percent":73.5,"bone_mass_percent":null,"bmr":null,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null},"record_id":"240"}
[2026-05-09 14:41:09] Health image upload received
[2026-05-09 14:41:09] User ID: 1
[2026-05-09 14:41:09] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ff4785a56c36.47102607.jpg
[2026-05-09 14:41:09] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ff4785a56c36.47102607.jpg
[2026-05-09 14:41:09] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ff4785a56c36.47102607.jpg
[2026-05-09 14:41:09] Using OCR.space API
[2026-05-09 14:41:09] Using API key: K8465...
[2026-05-09 14:41:11] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-09 14:41:11] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"Body Fat\nMuscle Mass\nMuscle Mass%\nLean Body Mass\nVisceral Fat\n21.0%\n119.5lb\n73.6%\n128.1lb\n5","ErrorMessage":"","ErrorDetails":""}],"OCRExitCode":1,"IsErroredOnProcessing":false,"ProcessingTimeInMilliseconds":"937","SearchablePDFURL":"Searchable PDF not generated as it was not requested."}...
[2026-05-09 14:41:11] OCR.space API extracted text: Body Fat
Muscle Mass
Muscle Mass%
Lean Body Mass
Visceral Fat
21.0%
119.5lb
73.6%
128.1lb
5...
[2026-05-09 14:41:11] Extracting health metrics from text
[2026-05-09 14:41:11] Full OCR text for parsing:
Body Fat
Muscle Mass
Muscle Mass%
Lean Body Mass
Visceral Fat
21.0%
119.5lb
73.6%
128.1lb
5
[2026-05-09 14:41:11] Detected generic label/value column layout
[2026-05-09 14:41:11] Pass0 columnar matched body_fat_percent = 21
[2026-05-09 14:41:11] Pass0 columnar matched muscle_mass_lbs = 119.5
[2026-05-09 14:41:11] Pass0 columnar matched muscle_mass_percent = 73.6
[2026-05-09 14:41:11] Pass0 columnar matched lean_body_mass_lbs = 128.1
[2026-05-09 14:41:11] Pass0 columnar matched visceral_fat = 5
[2026-05-09 14:41:11] Found 5 metrics in total
[2026-05-09 14:41:11] Extracted data: {"date":"2026-05-09","weight":null,"body_fat_percent":21,"lean_body_mass_lbs":128.1,"muscle_mass_lbs":119.5,"bmi":null,"water_percent":null,"muscle_mass_percent":73.6,"bone_mass_percent":null,"bmr":null,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-05-09 14:41:11] Final data for insertion: {"date":"2026-05-09","weight":null,"body_fat_percent":21,"lean_body_mass_lbs":128.1,"muscle_mass_lbs":119.5,"bmi":null,"water_percent":null,"muscle_mass_percent":73.6,"bone_mass_percent":null,"bmr":null,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-05-09 14:41:11] Inserted record with ID: 241
[2026-05-09 14:41:11] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-09","weight":null,"body_fat_percent":21,"lean_body_mass_lbs":128.1,"muscle_mass_lbs":119.5,"bmi":null,"water_percent":null,"muscle_mass_percent":73.6,"bone_mass_percent":null,"bmr":null,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null},"record_id":"241"}
[2026-05-10 02:32:24] Health image upload received
[2026-05-10 02:32:24] User ID: 1
[2026-05-10 02:32:24] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ffee38c69882.66269624.jpg
[2026-05-10 02:32:24] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ffee38c69882.66269624.jpg
[2026-05-10 02:32:24] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_69ffee38c69882.66269624.jpg
[2026-05-10 02:32:24] Using OCR.space API
[2026-05-10 02:32:24] Using API key: K8465...
[2026-05-10 02:32:26] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-10 02:32:26] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-05-10 02:32:26] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-05-10 02:32:26] Extracting health metrics from text
[2026-05-10 02:32:26] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-05-10 02:32:26] Detected generic label/value column layout
[2026-05-10 02:32:26] Pass0 columnar matched weight = 167.5
[2026-05-10 02:32:26] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-10 02:32:26] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-10 02:32:26] Pass0 columnar matched bmr = 1510
[2026-05-10 02:32:26] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-10 02:32:26] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-10 02:32:26] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-05-10 02:32:26] Pass1 matched visceral_fat = 11
[2026-05-10 02:32:26] Pass1 matched bmi = 26.9
[2026-05-10 02:32:26] Pass1 matched bone_mass_percent = 3.9
[2026-05-10 02:32:26] Pass1 matched water_percent = 55.3
[2026-05-10 02:32:26] Found 11 metrics in total
[2026-05-10 02:32:26] Extracted data: {"date":"2026-05-10","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-10 02:32:26] Final data for insertion: {"date":"2026-05-10","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-10 02:32:26] Inserted record with ID: 242
[2026-05-10 02:32:26] Weight also stored in weights table
[2026-05-10 02:32:26] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-10","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"242"}
[2026-05-10 09:44:37] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-10 09:44:37] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-10 09:44:37] Using OCR.space API
[2026-05-10 09:44:37] Using API key: K8465...
[2026-05-10 09:44:39] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-10 09:44:39] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-05-10 09:44:39] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-05-10 09:44:39] Extracting health metrics from text
[2026-05-10 09:44:39] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-05-10 09:44:39] Detected generic label/value column layout
[2026-05-10 09:44:39] Pass0 columnar matched weight = 167.5
[2026-05-10 09:44:39] Pass0 columnar matched bmi = 26.9
[2026-05-10 09:44:39] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-10 09:44:39] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-05-10 09:44:39] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-10 09:44:39] Pass0 columnar matched bone_mass_percent = 3.9
[2026-05-10 09:44:39] Pass0 columnar matched bmr = 1510
[2026-05-10 09:44:39] Pass0 columnar matched water_percent = 55.3
[2026-05-10 09:44:39] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-10 09:44:39] Pass0 columnar matched lean_body_mass_lbs = 135.1
[2026-05-10 09:44:39] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-10 09:44:39] Pass0 columnar matched visceral_fat = 11
[2026-05-10 09:44:39] Found 12 metrics in total
[2026-05-10 11:55:53] Health image upload received
[2026-05-10 11:55:53] User ID: 1
[2026-05-10 11:55:53] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0072499a7f38.34634296.jpg
[2026-05-10 11:55:53] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0072499a7f38.34634296.jpg
[2026-05-10 11:55:53] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0072499a7f38.34634296.jpg
[2026-05-10 11:55:53] Using OCR.space API
[2026-05-10 11:55:53] Using API key: K8465...
[2026-05-10 11:55:55] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-10 11:55:55] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"Body Fat\nMuscle Mass\nMuscle Mass%\nLean Body Mass\nVisceral Fat\n21.0%\n119.7lb\n73.7%\n128.3lb\n5","ErrorMessage":"","ErrorDetails":""}],"OCRExitCode":1,"IsErroredOnProcessing":false,"ProcessingTimeInMilliseconds":"640","SearchablePDFURL":"Searchable PDF not generated as it was not requested."}...
[2026-05-10 11:55:55] OCR.space API extracted text: Body Fat
Muscle Mass
Muscle Mass%
Lean Body Mass
Visceral Fat
21.0%
119.7lb
73.7%
128.3lb
5...
[2026-05-10 11:55:55] Extracting health metrics from text
[2026-05-10 11:55:55] Full OCR text for parsing:
Body Fat
Muscle Mass
Muscle Mass%
Lean Body Mass
Visceral Fat
21.0%
119.7lb
73.7%
128.3lb
5
[2026-05-10 11:55:55] Detected generic label/value column layout
[2026-05-10 11:55:55] Pass0 columnar matched body_fat_percent = 21
[2026-05-10 11:55:55] Pass0 columnar matched muscle_mass_lbs = 119.7
[2026-05-10 11:55:55] Pass0 columnar matched muscle_mass_percent = 73.7
[2026-05-10 11:55:55] Pass0 columnar matched lean_body_mass_lbs = 128.3
[2026-05-10 11:55:55] Pass0 columnar matched visceral_fat = 5
[2026-05-10 11:55:55] Found 5 metrics in total
[2026-05-10 11:55:55] Extracted data: {"date":"2026-05-10","weight":null,"body_fat_percent":21,"lean_body_mass_lbs":128.3,"muscle_mass_lbs":119.7,"bmi":null,"water_percent":null,"muscle_mass_percent":73.7,"bone_mass_percent":null,"bmr":null,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-05-10 11:55:55] Final data for insertion: {"date":"2026-05-10","weight":null,"body_fat_percent":21,"lean_body_mass_lbs":128.3,"muscle_mass_lbs":119.7,"bmi":null,"water_percent":null,"muscle_mass_percent":73.7,"bone_mass_percent":null,"bmr":null,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-05-10 11:55:55] Inserted record with ID: 243
[2026-05-10 11:55:55] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-10","weight":null,"body_fat_percent":21,"lean_body_mass_lbs":128.3,"muscle_mass_lbs":119.7,"bmi":null,"water_percent":null,"muscle_mass_percent":73.7,"bone_mass_percent":null,"bmr":null,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null},"record_id":"243"}
[2026-05-11 12:13:44] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-11 12:13:44] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-11 12:13:44] Using OCR.space API
[2026-05-11 12:13:44] Using API key: K8465...
[2026-05-11 12:13:46] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-11 12:13:46] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-05-11 12:13:46] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-05-11 12:13:46] Extracting health metrics from text
[2026-05-11 12:13:46] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-05-11 12:13:46] Detected generic label/value column layout
[2026-05-11 12:13:46] Pass0 columnar matched weight = 167.5
[2026-05-11 12:13:46] Pass0 columnar matched bmi = 26.9
[2026-05-11 12:13:46] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-11 12:13:46] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-05-11 12:13:46] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-11 12:13:46] Pass0 columnar matched bone_mass_percent = 3.9
[2026-05-11 12:13:46] Pass0 columnar matched bmr = 1510
[2026-05-11 12:13:46] Pass0 columnar matched water_percent = 55.3
[2026-05-11 12:13:46] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-11 12:13:46] Pass0 columnar matched lean_body_mass_lbs = 135.1
[2026-05-11 12:13:46] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-11 12:13:46] Pass0 columnar matched visceral_fat = 11
[2026-05-11 12:13:46] Found 12 metrics in total
[2026-05-12 19:39:35] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-12 19:39:35] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-12 19:39:35] Using OCR.space API
[2026-05-12 19:39:35] Using API key: K8465...
[2026-05-12 19:39:36] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-12 19:39:36] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-05-12 19:39:36] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-05-12 19:39:36] Extracting health metrics from text
[2026-05-12 19:39:36] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-05-12 19:39:36] Detected generic label/value column layout
[2026-05-12 19:39:36] Pass0 columnar matched weight = 167.5
[2026-05-12 19:39:36] Pass0 columnar matched bmi = 26.9
[2026-05-12 19:39:36] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-12 19:39:36] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-05-12 19:39:36] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-12 19:39:36] Pass0 columnar matched bone_mass_percent = 3.9
[2026-05-12 19:39:36] Pass0 columnar matched bmr = 1510
[2026-05-12 19:39:36] Pass0 columnar matched water_percent = 55.3
[2026-05-12 19:39:36] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-12 19:39:36] Pass0 columnar matched lean_body_mass_lbs = 135.1
[2026-05-12 19:39:36] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-12 19:39:36] Pass0 columnar matched visceral_fat = 11
[2026-05-12 19:39:36] Found 12 metrics in total
[2026-05-12 19:51:21] Health image upload received
[2026-05-12 19:51:21] User ID: 1
[2026-05-12 19:51:21] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0384b9a2d178.66250630.jpg
[2026-05-12 19:51:21] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0384b9a2d178.66250630.jpg
[2026-05-12 19:51:21] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0384b9a2d178.66250630.jpg
[2026-05-12 19:51:21] Using OCR.space API
[2026-05-12 19:51:21] Using API key: K8465...
[2026-05-12 19:51:23] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-12 19:51:23] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-05-12 19:51:23] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-05-12 19:51:23] Extracting health metrics from text
[2026-05-12 19:51:23] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-05-12 19:51:23] Detected generic label/value column layout
[2026-05-12 19:51:23] Pass0 columnar matched weight = 167.5
[2026-05-12 19:51:23] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-12 19:51:23] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-12 19:51:23] Pass0 columnar matched bmr = 1510
[2026-05-12 19:51:23] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-12 19:51:23] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-12 19:51:23] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-05-12 19:51:23] Pass1 matched visceral_fat = 11
[2026-05-12 19:51:23] Pass1 matched bmi = 26.9
[2026-05-12 19:51:23] Pass1 matched bone_mass_percent = 3.9
[2026-05-12 19:51:23] Pass1 matched water_percent = 55.3
[2026-05-12 19:51:23] Found 11 metrics in total
[2026-05-12 19:51:23] Extracted data: {"date":"2026-05-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-12 19:51:23] Final data for insertion: {"date":"2026-05-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-12 19:51:23] Inserted record with ID: 244
[2026-05-12 19:51:23] Weight also stored in weights table
[2026-05-12 19:51:23] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"244"}
[2026-05-12 19:54:42] Health image upload received
[2026-05-12 19:54:42] User ID: 1
[2026-05-12 19:54:42] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a038582cdbd80.27624836.jpg
[2026-05-12 19:54:42] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a038582cdbd80.27624836.jpg
[2026-05-12 19:54:42] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a038582cdbd80.27624836.jpg
[2026-05-12 19:54:42] Using OCR.space API
[2026-05-12 19:54:42] Using API key: K8465...
[2026-05-12 19:54:44] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-12 19:54:44] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-05-12 19:54:44] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-05-12 19:54:44] Extracting health metrics from text
[2026-05-12 19:54:44] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-05-12 19:54:44] Detected generic label/value column layout
[2026-05-12 19:54:44] Pass0 columnar matched weight = 167.5
[2026-05-12 19:54:44] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-12 19:54:44] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-12 19:54:44] Pass0 columnar matched bmr = 1510
[2026-05-12 19:54:44] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-12 19:54:44] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-12 19:54:44] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-05-12 19:54:44] Pass1 matched visceral_fat = 11
[2026-05-12 19:54:44] Pass1 matched bmi = 26.9
[2026-05-12 19:54:44] Pass1 matched bone_mass_percent = 3.9
[2026-05-12 19:54:44] Pass1 matched water_percent = 55.3
[2026-05-12 19:54:44] Found 11 metrics in total
[2026-05-12 19:54:44] Extracted data: {"date":"2026-05-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-12 19:54:44] Final data for insertion: {"date":"2026-05-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-12 19:54:44] Inserted record with ID: 245
[2026-05-12 19:54:44] Weight also stored in weights table
[2026-05-12 19:54:44] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"245"}
[2026-05-12 19:57:47] Health image upload received
[2026-05-12 19:57:47] User ID: 1
[2026-05-12 19:57:47] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a03863bbc4e74.76635788.jpg
[2026-05-12 19:57:47] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a03863bbc4e74.76635788.jpg
[2026-05-12 19:57:47] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a03863bbc4e74.76635788.jpg
[2026-05-12 19:57:47] Using OCR.space API
[2026-05-12 19:57:47] Using API key: K8465...
[2026-05-12 19:57:49] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-12 19:57:49] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-05-12 19:57:49] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-05-12 19:57:49] Extracting health metrics from text
[2026-05-12 19:57:49] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-05-12 19:57:49] Detected generic label/value column layout
[2026-05-12 19:57:49] Pass0 columnar matched weight = 167.5
[2026-05-12 19:57:49] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-12 19:57:49] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-12 19:57:49] Pass0 columnar matched bmr = 1510
[2026-05-12 19:57:49] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-12 19:57:49] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-12 19:57:49] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-05-12 19:57:49] Pass1 matched visceral_fat = 11
[2026-05-12 19:57:49] Pass1 matched bmi = 26.9
[2026-05-12 19:57:49] Pass1 matched bone_mass_percent = 3.9
[2026-05-12 19:57:49] Pass1 matched water_percent = 55.3
[2026-05-12 19:57:49] Found 11 metrics in total
[2026-05-12 19:57:49] Extracted data: {"date":"2026-05-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-12 19:57:49] Final data for insertion: {"date":"2026-05-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-12 19:57:49] Inserted record with ID: 246
[2026-05-12 19:57:49] Weight also stored in weights table
[2026-05-12 19:57:49] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"246"}
[2026-05-12 20:00:25] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-12 20:00:25] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-12 20:00:25] Using OCR.space API
[2026-05-12 20:00:25] Using API key: K8465...
[2026-05-12 20:00:26] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-12 20:00:26] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-05-12 20:00:26] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-05-12 20:00:26] Extracting health metrics from text
[2026-05-12 20:00:26] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-05-12 20:00:26] Detected generic label/value column layout
[2026-05-12 20:00:26] Pass0 columnar matched weight = 167.5
[2026-05-12 20:00:26] Pass0 columnar matched bmi = 26.9
[2026-05-12 20:00:26] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-12 20:00:26] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-05-12 20:00:26] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-12 20:00:26] Pass0 columnar matched bone_mass_percent = 3.9
[2026-05-12 20:00:26] Pass0 columnar matched bmr = 1510
[2026-05-12 20:00:26] Pass0 columnar matched water_percent = 55.3
[2026-05-12 20:00:26] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-12 20:00:26] Pass0 columnar matched lean_body_mass_lbs = 135.1
[2026-05-12 20:00:26] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-12 20:00:26] Pass0 columnar matched visceral_fat = 11
[2026-05-12 20:00:26] Found 12 metrics in total
[2026-05-12 20:07:01] Health image upload received
[2026-05-12 20:07:01] User ID: 1
[2026-05-12 20:07:01] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a038865c5ead9.30096660.jpg
[2026-05-12 20:07:01] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a038865c5ead9.30096660.jpg
[2026-05-12 20:07:01] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a038865c5ead9.30096660.jpg
[2026-05-12 20:07:01] Using OCR.space API
[2026-05-12 20:07:01] Using API key: K8465...
[2026-05-12 20:07:03] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-12 20:07:03] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-05-12 20:07:03] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-05-12 20:07:03] Extracting health metrics from text
[2026-05-12 20:07:03] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-05-12 20:07:03] Detected generic label/value column layout
[2026-05-12 20:07:03] Pass0 columnar matched weight = 167.5
[2026-05-12 20:07:03] Pass0 columnar matched bmi = 26.9
[2026-05-12 20:07:03] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-12 20:07:03] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-05-12 20:07:03] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-12 20:07:03] Pass0 columnar matched bone_mass_percent = 3.9
[2026-05-12 20:07:03] Pass0 columnar matched bmr = 1510
[2026-05-12 20:07:03] Pass0 columnar matched water_percent = 55.3
[2026-05-12 20:07:03] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-12 20:07:03] Pass0 columnar matched lean_body_mass_lbs = 135.1
[2026-05-12 20:07:03] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-12 20:07:03] Pass0 columnar matched visceral_fat = 11
[2026-05-12 20:07:03] Found 12 metrics in total
[2026-05-12 20:07:03] Extracted data: {"date":"2026-05-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-12 20:07:03] Final data for insertion: {"date":"2026-05-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-12 20:07:03] Inserted record with ID: 247
[2026-05-12 20:07:03] Weight also stored in weights table
[2026-05-12 20:07:03] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-12","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"247"}
[2026-05-13 16:04:38] Health image upload received
[2026-05-13 16:04:38] User ID: 1
[2026-05-13 16:04:38] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a04a1165dbda3.01434554.jpg
[2026-05-13 16:04:38] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a04a1165dbda3.01434554.jpg
[2026-05-13 16:04:38] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a04a1165dbda3.01434554.jpg
[2026-05-13 16:04:38] Using OCR.space API
[2026-05-13 16:04:38] Using API key: K8465...
[2026-05-13 16:04:40] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-13 16:04:40] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-05-13 16:04:40] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-05-13 16:04:40] Extracting health metrics from text
[2026-05-13 16:04:40] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-05-13 16:04:40] Detected generic label/value column layout
[2026-05-13 16:04:40] Pass0 columnar matched weight = 167.5
[2026-05-13 16:04:40] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-13 16:04:40] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-13 16:04:40] Pass0 columnar matched bmr = 1510
[2026-05-13 16:04:40] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-13 16:04:40] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-13 16:04:40] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-05-13 16:04:40] Pass1 matched visceral_fat = 11
[2026-05-13 16:04:40] Pass1 matched bmi = 26.9
[2026-05-13 16:04:40] Pass1 matched bone_mass_percent = 3.9
[2026-05-13 16:04:40] Pass1 matched water_percent = 55.3
[2026-05-13 16:04:40] Found 11 metrics in total
[2026-05-13 16:04:40] Extracted data: {"date":"2026-05-13","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-13 16:04:40] Final data for insertion: {"date":"2026-05-13","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-13 16:04:40] Inserted record with ID: 248
[2026-05-13 16:04:40] Weight also stored in weights table
[2026-05-13 16:04:40] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-13","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"248"}
[2026-05-14 10:54:17] Health image upload received
[2026-05-14 10:54:17] User ID: 1
[2026-05-14 10:54:17] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a05a9d93071c7.36799203.jpg
[2026-05-14 10:54:17] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a05a9d93071c7.36799203.jpg
[2026-05-14 10:54:17] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a05a9d93071c7.36799203.jpg
[2026-05-14 10:54:17] Using OCR.space API
[2026-05-14 10:54:17] Using API key: K8465...
[2026-05-14 10:54:19] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-14 10:54:19] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-05-14 10:54:19] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-05-14 10:54:19] Extracting health metrics from text
[2026-05-14 10:54:19] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-05-14 10:54:19] Detected generic label/value column layout
[2026-05-14 10:54:19] Pass0 columnar matched weight = 167.5
[2026-05-14 10:54:19] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-14 10:54:19] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-14 10:54:19] Pass0 columnar matched bmr = 1510
[2026-05-14 10:54:19] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-14 10:54:19] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-14 10:54:19] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-05-14 10:54:19] Pass1 matched visceral_fat = 11
[2026-05-14 10:54:19] Pass1 matched bmi = 26.9
[2026-05-14 10:54:19] Pass1 matched bone_mass_percent = 3.9
[2026-05-14 10:54:19] Pass1 matched water_percent = 55.3
[2026-05-14 10:54:19] Found 11 metrics in total
[2026-05-14 10:54:19] Extracted data: {"date":"2026-05-14","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-14 10:54:19] Final data for insertion: {"date":"2026-05-14","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-14 10:54:19] Inserted record with ID: 249
[2026-05-14 10:54:19] Weight also stored in weights table
[2026-05-14 10:54:19] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-14","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"249"}
[2026-05-14 16:43:36] Health image upload received
[2026-05-14 16:43:36] User ID: 1
[2026-05-14 16:43:36] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a05fbb819e753.47353331.jpg
[2026-05-14 16:43:36] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a05fbb819e753.47353331.jpg
[2026-05-14 16:43:36] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a05fbb819e753.47353331.jpg
[2026-05-14 16:43:36] Using OCR.space API
[2026-05-14 16:43:36] Using API key: K8465...
[2026-05-14 16:43:37] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-14 16:43:37] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"Body Fat\nMuscle Mass\nMuscle Mass%\nLean Body Mass\nVisceral Fat\n21.7%\n117.3lb\n72.9%\n126.11b\n5","ErrorMessage":"","ErrorDetails":""}],"OCRExitCode":1,"IsErroredOnProcessing":false,"ProcessingTimeInMilliseconds":"625","SearchablePDFURL":"Searchable PDF not generated as it was not requested."}...
[2026-05-14 16:43:37] OCR.space API extracted text: Body Fat
Muscle Mass
Muscle Mass%
Lean Body Mass
Visceral Fat
21.7%
117.3lb
72.9%
126.11b
5...
[2026-05-14 16:43:37] Extracting health metrics from text
[2026-05-14 16:43:37] Full OCR text for parsing:
Body Fat
Muscle Mass
Muscle Mass%
Lean Body Mass
Visceral Fat
21.7%
117.3lb
72.9%
126.11b
5
[2026-05-14 16:43:37] Detected generic label/value column layout
[2026-05-14 16:43:37] Pass0 columnar matched body_fat_percent = 21.7
[2026-05-14 16:43:37] Pass0 columnar matched muscle_mass_lbs = 117.3
[2026-05-14 16:43:37] Pass0 columnar matched muscle_mass_percent = 72.9
[2026-05-14 16:43:37] Pass0 columnar matched lean_body_mass_lbs = 126.11
[2026-05-14 16:43:37] Pass0 columnar matched visceral_fat = 5
[2026-05-14 16:43:37] Found 5 metrics in total
[2026-05-14 16:43:37] Extracted data: {"date":"2026-05-14","weight":null,"body_fat_percent":21.7,"lean_body_mass_lbs":126.11,"muscle_mass_lbs":117.3,"bmi":null,"water_percent":null,"muscle_mass_percent":72.9,"bone_mass_percent":null,"bmr":null,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-05-14 16:43:37] Final data for insertion: {"date":"2026-05-14","weight":null,"body_fat_percent":21.7,"lean_body_mass_lbs":126.11,"muscle_mass_lbs":117.3,"bmi":null,"water_percent":null,"muscle_mass_percent":72.9,"bone_mass_percent":null,"bmr":null,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null}
[2026-05-14 16:43:37] Inserted record with ID: 250
[2026-05-14 16:43:37] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-14","weight":null,"body_fat_percent":21.7,"lean_body_mass_lbs":126.11,"muscle_mass_lbs":117.3,"bmi":null,"water_percent":null,"muscle_mass_percent":72.9,"bone_mass_percent":null,"bmr":null,"visceral_fat":5,"body_fat_mass_lbs":null,"bone_mass_lbs":null},"record_id":"250"}
[2026-05-15 03:20:48] Health image upload received
[2026-05-15 03:20:48] Error: Missing or invalid user_id
[2026-05-15 03:20:48] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-05-15 03:33:16] Health image upload received
[2026-05-15 03:33:16] User ID: 1
[2026-05-15 03:33:16] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0693fc003872.00322198.jpg
[2026-05-15 03:33:16] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0693fc003872.00322198.jpg
[2026-05-15 03:33:16] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0693fc003872.00322198.jpg
[2026-05-15 03:33:16] Using OCR.space API
[2026-05-15 03:33:16] Using API key: K8465...
[2026-05-15 03:33:17] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-15 03:33:17] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-05-15 03:33:17] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-05-15 03:33:17] Extracting health metrics from text
[2026-05-15 03:33:17] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-05-15 03:33:17] Detected generic label/value column layout
[2026-05-15 03:33:17] Pass0 columnar matched weight = 167.5
[2026-05-15 03:33:17] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-15 03:33:17] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-15 03:33:17] Pass0 columnar matched bmr = 1510
[2026-05-15 03:33:17] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-15 03:33:17] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-15 03:33:17] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-05-15 03:33:17] Pass1 matched visceral_fat = 11
[2026-05-15 03:33:17] Pass1 matched bmi = 26.9
[2026-05-15 03:33:17] Pass1 matched bone_mass_percent = 3.9
[2026-05-15 03:33:17] Pass1 matched water_percent = 55.3
[2026-05-15 03:33:17] Found 11 metrics in total
[2026-05-15 03:33:17] Extracted data: {"date":"2026-05-15","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-15 03:33:17] Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot.
[2026-05-15 03:33:17] Response: {"success":false,"message":"Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot."}
[2026-05-15 10:07:55] Health image upload received
[2026-05-15 10:07:55] User ID: 1
[2026-05-15 10:07:55] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a06f07be5c6b8.01737442.jpg
[2026-05-15 10:07:55] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a06f07be5c6b8.01737442.jpg
[2026-05-15 10:07:55] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a06f07be5c6b8.01737442.jpg
[2026-05-15 10:07:55] Using OCR.space API
[2026-05-15 10:07:55] Using API key: K8465...
[2026-05-15 10:07:57] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-15 10:07:57] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-05-15 10:07:57] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-05-15 10:07:57] Extracting health metrics from text
[2026-05-15 10:07:57] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-05-15 10:07:57] Detected generic label/value column layout
[2026-05-15 10:07:57] Pass0 columnar matched weight = 167.5
[2026-05-15 10:07:57] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-15 10:07:57] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-15 10:07:57] Pass0 columnar matched bmr = 1510
[2026-05-15 10:07:57] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-15 10:07:57] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-15 10:07:57] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-05-15 10:07:57] Pass1 matched visceral_fat = 11
[2026-05-15 10:07:57] Pass1 matched bmi = 26.9
[2026-05-15 10:07:57] Pass1 matched bone_mass_percent = 3.9
[2026-05-15 10:07:57] Pass1 matched water_percent = 55.3
[2026-05-15 10:07:57] Found 11 metrics in total
[2026-05-15 10:07:57] Extracted data: {"date":"2026-05-15","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-15 10:07:57] Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot.
[2026-05-15 10:07:57] Response: {"success":false,"message":"Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot."}
[2026-05-16 07:09:28] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-16 07:09:28] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-16 07:09:28] Using OCR.space API
[2026-05-16 07:09:28] Using API key: K8465...
[2026-05-16 07:09:29] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-16 07:09:29] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-05-16 07:09:29] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-05-16 07:09:29] Extracting health metrics from text
[2026-05-16 07:09:29] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-05-16 07:09:29] Detected generic label/value column layout
[2026-05-16 07:09:29] Pass0 columnar matched weight = 167.5
[2026-05-16 07:09:29] Pass0 columnar matched bmi = 26.9
[2026-05-16 07:09:29] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-16 07:09:29] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-05-16 07:09:29] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-16 07:09:29] Pass0 columnar matched bone_mass_percent = 3.9
[2026-05-16 07:09:29] Pass0 columnar matched bmr = 1510
[2026-05-16 07:09:29] Pass0 columnar matched water_percent = 55.3
[2026-05-16 07:09:29] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-16 07:09:29] Pass0 columnar matched lean_body_mass_lbs = 135.1
[2026-05-16 07:09:29] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-16 07:09:29] Pass0 columnar matched visceral_fat = 11
[2026-05-16 07:09:29] Found 12 metrics in total
[2026-05-16 10:32:57] Health image upload received
[2026-05-16 10:32:57] User ID: 1
[2026-05-16 10:32:57] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0847d9889753.01296961.jpg
[2026-05-16 10:32:57] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0847d9889753.01296961.jpg
[2026-05-16 10:32:57] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0847d9889753.01296961.jpg
[2026-05-16 10:32:57] Using OCR.space API
[2026-05-16 10:32:57] Using API key: K8465...
[2026-05-16 10:32:59] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-16 10:32:59] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-05-16 10:32:59] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-05-16 10:32:59] Extracting health metrics from text
[2026-05-16 10:32:59] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-05-16 10:32:59] Detected generic label/value column layout
[2026-05-16 10:32:59] Pass0 columnar matched weight = 167.5
[2026-05-16 10:32:59] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-16 10:32:59] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-16 10:32:59] Pass0 columnar matched bmr = 1510
[2026-05-16 10:32:59] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-16 10:32:59] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-16 10:32:59] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-05-16 10:32:59] Pass1 matched visceral_fat = 11
[2026-05-16 10:32:59] Pass1 matched bmi = 26.9
[2026-05-16 10:32:59] Pass1 matched bone_mass_percent = 3.9
[2026-05-16 10:32:59] Pass1 matched water_percent = 55.3
[2026-05-16 10:32:59] Found 11 metrics in total
[2026-05-16 10:32:59] Extracted data: {"date":"2026-05-16","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-16 10:32:59] Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot.
[2026-05-16 10:32:59] Response: {"success":false,"message":"Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot."}
[2026-05-16 17:16:06] Health image upload received
[2026-05-16 17:16:06] Error: Missing or invalid user_id
[2026-05-16 17:16:06] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-05-17 16:35:14] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-17 16:35:14] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-17 16:35:14] Using OCR.space API
[2026-05-17 16:35:14] Using API key: K8465...
[2026-05-17 16:35:16] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-17 16:35:16] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-05-17 16:35:16] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-05-17 16:35:16] Extracting health metrics from text
[2026-05-17 16:35:16] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-05-17 16:35:16] Detected generic label/value column layout
[2026-05-17 16:35:16] Pass0 columnar matched weight = 167.5
[2026-05-17 16:35:16] Pass0 columnar matched bmi = 26.9
[2026-05-17 16:35:16] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-17 16:35:16] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-05-17 16:35:16] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-17 16:35:16] Pass0 columnar matched bone_mass_percent = 3.9
[2026-05-17 16:35:16] Pass0 columnar matched bmr = 1510
[2026-05-17 16:35:16] Pass0 columnar matched water_percent = 55.3
[2026-05-17 16:35:16] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-17 16:35:16] Pass0 columnar matched lean_body_mass_lbs = 135.1
[2026-05-17 16:35:16] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-17 16:35:16] Pass0 columnar matched visceral_fat = 11
[2026-05-17 16:35:16] Found 12 metrics in total
[2026-05-17 19:36:55] Health image upload received
[2026-05-17 19:36:55] User ID: 1
[2026-05-17 19:36:55] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0a18d7d40031.02175291.jpg
[2026-05-17 19:36:55] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0a18d7d40031.02175291.jpg
[2026-05-17 19:36:55] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0a18d7d40031.02175291.jpg
[2026-05-17 19:36:55] Using OCR.space API
[2026-05-17 19:36:55] Using API key: K8465...
[2026-05-17 19:36:57] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-17 19:36:57] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-05-17 19:36:57] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-05-17 19:36:57] Extracting health metrics from text
[2026-05-17 19:36:57] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-05-17 19:36:57] Detected generic label/value column layout
[2026-05-17 19:36:57] Pass0 columnar matched weight = 167.5
[2026-05-17 19:36:57] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-17 19:36:57] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-17 19:36:57] Pass0 columnar matched bmr = 1510
[2026-05-17 19:36:57] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-17 19:36:57] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-17 19:36:57] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-05-17 19:36:57] Pass1 matched visceral_fat = 11
[2026-05-17 19:36:57] Pass1 matched bmi = 26.9
[2026-05-17 19:36:57] Pass1 matched bone_mass_percent = 3.9
[2026-05-17 19:36:57] Pass1 matched water_percent = 55.3
[2026-05-17 19:36:57] Found 11 metrics in total
[2026-05-17 19:36:57] Extracted data: {"date":"2026-05-17","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-17 19:36:57] Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot.
[2026-05-17 19:36:57] Response: {"success":false,"message":"Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot."}
[2026-05-20 14:05:28] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-20 14:05:28] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-20 14:05:28] Using OCR.space API
[2026-05-20 14:05:28] Using API key: K8465...
[2026-05-20 14:05:28] Health image upload received
[2026-05-20 14:05:28] Error: Missing or invalid user_id
[2026-05-20 14:05:28] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-05-20 14:05:29] Health image upload received
[2026-05-20 14:05:29] User ID: 1
[2026-05-20 14:05:29] Error: No image uploaded or upload error
[2026-05-20 14:05:29] Response: {"success":false,"message":"Error: No image uploaded or upload error"}
[2026-05-20 14:05:29] Health image upload received
[2026-05-20 14:05:29] User ID: 1
[2026-05-20 14:05:29] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0dbfa93c9a74.59094874.jpg
[2026-05-20 14:05:29] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0dbfa93c9a74.59094874.jpg
[2026-05-20 14:05:29] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0dbfa93c9a74.59094874.jpg
[2026-05-20 14:05:29] Using OCR.space API
[2026-05-20 14:05:29] Using API key: K8465...
[2026-05-20 14:05:30] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-20 14:05:30] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-05-20 14:05:30] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-05-20 14:05:30] Extracting health metrics from text
[2026-05-20 14:05:30] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-05-20 14:05:30] Detected generic label/value column layout
[2026-05-20 14:05:30] Pass0 columnar matched weight = 167.5
[2026-05-20 14:05:30] Pass0 columnar matched bmi = 26.9
[2026-05-20 14:05:30] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-20 14:05:30] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-05-20 14:05:30] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-20 14:05:30] Pass0 columnar matched bone_mass_percent = 3.9
[2026-05-20 14:05:30] Pass0 columnar matched bmr = 1510
[2026-05-20 14:05:30] Pass0 columnar matched water_percent = 55.3
[2026-05-20 14:05:30] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-20 14:05:30] Pass0 columnar matched lean_body_mass_lbs = 135.1
[2026-05-20 14:05:30] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-20 14:05:30] Pass0 columnar matched visceral_fat = 11
[2026-05-20 14:05:30] Found 12 metrics in total
[2026-05-20 14:05:30] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-20 14:05:30] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-05-20 14:05:30] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-05-20 14:05:30] Extracting health metrics from text
[2026-05-20 14:05:30] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-05-20 14:05:30] Detected generic label/value column layout
[2026-05-20 14:05:30] Pass0 columnar matched weight = 167.5
[2026-05-20 14:05:30] Pass0 columnar matched bmi = 26.9
[2026-05-20 14:05:30] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-20 14:05:30] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-05-20 14:05:30] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-20 14:05:30] Pass0 columnar matched bone_mass_percent = 3.9
[2026-05-20 14:05:30] Pass0 columnar matched bmr = 1510
[2026-05-20 14:05:30] Pass0 columnar matched water_percent = 55.3
[2026-05-20 14:05:30] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-20 14:05:30] Pass0 columnar matched lean_body_mass_lbs = 135.1
[2026-05-20 14:05:30] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-20 14:05:30] Pass0 columnar matched visceral_fat = 11
[2026-05-20 14:05:30] Found 12 metrics in total
[2026-05-20 14:05:30] Extracted data: {"date":"2026-05-20","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-20 14:05:30] Final data for insertion: {"date":"2026-05-20","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-20 14:05:30] Inserted record with ID: 251
[2026-05-20 14:05:30] Weight also stored in weights table
[2026-05-20 14:05:30] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-20","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"251"}
[2026-05-20 14:55:23] Health image upload received
[2026-05-20 14:55:23] User ID: 1
[2026-05-20 14:55:23] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0dcb5ba33ba0.97176066.jpg
[2026-05-20 14:55:23] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0dcb5ba33ba0.97176066.jpg
[2026-05-20 14:55:23] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0dcb5ba33ba0.97176066.jpg
[2026-05-20 14:55:23] Using OCR.space API
[2026-05-20 14:55:23] Using API key: K8465...
[2026-05-20 14:55:25] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-20 14:55:25] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-05-20 14:55:25] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-05-20 14:55:25] Extracting health metrics from text
[2026-05-20 14:55:25] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-05-20 14:55:25] Detected generic label/value column layout
[2026-05-20 14:55:25] Pass0 columnar matched weight = 167.5
[2026-05-20 14:55:25] Pass0 columnar matched bmi = 26.9
[2026-05-20 14:55:25] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-20 14:55:25] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-05-20 14:55:25] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-20 14:55:25] Pass0 columnar matched bone_mass_percent = 3.9
[2026-05-20 14:55:25] Pass0 columnar matched bmr = 1510
[2026-05-20 14:55:25] Pass0 columnar matched water_percent = 55.3
[2026-05-20 14:55:25] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-20 14:55:25] Pass0 columnar matched lean_body_mass_lbs = 135.1
[2026-05-20 14:55:25] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-20 14:55:25] Pass0 columnar matched visceral_fat = 11
[2026-05-20 14:55:25] Found 12 metrics in total
[2026-05-20 14:55:25] Extracted data: {"date":"2026-05-20","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-20 14:55:25] Final data for insertion: {"date":"2026-05-20","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-20 14:55:25] Inserted record with ID: 252
[2026-05-20 14:55:25] Weight also stored in weights table
[2026-05-20 14:55:25] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-20","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"252"}
[2026-05-20 15:54:36] Health image upload received
[2026-05-20 15:54:36] Error: Missing or invalid user_id
[2026-05-20 15:54:36] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-05-20 15:54:36] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-20 15:54:36] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-20 15:54:36] Using OCR.space API
[2026-05-20 15:54:36] Using API key: K8465...
[2026-05-20 15:54:38] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-20 15:54:38] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-05-20 15:54:38] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-05-20 15:54:38] Extracting health metrics from text
[2026-05-20 15:54:38] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-05-20 15:54:38] Detected generic label/value column layout
[2026-05-20 15:54:38] Pass0 columnar matched weight = 167.5
[2026-05-20 15:54:38] Pass0 columnar matched bmi = 26.9
[2026-05-20 15:54:38] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-20 15:54:38] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-05-20 15:54:38] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-20 15:54:38] Pass0 columnar matched bone_mass_percent = 3.9
[2026-05-20 15:54:38] Pass0 columnar matched bmr = 1510
[2026-05-20 15:54:38] Pass0 columnar matched water_percent = 55.3
[2026-05-20 15:54:38] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-20 15:54:38] Pass0 columnar matched lean_body_mass_lbs = 135.1
[2026-05-20 15:54:38] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-20 15:54:38] Pass0 columnar matched visceral_fat = 11
[2026-05-20 15:54:38] Found 12 metrics in total
[2026-05-20 19:21:30] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-20 19:21:30] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-20 19:21:30] Using OCR.space API
[2026-05-20 19:21:30] Using API key: K8465...
[2026-05-20 19:21:32] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-20 19:21:32] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-05-20 19:21:32] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-05-20 19:21:32] Extracting health metrics from text
[2026-05-20 19:21:32] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-05-20 19:21:32] Detected generic label/value column layout
[2026-05-20 19:21:32] Pass0 columnar matched weight = 167.5
[2026-05-20 19:21:32] Pass0 columnar matched bmi = 26.9
[2026-05-20 19:21:32] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-20 19:21:32] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-05-20 19:21:32] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-20 19:21:32] Pass0 columnar matched bone_mass_percent = 3.9
[2026-05-20 19:21:32] Pass0 columnar matched bmr = 1510
[2026-05-20 19:21:32] Pass0 columnar matched water_percent = 55.3
[2026-05-20 19:21:32] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-20 19:21:32] Pass0 columnar matched lean_body_mass_lbs = 135.1
[2026-05-20 19:21:32] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-20 19:21:32] Pass0 columnar matched visceral_fat = 11
[2026-05-20 19:21:32] Found 12 metrics in total
[2026-05-20 19:21:42] Health image upload received
[2026-05-20 19:21:42] User ID: 1
[2026-05-20 19:21:42] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0e09c6358216.69814691.jpg
[2026-05-20 19:21:42] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0e09c6358216.69814691.jpg
[2026-05-20 19:21:42] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0e09c6358216.69814691.jpg
[2026-05-20 19:21:42] Using OCR.space API
[2026-05-20 19:21:42] Using API key: K8465...
[2026-05-20 19:21:43] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-20 19:21:43] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-05-20 19:21:43] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-05-20 19:21:43] Extracting health metrics from text
[2026-05-20 19:21:43] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-05-20 19:21:43] Detected generic label/value column layout
[2026-05-20 19:21:43] Pass0 columnar matched weight = 167.5
[2026-05-20 19:21:43] Pass0 columnar matched bmi = 26.9
[2026-05-20 19:21:43] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-20 19:21:43] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-05-20 19:21:43] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-20 19:21:43] Pass0 columnar matched bone_mass_percent = 3.9
[2026-05-20 19:21:43] Pass0 columnar matched bmr = 1510
[2026-05-20 19:21:43] Pass0 columnar matched water_percent = 55.3
[2026-05-20 19:21:43] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-20 19:21:43] Pass0 columnar matched lean_body_mass_lbs = 135.1
[2026-05-20 19:21:43] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-20 19:21:43] Pass0 columnar matched visceral_fat = 11
[2026-05-20 19:21:43] Found 12 metrics in total
[2026-05-20 19:21:43] Extracted data: {"date":"2026-05-20","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-20 19:21:43] Final data for insertion: {"date":"2026-05-20","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-20 19:21:43] Inserted record with ID: 253
[2026-05-20 19:21:43] Weight also stored in weights table
[2026-05-20 19:21:43] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-20","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"253"}
[2026-05-20 19:21:55] Health image upload received
[2026-05-20 19:21:55] User ID: 1
[2026-05-20 19:21:55] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0e09d375e583.70924871.jpg
[2026-05-20 19:21:55] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0e09d375e583.70924871.jpg
[2026-05-20 19:21:55] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0e09d375e583.70924871.jpg
[2026-05-20 19:21:55] Using OCR.space API
[2026-05-20 19:21:55] Using API key: K8465...
[2026-05-20 19:21:57] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-20 19:21:57] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-05-20 19:21:57] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-05-20 19:21:57] Extracting health metrics from text
[2026-05-20 19:21:57] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-05-20 19:21:57] Detected generic label/value column layout
[2026-05-20 19:21:57] Pass0 columnar matched weight = 167.5
[2026-05-20 19:21:57] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-20 19:21:57] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-20 19:21:57] Pass0 columnar matched bmr = 1510
[2026-05-20 19:21:57] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-20 19:21:57] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-20 19:21:57] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-05-20 19:21:57] Pass1 matched visceral_fat = 11
[2026-05-20 19:21:57] Pass1 matched bmi = 26.9
[2026-05-20 19:21:57] Pass1 matched bone_mass_percent = 3.9
[2026-05-20 19:21:57] Pass1 matched water_percent = 55.3
[2026-05-20 19:21:57] Found 11 metrics in total
[2026-05-20 19:21:57] Extracted data: {"date":"2026-05-20","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-20 19:21:57] Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot.
[2026-05-20 19:21:57] Response: {"success":false,"message":"Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot."}
[2026-05-20 19:23:19] Health image upload received
[2026-05-20 19:23:19] Error: Missing or invalid user_id
[2026-05-20 19:23:19] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-05-20 19:23:50] Health image upload received
[2026-05-20 19:23:50] Error: Missing or invalid user_id
[2026-05-20 19:23:50] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-05-20 21:53:11] Health image upload received
[2026-05-20 21:53:11] Error: Missing or invalid user_id
[2026-05-20 21:53:11] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-05-20 21:53:11] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-20 21:53:11] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-20 21:53:11] Using OCR.space API
[2026-05-20 21:53:11] Using API key: K8465...
[2026-05-20 21:53:12] Health image upload received
[2026-05-20 21:53:12] Health image upload received
[2026-05-20 21:53:12] User ID: 1
[2026-05-20 21:53:12] User ID: 1
[2026-05-20 21:53:12] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0e2d48112106.96696082.jpg
[2026-05-20 21:53:12] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0e2d48112106.96696082.jpg
[2026-05-20 21:53:12] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0e2d48112106.96696082.jpg
[2026-05-20 21:53:12] Using OCR.space API
[2026-05-20 21:53:12] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0e2d481122a0.76876878.jpg
[2026-05-20 21:53:12] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0e2d481122a0.76876878.jpg
[2026-05-20 21:53:12] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0e2d481122a0.76876878.jpg
[2026-05-20 21:53:12] Using OCR.space API
[2026-05-20 21:53:12] Using API key: K8465...
[2026-05-20 21:53:12] Using API key: K8465...
[2026-05-20 21:53:13] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-20 21:53:13] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-05-20 21:53:13] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-05-20 21:53:13] Extracting health metrics from text
[2026-05-20 21:53:13] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-05-20 21:53:13] Detected generic label/value column layout
[2026-05-20 21:53:13] Pass0 columnar matched weight = 167.5
[2026-05-20 21:53:13] Pass0 columnar matched bmi = 26.9
[2026-05-20 21:53:13] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-20 21:53:13] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-05-20 21:53:13] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-20 21:53:13] Pass0 columnar matched bone_mass_percent = 3.9
[2026-05-20 21:53:13] Pass0 columnar matched bmr = 1510
[2026-05-20 21:53:13] Pass0 columnar matched water_percent = 55.3
[2026-05-20 21:53:13] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-20 21:53:13] Pass0 columnar matched lean_body_mass_lbs = 135.1
[2026-05-20 21:53:13] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-20 21:53:13] Pass0 columnar matched visceral_fat = 11
[2026-05-20 21:53:13] Found 12 metrics in total
[2026-05-20 21:53:13] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-20 21:53:13] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-05-20 21:53:13] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-05-20 21:53:13] Extracting health metrics from text
[2026-05-20 21:53:13] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-05-20 21:53:13] Detected generic label/value column layout
[2026-05-20 21:53:13] Pass0 columnar matched weight = 167.5
[2026-05-20 21:53:13] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-20 21:53:13] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-20 21:53:13] Pass0 columnar matched bmr = 1510
[2026-05-20 21:53:13] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-20 21:53:13] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-20 21:53:13] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-05-20 21:53:13] Pass1 matched visceral_fat = 11
[2026-05-20 21:53:13] Pass1 matched bmi = 26.9
[2026-05-20 21:53:13] Pass1 matched bone_mass_percent = 3.9
[2026-05-20 21:53:13] Pass1 matched water_percent = 55.3
[2026-05-20 21:53:13] Found 11 metrics in total
[2026-05-20 21:53:13] Extracted data: {"date":"2026-05-20","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-20 21:53:13] Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot.
[2026-05-20 21:53:13] Response: {"success":false,"message":"Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot."}
[2026-05-20 21:53:13] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-20 21:53:13] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-05-20 21:53:13] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-05-20 21:53:13] Extracting health metrics from text
[2026-05-20 21:53:13] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-05-20 21:53:13] Detected generic label/value column layout
[2026-05-20 21:53:13] Pass0 columnar matched weight = 167.5
[2026-05-20 21:53:13] Pass0 columnar matched bmi = 26.9
[2026-05-20 21:53:13] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-20 21:53:13] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-05-20 21:53:13] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-20 21:53:13] Pass0 columnar matched bone_mass_percent = 3.9
[2026-05-20 21:53:13] Pass0 columnar matched bmr = 1510
[2026-05-20 21:53:13] Pass0 columnar matched water_percent = 55.3
[2026-05-20 21:53:13] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-20 21:53:13] Pass0 columnar matched lean_body_mass_lbs = 135.1
[2026-05-20 21:53:13] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-20 21:53:13] Pass0 columnar matched visceral_fat = 11
[2026-05-20 21:53:13] Found 12 metrics in total
[2026-05-20 21:53:13] Extracted data: {"date":"2026-05-20","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-20 21:53:13] Final data for insertion: {"date":"2026-05-20","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-20 21:53:13] Inserted record with ID: 254
[2026-05-20 21:53:13] Weight also stored in weights table
[2026-05-20 21:53:13] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-20","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"254"}
[2026-05-20 22:20:57] Health image upload received
[2026-05-20 22:20:57] Error: Missing or invalid user_id
[2026-05-20 22:20:57] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-05-20 22:20:57] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-20 22:20:57] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-20 22:20:57] Using OCR.space API
[2026-05-20 22:20:57] Using API key: K8465...
[2026-05-20 22:20:57] Health image upload received
[2026-05-20 22:20:57] User ID: 1
[2026-05-20 22:20:57] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0e33c96fad31.10958901.jpg
[2026-05-20 22:20:57] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0e33c96fad31.10958901.jpg
[2026-05-20 22:20:57] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0e33c96fad31.10958901.jpg
[2026-05-20 22:20:57] Using OCR.space API
[2026-05-20 22:20:57] Using API key: K8465...
[2026-05-20 22:20:57] Health image upload received
[2026-05-20 22:20:57] User ID: 1
[2026-05-20 22:20:57] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0e33c9982807.85874501.jpg
[2026-05-20 22:20:57] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0e33c9982807.85874501.jpg
[2026-05-20 22:20:57] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0e33c9982807.85874501.jpg
[2026-05-20 22:20:57] Using OCR.space API
[2026-05-20 22:20:57] Using API key: K8465...
[2026-05-20 22:20:59] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-20 22:20:59] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-05-20 22:20:59] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-05-20 22:20:59] Extracting health metrics from text
[2026-05-20 22:20:59] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-05-20 22:20:59] Detected generic label/value column layout
[2026-05-20 22:20:59] Pass0 columnar matched weight = 167.5
[2026-05-20 22:20:59] Pass0 columnar matched bmi = 26.9
[2026-05-20 22:20:59] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-20 22:20:59] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-05-20 22:20:59] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-20 22:20:59] Pass0 columnar matched bone_mass_percent = 3.9
[2026-05-20 22:20:59] Pass0 columnar matched bmr = 1510
[2026-05-20 22:20:59] Pass0 columnar matched water_percent = 55.3
[2026-05-20 22:20:59] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-20 22:20:59] Pass0 columnar matched lean_body_mass_lbs = 135.1
[2026-05-20 22:20:59] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-20 22:20:59] Pass0 columnar matched visceral_fat = 11
[2026-05-20 22:20:59] Found 12 metrics in total
[2026-05-20 22:20:59] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-20 22:20:59] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-05-20 22:20:59] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-05-20 22:20:59] Extracting health metrics from text
[2026-05-20 22:20:59] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-05-20 22:20:59] Detected generic label/value column layout
[2026-05-20 22:20:59] Pass0 columnar matched weight = 167.5
[2026-05-20 22:20:59] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-20 22:20:59] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-20 22:20:59] Pass0 columnar matched bmr = 1510
[2026-05-20 22:20:59] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-20 22:20:59] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-20 22:20:59] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-05-20 22:20:59] Pass1 matched visceral_fat = 11
[2026-05-20 22:20:59] Pass1 matched bmi = 26.9
[2026-05-20 22:20:59] Pass1 matched bone_mass_percent = 3.9
[2026-05-20 22:20:59] Pass1 matched water_percent = 55.3
[2026-05-20 22:20:59] Found 11 metrics in total
[2026-05-20 22:20:59] Extracted data: {"date":"2026-05-20","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-20 22:20:59] Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot.
[2026-05-20 22:20:59] Response: {"success":false,"message":"Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot."}
[2026-05-20 22:20:59] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-20 22:20:59] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-05-20 22:20:59] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-05-20 22:20:59] Extracting health metrics from text
[2026-05-20 22:20:59] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-05-20 22:20:59] Detected generic label/value column layout
[2026-05-20 22:20:59] Pass0 columnar matched weight = 167.5
[2026-05-20 22:20:59] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-20 22:20:59] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-20 22:20:59] Pass0 columnar matched bmr = 1510
[2026-05-20 22:20:59] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-20 22:20:59] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-20 22:20:59] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-05-20 22:20:59] Pass1 matched visceral_fat = 11
[2026-05-20 22:20:59] Pass1 matched bmi = 26.9
[2026-05-20 22:20:59] Pass1 matched bone_mass_percent = 3.9
[2026-05-20 22:20:59] Pass1 matched water_percent = 55.3
[2026-05-20 22:20:59] Found 11 metrics in total
[2026-05-20 22:20:59] Extracted data: {"date":"2026-05-20","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-20 22:20:59] Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot.
[2026-05-20 22:20:59] Response: {"success":false,"message":"Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot."}
[2026-05-20 23:26:21] Health image upload received
[2026-05-20 23:26:21] Error: Missing or invalid user_id
[2026-05-20 23:26:21] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-05-20 23:26:21] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-20 23:26:21] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-20 23:26:21] Using OCR.space API
[2026-05-20 23:26:21] Using API key: K8465...
[2026-05-20 23:26:21] Health image upload received
[2026-05-20 23:26:21] User ID: 1
[2026-05-20 23:26:21] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0e431d81ca05.75404672.jpg
[2026-05-20 23:26:21] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0e431d81ca05.75404672.jpg
[2026-05-20 23:26:21] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0e431d81ca05.75404672.jpg
[2026-05-20 23:26:21] Using OCR.space API
[2026-05-20 23:26:21] Using API key: K8465...
[2026-05-20 23:26:21] Health image upload received
[2026-05-20 23:26:21] User ID: 1
[2026-05-20 23:26:21] Error: No image uploaded or upload error
[2026-05-20 23:26:21] Response: {"success":false,"message":"Error: No image uploaded or upload error"}
[2026-05-20 23:26:23] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-20 23:26:23] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\n167.5 lbs\nHIGH\nBMI\n26.9\nHIGH\nBODY FAT%\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\n76.7 %\nEXCELLENT\nBONE MASS%\n3.9%\nLOW\nBMR\n1510 kcal\nLOW\nWATER\n55.3 %\nSTANDARD\nAN BODY MASS\n5.1 lbs\nANDARD\nBODY FAT MASS\n32.4 lbs\nSTANDARD\nSCERAL FAT\nBONE MASS\...
[2026-05-20 23:26:23] OCR.space API extracted text: HEALTH METRICS
WEIGHT
167.5 lbs
HIGH
BMI
26.9
HIGH
BODY FAT%
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
E...
[2026-05-20 23:26:23] Extracting health metrics from text
[2026-05-20 23:26:23] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
167.5 lbs
HIGH
BMI
26.9
HIGH
BODY FAT%
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
76.7 %
EXCELLENT
BONE MASS%
3.9%
LOW
BMR
1510 kcal
LOW
WATER
55.3 %
STANDARD
AN BODY MASS
5.1 lbs
ANDARD
BODY FAT MASS
32.4 lbs
STANDARD
SCERAL FAT
BONE MASS
6.6 Ibs
LOW
GH
LE
VI
HI
[2026-05-20 23:26:23] Detected generic label/value column layout
[2026-05-20 23:26:23] Pass0 columnar matched weight = 167.5
[2026-05-20 23:26:23] Pass0 columnar matched bmi = 26.9
[2026-05-20 23:26:23] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-20 23:26:23] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-05-20 23:26:23] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-20 23:26:23] Pass0 columnar matched bone_mass_percent = 3.9
[2026-05-20 23:26:23] Pass0 columnar matched bmr = 1510
[2026-05-20 23:26:23] Pass0 columnar matched water_percent = 55.3
[2026-05-20 23:26:23] Pass0 columnar matched body_fat_mass_lbs = 5.1
[2026-05-20 23:26:23] Found 9 metrics in total
[2026-05-20 23:26:23] Extracted data: {"date":"2026-05-20","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":null,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":null,"body_fat_mass_lbs":5.1,"bone_mass_lbs":null}
[2026-05-20 23:26:23] Final data for insertion: {"date":"2026-05-20","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":null,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":null,"body_fat_mass_lbs":5.1,"bone_mass_lbs":null}
[2026-05-20 23:26:23] Inserted record with ID: 255
[2026-05-20 23:26:23] Weight also stored in weights table
[2026-05-20 23:26:23] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-20","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":null,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":null,"body_fat_mass_lbs":5.1,"bone_mass_lbs":null},"record_id":"255"}
[2026-05-20 23:26:23] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-20 23:26:23] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\n167.5 lbs\nHIGH\nBMI\n26.9\nHIGH\nBODY FAT%\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\n76.7 %\nEXCELLENT\nBONE MASS%\n3.9%\nLOW\nBMR\n1510 kcal\nLOW\nWATER\n55.3 %\nSTANDARD\nAN BODY MASS\n5.1 lbs\nANDARD\nBODY FAT MASS\n32.4 lbs\nSTANDARD\nSCERAL FAT\nBONE MASS\...
[2026-05-20 23:26:23] OCR.space API extracted text: HEALTH METRICS
WEIGHT
167.5 lbs
HIGH
BMI
26.9
HIGH
BODY FAT%
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
E...
[2026-05-20 23:26:23] Extracting health metrics from text
[2026-05-20 23:26:23] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
167.5 lbs
HIGH
BMI
26.9
HIGH
BODY FAT%
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
76.7 %
EXCELLENT
BONE MASS%
3.9%
LOW
BMR
1510 kcal
LOW
WATER
55.3 %
STANDARD
AN BODY MASS
5.1 lbs
ANDARD
BODY FAT MASS
32.4 lbs
STANDARD
SCERAL FAT
BONE MASS
6.6 Ibs
LOW
GH
LE
VI
HI
[2026-05-20 23:26:23] Detected generic label/value column layout
[2026-05-20 23:26:23] Pass0 columnar matched weight = 167.5
[2026-05-20 23:26:23] Pass0 columnar matched bmi = 26.9
[2026-05-20 23:26:23] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-20 23:26:23] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-05-20 23:26:23] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-20 23:26:23] Pass0 columnar matched bone_mass_percent = 3.9
[2026-05-20 23:26:23] Pass0 columnar matched bmr = 1510
[2026-05-20 23:26:23] Pass0 columnar matched water_percent = 55.3
[2026-05-20 23:26:23] Pass0 columnar matched body_fat_mass_lbs = 5.1
[2026-05-20 23:26:23] Found 9 metrics in total
[2026-05-21 11:18:17] Health image upload received
[2026-05-21 11:18:17] Error: Missing or invalid user_id
[2026-05-21 11:18:17] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-05-21 19:24:18] Health image upload received
[2026-05-21 19:24:18] Error: Missing or invalid user_id
[2026-05-21 19:24:18] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-05-22 06:49:32] Health image upload received
[2026-05-22 06:49:32] User ID: 1
[2026-05-22 06:49:32] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0ffc7c7aae11.69689462.jpg
[2026-05-22 06:49:32] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0ffc7c7aae11.69689462.jpg
[2026-05-22 06:49:32] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0ffc7c7aae11.69689462.jpg
[2026-05-22 06:49:32] Using OCR.space API
[2026-05-22 06:49:32] Using API key: K8465...
[2026-05-22 06:49:34] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-22 06:49:34] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\n167.5 lbs\nHIGH\nBMI\n26.9\nHIGH\nBODY FAT%\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\n76.7 %\nEXCELLENT\nBONE MASS%\n3.9%\nLOW\nBMR\n1510 kcal\nLOW\nWATER\n55.3 %\nSTANDARD\nAN BODY MASS\n5.1 lbs\nANDARD\nBODY FAT MASS\n32.4 lbs\nSTANDARD\nSCERAL FAT\nBONE MASS\...
[2026-05-22 06:49:34] OCR.space API extracted text: HEALTH METRICS
WEIGHT
167.5 lbs
HIGH
BMI
26.9
HIGH
BODY FAT%
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
E...
[2026-05-22 06:49:34] Extracting health metrics from text
[2026-05-22 06:49:34] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
167.5 lbs
HIGH
BMI
26.9
HIGH
BODY FAT%
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
76.7 %
EXCELLENT
BONE MASS%
3.9%
LOW
BMR
1510 kcal
LOW
WATER
55.3 %
STANDARD
AN BODY MASS
5.1 lbs
ANDARD
BODY FAT MASS
32.4 lbs
STANDARD
SCERAL FAT
BONE MASS
6.6 Ibs
LOW
GH
LE
VI
HI
[2026-05-22 06:49:34] Detected generic label/value column layout
[2026-05-22 06:49:34] Pass0 columnar matched weight = 167.5
[2026-05-22 06:49:34] Pass0 columnar matched bmi = 26.9
[2026-05-22 06:49:34] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-22 06:49:34] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-05-22 06:49:34] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-22 06:49:34] Pass0 columnar matched bone_mass_percent = 3.9
[2026-05-22 06:49:34] Pass0 columnar matched bmr = 1510
[2026-05-22 06:49:34] Pass0 columnar matched water_percent = 55.3
[2026-05-22 06:49:34] Pass0 columnar matched body_fat_mass_lbs = 5.1
[2026-05-22 06:49:34] Found 9 metrics in total
[2026-05-22 06:49:34] Extracted data: {"date":"2026-05-22","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":null,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":null,"body_fat_mass_lbs":5.1,"bone_mass_lbs":null}
[2026-05-22 06:49:34] Final data for insertion: {"date":"2026-05-22","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":null,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":null,"body_fat_mass_lbs":5.1,"bone_mass_lbs":null}
[2026-05-22 06:49:34] Inserted record with ID: 256
[2026-05-22 06:49:34] Weight also stored in weights table
[2026-05-22 06:49:34] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-22","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":null,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":null,"body_fat_mass_lbs":5.1,"bone_mass_lbs":null},"record_id":"256"}
[2026-05-22 06:50:42] Health image upload received
[2026-05-22 06:50:42] User ID: 1
[2026-05-22 06:50:42] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0ffcc2344048.48292383.jpg
[2026-05-22 06:50:42] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0ffcc2344048.48292383.jpg
[2026-05-22 06:50:42] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a0ffcc2344048.48292383.jpg
[2026-05-22 06:50:42] Using OCR.space API
[2026-05-22 06:50:42] Using API key: K8465...
[2026-05-22 06:50:44] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-22 06:50:44] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-05-22 06:50:44] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-05-22 06:50:44] Extracting health metrics from text
[2026-05-22 06:50:44] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-05-22 06:50:44] Detected generic label/value column layout
[2026-05-22 06:50:44] Pass0 columnar matched weight = 167.5
[2026-05-22 06:50:44] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-22 06:50:44] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-22 06:50:44] Pass0 columnar matched bmr = 1510
[2026-05-22 06:50:44] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-22 06:50:44] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-22 06:50:44] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-05-22 06:50:44] Pass1 matched visceral_fat = 11
[2026-05-22 06:50:44] Pass1 matched bmi = 26.9
[2026-05-22 06:50:44] Pass1 matched bone_mass_percent = 3.9
[2026-05-22 06:50:44] Pass1 matched water_percent = 55.3
[2026-05-22 06:50:44] Found 11 metrics in total
[2026-05-22 06:50:44] Extracted data: {"date":"2026-05-22","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-22 06:50:44] Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot.
[2026-05-22 06:50:44] Response: {"success":false,"message":"Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot."}
[2026-05-22 06:55:20] Health image upload received
[2026-05-22 06:55:20] Error: Missing or invalid user_id
[2026-05-22 06:55:20] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-05-22 07:48:42] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-22 07:48:42] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-22 07:48:42] Using OCR.space API
[2026-05-22 07:48:42] Using API key: K8465...
[2026-05-22 07:48:44] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-22 07:48:44] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-05-22 07:48:44] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-05-22 07:48:44] Extracting health metrics from text
[2026-05-22 07:48:44] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-05-22 07:48:44] Detected generic label/value column layout
[2026-05-22 07:48:44] Pass0 columnar matched weight = 167.5
[2026-05-22 07:48:44] Pass0 columnar matched bmi = 26.9
[2026-05-22 07:48:44] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-22 07:48:44] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-05-22 07:48:44] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-22 07:48:44] Pass0 columnar matched bone_mass_percent = 3.9
[2026-05-22 07:48:44] Pass0 columnar matched bmr = 1510
[2026-05-22 07:48:44] Pass0 columnar matched water_percent = 55.3
[2026-05-22 07:48:44] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-22 07:48:44] Pass0 columnar matched lean_body_mass_lbs = 135.1
[2026-05-22 07:48:44] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-22 07:48:44] Pass0 columnar matched visceral_fat = 11
[2026-05-22 07:48:44] Found 12 metrics in total
[2026-05-23 03:58:47] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-23 03:58:47] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-23 03:58:47] Using OCR.space API
[2026-05-23 03:58:47] Using API key: K8465...
[2026-05-23 03:58:49] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-23 03:58:49] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-05-23 03:58:49] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-05-23 03:58:49] Extracting health metrics from text
[2026-05-23 03:58:49] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-05-23 03:58:49] Detected generic label/value column layout
[2026-05-23 03:58:49] Pass0 columnar matched weight = 167.5
[2026-05-23 03:58:49] Pass0 columnar matched bmi = 26.9
[2026-05-23 03:58:49] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-23 03:58:49] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-05-23 03:58:49] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-23 03:58:49] Pass0 columnar matched bone_mass_percent = 3.9
[2026-05-23 03:58:49] Pass0 columnar matched bmr = 1510
[2026-05-23 03:58:49] Pass0 columnar matched water_percent = 55.3
[2026-05-23 03:58:49] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-23 03:58:49] Pass0 columnar matched lean_body_mass_lbs = 135.1
[2026-05-23 03:58:49] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-23 03:58:49] Pass0 columnar matched visceral_fat = 11
[2026-05-23 03:58:49] Found 12 metrics in total
[2026-05-23 05:43:11] Health image upload received
[2026-05-23 05:43:11] User ID: 1
[2026-05-23 05:43:11] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a113e6f25dae3.34700140.jpg
[2026-05-23 05:43:11] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a113e6f25dae3.34700140.jpg
[2026-05-23 05:43:11] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a113e6f25dae3.34700140.jpg
[2026-05-23 05:43:11] Using OCR.space API
[2026-05-23 05:43:11] Using API key: K8465...
[2026-05-23 05:43:12] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-23 05:43:12] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-05-23 05:43:12] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-05-23 05:43:12] Extracting health metrics from text
[2026-05-23 05:43:12] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-05-23 05:43:12] Detected generic label/value column layout
[2026-05-23 05:43:12] Pass0 columnar matched weight = 167.5
[2026-05-23 05:43:12] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-23 05:43:12] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-23 05:43:12] Pass0 columnar matched bmr = 1510
[2026-05-23 05:43:12] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-23 05:43:12] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-23 05:43:12] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-05-23 05:43:12] Pass1 matched visceral_fat = 11
[2026-05-23 05:43:12] Pass1 matched bmi = 26.9
[2026-05-23 05:43:12] Pass1 matched bone_mass_percent = 3.9
[2026-05-23 05:43:12] Pass1 matched water_percent = 55.3
[2026-05-23 05:43:12] Found 11 metrics in total
[2026-05-23 05:43:12] Extracted data: {"date":"2026-05-23","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-23 05:43:12] Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot.
[2026-05-23 05:43:12] Response: {"success":false,"message":"Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot."}
[2026-05-23 07:44:42] Health image upload received
[2026-05-23 07:44:42] Error: Missing or invalid user_id
[2026-05-23 07:44:42] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-05-24 03:03:28] Health image upload received
[2026-05-24 03:03:28] User ID: 1
[2026-05-24 03:03:28] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a126a80f3dee8.00990107.jpg
[2026-05-24 03:03:28] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a126a80f3dee8.00990107.jpg
[2026-05-24 03:03:28] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a126a80f3dee8.00990107.jpg
[2026-05-24 03:03:28] Using OCR.space API
[2026-05-24 03:03:28] Using API key: K8465...
[2026-05-24 03:03:30] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-24 03:03:30] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-05-24 03:03:30] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-05-24 03:03:30] Extracting health metrics from text
[2026-05-24 03:03:30] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-05-24 03:03:30] Detected generic label/value column layout
[2026-05-24 03:03:30] Pass0 columnar matched weight = 167.5
[2026-05-24 03:03:30] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-24 03:03:30] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-24 03:03:30] Pass0 columnar matched bmr = 1510
[2026-05-24 03:03:30] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-24 03:03:30] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-24 03:03:30] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-05-24 03:03:30] Pass1 matched visceral_fat = 11
[2026-05-24 03:03:30] Pass1 matched bmi = 26.9
[2026-05-24 03:03:30] Pass1 matched bone_mass_percent = 3.9
[2026-05-24 03:03:30] Pass1 matched water_percent = 55.3
[2026-05-24 03:03:30] Found 11 metrics in total
[2026-05-24 03:03:30] Extracted data: {"date":"2026-05-24","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-24 03:03:30] Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot.
[2026-05-24 03:03:30] Response: {"success":false,"message":"Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot."}
[2026-05-25 12:34:01] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-25 12:34:01] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-25 12:34:01] Using OCR.space API
[2026-05-25 12:34:01] Using API key: K8465...
[2026-05-25 12:34:03] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-25 12:34:03] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-05-25 12:34:03] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-05-25 12:34:03] Extracting health metrics from text
[2026-05-25 12:34:03] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-05-25 12:34:03] Detected generic label/value column layout
[2026-05-25 12:34:03] Pass0 columnar matched weight = 167.5
[2026-05-25 12:34:03] Pass0 columnar matched bmi = 26.9
[2026-05-25 12:34:03] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-25 12:34:03] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-05-25 12:34:03] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-25 12:34:03] Pass0 columnar matched bone_mass_percent = 3.9
[2026-05-25 12:34:03] Pass0 columnar matched bmr = 1510
[2026-05-25 12:34:03] Pass0 columnar matched water_percent = 55.3
[2026-05-25 12:34:03] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-25 12:34:03] Pass0 columnar matched lean_body_mass_lbs = 135.1
[2026-05-25 12:34:03] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-25 12:34:03] Pass0 columnar matched visceral_fat = 11
[2026-05-25 12:34:03] Found 12 metrics in total
[2026-05-25 12:51:55] Health image upload received
[2026-05-25 12:51:55] User ID: 1
[2026-05-25 12:51:55] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a1445eb17f590.39367946.jpg
[2026-05-25 12:51:55] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a1445eb17f590.39367946.jpg
[2026-05-25 12:51:55] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a1445eb17f590.39367946.jpg
[2026-05-25 12:51:55] Using OCR.space API
[2026-05-25 12:51:55] Using API key: K8465...
[2026-05-25 12:51:56] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-25 12:51:56] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-05-25 12:51:56] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-05-25 12:51:56] Extracting health metrics from text
[2026-05-25 12:51:56] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-05-25 12:51:56] Detected generic label/value column layout
[2026-05-25 12:51:56] Pass0 columnar matched weight = 167.5
[2026-05-25 12:51:56] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-25 12:51:56] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-25 12:51:56] Pass0 columnar matched bmr = 1510
[2026-05-25 12:51:56] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-25 12:51:56] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-25 12:51:56] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-05-25 12:51:56] Pass1 matched visceral_fat = 11
[2026-05-25 12:51:56] Pass1 matched bmi = 26.9
[2026-05-25 12:51:56] Pass1 matched bone_mass_percent = 3.9
[2026-05-25 12:51:56] Pass1 matched water_percent = 55.3
[2026-05-25 12:51:56] Found 11 metrics in total
[2026-05-25 12:51:56] Extracted data: {"date":"2026-05-25","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-25 12:51:56] Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot.
[2026-05-25 12:51:56] Response: {"success":false,"message":"Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot."}
[2026-05-25 13:01:39] Health image upload received
[2026-05-25 13:01:39] Error: Missing or invalid user_id
[2026-05-25 13:01:39] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-05-26 11:45:55] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-26 11:45:55] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-26 11:45:55] Using OCR.space API
[2026-05-26 11:45:55] Using API key: K8465...
[2026-05-26 11:45:57] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-26 11:45:57] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-05-26 11:45:57] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-05-26 11:45:57] Extracting health metrics from text
[2026-05-26 11:45:57] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-05-26 11:45:57] Detected generic label/value column layout
[2026-05-26 11:45:57] Pass0 columnar matched weight = 167.5
[2026-05-26 11:45:57] Pass0 columnar matched bmi = 26.9
[2026-05-26 11:45:57] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-26 11:45:57] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-05-26 11:45:57] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-26 11:45:57] Pass0 columnar matched bone_mass_percent = 3.9
[2026-05-26 11:45:57] Pass0 columnar matched bmr = 1510
[2026-05-26 11:45:57] Pass0 columnar matched water_percent = 55.3
[2026-05-26 11:45:57] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-26 11:45:57] Pass0 columnar matched lean_body_mass_lbs = 135.1
[2026-05-26 11:45:57] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-26 11:45:57] Pass0 columnar matched visceral_fat = 11
[2026-05-26 11:45:57] Found 12 metrics in total
[2026-05-26 16:55:57] Health image upload received
[2026-05-26 16:55:57] User ID: 1
[2026-05-26 16:55:57] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a15d09d7f4e20.39348161.jpg
[2026-05-26 16:55:57] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a15d09d7f4e20.39348161.jpg
[2026-05-26 16:55:57] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a15d09d7f4e20.39348161.jpg
[2026-05-26 16:55:57] Using OCR.space API
[2026-05-26 16:55:57] Using API key: K8465...
[2026-05-26 16:55:59] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-26 16:55:59] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-05-26 16:55:59] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-05-26 16:55:59] Extracting health metrics from text
[2026-05-26 16:55:59] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-05-26 16:55:59] Detected generic label/value column layout
[2026-05-26 16:55:59] Pass0 columnar matched weight = 167.5
[2026-05-26 16:55:59] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-26 16:55:59] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-26 16:55:59] Pass0 columnar matched bmr = 1510
[2026-05-26 16:55:59] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-26 16:55:59] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-26 16:55:59] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-05-26 16:55:59] Pass1 matched visceral_fat = 11
[2026-05-26 16:55:59] Pass1 matched bmi = 26.9
[2026-05-26 16:55:59] Pass1 matched bone_mass_percent = 3.9
[2026-05-26 16:55:59] Pass1 matched water_percent = 55.3
[2026-05-26 16:55:59] Found 11 metrics in total
[2026-05-26 16:55:59] Extracted data: {"date":"2026-05-26","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-26 16:55:59] Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot.
[2026-05-26 16:55:59] Response: {"success":false,"message":"Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot."}
[2026-05-26 17:45:47] Health image upload received
[2026-05-26 17:45:47] Error: Missing or invalid user_id
[2026-05-26 17:45:47] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-05-27 05:06:12] Health image upload received
[2026-05-27 05:06:12] User ID: 1
[2026-05-27 05:06:12] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a167bc4ac96e8.64047471.jpg
[2026-05-27 05:06:12] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a167bc4ac96e8.64047471.jpg
[2026-05-27 05:06:12] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a167bc4ac96e8.64047471.jpg
[2026-05-27 05:06:12] Using OCR.space API
[2026-05-27 05:06:12] Using API key: K8465...
[2026-05-27 05:06:14] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-27 05:06:14] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-05-27 05:06:14] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-05-27 05:06:14] Extracting health metrics from text
[2026-05-27 05:06:14] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-05-27 05:06:14] Detected generic label/value column layout
[2026-05-27 05:06:14] Pass0 columnar matched weight = 167.5
[2026-05-27 05:06:14] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-27 05:06:14] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-27 05:06:14] Pass0 columnar matched bmr = 1510
[2026-05-27 05:06:14] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-27 05:06:14] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-27 05:06:14] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-05-27 05:06:14] Pass1 matched visceral_fat = 11
[2026-05-27 05:06:14] Pass1 matched bmi = 26.9
[2026-05-27 05:06:14] Pass1 matched bone_mass_percent = 3.9
[2026-05-27 05:06:14] Pass1 matched water_percent = 55.3
[2026-05-27 05:06:14] Found 11 metrics in total
[2026-05-27 05:06:14] Extracted data: {"date":"2026-05-27","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-27 05:06:14] Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot.
[2026-05-27 05:06:14] Response: {"success":false,"message":"Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot."}
[2026-05-27 09:36:34] Health image upload received
[2026-05-27 09:36:34] Error: Missing or invalid user_id
[2026-05-27 09:36:34] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-05-28 13:33:11] Health image upload received
[2026-05-28 13:33:11] User ID: 1
[2026-05-28 13:33:11] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a184417b09305.57757870.jpg
[2026-05-28 13:33:11] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a184417b09305.57757870.jpg
[2026-05-28 13:33:11] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a184417b09305.57757870.jpg
[2026-05-28 13:33:11] Using OCR.space API
[2026-05-28 13:33:11] Using API key: K8465...
[2026-05-28 13:33:13] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-28 13:33:13] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-05-28 13:33:13] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-05-28 13:33:13] Extracting health metrics from text
[2026-05-28 13:33:13] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-05-28 13:33:13] Detected generic label/value column layout
[2026-05-28 13:33:13] Pass0 columnar matched weight = 167.5
[2026-05-28 13:33:13] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-28 13:33:13] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-28 13:33:13] Pass0 columnar matched bmr = 1510
[2026-05-28 13:33:13] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-28 13:33:13] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-28 13:33:13] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-05-28 13:33:13] Pass1 matched visceral_fat = 11
[2026-05-28 13:33:13] Pass1 matched bmi = 26.9
[2026-05-28 13:33:13] Pass1 matched bone_mass_percent = 3.9
[2026-05-28 13:33:13] Pass1 matched water_percent = 55.3
[2026-05-28 13:33:13] Found 11 metrics in total
[2026-05-28 13:33:13] Extracted data: {"date":"2026-05-28","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-28 13:33:13] Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot.
[2026-05-28 13:33:13] Response: {"success":false,"message":"Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot."}
[2026-05-28 20:26:28] Health image upload received
[2026-05-28 20:26:28] Error: Missing or invalid user_id
[2026-05-28 20:26:28] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-05-28 20:26:31] Health image upload received
[2026-05-28 20:26:31] User ID: 1
[2026-05-28 20:26:31] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a18a4f79c3790.61837158.jpg
[2026-05-28 20:26:31] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a18a4f79c3790.61837158.jpg
[2026-05-28 20:26:31] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a18a4f79c3790.61837158.jpg
[2026-05-28 20:26:31] Using OCR.space API
[2026-05-28 20:26:31] Using API key: K8465...
[2026-05-28 20:26:31] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-28 20:26:31] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-28 20:26:31] Using OCR.space API
[2026-05-28 20:26:31] Using API key: K8465...
[2026-05-28 20:26:32] Health image upload received
[2026-05-28 20:26:32] User ID: 1
[2026-05-28 20:26:32] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a18a4f8291ed7.66174037.jpg
[2026-05-28 20:26:32] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a18a4f8291ed7.66174037.jpg
[2026-05-28 20:26:32] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a18a4f8291ed7.66174037.jpg
[2026-05-28 20:26:32] Using OCR.space API
[2026-05-28 20:26:32] Using API key: K8465...
[2026-05-28 20:26:33] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-28 20:26:33] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-05-28 20:26:33] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-05-28 20:26:33] Extracting health metrics from text
[2026-05-28 20:26:33] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-05-28 20:26:33] Detected generic label/value column layout
[2026-05-28 20:26:33] Pass0 columnar matched weight = 167.5
[2026-05-28 20:26:33] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-28 20:26:33] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-28 20:26:33] Pass0 columnar matched bmr = 1510
[2026-05-28 20:26:33] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-28 20:26:33] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-28 20:26:33] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-05-28 20:26:33] Pass1 matched visceral_fat = 11
[2026-05-28 20:26:33] Pass1 matched bmi = 26.9
[2026-05-28 20:26:33] Pass1 matched bone_mass_percent = 3.9
[2026-05-28 20:26:33] Pass1 matched water_percent = 55.3
[2026-05-28 20:26:33] Found 11 metrics in total
[2026-05-28 20:26:33] Extracted data: {"date":"2026-05-28","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-28 20:26:33] Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot.
[2026-05-28 20:26:33] Response: {"success":false,"message":"Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot."}
[2026-05-28 20:26:33] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-28 20:26:33] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-05-28 20:26:33] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-05-28 20:26:33] Extracting health metrics from text
[2026-05-28 20:26:33] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-05-28 20:26:33] Detected generic label/value column layout
[2026-05-28 20:26:33] Pass0 columnar matched weight = 167.5
[2026-05-28 20:26:33] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-28 20:26:33] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-28 20:26:33] Pass0 columnar matched bmr = 1510
[2026-05-28 20:26:33] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-28 20:26:33] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-28 20:26:33] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-05-28 20:26:33] Pass1 matched visceral_fat = 11
[2026-05-28 20:26:33] Pass1 matched bmi = 26.9
[2026-05-28 20:26:33] Pass1 matched bone_mass_percent = 3.9
[2026-05-28 20:26:33] Pass1 matched water_percent = 55.3
[2026-05-28 20:26:33] Found 11 metrics in total
[2026-05-28 20:26:33] Extracted data: {"date":"2026-05-28","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-28 20:26:33] Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot.
[2026-05-28 20:26:33] Response: {"success":false,"message":"Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot."}
[2026-05-28 20:26:34] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-28 20:26:34] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-05-28 20:26:34] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-05-28 20:26:34] Extracting health metrics from text
[2026-05-28 20:26:34] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-05-28 20:26:34] Detected generic label/value column layout
[2026-05-28 20:26:34] Pass0 columnar matched weight = 167.5
[2026-05-28 20:26:34] Pass0 columnar matched bmi = 26.9
[2026-05-28 20:26:34] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-28 20:26:34] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-05-28 20:26:34] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-28 20:26:34] Pass0 columnar matched bone_mass_percent = 3.9
[2026-05-28 20:26:34] Pass0 columnar matched bmr = 1510
[2026-05-28 20:26:34] Pass0 columnar matched water_percent = 55.3
[2026-05-28 20:26:34] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-28 20:26:34] Pass0 columnar matched lean_body_mass_lbs = 135.1
[2026-05-28 20:26:34] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-28 20:26:34] Pass0 columnar matched visceral_fat = 11
[2026-05-28 20:26:34] Found 12 metrics in total
[2026-05-28 23:06:06] Health image upload received
[2026-05-28 23:06:06] User ID: 1
[2026-05-28 23:06:06] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a18ca5e34b473.36670459.jpg
[2026-05-28 23:06:06] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a18ca5e34b473.36670459.jpg
[2026-05-28 23:06:06] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a18ca5e34b473.36670459.jpg
[2026-05-28 23:06:06] Using OCR.space API
[2026-05-28 23:06:06] Using API key: K8465...
[2026-05-28 23:06:07] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-28 23:06:07] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-05-28 23:06:07] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-05-28 23:06:07] Extracting health metrics from text
[2026-05-28 23:06:07] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-05-28 23:06:07] Detected generic label/value column layout
[2026-05-28 23:06:07] Pass0 columnar matched weight = 167.5
[2026-05-28 23:06:07] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-28 23:06:07] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-28 23:06:07] Pass0 columnar matched bmr = 1510
[2026-05-28 23:06:07] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-28 23:06:07] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-28 23:06:07] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-05-28 23:06:07] Pass1 matched visceral_fat = 11
[2026-05-28 23:06:07] Pass1 matched bmi = 26.9
[2026-05-28 23:06:07] Pass1 matched bone_mass_percent = 3.9
[2026-05-28 23:06:07] Pass1 matched water_percent = 55.3
[2026-05-28 23:06:07] Found 11 metrics in total
[2026-05-28 23:06:07] Extracted data: {"date":"2026-05-28","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-28 23:06:07] Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot.
[2026-05-28 23:06:07] Response: {"success":false,"message":"Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot."}
[2026-05-30 14:46:36] Health image upload received
[2026-05-30 14:46:36] User ID: 1
[2026-05-30 14:46:36] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a1af84c8dd616.44313090.jpg
[2026-05-30 14:46:36] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a1af84c8dd616.44313090.jpg
[2026-05-30 14:46:36] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a1af84c8dd616.44313090.jpg
[2026-05-30 14:46:36] Using OCR.space API
[2026-05-30 14:46:36] Using API key: K8465...
[2026-05-30 14:46:38] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-30 14:46:38] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-05-30 14:46:38] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-05-30 14:46:38] Extracting health metrics from text
[2026-05-30 14:46:38] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-05-30 14:46:38] Detected generic label/value column layout
[2026-05-30 14:46:38] Pass0 columnar matched weight = 167.5
[2026-05-30 14:46:38] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-30 14:46:38] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-30 14:46:38] Pass0 columnar matched bmr = 1510
[2026-05-30 14:46:38] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-30 14:46:38] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-30 14:46:38] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-05-30 14:46:38] Pass1 matched visceral_fat = 11
[2026-05-30 14:46:38] Pass1 matched bmi = 26.9
[2026-05-30 14:46:38] Pass1 matched bone_mass_percent = 3.9
[2026-05-30 14:46:38] Pass1 matched water_percent = 55.3
[2026-05-30 14:46:38] Found 11 metrics in total
[2026-05-30 14:46:38] Extracted data: {"date":"2026-05-30","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-30 14:46:38] Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot.
[2026-05-30 14:46:38] Response: {"success":false,"message":"Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot."}
[2026-05-30 16:18:56] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-30 16:18:56] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-05-30 16:18:56] Using OCR.space API
[2026-05-30 16:18:56] Using API key: K8465...
[2026-05-30 16:18:57] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-30 16:18:57] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-05-30 16:18:57] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-05-30 16:18:57] Extracting health metrics from text
[2026-05-30 16:18:57] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-05-30 16:18:57] Detected generic label/value column layout
[2026-05-30 16:18:57] Pass0 columnar matched weight = 167.5
[2026-05-30 16:18:57] Pass0 columnar matched bmi = 26.9
[2026-05-30 16:18:57] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-30 16:18:57] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-05-30 16:18:57] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-30 16:18:57] Pass0 columnar matched bone_mass_percent = 3.9
[2026-05-30 16:18:57] Pass0 columnar matched bmr = 1510
[2026-05-30 16:18:57] Pass0 columnar matched water_percent = 55.3
[2026-05-30 16:18:57] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-30 16:18:57] Pass0 columnar matched lean_body_mass_lbs = 135.1
[2026-05-30 16:18:57] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-30 16:18:57] Pass0 columnar matched visceral_fat = 11
[2026-05-30 16:18:57] Found 12 metrics in total
[2026-05-30 21:58:58] Health image upload received
[2026-05-30 21:58:58] User ID: 1
[2026-05-30 21:58:58] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a1b5da2eb05f7.02754144.jpg
[2026-05-30 21:58:58] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a1b5da2eb05f7.02754144.jpg
[2026-05-30 21:58:58] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a1b5da2eb05f7.02754144.jpg
[2026-05-30 21:58:58] Using OCR.space API
[2026-05-30 21:58:58] Using API key: K8465...
[2026-05-30 21:59:00] OCR.space API attempt 1 completed with HTTP code: 200
[2026-05-30 21:59:00] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-05-30 21:59:00] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-05-30 21:59:00] Extracting health metrics from text
[2026-05-30 21:59:00] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-05-30 21:59:00] Detected generic label/value column layout
[2026-05-30 21:59:00] Pass0 columnar matched weight = 167.5
[2026-05-30 21:59:00] Pass0 columnar matched bmi = 26.9
[2026-05-30 21:59:00] Pass0 columnar matched body_fat_percent = 19.4
[2026-05-30 21:59:00] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-05-30 21:59:00] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-05-30 21:59:00] Pass0 columnar matched bone_mass_percent = 3.9
[2026-05-30 21:59:00] Pass0 columnar matched bmr = 1510
[2026-05-30 21:59:00] Pass0 columnar matched water_percent = 55.3
[2026-05-30 21:59:00] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-05-30 21:59:00] Pass0 columnar matched lean_body_mass_lbs = 135.1
[2026-05-30 21:59:00] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-05-30 21:59:00] Pass0 columnar matched visceral_fat = 11
[2026-05-30 21:59:00] Found 12 metrics in total
[2026-05-30 21:59:00] Extracted data: {"date":"2026-05-30","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-30 21:59:00] Final data for insertion: {"date":"2026-05-30","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-05-30 21:59:00] Inserted record with ID: 257
[2026-05-30 21:59:00] Weight also stored in weights table
[2026-05-30 21:59:00] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-05-30","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"257"}
[2026-05-31 13:17:12] Health image upload received
[2026-05-31 13:17:12] Error: Missing or invalid user_id
[2026-05-31 13:17:12] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-06-01 13:57:43] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-06-01 13:57:43] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-06-01 13:57:43] Using OCR.space API
[2026-06-01 13:57:43] Using API key: K8465...
[2026-06-01 13:57:45] OCR.space API attempt 1 completed with HTTP code: 200
[2026-06-01 13:57:45] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-06-01 13:57:45] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-06-01 13:57:45] Extracting health metrics from text
[2026-06-01 13:57:45] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-06-01 13:57:45] Detected generic label/value column layout
[2026-06-01 13:57:45] Pass0 columnar matched weight = 167.5
[2026-06-01 13:57:45] Pass0 columnar matched bmi = 26.9
[2026-06-01 13:57:45] Pass0 columnar matched body_fat_percent = 19.4
[2026-06-01 13:57:45] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-06-01 13:57:45] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-06-01 13:57:45] Pass0 columnar matched bone_mass_percent = 3.9
[2026-06-01 13:57:45] Pass0 columnar matched bmr = 1510
[2026-06-01 13:57:45] Pass0 columnar matched water_percent = 55.3
[2026-06-01 13:57:45] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-06-01 13:57:45] Pass0 columnar matched lean_body_mass_lbs = 135.1
[2026-06-01 13:57:45] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-06-01 13:57:45] Pass0 columnar matched visceral_fat = 11
[2026-06-01 13:57:45] Found 12 metrics in total
[2026-06-02 04:00:52] Health image upload received
[2026-06-02 04:00:52] User ID: 1
[2026-06-02 04:00:52] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a1e55743745b3.82630663.jpg
[2026-06-02 04:00:52] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a1e55743745b3.82630663.jpg
[2026-06-02 04:00:52] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a1e55743745b3.82630663.jpg
[2026-06-02 04:00:52] Using OCR.space API
[2026-06-02 04:00:52] Using API key: K8465...
[2026-06-02 04:00:53] OCR.space API attempt 1 completed with HTTP code: 200
[2026-06-02 04:00:53] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-06-02 04:00:53] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-06-02 04:00:53] Extracting health metrics from text
[2026-06-02 04:00:53] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-06-02 04:00:53] Detected generic label/value column layout
[2026-06-02 04:00:53] Pass0 columnar matched weight = 167.5
[2026-06-02 04:00:53] Pass0 columnar matched body_fat_percent = 19.4
[2026-06-02 04:00:53] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-06-02 04:00:53] Pass0 columnar matched bmr = 1510
[2026-06-02 04:00:53] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-06-02 04:00:53] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-06-02 04:00:53] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-06-02 04:00:53] Pass1 matched visceral_fat = 11
[2026-06-02 04:00:53] Pass1 matched bmi = 26.9
[2026-06-02 04:00:53] Pass1 matched bone_mass_percent = 3.9
[2026-06-02 04:00:53] Pass1 matched water_percent = 55.3
[2026-06-02 04:00:53] Found 11 metrics in total
[2026-06-02 04:00:53] Extracted data: {"date":"2026-06-02","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-06-02 04:00:53] Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot.
[2026-06-02 04:00:53] Response: {"success":false,"message":"Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot."}
[2026-06-02 04:01:06] Health image upload received
[2026-06-02 04:01:06] Error: Missing or invalid user_id
[2026-06-02 04:01:06] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-06-02 04:01:16] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-06-02 04:01:16] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-06-02 04:01:16] Using OCR.space API
[2026-06-02 04:01:16] Using API key: K8465...
[2026-06-02 04:01:18] OCR.space API attempt 1 completed with HTTP code: 200
[2026-06-02 04:01:18] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-06-02 04:01:18] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-06-02 04:01:18] Extracting health metrics from text
[2026-06-02 04:01:18] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-06-02 04:01:18] Detected generic label/value column layout
[2026-06-02 04:01:18] Pass0 columnar matched weight = 167.5
[2026-06-02 04:01:18] Pass0 columnar matched bmi = 26.9
[2026-06-02 04:01:18] Pass0 columnar matched body_fat_percent = 19.4
[2026-06-02 04:01:18] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-06-02 04:01:18] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-06-02 04:01:18] Pass0 columnar matched bone_mass_percent = 3.9
[2026-06-02 04:01:18] Pass0 columnar matched bmr = 1510
[2026-06-02 04:01:18] Pass0 columnar matched water_percent = 55.3
[2026-06-02 04:01:18] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-06-02 04:01:18] Pass0 columnar matched lean_body_mass_lbs = 135.1
[2026-06-02 04:01:18] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-06-02 04:01:18] Pass0 columnar matched visceral_fat = 11
[2026-06-02 04:01:18] Found 12 metrics in total
[2026-06-02 04:02:24] Health image upload received
[2026-06-02 04:02:24] User ID: 1
[2026-06-02 04:02:24] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a1e55d07dd9f8.91691927.jpg
[2026-06-02 04:02:24] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a1e55d07dd9f8.91691927.jpg
[2026-06-02 04:02:24] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a1e55d07dd9f8.91691927.jpg
[2026-06-02 04:02:24] Using OCR.space API
[2026-06-02 04:02:24] Using API key: K8465...
[2026-06-02 04:02:26] OCR.space API attempt 1 completed with HTTP code: 200
[2026-06-02 04:02:26] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-06-02 04:02:26] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-06-02 04:02:26] Extracting health metrics from text
[2026-06-02 04:02:26] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-06-02 04:02:26] Detected generic label/value column layout
[2026-06-02 04:02:26] Pass0 columnar matched weight = 167.5
[2026-06-02 04:02:26] Pass0 columnar matched bmi = 26.9
[2026-06-02 04:02:26] Pass0 columnar matched body_fat_percent = 19.4
[2026-06-02 04:02:26] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-06-02 04:02:26] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-06-02 04:02:26] Pass0 columnar matched bone_mass_percent = 3.9
[2026-06-02 04:02:26] Pass0 columnar matched bmr = 1510
[2026-06-02 04:02:26] Pass0 columnar matched water_percent = 55.3
[2026-06-02 04:02:26] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-06-02 04:02:26] Pass0 columnar matched lean_body_mass_lbs = 135.1
[2026-06-02 04:02:26] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-06-02 04:02:26] Pass0 columnar matched visceral_fat = 11
[2026-06-02 04:02:26] Found 12 metrics in total
[2026-06-02 04:02:26] Extracted data: {"date":"2026-06-02","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-06-02 04:02:26] Final data for insertion: {"date":"2026-06-02","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-06-02 04:02:26] Inserted record with ID: 258
[2026-06-02 04:02:26] Weight also stored in weights table
[2026-06-02 04:02:26] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-06-02","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"258"}
[2026-06-02 04:18:42] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-06-02 04:18:42] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-06-02 04:18:42] Using OCR.space API
[2026-06-02 04:18:42] Using API key: K8465...
[2026-06-02 04:18:44] OCR.space API attempt 1 completed with HTTP code: 200
[2026-06-02 04:18:44] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-06-02 04:18:44] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-06-02 04:18:44] Extracting health metrics from text
[2026-06-02 04:18:44] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-06-02 04:18:44] Detected generic label/value column layout
[2026-06-02 04:18:44] Pass0 columnar matched weight = 167.5
[2026-06-02 04:18:44] Pass0 columnar matched bmi = 26.9
[2026-06-02 04:18:44] Pass0 columnar matched body_fat_percent = 19.4
[2026-06-02 04:18:44] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-06-02 04:18:44] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-06-02 04:18:44] Pass0 columnar matched bone_mass_percent = 3.9
[2026-06-02 04:18:44] Pass0 columnar matched bmr = 1510
[2026-06-02 04:18:44] Pass0 columnar matched water_percent = 55.3
[2026-06-02 04:18:44] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-06-02 04:18:44] Pass0 columnar matched lean_body_mass_lbs = 135.1
[2026-06-02 04:18:44] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-06-02 04:18:44] Pass0 columnar matched visceral_fat = 11
[2026-06-02 04:18:44] Found 12 metrics in total
[2026-06-02 16:49:53] Health image upload received
[2026-06-02 16:49:53] User ID: 1
[2026-06-02 16:49:53] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a1f09b1e81552.81876372.jpg
[2026-06-02 16:49:53] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a1f09b1e81552.81876372.jpg
[2026-06-02 16:49:53] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a1f09b1e81552.81876372.jpg
[2026-06-02 16:49:53] Using OCR.space API
[2026-06-02 16:49:53] Using API key: K8465...
[2026-06-02 16:49:55] OCR.space API attempt 1 completed with HTTP code: 200
[2026-06-02 16:49:55] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-06-02 16:49:55] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-06-02 16:49:55] Extracting health metrics from text
[2026-06-02 16:49:55] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-06-02 16:49:55] Detected generic label/value column layout
[2026-06-02 16:49:55] Pass0 columnar matched weight = 167.5
[2026-06-02 16:49:55] Pass0 columnar matched body_fat_percent = 19.4
[2026-06-02 16:49:55] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-06-02 16:49:55] Pass0 columnar matched bmr = 1510
[2026-06-02 16:49:55] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-06-02 16:49:55] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-06-02 16:49:55] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-06-02 16:49:55] Pass1 matched visceral_fat = 11
[2026-06-02 16:49:55] Pass1 matched bmi = 26.9
[2026-06-02 16:49:55] Pass1 matched bone_mass_percent = 3.9
[2026-06-02 16:49:55] Pass1 matched water_percent = 55.3
[2026-06-02 16:49:55] Found 11 metrics in total
[2026-06-02 16:49:55] Extracted data: {"date":"2026-06-02","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-06-02 16:49:55] Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot.
[2026-06-02 16:49:55] Response: {"success":false,"message":"Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot."}
[2026-06-02 19:33:27] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-06-02 19:33:27] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-06-02 19:33:27] Using OCR.space API
[2026-06-02 19:33:27] Using API key: K8465...
[2026-06-02 19:33:29] OCR.space API attempt 1 completed with HTTP code: 200
[2026-06-02 19:33:29] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-06-02 19:33:29] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-06-02 19:33:29] Extracting health metrics from text
[2026-06-02 19:33:29] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-06-02 19:33:29] Detected generic label/value column layout
[2026-06-02 19:33:29] Pass0 columnar matched weight = 167.5
[2026-06-02 19:33:29] Pass0 columnar matched bmi = 26.9
[2026-06-02 19:33:29] Pass0 columnar matched body_fat_percent = 19.4
[2026-06-02 19:33:29] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-06-02 19:33:29] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-06-02 19:33:29] Pass0 columnar matched bone_mass_percent = 3.9
[2026-06-02 19:33:29] Pass0 columnar matched bmr = 1510
[2026-06-02 19:33:29] Pass0 columnar matched water_percent = 55.3
[2026-06-02 19:33:29] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-06-02 19:33:29] Pass0 columnar matched lean_body_mass_lbs = 135.1
[2026-06-02 19:33:29] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-06-02 19:33:29] Pass0 columnar matched visceral_fat = 11
[2026-06-02 19:33:29] Found 12 metrics in total
[2026-06-02 19:58:44] Health image upload received
[2026-06-02 19:58:44] User ID: 1
[2026-06-02 19:58:44] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a1f35f47a1a31.11749154.jpg
[2026-06-02 19:58:44] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a1f35f47a1a31.11749154.jpg
[2026-06-02 19:58:44] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a1f35f47a1a31.11749154.jpg
[2026-06-02 19:58:44] Using OCR.space API
[2026-06-02 19:58:44] Using API key: K8465...
[2026-06-02 19:58:46] OCR.space API attempt 1 completed with HTTP code: 200
[2026-06-02 19:58:46] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-06-02 19:58:46] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-06-02 19:58:46] Extracting health metrics from text
[2026-06-02 19:58:46] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-06-02 19:58:46] Detected generic label/value column layout
[2026-06-02 19:58:46] Pass0 columnar matched weight = 167.5
[2026-06-02 19:58:46] Pass0 columnar matched body_fat_percent = 19.4
[2026-06-02 19:58:46] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-06-02 19:58:46] Pass0 columnar matched bmr = 1510
[2026-06-02 19:58:46] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-06-02 19:58:46] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-06-02 19:58:46] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-06-02 19:58:46] Pass1 matched visceral_fat = 11
[2026-06-02 19:58:46] Pass1 matched bmi = 26.9
[2026-06-02 19:58:46] Pass1 matched bone_mass_percent = 3.9
[2026-06-02 19:58:46] Pass1 matched water_percent = 55.3
[2026-06-02 19:58:46] Found 11 metrics in total
[2026-06-02 19:58:46] Extracted data: {"date":"2026-06-02","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-06-02 19:58:46] Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot.
[2026-06-02 19:58:46] Response: {"success":false,"message":"Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot."}
[2026-06-02 20:04:31] Health image upload received
[2026-06-02 20:04:31] User ID: 1
[2026-06-02 20:04:31] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a1f374fc92fa5.60974215.jpg
[2026-06-02 20:04:31] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a1f374fc92fa5.60974215.jpg
[2026-06-02 20:04:31] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a1f374fc92fa5.60974215.jpg
[2026-06-02 20:04:31] Using OCR.space API
[2026-06-02 20:04:31] Using API key: K8465...
[2026-06-02 20:04:33] OCR.space API attempt 1 completed with HTTP code: 200
[2026-06-02 20:04:33] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-06-02 20:04:33] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-06-02 20:04:33] Extracting health metrics from text
[2026-06-02 20:04:33] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-06-02 20:04:33] Detected generic label/value column layout
[2026-06-02 20:04:33] Pass0 columnar matched weight = 167.5
[2026-06-02 20:04:33] Pass0 columnar matched body_fat_percent = 19.4
[2026-06-02 20:04:33] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-06-02 20:04:33] Pass0 columnar matched bmr = 1510
[2026-06-02 20:04:33] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-06-02 20:04:33] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-06-02 20:04:33] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-06-02 20:04:33] Pass1 matched visceral_fat = 11
[2026-06-02 20:04:33] Pass1 matched bmi = 26.9
[2026-06-02 20:04:33] Pass1 matched bone_mass_percent = 3.9
[2026-06-02 20:04:33] Pass1 matched water_percent = 55.3
[2026-06-02 20:04:33] Found 11 metrics in total
[2026-06-02 20:04:33] Extracted data: {"date":"2026-06-02","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-06-02 20:04:33] Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot.
[2026-06-02 20:04:33] Response: {"success":false,"message":"Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot."}
[2026-06-02 20:09:21] Health image upload received
[2026-06-02 20:09:21] User ID: 1
[2026-06-02 20:09:21] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a1f3871a8e054.05182402.jpg
[2026-06-02 20:09:21] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a1f3871a8e054.05182402.jpg
[2026-06-02 20:09:21] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a1f3871a8e054.05182402.jpg
[2026-06-02 20:09:21] Using OCR.space API
[2026-06-02 20:09:21] Using API key: K8465...
[2026-06-02 20:09:24] OCR.space API attempt 1 completed with HTTP code: 200
[2026-06-02 20:09:24] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-06-02 20:09:24] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-06-02 20:09:24] Extracting health metrics from text
[2026-06-02 20:09:24] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-06-02 20:09:24] Detected generic label/value column layout
[2026-06-02 20:09:24] Pass0 columnar matched weight = 167.5
[2026-06-02 20:09:24] Pass0 columnar matched body_fat_percent = 19.4
[2026-06-02 20:09:24] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-06-02 20:09:24] Pass0 columnar matched bmr = 1510
[2026-06-02 20:09:24] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-06-02 20:09:24] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-06-02 20:09:24] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-06-02 20:09:24] Pass1 matched visceral_fat = 11
[2026-06-02 20:09:24] Pass1 matched bmi = 26.9
[2026-06-02 20:09:24] Pass1 matched bone_mass_percent = 3.9
[2026-06-02 20:09:24] Pass1 matched water_percent = 55.3
[2026-06-02 20:09:24] Found 11 metrics in total
[2026-06-02 20:09:24] Extracted data: {"date":"2026-06-02","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-06-02 20:09:24] Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot.
[2026-06-02 20:09:24] Response: {"success":false,"message":"Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot."}
[2026-06-02 20:14:45] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-06-02 20:14:45] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-06-02 20:14:45] Using OCR.space API
[2026-06-02 20:14:45] Using API key: K8465...
[2026-06-02 20:14:46] OCR.space API attempt 1 completed with HTTP code: 200
[2026-06-02 20:14:46] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-06-02 20:14:46] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-06-02 20:14:46] Extracting health metrics from text
[2026-06-02 20:14:46] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-06-02 20:14:46] Detected generic label/value column layout
[2026-06-02 20:14:46] Pass0 columnar matched weight = 167.5
[2026-06-02 20:14:46] Pass0 columnar matched bmi = 26.9
[2026-06-02 20:14:46] Pass0 columnar matched body_fat_percent = 19.4
[2026-06-02 20:14:46] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-06-02 20:14:46] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-06-02 20:14:46] Pass0 columnar matched bone_mass_percent = 3.9
[2026-06-02 20:14:46] Pass0 columnar matched bmr = 1510
[2026-06-02 20:14:46] Pass0 columnar matched water_percent = 55.3
[2026-06-02 20:14:46] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-06-02 20:14:46] Pass0 columnar matched lean_body_mass_lbs = 135.1
[2026-06-02 20:14:46] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-06-02 20:14:46] Pass0 columnar matched visceral_fat = 11
[2026-06-02 20:14:46] Found 12 metrics in total
[2026-06-02 20:20:46] Health image upload received
[2026-06-02 20:20:46] User ID: 1
[2026-06-02 20:20:46] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a1f3b1e1c2215.74737205.jpg
[2026-06-02 20:20:46] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a1f3b1e1c2215.74737205.jpg
[2026-06-02 20:20:46] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a1f3b1e1c2215.74737205.jpg
[2026-06-02 20:20:46] Using OCR.space API
[2026-06-02 20:20:46] Using API key: K8465...
[2026-06-02 20:20:47] OCR.space API attempt 1 completed with HTTP code: 200
[2026-06-02 20:20:47] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-06-02 20:20:47] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-06-02 20:20:47] Extracting health metrics from text
[2026-06-02 20:20:47] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-06-02 20:20:47] Detected generic label/value column layout
[2026-06-02 20:20:47] Pass0 columnar matched weight = 167.5
[2026-06-02 20:20:47] Pass0 columnar matched bmi = 26.9
[2026-06-02 20:20:47] Pass0 columnar matched body_fat_percent = 19.4
[2026-06-02 20:20:47] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-06-02 20:20:47] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-06-02 20:20:47] Pass0 columnar matched bone_mass_percent = 3.9
[2026-06-02 20:20:47] Pass0 columnar matched bmr = 1510
[2026-06-02 20:20:47] Pass0 columnar matched water_percent = 55.3
[2026-06-02 20:20:47] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-06-02 20:20:47] Pass0 columnar matched lean_body_mass_lbs = 135.1
[2026-06-02 20:20:47] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-06-02 20:20:47] Pass0 columnar matched visceral_fat = 11
[2026-06-02 20:20:47] Found 12 metrics in total
[2026-06-02 20:20:47] Extracted data: {"date":"2026-06-02","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-06-02 20:20:47] Final data for insertion: {"date":"2026-06-02","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-06-02 20:20:47] Inserted record with ID: 259
[2026-06-02 20:20:48] Weight also stored in weights table
[2026-06-02 20:20:48] Response: {"success":true,"message":"Successfully processed image and stored health records","extracted_data":{"date":"2026-06-02","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":135.1,"muscle_mass_lbs":128.5,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6},"record_id":"259"}
[2026-06-03 15:34:13] Health image upload received
[2026-06-03 15:34:13] User ID: 1
[2026-06-03 15:34:13] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a2049751ada87.90458826.jpg
[2026-06-03 15:34:13] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a2049751ada87.90458826.jpg
[2026-06-03 15:34:13] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a2049751ada87.90458826.jpg
[2026-06-03 15:34:13] Using OCR.space API
[2026-06-03 15:34:13] Using API key: K8465...
[2026-06-03 15:34:14] OCR.space API attempt 1 completed with HTTP code: 200
[2026-06-03 15:34:14] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-06-03 15:34:14] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-06-03 15:34:14] Extracting health metrics from text
[2026-06-03 15:34:14] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-06-03 15:34:14] Detected generic label/value column layout
[2026-06-03 15:34:14] Pass0 columnar matched weight = 167.5
[2026-06-03 15:34:14] Pass0 columnar matched body_fat_percent = 19.4
[2026-06-03 15:34:14] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-06-03 15:34:14] Pass0 columnar matched bmr = 1510
[2026-06-03 15:34:14] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-06-03 15:34:14] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-06-03 15:34:14] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-06-03 15:34:14] Pass1 matched visceral_fat = 11
[2026-06-03 15:34:14] Pass1 matched bmi = 26.9
[2026-06-03 15:34:14] Pass1 matched bone_mass_percent = 3.9
[2026-06-03 15:34:14] Pass1 matched water_percent = 55.3
[2026-06-03 15:34:14] Found 11 metrics in total
[2026-06-03 15:34:14] Extracted data: {"date":"2026-06-03","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-06-03 15:34:14] Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot.
[2026-06-03 15:34:14] Response: {"success":false,"message":"Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot."}
[2026-06-03 15:48:31] Health image upload received
[2026-06-03 15:48:31] User ID: 1
[2026-06-03 15:48:31] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a204ccfe9dee7.29025505.jpg
[2026-06-03 15:48:31] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a204ccfe9dee7.29025505.jpg
[2026-06-03 15:48:31] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a204ccfe9dee7.29025505.jpg
[2026-06-03 15:48:31] Using OCR.space API
[2026-06-03 15:48:31] Using API key: K8465...
[2026-06-03 15:48:33] OCR.space API attempt 1 completed with HTTP code: 200
[2026-06-03 15:48:33] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-06-03 15:48:33] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-06-03 15:48:33] Extracting health metrics from text
[2026-06-03 15:48:33] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-06-03 15:48:33] Detected generic label/value column layout
[2026-06-03 15:48:33] Pass0 columnar matched weight = 167.5
[2026-06-03 15:48:33] Pass0 columnar matched body_fat_percent = 19.4
[2026-06-03 15:48:33] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-06-03 15:48:33] Pass0 columnar matched bmr = 1510
[2026-06-03 15:48:33] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-06-03 15:48:33] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-06-03 15:48:33] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-06-03 15:48:33] Pass1 matched visceral_fat = 11
[2026-06-03 15:48:33] Pass1 matched bmi = 26.9
[2026-06-03 15:48:33] Pass1 matched bone_mass_percent = 3.9
[2026-06-03 15:48:33] Pass1 matched water_percent = 55.3
[2026-06-03 15:48:33] Found 11 metrics in total
[2026-06-03 15:48:33] Extracted data: {"date":"2026-06-03","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-06-03 15:48:33] Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot.
[2026-06-03 15:48:33] Response: {"success":false,"message":"Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot."}
[2026-06-04 14:43:23] Health image upload received
[2026-06-04 14:43:23] User ID: 1
[2026-06-04 14:43:23] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a218f0bed9083.70896670.jpg
[2026-06-04 14:43:23] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a218f0bed9083.70896670.jpg
[2026-06-04 14:43:23] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a218f0bed9083.70896670.jpg
[2026-06-04 14:43:23] Using OCR.space API
[2026-06-04 14:43:23] Using API key: K8465...
[2026-06-04 14:43:25] OCR.space API attempt 1 completed with HTTP code: 200
[2026-06-04 14:43:25] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-06-04 14:43:25] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-06-04 14:43:25] Extracting health metrics from text
[2026-06-04 14:43:25] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-06-04 14:43:25] Detected generic label/value column layout
[2026-06-04 14:43:25] Pass0 columnar matched weight = 167.5
[2026-06-04 14:43:25] Pass0 columnar matched body_fat_percent = 19.4
[2026-06-04 14:43:25] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-06-04 14:43:25] Pass0 columnar matched bmr = 1510
[2026-06-04 14:43:25] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-06-04 14:43:25] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-06-04 14:43:25] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-06-04 14:43:25] Pass1 matched visceral_fat = 11
[2026-06-04 14:43:25] Pass1 matched bmi = 26.9
[2026-06-04 14:43:25] Pass1 matched bone_mass_percent = 3.9
[2026-06-04 14:43:25] Pass1 matched water_percent = 55.3
[2026-06-04 14:43:25] Found 11 metrics in total
[2026-06-04 14:43:25] Extracted data: {"date":"2026-06-04","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-06-04 14:43:25] Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot.
[2026-06-04 14:43:25] Response: {"success":false,"message":"Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot."}
[2026-06-04 15:38:47] Health image upload received
[2026-06-04 15:38:47] User ID: 1
[2026-06-04 15:38:47] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a219c07babce8.53573167.jpg
[2026-06-04 15:38:47] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a219c07babce8.53573167.jpg
[2026-06-04 15:38:47] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a219c07babce8.53573167.jpg
[2026-06-04 15:38:47] Using OCR.space API
[2026-06-04 15:38:47] Using API key: K8465...
[2026-06-04 15:38:49] OCR.space API attempt 1 completed with HTTP code: 200
[2026-06-04 15:38:49] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-06-04 15:38:49] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-06-04 15:38:49] Extracting health metrics from text
[2026-06-04 15:38:49] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-06-04 15:38:49] Detected generic label/value column layout
[2026-06-04 15:38:49] Pass0 columnar matched weight = 167.5
[2026-06-04 15:38:49] Pass0 columnar matched body_fat_percent = 19.4
[2026-06-04 15:38:49] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-06-04 15:38:49] Pass0 columnar matched bmr = 1510
[2026-06-04 15:38:49] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-06-04 15:38:49] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-06-04 15:38:49] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-06-04 15:38:49] Pass1 matched visceral_fat = 11
[2026-06-04 15:38:49] Pass1 matched bmi = 26.9
[2026-06-04 15:38:49] Pass1 matched bone_mass_percent = 3.9
[2026-06-04 15:38:49] Pass1 matched water_percent = 55.3
[2026-06-04 15:38:49] Found 11 metrics in total
[2026-06-04 15:38:49] Extracted data: {"date":"2026-06-04","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-06-04 15:38:49] Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot.
[2026-06-04 15:38:49] Response: {"success":false,"message":"Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot."}
[2026-06-04 17:10:31] Health image upload received
[2026-06-04 17:10:31] User ID: 1
[2026-06-04 17:10:31] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a21b1879982b1.20198024.jpg
[2026-06-04 17:10:31] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a21b1879982b1.20198024.jpg
[2026-06-04 17:10:31] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a21b1879982b1.20198024.jpg
[2026-06-04 17:10:31] Using OCR.space API
[2026-06-04 17:10:31] Using API key: K8465...
[2026-06-04 17:10:33] OCR.space API attempt 1 completed with HTTP code: 200
[2026-06-04 17:10:33] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-06-04 17:10:33] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-06-04 17:10:33] Extracting health metrics from text
[2026-06-04 17:10:33] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-06-04 17:10:33] Detected generic label/value column layout
[2026-06-04 17:10:33] Pass0 columnar matched weight = 167.5
[2026-06-04 17:10:33] Pass0 columnar matched body_fat_percent = 19.4
[2026-06-04 17:10:33] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-06-04 17:10:33] Pass0 columnar matched bmr = 1510
[2026-06-04 17:10:33] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-06-04 17:10:33] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-06-04 17:10:33] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-06-04 17:10:33] Pass1 matched visceral_fat = 11
[2026-06-04 17:10:33] Pass1 matched bmi = 26.9
[2026-06-04 17:10:33] Pass1 matched bone_mass_percent = 3.9
[2026-06-04 17:10:33] Pass1 matched water_percent = 55.3
[2026-06-04 17:10:33] Found 11 metrics in total
[2026-06-04 17:10:33] Extracted data: {"date":"2026-06-04","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-06-04 17:10:33] Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot.
[2026-06-04 17:10:33] Response: {"success":false,"message":"Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot."}
[2026-06-05 17:27:40] Health image upload received
[2026-06-05 17:27:40] User ID: 1
[2026-06-05 17:27:40] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a23070c6deb97.53285028.jpg
[2026-06-05 17:27:40] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a23070c6deb97.53285028.jpg
[2026-06-05 17:27:40] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a23070c6deb97.53285028.jpg
[2026-06-05 17:27:40] Using OCR.space API
[2026-06-05 17:27:40] Using API key: K8465...
[2026-06-05 17:27:42] OCR.space API attempt 1 completed with HTTP code: 200
[2026-06-05 17:27:42] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-06-05 17:27:42] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-06-05 17:27:42] Extracting health metrics from text
[2026-06-05 17:27:42] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-06-05 17:27:42] Detected generic label/value column layout
[2026-06-05 17:27:42] Pass0 columnar matched weight = 167.5
[2026-06-05 17:27:42] Pass0 columnar matched body_fat_percent = 19.4
[2026-06-05 17:27:42] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-06-05 17:27:42] Pass0 columnar matched bmr = 1510
[2026-06-05 17:27:42] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-06-05 17:27:42] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-06-05 17:27:42] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-06-05 17:27:42] Pass1 matched visceral_fat = 11
[2026-06-05 17:27:42] Pass1 matched bmi = 26.9
[2026-06-05 17:27:42] Pass1 matched bone_mass_percent = 3.9
[2026-06-05 17:27:42] Pass1 matched water_percent = 55.3
[2026-06-05 17:27:42] Found 11 metrics in total
[2026-06-05 17:27:42] Extracted data: {"date":"2026-06-05","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-06-05 17:27:42] Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot.
[2026-06-05 17:27:42] Response: {"success":false,"message":"Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot."}
[2026-06-05 17:30:52] Processing image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-06-05 17:30:52] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/test_health_image.jpg
[2026-06-05 17:30:52] Using OCR.space API
[2026-06-05 17:30:52] Using API key: K8465...
[2026-06-05 17:30:54] OCR.space API attempt 1 completed with HTTP code: 200
[2026-06-05 17:30:54] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"HEALTH METRICS\nWEIGHT\nBMI\n167.5 lbs\nHIGH\n26.9\nHIGH\nBODY FAT %\nMUSCLE MASS\n19.4 %\nSTANDARD\n128.5 lbs\nEXCELLENT\nMUSCLE MASS %\nBONE MASS %\n76.7 %\nEXCELLENT\n3.9%\nLOW\nBMR\nWATER\n1510 kcal\nLOW\n55.3 %\nSTANDARD\nBODY FAT MASS\nLEAN BODY MASS\n32.4 lbs\nSTANDARD\n135.1 lbs\nSTANDARD\nBONE MASS\nVIS...
[2026-06-05 17:30:54] OCR.space API extracted text: HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
...
[2026-06-05 17:30:54] Extracting health metrics from text
[2026-06-05 17:30:54] Full OCR text for parsing:
HEALTH METRICS
WEIGHT
BMI
167.5 lbs
HIGH
26.9
HIGH
BODY FAT %
MUSCLE MASS
19.4 %
STANDARD
128.5 lbs
EXCELLENT
MUSCLE MASS %
BONE MASS %
76.7 %
EXCELLENT
3.9%
LOW
BMR
WATER
1510 kcal
LOW
55.3 %
STANDARD
BODY FAT MASS
LEAN BODY MASS
32.4 lbs
STANDARD
135.1 lbs
STANDARD
BONE MASS
VISCERAL FAT
6.6 Ibs
LOW
11
HIGH
[2026-06-05 17:30:54] Detected generic label/value column layout
[2026-06-05 17:30:54] Pass0 columnar matched weight = 167.5
[2026-06-05 17:30:54] Pass0 columnar matched bmi = 26.9
[2026-06-05 17:30:54] Pass0 columnar matched body_fat_percent = 19.4
[2026-06-05 17:30:54] Pass0 columnar matched muscle_mass_lbs = 128.5
[2026-06-05 17:30:54] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-06-05 17:30:54] Pass0 columnar matched bone_mass_percent = 3.9
[2026-06-05 17:30:54] Pass0 columnar matched bmr = 1510
[2026-06-05 17:30:54] Pass0 columnar matched water_percent = 55.3
[2026-06-05 17:30:54] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-06-05 17:30:54] Pass0 columnar matched lean_body_mass_lbs = 135.1
[2026-06-05 17:30:54] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-06-05 17:30:54] Pass0 columnar matched visceral_fat = 11
[2026-06-05 17:30:54] Found 12 metrics in total
[2026-06-05 17:32:09] Health image upload received
[2026-06-05 17:32:09] Error: Missing or invalid user_id
[2026-06-05 17:32:09] Response: {"success":false,"message":"Error: Missing or invalid user_id"}
[2026-06-05 17:33:08] Health image upload received
[2026-06-05 17:33:08] User ID: 1
[2026-06-05 17:33:08] Image saved to: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a230854f16503.22298423.jpg
[2026-06-05 17:33:08] Processing image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a230854f16503.22298423.jpg
[2026-06-05 17:33:08] Starting OCR text extraction for image: /home/fhpkenos/public_html/FitnessApp/uploads/health_images/health_6a230854f16503.22298423.jpg
[2026-06-05 17:33:08] Using OCR.space API
[2026-06-05 17:33:08] Using API key: K8465...
[2026-06-05 17:33:10] OCR.space API attempt 1 completed with HTTP code: 200
[2026-06-05 17:33:10] OCR.space API raw response: {"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"WEIGHT\n167.5 lbs\nHIGH\nBODY FAT%\n19.4 %\nSTANDARD\nMUSCLE MASS %\n76.7%\nEXCELLENT\nBMR\n1510 kcal\nLOW\nBODY FAT MASS\n32.4 1bs\nSTANDARD\nBONE MASS\n6.6 lbs\nLOW\nHEALTH METRICS\n160-165\nBMI\n26.9\nHIGH\nMUSCLE MASS\n128.5 lbs\nEXCELLENT\nBONE MASS %\n3.9%\nLOW\nWATER\n55.3 %\nSTANDARD\nLEAN BODY MASS\n135...
[2026-06-05 17:33:10] OCR.space API extracted text: WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY...
[2026-06-05 17:33:10] Extracting health metrics from text
[2026-06-05 17:33:10] Full OCR text for parsing:
WEIGHT
167.5 lbs
HIGH
BODY FAT%
19.4 %
STANDARD
MUSCLE MASS %
76.7%
EXCELLENT
BMR
1510 kcal
LOW
BODY FAT MASS
32.4 1bs
STANDARD
BONE MASS
6.6 lbs
LOW
HEALTH METRICS
160-165
BMI
26.9
HIGH
MUSCLE MASS
128.5 lbs
EXCELLENT
BONE MASS %
3.9%
LOW
WATER
55.3 %
STANDARD
LEAN BODY MASS
135.1 lbs
STANDARD
VISCERAL FAT
11
HIGH
14-18
[2026-06-05 17:33:10] Detected generic label/value column layout
[2026-06-05 17:33:10] Pass0 columnar matched weight = 167.5
[2026-06-05 17:33:10] Pass0 columnar matched body_fat_percent = 19.4
[2026-06-05 17:33:10] Pass0 columnar matched muscle_mass_percent = 76.7
[2026-06-05 17:33:10] Pass0 columnar matched bmr = 1510
[2026-06-05 17:33:10] Pass0 columnar matched body_fat_mass_lbs = 32.4
[2026-06-05 17:33:10] Pass0 columnar matched bone_mass_lbs = 6.6
[2026-06-05 17:33:10] Pass0 columnar matched lean_body_mass_lbs = 55.3
[2026-06-05 17:33:10] Pass1 matched visceral_fat = 11
[2026-06-05 17:33:10] Pass1 matched bmi = 26.9
[2026-06-05 17:33:10] Pass1 matched bone_mass_percent = 3.9
[2026-06-05 17:33:10] Pass1 matched water_percent = 55.3
[2026-06-05 17:33:10] Found 11 metrics in total
[2026-06-05 17:33:10] Extracted data: {"date":"2026-06-05","weight":167.5,"body_fat_percent":19.4,"lean_body_mass_lbs":55.3,"muscle_mass_lbs":null,"bmi":26.9,"water_percent":55.3,"muscle_mass_percent":76.7,"bone_mass_percent":3.9,"bmr":1510,"visceral_fat":11,"body_fat_mass_lbs":32.4,"bone_mass_lbs":6.6}
[2026-06-05 17:33:10] Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot.
[2026-06-05 17:33:10] Response: {"success":false,"message":"Error: OCR detected inconsistent body composition values. Please upload a clearer report screenshot."}

Test Complete

The test has verified that the image processing works correctly and that the correct values are being extracted from the image.

To see the updated values in the app:

  1. Refresh the Progress screen in the app
  2. The latest health metrics should now show the values from the uploaded image (167.5 lbs weight, etc.)