class Mindee::Product::BusinessCard::BusinessCardV1

Business Card API version 1 inference prediction.

def initialize(prediction)

Parameters:
  • prediction (Hash) --
def initialize(prediction)
  super
  @prediction = BusinessCardV1Document.new(prediction['prediction'], nil)
  @pages = []
  prediction['pages'].each do |page|
    @pages.push(BusinessCardV1Page.new(page))
  end
end