mirror of
https://github.com/open-mmlab/mmocr.git
synced 2025-06-03 21:54:47 +08:00
* add data preparer * temporarily ignore data preparer test * update * fix comments * update doc; add script to generate dataset zoo doc * fix comments; update scripts * apply comments Co-authored-by: Tong Gao <gaotongxiao@gmail.com> * apply comments Co-authored-by: Tong Gao <gaotongxiao@gmail.com> * coco parser * fix comments * add fileio tests * fix test * add tests for parsers and dumpers * add test for data preparer * fix a bug * update icdar txt parser * rename icdar txt parser * fix comments * fix test * fix comments Co-authored-by: Tong Gao <gaotongxiao@gmail.com> Co-authored-by: liukuikun <641417025@qq.com>
16 lines
426 B
Python
16 lines
426 B
Python
# Copyright (c) OpenMMLab. All rights reserved.
|
|
import unittest
|
|
|
|
from mmocr.datasets.preparers.data_preparer import DatasetPreparer
|
|
|
|
|
|
class TestDataPreparer(unittest.TestCase):
|
|
|
|
def setUp(self) -> None:
|
|
self.cfg_path = 'tests/data/preparer'
|
|
self.dataset_name = 'dummy'
|
|
|
|
def test_dataset_preparer(self):
|
|
preparer = DatasetPreparer(self.cfg_path, self.dataset_name, 'textdet')
|
|
preparer()
|