[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"}
