Skip to content

samryan18/chess-dataset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chess Board Dataset

Photos by @mukund-v and @samryan18.

Description:

500 images of chess boards labeled with Forsyth–Edwards Notation for use in image classification. Includes both raw images and preprocessed images.

Example Original and Preprocessed

Example photo

Directory Structure

labeled_originals/
# contains 500 board images labeled with FEN notation

labeled_preprocessed/
# contains preprocessed images labeled with FEN notation (1:1 correspondence with original photos)

Preprocessing Steps

  1. Convert image to binary bitmap
  2. Blur the image
  3. Sobol Filter
  4. Canny Edge Detectors
  5. Finding Contours with cv2
  6. "Prune the contours"—Ramer–Douglas–Peucker Algorithm to reconcile "almost lines"
  7. Find line intersections
  8. Sanity checks
    • convex hull
    • correct num points
    • check angles between lines
  9. Warp images
  10. Write to new files
Example photo

More info on preprocessing can be found here. Thanks to @Elucidation for the start here.

About

Dataset of 500 labeled images of chess games (handcrafted w/ ❤️)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors