*图片读取 read_image (Test1, 'C:/Users/Administrator/Desktop/new/Test1.jpg') *文件夹读取 list_files ('C:/Users/Administrator/Desktop/new', 'files', Files) for Index := 0 to 1 by 1 read_image (Image, Files[Index]) endfor *图片动态选择 dev_open_file_dialog ('read_image', 'default', 'default', Selection) read_image (Image, Selection) *视频读取 open_framegrabber ('DirectFile', 1, 1, 0, 0, 0, 0, 'default', 8, 'rgb', -1, 'false', 'C:/Users/Administrator/Desktop/new/new.avi', 'default', -1, -1, AcqHandle) get_framegrabber_param (AcqHandle, 'first_frame', Value0) get_framegrabber_param (AcqHandle, 'last_frame', Value1) grab_image_start (AcqHandle, -1) for i := Value0 to Value1-1 by 1 grab_image (Image, AcqHandle) get_image_size (Image, Width, Height) dev_display (Image) stop () endfor