
Completed
Posted
Paid on delivery
My Python/OpenCV project already detects faces reliably, yet the LBPH recognizer keeps assigning the wrong identity. The core logic is built around the standard OpenCV LBPH algorithm, so I suspect the problem lies in the preprocessing pipeline, training data, or threshold tuning rather than in detection itself. I will share: • the current training set and labels • the recognition script (Haar cascade for detection, LBPH for recognition) • a handful of test images that reproduce the misidentification What I need back is an updated script or set of functions that consistently returns the correct label on those test images, along with a brief explanation of the changes so I can keep accuracy high when I add new faces later. If parameter tweaks alone aren’t enough, feel free to add data-augmentation, better grayscale normalization, or any other OpenCV-friendly improvement you think is appropriate—just keep it compatible with the existing LBPH workflow.
Project ID: 40803846
85 proposals
Remote project
Active 7 days ago
Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs

Hi, Your face detection is already working, so the main issue is likely inconsistent preprocessing, incorrect label mapping, or poorly calibrated LBPH confidence thresholds rather than the Haar cascade itself. I have experience with Python, OpenCV, face recognition, computer vision, and CCTV analytics systems involving face identification, object detection, and tracking. MY APPROACH: 1. Review your training images, labels, recognition script, and failing test cases. 2. Verify label-to-identity mapping and consistency between training and inference. 3. Standardize face cropping, grayscale conversion, resizing, and histogram normalization. 4. Tune LBPH radius, neighbors, grid dimensions, and confidence thresholds. 5. Add targeted data augmentation if lighting, pose, or image quality is causing errors. 6. Introduce unknown-face rejection to prevent incorrect identity assignments. 7. Validate recognition accuracy against your test images and document the improvements. I'll preserve your existing Haar Cascade + LBPH architecture without introducing unnecessary deep-learning dependencies. DELIVERABLES: - Updated Python/OpenCV recognition code. - Corrected preprocessing and label handling. - Validation results and recommended thresholds. - Brief documentation for adding new identities. Estimated timeline: 1–2 days. Fixed price: $40 USD. I can start by reviewing your recognition script and the images that reproduce the problem. Thanks!
$40 USD in 1 day
1.2
1.2
85 freelancers are bidding on average $121 USD for this job

Most LBPH mislabels trace back to training crops that don't match the test crops in size, framing or lighting, not to the recognizer itself. That is where we look first. Day 1 you get a short diagnosis of why each test image flips to the wrong name. By day 3, the corrected code returning the right label on all of them, plus notes on keeping it stable as you add people. 1. Roughly how many training images per person, and is anyone heavily over-represented? 2. Does it run on a live webcam feed or only on still images? We can start as soon as the files land in chat.
$115 USD in 3 days
7.9
7.9

Python is one of my listed core skills, and my software architecture background fits the kind of debugging needed when face detection works but LBPH recognition produces incorrect labels. I can work within your existing Python/OpenCV workflow and focus on the recognition pipeline rather than replacing the reliable Haar-cascade detection. My approach will be grounded in the areas you identified: checking label-to-image mapping, training-image consistency, grayscale preprocessing, face-region sizing and alignment, LBPH parameters, and confidence-threshold handling. Where appropriate, I can also apply Python-based augmentation or normalization while keeping the solution compatible with LBPH. My JavaScript and software development experience further supports clean, maintainable functions and a clear explanation of the changes. I will deliver an updated script or focused functions aimed at improving the supplied test cases and making future face additions more dependable. Choose me to troubleshoot the recognition logic and refine your existing implementation.
$140 USD in 7 days
7.9
7.9

Hello, I can help you with "Fix LBPH Face Misidentification" as per your given set of instructions. Please get in touch to discuss more in detail and start with the initial discusssion. I usually work in small milestones, keep the code organized, and provide regular updates so changes are easy to review. Let's discuss the current setup. I'll suggest the best implementation and an accurate timeline. ⭐ 5.0/5 from a recent client: "Excellent work. Would definitely utilize again. Stellar job!" Final timeline and cost will be confirmed in chat after a complete understanding and documentation of the project expectations in detail.
$175 USD in 3 days
6.8
6.8

I see you’re dealing with LBPH misidentifications in your OpenCV project, which suggests a need for targeted adjustments in your preprocessing pipeline or parameter tuning. I can help you refine the recognition script to ensure it assigns correct labels consistently on your test images, focusing on the training data and exploring data-augmentation as you mentioned. If necessary, I can also implement improved grayscale normalization or other enhancements to bolster accuracy while keeping everything compatible with LBPH. This approach will enable you to maintain high accuracy as you expand the dataset later. Happy to discuss the intricacies further and suggest optimal technical strategies. Regards, Ali
$90 USD in 1 day
6.5
6.5

