您现在的位置是:首页 >技术交流 >max_separability网站首页技术交流

max_separability

小张小迪 2024-09-16 12:01:04
简介max_separability

binary_threshold (ImageReduced, Region, 'max_separability', 'light', UsedThreshold)

read_image (Image, 'D:/OCR-NEOLD/20201114-143205.bmp')
rgb1_to_gray (Image, GrayImage)
*  draw_rectangle2 (3600, Row, Column, Phi, Length1, Length2)
gen_rectangle2 (Rectangle, 903.262,1105.17,1.56236, 77.1027, 16.304)
 reduce_domain (GrayImage, Rectangle, ImageReduced)
binary_threshold (ImageReduced, Region, 'max_separability', 'light', UsedThreshold)
*  reduce_domain (ImageReduced, Rectangle, ImageReduced1)
*  dev_display (ImageReduced1)
*  char_threshold (ImageReduced, Rectangle, Characters, 0, 100, Threshold)
*    threshold (ImageReduced, Region1, 168, 255)

* closing_rectangle1 (Region, RegionClosing, 10, 10)
 connection (Region, ConnectedRegions)
 select_shape (ConnectedRegions, SelectedRegions, 'width', 'and', 20, 114)
  select_shape (SelectedRegions, SelectedRegions1, 'height', 'and', 15, 46)
*  select_shape (ConnectedRegions, SelectedRegions, 'height', 'and', 50, 114)
*  select_shape (SelectedRegions, SelectedRegions1, 'width', 'and', 10, 75)
sort_region (SelectedRegions1, SortedRegions, 'character', 'true', 'column')
count_obj (SortedRegions, Number)

风语者!平时喜欢研究各种技术,目前在从事后端开发工作,热爱生活、热爱工作。