File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed
Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change 44
55host = os .getenv ("API_BASE_PATH" , "https://api.regulaforensics.com" )
66
7- # read optional local license file
8- if os .path .isfile ('regula.license' ) and os .access ('regula.license' , os .R_OK ):
9- with open ("regula.license" , "rb" ) as f :
10- print ("Found local license file. Using it for performing request..." )
11- regula_license = f .read ()
12-
137with open ("WHITE.jpg" , "rb" ) as f :
148 white_page_0 = f .read ()
159
2620 }
2721 params = ProcessParams (alreadyCropped = True , scenario = Scenario .FULLPROCESS )
2822
29- # Add license to request
30- # request = RecognitionRequest(system_info=ProcessSystemInfo(license=base64.b64encode(regula_license).decode()), process_params=params, images=[
31- # RecognitionImage(image=white_page_0, light_index=Light.WHITE, page_index=0),
32- # ])
33-
3423 request = RecognitionRequest (process_params = params , images = [
3524 RecognitionImage (image = white_page_0 , light_index = Light .WHITE , page_index = 0 ),
3625 # RecognitionImage(image=ir_page_0, light_index=Light.IR, page_index=0),
You can’t perform that action at this time.
0 commit comments