ó
    j-Ji×  ã                   ó"   • S SK r S SKJr  SS jrg)é    N)Úconvert_from_pathc                 ó¾  • [        XS9nU / S.n[        US5       H¾  u  pE[        R                  " US[        R                  R
                  SS9n/ n[        US   5       H`  u  p‰U	R                  5       n
U
(       d  M  UR                  U
US   U   US	   U   US
   U   US   U   [        US   U   5      S-  S.5        Mb     US   R                  XGS.5        MÀ     U$ )N)Údpi)ÚfileÚpagesé   zben+engz/--oem 1 --psm 11 -c preserve_interword_spaces=1)ÚlangÚoutput_typeÚconfigÚtextÚleftÚtopÚwidthÚheightÚconféd   )r   ÚxÚyÚwÚhÚ
confidencer   )ÚpageÚwords)	r   Ú	enumerateÚpytesseractÚimage_to_dataÚOutputÚDICTÚstripÚappendÚfloat)Úpdf_pathr   r   ÚoutÚpnoÚimgÚdatar   ÚiÚtxtÚts              Ú#/var/www/html/land-ocr/ocr_words.pyÚpdf_to_word_jsonr+      sò   € Ü˜hÑ0€EØ bÑ
)€Cä˜e QÖ'‰ˆÜ×(Ò(ØØÜ#×*Ñ*×/Ñ/ØDñ	
ˆð ˆÜ  V¡Ö-‰FˆAØ—	‘	“ˆAßˆqØ—‘ØØ˜f™ a™Ø˜e™ Q™Ø˜g™ qÑ)Ø˜h™¨Ñ*Ü"'¨¨V©°Q©Ó"8¸3Ñ">ñö ñ .ð 	ˆG‰×Ñ SÑ9Ö:ñ+ (ð. €Jó    )i,  )r   Ú	pdf2imager   r+   © r,   r*   Ú<module>r/      s   ðÛ Ý 'õr,   