class_docstr: Pascal VOC dataset load
  
  Parameters
  ----------------
  root: str, example:'./data/VOCdevkit'.
  splits_names: tuple, ((year, trainval)).
  classes: list[str], If you using custom-voc dataset,     you need to config the name of custom objects.
  difficult: bool, False ignore voc xml difficult value.
class_docstr_tok: ["Pascal","VOC","dataset","load","Parameters","--","--","--","--","--","--","--","--","root",":","str",",","example",":","'.\/data\/VOCdevkit","'",".","splits_names",":","tuple",",","(","(","year",",","trainval",")",")",".","classes",":","list","[","str","]",",","If","you","using","custom-voc","dataset",",","you","need","to","config","the","name","of","custom","objects",".","difficult",":","bool",",","False","ignore","voc","xml","difficult","value","."]
code: def __init__(
      self,
      root="VOCdevkit",
      splits_names=[(2007, "trainval")],
      classes=None,
      difficult=False,
  ) -> None:
      self.CLASSES = [
          "aeroplane",
          "bicycle",
          "bird",
          "boat",
          "bottle",
          "bus",
          "car",
          "cat",
          "chair",
          "cow",
          "diningtable",
          "dog",
          "horse",
          "motorbike",
          "person",
          "pottedplant",
          "sheep",
          "sofa",
          "train",
          "tvmonitor",
      ]
      if classes:
          self.CLASSES = classes
  
      self.cat2label = {cat: i for i, cat in enumerate(self.CLASSES)}
      self._root = osp.abspath(osp.expanduser(root))
      self._diff = difficult
      self._imgid_items = self._load_items(splits_names)
      self._anno_path = osp.join("{}", "Annotations", "{}.xml")
      self._image_path = osp.join("{}", "JPEGImages", "{}.jpg")
      self._im_shapes = {}
      self._im_anno = [
          self._load_label(idx) for idx in range(len(self))
      ]
      self._im_cache = {}
  
file_path: analytics-zoo/pyzoo/zoo/orca/data/image/voc_dataset.py
imports: import numpy
  import os
  import os.path
  from PIL import Image
  import logging
label_desc: Use image node_id 1 to create a new VOCDatasets object  with example: obj = VOCDatasets(root, splits_names, classes, difficult)