Hi, LBPH misidentification usually traces back to inconsistent preprocessing between training and recognition—lighting, face crop size, or histogram normalization differences that the model learned to exploit rather than ignore. I'd start by aligning those pipelines, then check whether your threshold is set too low (accepting weak matches) and whether your training set has enough pose variation per identity. I'll examine your training data for class imbalance or poor quality samples, verify the grayscale conversion and histogram equalization are identical at train and recognition time, and test different threshold values against your test images to find where accuracy breaks. If needed, I'd add simple augmentation (rotation, brightness shifts) to the training loop so the model generalizes better to real-world lighting. The updated script will keep the LBPH workflow intact—just with preprocessing and threshold tuning documented so you can apply the same logic when adding new faces. I'll verify the fix by running your test images through the updated recognizer and confirming it returns the correct labels consistently. Send the training set, labels, recognition script, and test images, and I'll start by profiling the preprocessing differences between train and recognition phases. Denis
$150 USD in 3 days
6.5
6.5

LBPH always returns the nearest label, even for a weak match. Without consistent face crops and a tuned confidence threshold, it'll confidently assign wrong identities. Fixing preprocessing usually matters more than retuning the model. Quick questions - how many images per person are in your training set, and were they captured under similar lighting? And do you need an "Unknown" result for faces that aren't enrolled? Here is the architectural approach: - PREPROCESSING: Align faces using Haar cascade eye detection, crop to a fixed size, and apply CLAHE for consistent grayscale normalization. - DATA AUGMENTATION: Add flips, small rotations, and brightness shifts so each identity has balanced, lighting-robust samples. - THRESHOLD TUNING: Grid-search LBPH radius, neighbors, and grid size, then set a confidence cutoff validated on your test images. I've built OpenCV recognition pipelines where most accuracy gains came from data hygiene, not model swaps. Send over the training set and script, and I'll pinpoint the failure before changing a line.
$130 USD in 3 days
7.2
7.2

Hello, Wrong IDs with LBPH almost always mean the model is getting messy signals before it compares faces. Since detection already works, I would start with how faces are cropped, aligned, and normalized, then look at label balance and the confidence cutoff that decides when a match is good enough. Here is how I would tackle it. First I line up your training set against the failing test images and spot what trips the recognizer (lighting, crop size, pose, uneven samples per person). Next I tune the LBPH settings and a reject threshold so weak matches do not get forced into the wrong name. If tweaks alone are not enough, I add OpenCV-friendly prep such as better grayscale normalization and light data augmentation, still inside your current Haar plus LBPH flow. You get an updated script or helper functions that return the correct labels on those test images, plus a short plain-English note on what changed and how to keep accuracy solid when you add new faces later.
$110 USD in 7 days
6.0
6.0

Perfect Match "FIX WRONG FACE LABELS WITHOUT REPLACING YOUR LBPH WORKFLOW" - Since face detection already works, I would focus on why the recognizer confuses identities, starting with the training pipeline, image consistency, and confidence threshold rather than changing the detection logic. I would review your existing Python/OpenCV script, training images, labels, and misidentified test cases. Then I would check face alignment and cropping, grayscale normalization, image dimensions, training samples per person, and LBPH parameters. If needed, I would add controlled data augmentation and tune the unknown-face threshold to reduce false matches. You will receive an updated, compatible script or functions, tests against the supplied images, and a brief explanation of the changes so you can maintain the model as new faces are added. I would also distinguish genuine recognition improvements from cases where the available images do not provide enough information for reliable identification. Can you share the current script and a few examples showing both the incorrect prediction and the expected identity? Looking forward to working with you.
$150 USD in 1 day
5.7
5.7

Hi there, I understand your frustration with the LBPH recognizer misidentifying faces despite reliable detection. Having worked extensively with Python, OpenCV, and face recognition pipelines—including troubleshooting LBPH and optimizing preprocessing for better accuracy—I can help address these inconsistencies in your system. From your description, the likely culprits are suboptimal preprocessing, inconsistencies in the training data, or improper threshold/parameter settings. My approach will begin with a thorough analysis of your training images, labels, and test cases to spot any data quality or labeling issues. I will then review your recognition script's preprocessing steps—such as grayscale normalization, histogram equalization, and image resizing—to ensure consistency between training and prediction. If necessary, I’ll enhance the dataset via data augmentation (e.g., rotations, lighting adjustments) to improve the model’s generalization. I’ll also experiment with LBPH parameters (radius, neighbors, grid sizes, and thresholds) to find optimal values for your use case. All improvements will remain fully compatible with your current OpenCV-based workflow. You will receive an updated script or modular functions that deliver reliable recognition on your provided test images, along with a concise guide explaining the changes and suggestions for maintaining high accuracy as you expand your dataset. Looking forward to helping you improve your face recognition pipeline. Best Regards
$30 USD in 5 days
5.9
5.9

