class_docstr: Pack the wildreceipt annotation to MMOCR format.
  
  Args:
      merge_bg_others (bool): If True, give the same label to "background"
              class and "others" class. Defaults to True.
      ignore_idx (int): Index for ``ignore`` class. Defaults to 0.
      others_idx (int): Index for ``others`` class. Defaults to 25.
code: def __init__(
      self,
      merge_bg_others: bool = False,
      ignore_idx: int = 0,
      others_idx: int = 25,
      **kwargs,
  ) -> None:
      super().__init__(**kwargs)
  
      self.ignore_idx = ignore_idx
      self.others_idx = others_idx
      self.merge_bg_others = merge_bg_others
  
file_path: mmocr/mmocr/datasets/preparers/packers/wildreceipt_packer.py
imports: import json
  from typing import List
  from mmocr.registry import DATA_PACKERS
  from .base import BasePacker
label_desc: Use image node_id 1 to create a new WildReceiptPacker object from inherited base classes: BasePacker with example: obj = WildReceiptPacker(merge_bg_others, ignore_idx, others_idx)