get_image_size (Image20240123135334, Width, Height)
threshold (Image20240123135334, Region, 128, 255)
connection (Region, ConnectedRegions)
select_shape (ConnectedRegions, SelectedRegions, 'area', 'and', 40000, 50000)
fill_up (SelectedRegions, RegionFillUp)
dilation_circle (RegionFillUp, RegionDilation, 14.5)
erosion_circle (RegionFillUp, RegionErosion, 7.5)
difference (RegionDilation, RegionErosion, RegionDifference)
reduce_domain (Image20240123135334, RegionDifference, ImageReduced)
edges_sub_pix (ImageReduced, Edges, 'canny', 1, 20, 40)
select_contours_xld (Edges, SelectedContours, 'contour_length', 400, 1000, -0.5, 0.5)
sort_contours_xld (SelectedContours, SortedContours, 'upper_left', 'true', 'row')
select_obj (SortedContours, ObjectSelected, 2)
fit_circle_contour_xld (ObjectSelected, 'algebraic', -1, 0, 0, 3, 2, Row1, Column1, Radius1, StartPhi, EndPhi, PointOrder)
gen_circle_contour_xld (ContCircle, Row1, Column1, Radius1, StartPhi, EndPhi ,'positive', 1)
polar_trans_image_ext (Image20240123135334, ImagePolar, Row1, Column1, StartPhi, EndPhi, Radius1+20, Radius1+ 100, round(6.28*Radius1/4), 80, 'bilinear')
rotate_image (ImagePolar, ImageRotate, 180, 'constant')
threshold (ImageRotate, Region2, 0, 140)
connection (Region2, ConnectedRegions2)
select_shape (ConnectedRegions2, SelectedRegions2, 'area', 'and', 500, 750)
sort_region (SelectedRegions2, SortedRegions1, 'first_point', 'true', 'row')
read_ocr_class_mlp ('Industrial_0-9A-Z_NoRej', OCRHandle)
do_ocr_multi_class_mlp (SortedRegions1, ImageRotate, OCRHandle, Class, Confidence)
get_image_size (ImagePolar, Width1, Height1)
hom_mat2d_identity (HomMat2DIdentity)
hom_mat2d_rotate (HomMat2DIdentity, rad(180), Height1/2.0, Width1/2.0, HomMat2DRotate)
affine_trans_region (SortedRegions1, RegionAffineTrans, HomMat2DRotate, 'nearest_neighbor')
polar_trans_region_inv (RegionAffineTrans, XYTransRegion, Row1, Column1, StartPhi, EndPhi, Radius1+20, Radius1+ 100, round(6.28*Radius1/4), 80, Width, Height, 'nearest_neighbor')
area_center (XYTransRegion, Area, Row, Column)
dev_disp_text (Class, 'image', Row, Column, 'red', [], [])