Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add more images with labels #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
MIT License

Copyright (c) 2019 Esmond Wong

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
MIT License
Copyright (c) 2019 Esmond Wong
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
181 changes: 93 additions & 88 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,88 +1,93 @@
# Mahjong Dataset
Computer Vision Dataset for Chinese Mahjong Tiles
<p float="left">
<img src="https://i.imgur.com/vyO4M5C.jpg" width="50" />
<img src="https://i.imgur.com/ges1OYy.jpg" width="50" />
<img src="https://i.imgur.com/ZUdhHhM.png" width="50" />
<img src="https://i.imgur.com/VXZyUFn.png" width="50" />
<img src="https://i.imgur.com/ey89Qkp.jpg" width="50" />
<img src="https://i.imgur.com/8xnwIOW.jpg" width="50" />
<img src="https://i.imgur.com/X6z6CHN.jpg" width="50" />
</p>

## Structures
- Raw, unsliced images are located under `./raw-images`
- Unscaled tile images are located under `./raw-tiles`
- Scaled, ready-to-use images are located under `./tiles-resized`
- Csv file containing tagged labels of the images, and the csv template file are located under `./tiles-data`
- Raw, unsliced images for untagged tiles are located under `./untagged-images-raw`
- Untagged tile images are located under `./untagged-tiles`

## Data
- Images are mostly scraped from Google image search, Ebay and Alibaba
- Scaled images have the dimension `240(W) x 320(H)`. Format used are `.jpg`

**Ready to use data bundle can be located at the root of the repo, namely `train.zip`. It contains**
- `images` folder for mahjong tile images
- `data.csv` for image labels
- Tagged labels are stored in csv with the following format:

| image-name | label | label-name |
| ---------- | ----- | ---------- |
| 1.jpg | 38 | bonus-winter |
| ... | ... | ... |

`label` is the index of the respective class of the image, see the classes below

## Classes
| table-name | table-index |
| --- | --- |
| dots-1 | 1 |
| dots-2 | 2 |
| dots-3 | 3 |
| dots-4 | 4 |
| dots-5 | 5 |
| dots-6 | 6 |
| dots-7 | 7 |
| dots-8 | 8 |
| dots-9 | 9 |
| bamboo-1 | 10 |
| bamboo-2 | 11 |
| bamboo-3 | 12 |
| bamboo-4 | 13 |
| bamboo-5 | 14 |
| bamboo-6 | 15 |
| bamboo-7 | 16 |
| bamboo-8 | 17 |
| bamboo-9 | 18 |
| characters-1 | 19 |
| characters-2 | 20 |
| characters-3 | 21 |
| characters-4 | 22 |
| characters-5 | 23 |
| characters-6 | 24 |
| characters-7 | 25 |
| characters-8 | 26 |
| characters-9 | 27 |
| honors-east | 28 |
| honors-south | 29 |
| honors-west | 30 |
| honors-north | 31 |
| honors-red | 32 |
| honors-green | 33 |
| honors-white | 34 |
| bonus-spring | 35 |
| bonus-summer | 36 |
| bonus-autumn | 37 |
| bonus-winter | 38 |
| bonus-plum | 39 |
| bonus-orchid | 40 |
| bonus-chrysanthemum | 41 |
| bonus-bamboo | 42 |

