BenjaminKost commited on
Commit
1c09990
·
verified ·
1 Parent(s): 6a48ec9

Update README.md

Browse files

Example for usage

Files changed (1) hide show
  1. README.md +15 -1
README.md CHANGED
@@ -41,4 +41,18 @@ There are 2 versions of this dataset
41
  # Description
42
  The Handwritten Chess Scoresheet Datase (HCS) contains a set of single and double paged chess scoresheet images with ground truth labels.
43
  The unprocessed images are a list of the scoresheets the corresponding labels.
44
- The labels are a list of strings of the chess moves shown on the scoresheet in the order of the right order as on the scoresheet.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  # Description
42
  The Handwritten Chess Scoresheet Datase (HCS) contains a set of single and double paged chess scoresheet images with ground truth labels.
43
  The unprocessed images are a list of the scoresheets the corresponding labels.
44
+ The labels are a list of strings of the chess moves shown on the scoresheet in the order of the right order as on the scoresheet.
45
+
46
+ # Usage
47
+ ## In Python script
48
+ ```python
49
+ from datasets import Dataset
50
+ unprocessed_hcs = datasets.load_dataset("Benjaminkost/unprocessed_hcs")
51
+
52
+ # Show first image
53
+ first_image = unprocessed_hcs["train"][0]["image"]
54
+ first_label = unprocessed_hcs["train"][0]["labels"]
55
+
56
+ first_image.show()
57
+ print(first_label)
58
+ ```