Click here to Skip to main content
15,796,738 members

Comments by M@153 (Top 8 by date)

M@153 7-Oct-22 8:36am View    
Hii...I just saw what mistake I was doing, and fixed it by saving that ROI image and then calling the filename as suggested by you. Thank you for your valuable suggestion.
M@153 7-Oct-22 4:32am View    
Yeah...But I want only the cropped part (ROI3) as an input path for my ocr and it comes in the form of NumPy data. How to update the code to take it as input path?
M@153 23-Sep-22 7:34am View    
Sir, Thank you so much for ur valuable time and I tried ur code.
The output was- CR No 0.996245605687589.

But I want the CR number, i.e- 211022203481161 only, not the text. Kindly suggest the changes.
M@153 23-Sep-22 6:30am View    
I just need to extract the Cr no only, i.e 211022203481161, from the list. What changes need to be done in code?
M@153 23-Sep-22 6:01am View    
I have analysed the result- it always comes in nested list format given below-

[([[212, 26], [314, 26], [314, 50], [212, 50]],
'SCB MEDICAL',
0.998906268787747),
([[36, 56], [84, 56], [84, 80], [36, 80]], '6ein8', 0.19502338570146513),
([[303, 99], [335, 99], [335, 119], [303, 119]], 'OPD', 0.9985000298670181),
([[23, 119], [59, 119], [59, 135], [23, 135]], 'CR No', 0.996245605687589),
([[55, 105], [182, 105], [182, 134], [55, 134]],
'211022203481161',
0.9774761960967909),
([[373, 129], [395, 129], [395, 141], [373, 141]], 'Sal', 0.3229167512055152),
([[401, 123], [461, 123], [461, 141], [401, 141]],
'29 years/M',
0.760099694251474)]

So my concern is how to filter this list to get the CR No.