Refer the classes of mahjong tiles [here](https://en.wikipedia.org/wiki/Mahjong_tiles)

Feel free contribute to this repo with your own data.

## License
Open sourced under MIT License
# Mahjong Dataset

Computer Vision Dataset for Chinese Mahjong Tiles
<p float="left">
<img src="https://i.imgur.com/vyO4M5C.jpg" width="50" />
<img src="https://i.imgur.com/ges1OYy.jpg" width="50" />
<img src="https://i.imgur.com/ZUdhHhM.png" width="50" />
<img src="https://i.imgur.com/VXZyUFn.png" width="50" />
<img src="https://i.imgur.com/ey89Qkp.jpg" width="50" />
<img src="https://i.imgur.com/8xnwIOW.jpg" width="50" />
<img src="https://i.imgur.com/X6z6CHN.jpg" width="50" />
</p>

## Update

add more(629 \~ 709) Mahjong-tiles images with labels

## Structures
- Raw, unsliced images are located under `./raw-images`
- Unscaled tile images are located under `./raw-tiles`
- Scaled, ready-to-use images are located under `./tiles-resized`
- Csv file containing tagged labels of the images, and the csv template file are located under `./tiles-data`
- Raw, unsliced images for untagged tiles are located under `./untagged-images-raw`
- Untagged tile images are located under `./untagged-tiles`

## Data
- Images are mostly scraped from Google image search, Ebay and Alibaba
- Scaled images have the dimension `240(W) x 320(H)`. Format used are `.jpg`

**Ready to use data bundle can be located at the root of the repo, namely `train.zip`. It contains**
- `images` folder for mahjong tile images
- `data.csv` for image labels
- Tagged labels are stored in csv with the following format:

| image-name | label | label-name |
| ---------- | ----- | ---------- |
| 1.jpg | 38 | bonus-winter |
| ... | ... | ... |

`label` is the index of the respective class of the image, see the classes below

## Classes
| table-name | table-index |
| --- | --- |
| dots-1 | 1 |
| dots-2 | 2 |
| dots-3 | 3 |
| dots-4 | 4 |
| dots-5 | 5 |
| dots-6 | 6 |
| dots-7 | 7 |
| dots-8 | 8 |
| dots-9 | 9 |
| bamboo-1 | 10 |
| bamboo-2 | 11 |
| bamboo-3 | 12 |
| bamboo-4 | 13 |
| bamboo-5 | 14 |
| bamboo-6 | 15 |
| bamboo-7 | 16 |
| bamboo-8 | 17 |
| bamboo-9 | 18 |
| characters-1 | 19 |
| characters-2 | 20 |
| characters-3 | 21 |
| characters-4 | 22 |
| characters-5 | 23 |
| characters-6 | 24 |
| characters-7 | 25 |
| characters-8 | 26 |
| characters-9 | 27 |
| honors-east | 28 |
| honors-south | 29 |
| honors-west | 30 |
| honors-north | 31 |
| honors-red | 32 |
| honors-green | 33 |
| honors-white | 34 |
| bonus-spring | 35 |
| bonus-summer | 36 |
| bonus-autumn | 37 |
| bonus-winter | 38 |
| bonus-plum | 39 |
| bonus-orchid | 40 |
| bonus-chrysanthemum | 41 |
| bonus-bamboo | 42 |

Refer the classes of mahjong tiles [here](https://en.wikipedia.org/wiki/Mahjong_tiles)

Feel free contribute to this repo with your own data.

## License
Open sourced under MIT License
Binary file added raw-images/14.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added raw-images/15-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added raw-images/15-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added raw-images/15-3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added raw-images/15-4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added raw-images/images/15-3_16.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added raw-tiles/629.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added raw-tiles/630.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added raw-tiles/631.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added raw-tiles/632.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added raw-tiles/633.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added raw-tiles/634.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added raw-tiles/635.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added raw-tiles/636.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added raw-tiles/637.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added raw-tiles/638.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added raw-tiles/639.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added raw-tiles/640.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added raw-tiles/641.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added raw-tiles/642.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added raw-tiles/643.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added raw-tiles/644.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added raw-tiles/645.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added raw-tiles/646.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added raw-tiles/647.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added raw-tiles/648.jpg
Binary file added raw-tiles/649.jpg
Binary file added raw-tiles/650.jpg
Binary file added raw-tiles/651.jpg
Binary file added raw-tiles/652.jpg
Binary file added raw-tiles/653.jpg
Binary file added raw-tiles/654.jpg
Binary file added raw-tiles/655.jpg
Binary file added raw-tiles/656.jpg
Binary file added raw-tiles/657.jpg
Binary file added raw-tiles/658.jpg
Binary file added raw-tiles/659.jpg
Binary file added raw-tiles/660.jpg
Binary file added raw-tiles/661.jpg
Binary file added raw-tiles/662.jpg
Binary file added raw-tiles/663.jpg
Binary file added raw-tiles/664.jpg
Binary file added raw-tiles/665.jpg
Binary file added raw-tiles/666.jpg
Binary file added raw-tiles/667.jpg
Binary file added raw-tiles/668.jpg
Binary file added raw-tiles/669.jpg
Binary file added raw-tiles/670.jpg
Binary file added raw-tiles/671.jpg
Binary file added raw-tiles/672.jpg
Binary file added raw-tiles/673.jpg
Binary file added raw-tiles/674.jpg
Binary file added raw-tiles/675.jpg
Binary file added raw-tiles/676.jpg
Binary file added raw-tiles/677.jpg
Binary file added raw-tiles/678.jpg
Binary file added raw-tiles/679.jpg
Binary file added raw-tiles/680.jpg
Binary file added raw-tiles/681.jpg
Binary file added raw-tiles/682.jpg
Binary file added raw-tiles/683.jpg
Binary file added raw-tiles/684.jpg
Binary file added raw-tiles/685.jpg
Binary file added raw-tiles/686.jpg
Binary file added raw-tiles/687.jpg
Binary file added raw-tiles/688.jpg
Binary file added raw-tiles/689.jpg
Binary file added raw-tiles/690.jpg
Binary file added raw-tiles/691.jpg
Binary file added raw-tiles/692.jpg
Binary file added raw-tiles/693.jpg
Binary file added raw-tiles/694.jpg
Binary file added raw-tiles/695.jpg
Binary file added raw-tiles/696.jpg
Binary file added raw-tiles/697.jpg
Binary file added raw-tiles/698.jpg
Binary file added raw-tiles/699.jpg
Binary file added raw-tiles/700.jpg
Binary file added raw-tiles/701.jpg
Binary file added raw-tiles/702.jpg
Binary file added raw-tiles/703.jpg
Binary file added raw-tiles/704.jpg
Binary file added raw-tiles/705.jpg
Binary file added raw-tiles/706.jpg
Binary file added raw-tiles/707.jpg
Binary file added raw-tiles/708.jpg
Binary file added temp/629.jpg
Binary file added temp/630.jpg
Binary file added temp/631.jpg
Binary file added temp/632.jpg
Binary file added temp/633.jpg
Binary file added temp/634.jpg
Binary file added temp/635.jpg
Binary file added temp/636.jpg
Binary file added temp/637.jpg
Binary file added temp/638.jpg
Binary file added temp/639.jpg
Binary file added temp/640.jpg
Binary file added temp/641.jpg
Binary file added temp/642.jpg
Binary file added temp/643.jpg
Binary file added temp/644.jpg
Binary file added temp/645.jpg
Binary file added temp/646.jpg
Binary file added temp/647.jpg
Binary file added temp/648.jpg
Binary file added temp/649.jpg
Binary file added temp/650.jpg
Binary file added temp/651.jpg
Binary file added temp/652.jpg
Binary file added temp/653.jpg
Binary file added temp/654.jpg
Binary file added temp/655.jpg
Binary file added temp/656.jpg
Binary file added temp/657.jpg
Binary file added temp/658.jpg
Binary file added temp/659.jpg
Binary file added temp/660.jpg
Binary file added temp/661.jpg
Binary file added temp/662.jpg
Binary file added temp/663.jpg
Binary file added temp/664.jpg
Binary file added temp/665.jpg
Binary file added temp/666.jpg
Binary file added temp/667.jpg
Binary file added temp/668.jpg
Binary file added temp/669.jpg
Binary file added temp/670.jpg
Binary file added temp/671.jpg
Binary file added temp/672.jpg
Binary file added temp/673.jpg
Binary file added temp/674.jpg
Binary file added temp/675.jpg
Binary file added temp/676.jpg
Binary file added temp/677.jpg
Binary file added temp/678.jpg
Binary file added temp/679.jpg
Binary file added temp/680.jpg
Binary file added temp/681.jpg
Binary file added temp/682.jpg
Binary file added temp/683.jpg
Binary file added temp/684.jpg
Binary file added temp/685.jpg
Binary file added temp/686.jpg
Binary file added temp/687.jpg
Binary file added temp/688.jpg
Binary file added temp/689.jpg
Binary file added temp/690.jpg
Binary file added temp/691.jpg
Binary file added temp/692.jpg
Binary file added temp/693.jpg
Binary file added temp/694.jpg
Binary file added temp/695.jpg
Binary file added temp/696.jpg
Binary file added temp/697.jpg
Binary file added temp/698.jpg
Binary file added temp/699.jpg
Binary file added temp/700.jpg
Binary file added temp/701.jpg
Binary file added temp/702.jpg
Binary file added temp/703.jpg
Binary file added temp/704.jpg
Binary file added temp/705.jpg
Binary file added temp/706.jpg
Binary file added temp/707.jpg
Binary file added temp/708.jpg
Loading