All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mindee.parsing.common.ocr.MvisionV1 Maven / Gradle / Ivy

There is a newer version: 4.21.0
Show newest version
package com.mindee.parsing.common.ocr;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import lombok.Getter;

/**
 * List all pages that have ocr results.
 */
@Getter
@JsonIgnoreProperties(ignoreUnknown = true)
public class MvisionV1 {

  @JsonProperty("pages")
  private List pages = new ArrayList<>();

  @Override
  public String toString() {
    return this.getPages().stream()
      .map(OcrPage::toString)
      .collect(Collectors.joining(String.format("%n")));
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy