Improve Python Perspective Correction Script

  • Status: Closed
  • Prize: $75
  • Entries Received: 16
  • Winner: mbsheikh2018

Contest Brief

I'm seeking a freelance Python developer to improve the performance of a perspective correction script which is currently struggling with shapes that have more than 4 points.

I have a Python script that does perspective correction of the images.
It works in cases where the shape has 4 corners.
If a shape has more than 4 corners, the script will not work.
Please see attached Working-Case.jpg and NON-Working-Case.jpg
The script obviously fails on the "L" shapes.
The NON-Working-Case.jpg has the expected result simulated.

Attached is a zipped folder with everything you need to start.
To run a script, use this command coordinates.py {filename}
Example coordinates.py UE0ydkLyu4.jpg
The "source" folder has various source images that have working and non-working cases.

I need a solution that will work in most "non-working" cases.

This script also has a function that saves points coordinates to JSON (before, after, and applied translations)
It needs to be working and save only 4 points.


Once a first working solution is submitted, I will make this contest "Guaranteed".

Please don't post your code publically so other people will not copy your code.

Recommended Skills

Employer Feedback

“Very positive experience. Maryam was a pleasure to work with. ”

Profile image ashevillemnt, United States.

Public Clarification Board

  • ashevillemnt
    Contest Holder
    • 1 month ago

    I have run all the submitted scripts.
    I will be doing a comparison within the next two days.
    I will also be testing the point coordinates.
    If anyone is interested in seeing different results, I uploaded them here: https://u.pcloud.link/publink/show?code=kZLCpb0Zq4HpJeR4517XKMlW8BtAbLDnSJ0V
    The file names are randomly assigned for each submission.

    • 1 month ago
  • ashevillemnt
    Contest Holder
    • 1 month ago

    Once again, thank you everyone for the participation!
    I will be running tests on the scripts during the next few days.
    If anyone made any updates to their scripts, you can still share them with me within the next 24 hours.

    • 1 month ago
  • mbsheikh2018
    mbsheikh2018
    • 1 month ago

    Hi, i have shared another refined version that is working more better

    • 1 month ago
  • achyuttiwari22
    achyuttiwari22
    • 1 month ago

    #15

    • 1 month ago
  • ashevillemnt
    Contest Holder
    • 1 month ago

    I have added some before and expected "after" images.
    They were simulated in Photoshop.
    I have also increased the contest prize to $75.
    This contest is now Guaranteed.

    • 1 month ago
  • muyen2023
    muyen2023
    • 1 month ago

    Please check my entry#14

    • 1 month ago
  • muyen2023
    muyen2023
    • 1 month ago

    Please check my entry #12

    • 1 month ago
  • muyen2023
    muyen2023
    • 1 month ago

    Please check my entry#13

    • 1 month ago
  • sawerababar65
    sawerababar65
    • 1 month ago

    Dear Client, I would greatly appreciate your response and feedback.

    • 1 month ago
  • sawerababar65
    sawerababar65
    • 1 month ago

    I hope you're well. Could you kindly review and provide feedback on the Python Perspective Correction Script I've worked on? Thank you, Sawera Babar."

    • 1 month ago
  • mbsheikh2018
    mbsheikh2018
    • 1 month ago

    I have just shared with you directly the updated version of script and it should work with all source images to identify edges, rectangles and also transform them.

    • 1 month ago
  • achyuttiwari22
    achyuttiwari22
    • 1 month ago

    Have a check over entry #2 . This is basically output after execution of code for image which was not working with previous code.

    • 1 month ago
    1. ashevillemnt
      Contest Holder
      • 1 month ago

      Thanks for your entry.
      The output code doesn't mean that script is working properly.
      I will need to test the script before I can accept your entry.

      • 1 month ago
  • mbsheikh2018
    mbsheikh2018
    • 1 month ago

    Hi, I have achieved that as well, and attached both console screen shot and the rectangle image. Would ask to get my code first and see if it works for you, Thanks

    • 1 month ago
  • achyuttiwari22
    achyuttiwari22
    • 1 month ago

    Can help you in resolving the errors. Connect with me.

    • 1 month ago

Show more comments

How to get started with contests

  • Post your contest

    Post Your Contest Quick and easy

  • Get tons of entries

    Get Tons of Entries From around the world

  • Award the best entry

    Award the best entry Download the files - Easy!

Post a Contest Now or Join us Today!