sudoku puzzle extraction
play

SUDOKU PUZZLE EXTRACTION PROJECT BY: BORIS SPEKTOR INTRODUCTION - PowerPoint PPT Presentation

SUDOKU PUZZLE EXTRACTION PROJECT BY: BORIS SPEKTOR INTRODUCTION AND GOALS BORED PEOPLE SOMETIMES OPEN THE PUZZLE SECTION OF A NEWSPAPER TRY TO SOLVE THE SUDOKU PUZZLES IN THERE MAY FAIL COULD GET FRUSTRATING WHAT IF YOU COULD


  1. SUDOKU PUZZLE EXTRACTION PROJECT BY: BORIS SPEKTOR

  2. INTRODUCTION AND GOALS • BORED PEOPLE SOMETIMES OPEN THE PUZZLE SECTION OF A NEWSPAPER • TRY TO SOLVE THE SUDOKU PUZZLES IN THERE • MAY FAIL – COULD GET FRUSTRATING • WHAT IF YOU COULD GET A HINT? • GOAL – EXTRACT THE PUZZLE FROM THE PAPER

  3. APPROACH AND METHOD • ALIGN THE PUZZLE WITH THE SCREEN • DIVIDE THE PUZZLE INTO 9X9 SQUARES • TREAT EACH SQUARE SEPARATELY

  4. PREPROCESSING • READ AN IMAGE

  5. PREPROCESSING • READ AN IMAGE • CONVERT TO GRAYSCALE

  6. PREPROCESSING • READ AN IMAGE • CONVERT TO GRAYSCALE • INCREASE CONTRAST

  7. PREPROCESSING • READ AN IMAGE • CONVERT TO GRAYSCALE • INCREASE CONTRAST • THRESHOLD

  8. PREPROCESSING • READ AN IMAGE • CONVERT TO GRAYSCALE • INCREASE CONTRAST • THRESHOLD • INVERSE

  9. PREPROCESSING • READ AN IMAGE • CONVERT TO GRAYSCALE • INCREASE CONTRAST • THRESHOLD • INVERSE • REMOVE SMALL OBJECTS

  10. FINDING THE CORNERS OF THE PUZZLE • FIND THE CLOSEST PIXEL TO THE CORNERS OF THE IMAGE BY MINIMIZING VERTICAL + HORIZONTAL DISTANCE

  11. CALCULATING AND APPLYING AN HOMOGRAPHY • CALCULATE THE HOMOGRAPHY MATRIX TO TRANSFORM THE IMAGE TO SCREEN COORDINATES

  12. CALCULATING AND APPLYING AN HOMOGRAPHY • CALCULATE THE HOMOGRAPHY MATRIX TO TRANSFORM THE IMAGE TO SCREEN COORDINATES • CROP

  13. EXTRACTING AND IDENTIFYING THE NUMBERS • DIVIDE IMAGE INTO 9X9 SQUARES AND IDENTIFY EACH SQUARE SEPARATELY USING OCR

  14. EXTRACTING AND IDENTIFYING THE NUMBERS • DIVIDE IMAGE INTO 9X9 SQUARES AND IDENTIFY EACH SQUARE SEPARATELY USING OCR

  15. RESULTS

  16. PROBLEMS • IMAGE WITH NON-UNIFORM LIGHTING • DIFFERENT FONTS FOR DIFFERENT PUZZLES • SIMILARITY OF DIGITS (FOR EXAMPLE 5 AND 6)

  17. CONCLUSIONS • RESULTS NOT BAD – CAN ALWAYS IMPROVE • MIGHT BE USEFUL FOR THE BORED

Recommend


More recommend