Ejemplo n.º 1
0
        public ResultSrv <ServiceCallResultSrv <LicensePlateReaderConyentSrv> > LicensePlateReader()
        {
            try
            {
                var output = new ResultSrv <ServiceCallResultSrv <LicensePlateReaderConyentSrv> >();

                var internalServiceCallVo = InternalServiceCallVo.ConcreteBuilder
                                            .SetToken("")
                                            .SetScApiKey("")
                                            //.SetScVoucherHash({Put your VoucherHash})
                                            .Build();

                var licensePlateReaderVo = LicensePlateReaderVo.ConcreteBuilder
                                           .SetServiceCallParameters(internalServiceCallVo)
                                           .SetImage("")
                                           .SetIsCrop(false)
                                           .Build();
                AIService.LicensePlateReader(licensePlateReaderVo, response => Listener.GetResult(response, out output));
                return(output);
            }
            catch (PodException podException)
            {
                Console.WriteLine(
                    $"-- {podException.Code}-an error has occured : {Environment.NewLine}{podException.Message}");
                throw;
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception.Message);
                throw;
            }
        }