Hello, The most likely cause is a preprocessing and label-consistency mismatch rather than LBPH itself: inconsistent face ROI sizes, differing grayscale normalization, label ordering or stray duplicate labels in the training set, and a too-permissive confidence threshold commonly cause stable detection but wrong identity assignment. I have resolved similar LBPH misidentification issues by auditing the training pipeline, enforcing fixed ROI size and alignment, applying controlled histogram equalization or CLAHE, normalizing pixel ranges, and adding lightweight augmentation to cover pose and lighting. In past projects I retrained LBPH with cleaned label maps and tuned the radius/points/grid settings to match the camera and dataset, which reduced cross-identity confusion on held-out test images. I will start by running a deterministic preprocessing pass on your training set and test images: enforce face ROI cropping and resizing, consistent grayscale normalization (optional CLAHE), verify label-to-image mapping, and run a grid search over LBPH parameters and confidence threshold. If needed I will add synthetic augmentations (small rotations, brightness jitter) and return an updated training script plus a recognition function that reproduces correct labels on your provided test images, with short instructions for adding new faces. - Do you want me to keep the existing Haar cascade detection step unchanged or replace it with aligned facial landmarks for ROI? - Are there any constraints on runtime or dependencies beyond OpenCV and standard Python libraries? Sincerely, Matthew Reese
$30 USD in 1 day
5.3
5.3

Python-based computer vision troubleshooting is a strong match for my 8+ years of experience delivering artificial intelligence and machine learning solutions. I can work directly within your existing Haar cascade and OpenCV LBPH workflow, focusing on the recognition stage rather than replacing reliable face detection. My background includes computer vision, machine learning, data pipelines, and production-ready Python systems. That is relevant to diagnosing the factors that commonly cause LBPH misidentification, including inconsistent face crops, grayscale preprocessing, training labels, image quality, and recognition thresholds. I can also apply suitable normalization or augmentation while keeping the solution compatible with your current architecture, then provide clean updated functions or a script with a concise explanation for maintaining accuracy as new identities are added. I am ready to use my Python and software architecture experience to make the recognizer more reliable and easier to extend. Choose me to resolve the misidentification issue cleanly within your existing LBPH setup.
$140 USD in 7 days
5.1
5.1

Hey, I can investigate why your Haar Cascade detection is working correctly while the LBPH recognizer assigns incorrect identities. I would start by reproducing the issue using your existing script, training dataset and test images. Then I would review the face-cropping process, grayscale preprocessing, image normalization, training labels and LBPH confidence thresholds. Rather than changing parameters blindly, I would test the likely causes individually and validate the updated implementation against your supplied test images. The deliverable would include the corrected Python functions, validation results and a brief explanation of the changes so you can maintain the recognition workflow when adding new faces. Could you also share approximately how many training images you currently have per person, and whether the misidentification happens between similar-looking faces or across most identities?
$140 USD in 3 days
5.0
5.0

Hello Sir, I can resolve the LBPH face misidentification issue in your Python/OpenCV project effectively. My approach will involve analyzing the preprocessing pipeline and training data, along with fine-tuning the LBPH parameters. If necessary, I will implement data augmentation and improved normalization techniques while ensuring compatibility with your existing workflow. I am ready to start right away. Could you please provide the current training set for review? Thanks, Deepak
$100 USD in 4 days
4.7
4.7

A corrected recognition script that returns the right name on your test images, plus notes on what changed so new faces stay accurate. The hard part is telling a threshold problem from a labeling problem, since LBPH always returns its closest match. The order I would work in: 1. Check each training label against its folder, since one swapped label causes exactly this. 2. Run training and test crops through the same detect, resize and equalise steps. 3. Print each test image's distance and set the threshold from those numbers. 4. Put the add-face steps in one function so new people go through the same path. Check the first version on your test images before you pay for the rest. - 25 USD for steps 1 and 2 and the per-image output, before the end of your day. - 65 USD for the threshold, the add-face function and the notes, once every test image returns the right name. I can start today, beginning with a run of your current script on the test images.
$90 USD in 3 days
4.7
4.7

