dev_update_window ('off')
dev_update_var ('off')
dev_update_pc ('off')
dev_close_window ()
dev_open_window (0, 0, 640, 480, 'black', WindowHandle)
set_display_font (WindowHandle, 16, 'mono', 'true', 'false')
dev_set_colored (12)
dev_set_draw ('margin')
for J := 1 to 5 by 1
select_characters (RegionForeground, RegionCharacters, 'true', 'ultra_light', 60, 60, 'false', 'false', 'none', 'true', 'wide', 'true', 0, 'completion')
dev_clear_window ()
dev_display (ImageRotate)
dev_display (RegionCharacters)
if (J < 5)
disp_continue_message (WindowHandle, 'black', 'true')
endif
stop ()
endfor
dev_update_var ('off')
dev_update_pc ('off')
dev_close_window ()
dev_open_window (0, 0, 640, 480, 'black', WindowHandle)
set_display_font (WindowHandle, 16, 'mono', 'true', 'false')
dev_set_colored (12)
dev_set_draw ('margin')
for J := 1 to 5 by 1
read_image (Image, 'dot_print_rotated/dot_print_rotated_'+J$'02d')
*确定字体方向
text_line_orientation (Image, Image, 50, rad(-30), rad(30), OrientationAngle)
*旋转图片
rotate_image (Image, ImageRotate, -OrientationAngle/rad(180)*180, 'constant')
*分离字符
segment_characters (ImageRotate, ImageRotate, ImageForeground, RegionForeground, 'local_auto_shape', 'false', 'true', 'medium', 25, 25, 0, 10, UsedThreshold)select_characters (RegionForeground, RegionCharacters, 'true', 'ultra_light', 60, 60, 'false', 'false', 'none', 'true', 'wide', 'true', 0, 'completion')
dev_clear_window ()
dev_display (ImageRotate)
dev_display (RegionCharacters)
if (J < 5)
disp_continue_message (WindowHandle, 'black', 'true')
endif
stop ()
endfor