abbyy / ocrsdk.com

ABBYY Cloud OCR SDK
http://ocrsdk.com/github
Apache License 2.0
504 stars 483 forks source link

Response format is perfect to extract #90

Open Miteshimmply opened 4 years ago

Miteshimmply commented 4 years ago

I have previous version which gives response in XML format, I call your SDK with below API with updated changes: https://cloud-westus.ocrsdk.com/processImage?language=English&exportFormat=txt

                    (98b)                                          
                       St: 377 El Segundo                             

                                   U.Grand Ave                        
                                300 Richnond St.                      
                               El Segundo CA 90245                    

        Crys.fiiysir-SpringUater/lgal/  I 3    .9999    0.9999        
              CRU                        1 i   JO     0J0             
        BarbesolShavKfeaiAloefifeenSo  1 j    .9999    0 9999 I       
        SUBTOTAL                                     <2.10            
        TH                                          SO.09             
        TOTAL                           12.19                         
        VISA                                          12.19           

   PURCHASE                 Visa 12.15                                
   01-06-17 04:17:40 PH 377 2 20689? 5539                             
   REFI: 066589 Approved                                              

                        ■■■III                                       

HIM SOLD 1

oiM-ni? N:im
MU 5539 llcliolla

                             towm or Stora [radii                     
                          Ulthln 9 daxs of purchata                   
                          Up to 9 Itens ulth racupt                   
                          tanal Haas art final sals                   
                             thanks for Shopping!

When I pass https://cloud-westus.ocrsdk.com/processImage?language=English&exportFormat=XML , it gives below response , How to retrieve data using keys, How to Get Json or Prefect XML <?xml version="1.0" encoding="UTF-8" standalone="yes"?>

( 9 8 b ) S t : 3 7 7 E l S e g u n d o U . G r a n d A v e 3 0 0 R i c h n o n d S t . E l S e g u n d o C A 9 0 2 4 5 C r y s . f i i y s i r - S p r i n g U a t e r / l g a l / I 3 . 9 9 9 9 0 . 9 9 9 9 C R U 1 i J O 0 J 0 B a r b e s o l S h a v K f e a i A l o e f i f e e n S o 1 j . 9 9 9 9 0 9 9 9 9 I S U B T O T A L < 2 . 1 0 T H S O . 0 9 T O T A L 1 2 . 1 9 V I S A 1 2 . 1 9 P U R C H A S E V i s a 1 2 . 1 5 0 1 - 0 6 - 1 7 0 4 : 1 7 : 4 0 P H 3 7 7 2 2 0 6 8 9 ? 5 5 3 9 R E F I : 0 6 6 5 8 9 A p p r o v e d I I I H I M S O L D 1 o i M - n i ? N : i m M U 5 5 3 9 l l c l i o l l a t o w m o r S t o r a [ r a d i i U l t h l n 9 d a x s o f p u r c h a t a U p t o 9 I t e n s u l t h r a c u p t t a n a l H a a s a r t f i n a l s a l s t h a n k s f o r S h o p p i n g !