Hi, Misidentification is usually caused by inconsistent preprocessing, label noise, or poor normalization rather than the LBPH algorithm itself. From your description I expect issues in face alignment, grayscale normalization, or training labels producing overlapping histograms that make LBPH choose the wrong label under your current thresholding. I have fixed similar LBPH misidentification problems by cleaning labels, enforcing a consistent face crop and scale, applying contrast normalization and histogram equalization per face, and adding simple data augmentation (small rotations, brightness jitter, horizontal flip) to reduce overfitting to a single pose. I have applied these changes in production Python/OpenCV projects where Haar cascade detection worked but recognition needed preprocessing fixes to stabilize labels across varied lighting and poses. I will start by reproducing the failure on your provided test images, then deliver an updated recognition script or modular functions that: (1) standardize face alignment and resize, (2) perform adaptive histogram equalization and contrast normalization, (3) optionally augment the training set, and (4) retune LBPH radius/points/grid and the recognition threshold. If threshold tweaks fix it, I will stop there; otherwise I will add augmentation and normalization while keeping full compatibility with your LBPH workflow. - Do you want me to overwrite your existing training files or produce separate save/load functions so you can keep the original dataset unchanged? - Are there constraints on runtime or CPU since I may add per-face normalization or augmentation during training? Would love to jump on a quick call if that works for you. @melopgabriel
$30 USD in 1 day
4.6
4.6

Hello, LBPH misidentification with reliable Haar detection usually points to inconsistent face crops, grayscale normalization, label mapping, or confidence-threshold handling, not the detector itself. I’ll inspect the training and recognition paths against your supplied test images, verify that preprocessing is identical in both phases, and tune the LBPH parameters based on measured confidence values rather than guesswork. I’ll return an updated OpenCV-compatible script or focused functions, including practical safeguards for adding new identities and a brief explanation of each change. I can complete the first diagnostic and working correction within 2 days, with test results against the provided examples. Best regards, Bohdan
$150 USD in 2 days
4.3
4.3

I can fix this. LBPH misidentification usually comes from uneven lighting, inconsistent face crops, or a weak confidence threshold, not from detection. I will check each stage in order: grayscale normalization (histogram equalization or CLAHE), face crop size and alignment, label mapping in training, then LBPH radius, neighbors, grid settings, and the confidence threshold. I will add augmentation only where the training set is thin. You get a script that returns the correct label on your test images, plus notes on adding new faces without losing accuracy.
$50 USD in 1 day
4.3
4.3

I’ve debugged OpenCV face-recognition pipelines using Haar detection and LBPH, including label-mapping and confidence-threshold issues that caused repeat misidentification. For this project, the key is to standardize the face crop before training and prediction, because LBPH is highly sensitive to inconsistent size, grayscale range, alignment, and label order. I’ll inspect your dataset, labels, and recognition flow, then update the preprocessing and training functions while keeping the existing LBPH workflow intact. I’ll tune radius, neighbors, grid settings, and a rejection threshold, adding targeted augmentation only where the data needs it. I’ll verify the revised script against the supplied test images and explain how to add faces without degrading accuracy. Thanks, Kittipong
$180 USD in 5 days
3.9
3.9

Hello, "LBPH face recognition" assigning the wrong identities - the detection works, so the training and preprocessing pipeline needs to be investigated before changing the recognition algorithm. I'll inspect your labels, training images, preprocessing steps, and LBPH parameters, then reproduce the errors using your test images. I'll correct issues such as inconsistent grayscale normalization, image dimensions, label mapping, or threshold settings, and test the updated script against the supplied cases. I'll keep the solution compatible with your existing OpenCV workflow and explain how to maintain accuracy when adding new faces. Can you share the current recognition script and one test image that produces a wrong identity? Best regards, THANKS
$190 USD in 4 days
4.0
4.0

LBPH is confidence-based, not a hard classifier. If you are not thresholding the distance score and rejecting low-confidence matches, it will keep forcing an ID even on unseen faces. I would also check your training set size per person, LBPH needs decent sample variety per label or it collapses to the nearest neighbor. Can fix and retest within 48 hours. These numbers are based on the post as written, we will refine after a quick scope chat. Want to jump on a quick call?
$150 USD in 3 days
4.1
4.1

Calauan, Philippines
Payment method verified
Member since Oct 15, 2026
₹37500-75000 INR
₹100-400 INR / hour
₹400-750 INR / hour
$250-750 USD
$250-750 USD
$1500-3000 USD
$15-25 USD / hour
₹400-750 INR / hour
$2-8 USD / hour
₹37500-75000 INR
$3000-5000 USD
$15-25 USD / hour
min $50 USD / hour
$750-1500 USD
₹600-1500 INR
₹500000-1000000 INR
₹750-1250 INR / hour
₹12500-37500 INR
₹150000-250000 INR
$8-15 USD / hour