Exemplo n.º 1
0
 def artifacts(self):
     return [
         ("warped", Input(Artifact.SEGMENTATION, stage=Stage.WARPED)),
         ("input", Input(Artifact.CONTOURS, stage=self._stage)),
         ("output",
          Output(Annotation("contours." + self._stage.name.lower()))),
     ]
Exemplo n.º 2
0
	def artifacts(self):
		return [
			("warped", Input(Artifact.SEGMENTATION)),
			("reliable", Input(
				Artifact.CONTOURS, Artifact.LINES,
				Artifact.TABLES, Artifact.ORDER,
				stage=Stage.RELIABLE)),
			("output", Output(Annotation("layout"))),
		]
Exemplo n.º 3
0
 def artifacts(self):
     return [
         ("warped", Input(Artifact.SEGMENTATION, stage=Stage.WARPED)),
         ("dewarped", Input(Artifact.CONTOURS, stage=Stage.DEWARPED)),
         ("aggregate", Input(Artifact.CONTOURS, stage=Stage.AGGREGATE)),
         ("reliable",
          Input(Artifact.CONTOURS, Artifact.LINES, stage=Stage.RELIABLE)),
         ("output", Output(Artifact.ORDER, stage=Stage.RELIABLE)),
     ]
Exemplo n.º 4
0
 def artifacts(self):
     return [("warped",
              Input(Artifact.CONTOURS,
                    Artifact.LINES,
                    Artifact.SEGMENTATION,
                    stage=Stage.WARPED)),
             ("dewarped", Input(Artifact.CONTOURS, stage=Stage.DEWARPED)),
             ("output",
              Output(Artifact.CONTOURS,
                     Artifact.TABLES,
                     stage=Stage.AGGREGATE))]
Exemplo n.º 5
0
	def artifacts(self):
		return [
			("reliable", Input(
				Artifact.LINES, Artifact.TABLES,
				stage=Stage.RELIABLE)),
			("output", Output(Artifact.OCR)),
		]
Exemplo n.º 6
0
 def artifacts(self):
     return [("warped",
              Input(Artifact.CONTOURS, Artifact.FLOW, stage=Stage.WARPED)),
             ("output",
              Output(Artifact.DEWARPING_TRANSFORM,
                     Artifact.CONTOURS,
                     stage=Stage.DEWARPED))]
Exemplo n.º 7
0
    def artifacts(self):
        inputs = []

        for stage, artifacts in self._artifacts.items():
            inputs.append((self._input_names[stage],
                           Input(*artifacts, stage=stage, take_any=True)))

        return inputs
Exemplo n.º 8
0
 def artifacts(self):
     return [
         ("warped",
          Input(Artifact.SEGMENTATION,
                Artifact.CONTOURS,
                Artifact.LINES,
                stage=Stage.WARPED)),
         ("output", Output(Annotation("flow"))),
     ]
Exemplo n.º 9
0
    def artifacts(self):
        if self._options["do_not_dewarp"]:
            stage = Stage.WARPED
            artifacts = [Artifact.LINES]
        else:
            stage = Stage.RELIABLE
            artifacts = [Artifact.LINES, Artifact.TABLES]

        return [("input", Input(*artifacts, stage=stage)),
                ("output", Output(self.output))]
Exemplo n.º 10
0
 def artifacts(self):
     return [
         ("warped",
          Input(Artifact.SEGMENTATION,
                Artifact.CONTOURS,
                Artifact.LINES,
                Artifact.DEWARPING_TRANSFORM,
                stage=Stage.WARPED)),
         ("output", Output(Annotation("grid"))),
     ]
Exemplo n.º 11
0
 def artifacts(self):
     return [
         ("input",
          Input(Artifact.CONTOURS,
                Artifact.LINES,
                Artifact.OCR,
                Artifact.ORDER,
                Artifact.TABLES,
                stage=Stage.RELIABLE)),
         ("output", Output(Artifact.COMPOSE)),
     ]
Exemplo n.º 12
0
	def artifacts(self):
		return [
			("data", Input(Artifact.COMPOSE)),
			("output", Output(Artifact.DINGLEHOPPER))
		]
Exemplo n.º 13
0
 def artifacts(self):
     return [("input", Input(Artifact.SEGMENTATION)),
             ("output", Output(Artifact.CONTOURS, stage=Stage.WARPED))]
Exemplo n.º 14
0
 def artifacts(self):
     args = []
     for stage, artifacts in self._artifacts.items():
         args.append(("stage_%s" % stage.name.lower(),
                      Input(*[a for a, copy in artifacts], stage=stage)))
     return args
Exemplo n.º 15
0
 def artifacts(self):
     return [("dewarped",
              Input(Artifact.DEWARPING_TRANSFORM, stage=Stage.DEWARPED)),
             ("output", Output(Annotation("dewarped")))]
Exemplo n.º 16
0
 def artifacts(self):
     return [("data", Input(Artifact.COMPOSE))]
Exemplo n.º 17
0
	def artifacts(self):
		return [
			("input", Input(Artifact.CONTOURS, stage=Stage.AGGREGATE)),
			("output", Output(Artifact.SIGNATURE))
		]
Exemplo n.º 18
0
 def artifacts(self):
     return [("reader", Input(Artifact.RUNTIME, stage=Stage.ANY))]
Exemplo n.º 19
0
 def artifacts(self):
     return [("input", Input(stage=Stage.WARPED)),
             ("output", Output(Artifact.THUMBNAIL))]