






技术领域technical field
本申请涉及光学信息采集领域,尤指一种光学信息采集装置和光学信息采集方法。The present application relates to the field of optical information collection, in particular to an optical information collection device and an optical information collection method.
背景技术:Background technique:
业界通常所说的条码(barcode)包括一维码和二维码,是指将宽度/宽度不等的多个条和空,按照一定的编码规则排列,用以表达一组信息的图形标识符。常见的条形码是由反射率相差很大的黑条(简称条)和白条(简称空)排成的平行线图案,二维码则是由黑块和白块堆叠而成的规则二维图案。由于条码符号中“条”、“空”对光线具有不同的反射率,从而使条码扫描器接受到强弱不同的反射光信号,相应地产生电位高低不同的电脉冲。而条码符号中“条”、“空”的宽度则决定电位高低不同的电脉冲信号的长短。扫描器接收到的光信号需要经光电转换成电信号并通过放大电路进行放大。由于扫描光点具有一定的尺寸、条码印刷时的边缘模糊性以及一些其他原因,经过电路放大的条码电信号是一种平滑的起伏信号,这种信号被称为“模拟电信号”。“模拟电信号”需经整形变成通常的“数字信号”。根据码制所对应的编码规则,译码器便可将“数字信号”识读译成数字、字符信息。条码可以标出物品的生产国、制造厂家、商品名称、生产日期、图书分类号、邮件起止地点、类别、日期等许多信息,因而在商品流通、图书管理、邮政管理、银行系统等许多领域都得到广泛的应用The barcode commonly referred to in the industry includes one-dimensional code and two-dimensional code, which refers to a graphic identifier used to express a set of information by arranging multiple bars and spaces with different widths/widths according to certain coding rules. . A common barcode is a parallel line pattern formed by black bars (referred to as bars) and white bars (referred to as spaces) with greatly different reflectivities, while a two-dimensional code is a regular two-dimensional pattern formed by stacking black and white blocks. Since the "bar" and "empty" in the barcode symbol have different reflectivity to light, the barcode scanner receives the reflected light signal with different strength and weak, and accordingly generates electrical pulses with different potential levels. The width of the "bar" and "space" in the barcode symbol determines the length of the electrical pulse signals with different potential levels. The optical signal received by the scanner needs to be photoelectrically converted into an electrical signal and amplified by an amplifying circuit. Due to the certain size of the scanning spot, the ambiguity of the edges during barcode printing and some other reasons, the electrical signal of the barcode amplified by the circuit is a smooth fluctuation signal, which is called "analog electrical signal". The "analog electrical signal" needs to be shaped into the usual "digital signal". According to the coding rules corresponding to the code system, the decoder can read and interpret the "digital signal" into digital and character information. Barcodes can mark the country of origin, manufacturer, commodity name, production date, book classification number, mail start and end location, category, date and many other information, so it is widely used in many fields such as commodity circulation, book management, postal management, and banking system. widely used
就比如,现在各种各样的产品(或包装,下同)上都印刷了条码,从而便于产品生产和销售中的管控,条码也得以印刷在各种不同的材质、颜色的材料上,条码的颜色也不再限于最初的黑白色,而是随着产品颜色的不同而具有了丰富的色彩。For example, barcodes are now printed on various products (or packaging, the same below), so as to facilitate the management and control of product production and sales, and barcodes can also be printed on materials of various materials and colors. The color of the product is no longer limited to the original black and white, but has rich colors with different product colors.
发明内容SUMMARY OF THE INVENTION
本申请创作的目的在于提供一种在第一时段通过多种颜色的补光灯补光,且在第二时段通过第一时段中对比度最大的图像对应的补光灯补光的光学信息采集装置和光学信息采集方法。The purpose of the creation of the present application is to provide an optical information acquisition device that fills light with multiple colors of fill lights in the first period, and fills the light with the fill light corresponding to the image with the highest contrast in the first period during the second period. and optical information collection methods.
为实现上述目的,本申请采用以下技术手段:To achieve the above object, the application adopts the following technical means:
本申请提供一种光学信息采集装置,其特征在于,包括:摄像头,用以采集图像;多个补光灯,多个所述补光灯的补光颜色不同;控制单元,所述控制单元经触发控制摄像头采集图像,并控制多个所述补光灯在所述摄像头采集图像时补光,且多个所述补光灯的补光时间包括第一时段和第二时段,在第一时段多个所述补光灯依序补光,所述控制单元分别计算并比较所述摄像头在多个所述补光灯补光时采集的多帧图像的对比度,且以对比度最大的图像对应的补光灯在第二时段进行补光。The present application provides an optical information collection device, which is characterized by comprising: a camera for collecting images; a plurality of supplementary lights, wherein the supplementary light colors of the plurality of supplementary lights are different; a control unit, the control unit is Trigger and control the camera to collect images, and control a plurality of the supplementary lights to fill in the light when the camera captures images, and the supplementary light time of the plurality of supplementary lights includes a first time period and a second time period, and the first time period A plurality of the supplementary lights fill light in sequence, the control unit calculates and compares the contrast of the multi-frame images collected by the camera when the plurality of supplementary lights fill light, and uses the image corresponding to the highest contrast. The supplementary light performs supplementary light in the second period of time.
可选地,所述控制单元仅计算图像中特定位置的对比度。Optionally, the control unit only calculates the contrast at a specific location in the image.
可选地,所述特定位置为光学字符占据的位置。Optionally, the specific position is a position occupied by the optical character.
可选地,包括瞄准单元,用以投射具有中心光斑的瞄准图案,所述中心光斑与所述特定位置至少部分重叠。Optionally, an aiming unit is included for projecting an aiming pattern having a central light spot, the central light spot at least partially overlapping the specific position.
可选地,当所述控制单元经再次触发控制多个所述补光灯依序补光时,第一个补光的补光灯为前一次经触发采集图像时最后补光的补光灯。Optionally, when the control unit is triggered again to control a plurality of the supplementary lights to fill light in sequence, the supplementary light for the first supplementary light is the supplementary light for the last supplementary light when the image was captured by the previous trigger. .
可选地,第一时段的预设时间小于等于第二时段的预设时间。Optionally, the preset time of the first period is less than or equal to the preset time of the second period.
本申请提供一种光学信息采集方法,其特征在于,包括以下步骤:S1:控制摄像头采集图像并控制多种颜色的补光灯在第一时段依序补光;S2:计算并比较在多种颜色的补光灯补光时采集的图像的对比度;S3:以对比度最大的图像对应的补光灯在第二时段进行补光。The present application provides an optical information collection method, which is characterized by comprising the following steps: S1: controlling a camera to collect images and controlling multiple colors of fill lights to fill light sequentially in a first period; S2: calculating and comparing the multiple colors Contrast of the collected image when the color of the fill light fills the light; S3: fill light in the second period with the fill light corresponding to the image with the largest contrast.
可选地,S2中,所述控制单元仅计算图像中光学字符所在位置的对比度。Optionally, in S2, the control unit only calculates the contrast of the position of the optical character in the image.
可选地,S1中,还包括投射瞄准图案瞄准光学字符,当图像中存在多个光学字符时,在S2中,所述控制单元仅计算与所述瞄准图案的瞄准中心重叠的光学字符所在位置的对比度。Optionally, in S1, also include projecting aiming pattern aiming optical characters, when there are multiple optical characters in the image, in S2, the control unit only calculates the position of the optical character overlapping with the aiming center of the aiming pattern. contrast.
可选地,S3之后,当多个所述补光灯经下一次触发依序补光时,第一个补光的补光灯为前一次经触发采集图像时最后补光的补光灯。Optionally, after S3, when a plurality of the supplementary lights are triggered to fill light in sequence next time, the first supplementary light supplementary light is the supplementary light supplementary light that was last supplemented when the image was captured by the previous trigger.
附图说明Description of drawings
图1为本申请一种实施例光学信息采集装置的立体图;1 is a perspective view of an optical information collection device according to an embodiment of the present application;
图2为图1中的光学信息采集装置另一视角的示意图,并透过窗口示出了其中的元器件;FIG. 2 is a schematic diagram of the optical information acquisition device in FIG. 1 from another perspective, and shows the components therein through a window;
图3为本申请实施例光学信息采集装置部分结构的示意图,并示出了通过瞄准单元投射的瞄准图案;3 is a schematic diagram of a partial structure of an optical information acquisition device according to an embodiment of the present application, and shows an aiming pattern projected by an aiming unit;
图4为本申请实施例光学信息采集装置投射瞄准图案瞄准光学信息/光学字符的示意图;4 is a schematic diagram of an optical information acquisition device projecting an aiming pattern aiming at optical information/optical characters according to an embodiment of the present application;
图5为本申请实施例光学信息采集装置的补光灯补光的时序图;FIG. 5 is a timing diagram of the supplementary light supplemented by the supplementary light of the optical information acquisition device according to the embodiment of the present application;
图6为本申请实施例光学信息采集装置处理图像的示意图;FIG. 6 is a schematic diagram of processing an image by an optical information acquisition device according to an embodiment of the present application;
图7为本申请实施例光学信息采集装置采集光学信息的一种方法的流程图。FIG. 7 is a flowchart of a method for collecting optical information by an optical information collecting apparatus according to an embodiment of the present application.
具体实施方式的附图标号说明:Description of the reference numerals for the specific embodiments:
具体实施方式Detailed ways
在读取条码时,通常需要补光灯补光,由于不同的材质或颜色的材料对光的吸收率和反射率不同,为了使得印刷在不同材质上的条码可以被快速读取,业内开发了多种颜色的补光灯技术,如红光、白光、绿光和黄光等。进一步又有开发人员将多种颜色的补光灯集成到同一个读取器上,多种颜色的补光灯循环补光,使得一个读取器就可以读取印刷在不同材料上不同颜色的条码。When reading barcodes, it is usually necessary to fill light with a fill light. Due to the difference in light absorption and reflectivity of different materials or colors of materials, in order to make barcodes printed on different materials can be read quickly, the industry has developed a Multi-color fill light technology, such as red light, white light, green light and yellow light, etc. Further, developers have integrated multiple colors of fill lights into the same reader, and the multiple colors of fill lights cycle fill light, so that one reader can read different colors printed on different materials. barcode.
然而,为了快速解码,多种颜色的补光灯的一个循环周期也比较短,分配到每一种颜色的补光灯的补光时间就更少了。对于正在识读的条码,多种颜色的补光灯中通常只有一种颜色的补光灯是最佳的,而其它的补光灯不是最佳的,由于读取条码的角度和距离、读取的条码由特殊工业印刷等原因,在第一个循环周期没有成功读取条码时,后续继续采用多种颜色的补光灯循环补光就比较浪费时间。However, in order to decode quickly, one cycle period of the multi-color fill light is also relatively short, and the fill light time allocated to each color fill light is less. For the barcode being read, usually only one color of the fill light is the best among the multi-color fill lights, while the other fill lights are not the best, due to the angle and distance of reading the barcode, reading If the barcode is printed by a special industry, if the barcode is not successfully read in the first cycle, it is a waste of time to continue to use multi-color fill lights to fill in the cycle.
针对上述问题,业内人员提出了根据材料的材质/颜色的不同,预先建立材料的材质/颜色与补光灯颜色的对照表,在读取条码时,先通过图像识别技术识别材料的材质/颜色,然后通过对应颜色的补光灯补光。然而这只是抓住了问题的表象,因为即使是相同的材质或颜色的材料,由于结构或生产工艺等不同,其对光的吸收率和反射率也是不尽相同的,而且对有些外观近似的材料需要通过专业的分析仪器才能分析出来,比如很多颜色近似的合金成分不同,颜色近似的合成塑料成分也不同,或颜色近似的人造玻璃成分也不同,而对于成分相同的纸张,有的更加致密有的更加对光的吸收率和反射率也不同,更不是通过图像识别技术就可以区分材质的,即使建立了对照表也容易出错:总之,由于材料的种类繁多,相同颜色的不同材料对相同颜色的补光也会有不同的吸收率和反射率,而且预先建立的对照表也不可能涵盖所有的材料,而仅仅通过图像识别技术也难以识别材料的种类,预先建立材料与补光灯颜色的对照表不能从根本上解决问题。In response to the above problems, the industry proposes to pre-establish a comparison table between the material/color of the material and the color of the fill light according to the material/color of the material. When reading the barcode, the material/color of the material is first identified by image recognition technology. , and then fill the light with the fill light of the corresponding color. However, this only captures the appearance of the problem, because even materials of the same material or color have different light absorptivity and reflectivity due to different structures or production processes, and some similar appearances are not the same. Materials need to be analyzed by professional analytical instruments. For example, many alloys with similar colors have different compositions, synthetic plastics with similar colors have different compositions, or artificial glass with similar colors have different compositions. For paper with the same composition, some are denser. Some have different absorption and reflectance of light, and it is not possible to distinguish materials through image recognition technology. Even if a comparison table is established, it is easy to make mistakes: In short, due to the wide variety of materials, different materials of the same color have the same The color of the fill light will also have different absorptivity and reflectivity, and the pre-established comparison table cannot cover all materials, and it is difficult to identify the type of material only through image recognition technology, and the color of the material and fill light is pre-established. The comparison table does not fundamentally solve the problem.
本申请针对以上问题,提供一种新的光学信息采集装置和光学信息采集方法,采用新的方法和技术手段以解决这些问题。In view of the above problems, the present application provides a new optical information collection device and optical information collection method, and adopts new methods and technical means to solve these problems.
为便于更好的理解本申请的目的、结构、特征以及功效等,现结合附图和具体实施方式对本申请作进一步说明。In order to facilitate a better understanding of the purpose, structure, features and effects of the present application, the present application will now be further described with reference to the accompanying drawings and specific embodiments.
参照图1所示,本申请光学信息采集装置1的一种实施例为扫描枪,包括具有收容腔的外壳2,以及设置在所述外壳2上的触发器3、透明的扫描窗口4和补光窗口5。所述触发器3用以供用户触发扫描枪采集光学信息。Referring to FIG. 1 , an embodiment of the optical
补充参照图2所示,示出了设置在所述扫描窗口4中的摄像头6和瞄准单元7,以及设置在所述补光窗口5中的多个补光灯8。With supplementary reference to FIG. 2 , it shows the
多个所述补光灯8的补光颜色不同,可根据实际需求选择白光、红光、绿光、蓝光、黄光等不同颜光补光灯8中的多种,本申请的一种实施例中,包括一字排列的六个补光灯8,一对白光补光灯8分别位于两侧,一对红光补光灯8位于中央,一对蓝光补光灯8位于一对白光补光灯8和一对红光补光灯8之间,使得一对白光补光灯8、一对红光补光灯8和一对蓝光补光灯8均关于所述补光窗口5的中心左右对称,单独使用任一种颜色的一对补光灯8进行补光,在所述摄像头6的整个视场形成的照明场都是关于所述补光窗口5的中心左右对称的,照明场更加均匀。The fill light colors of a plurality of the
请补充参考图3所示,所述瞄准单元7可以是普通的LED(light-emitting diode,发光二极管)瞄准单元7,也可以是激光瞄准单元7,这两种瞄准单元7通常需要配合特定的透镜,以产生特定形状的瞄准图案9,本实施例中优选为激光瞄准,其配合衍射光学透镜产生具有中心光斑10和矩形框11的瞄准图案9,所述中心光斑10配置为与所述摄像头6的视场中心重合(或靠近),所述矩形框11配置为与所述摄像头6的视场重合或大致重合(通常矩形框11小于摄像头6的视场)。Please make supplementary reference to FIG. 3 , the aiming
请继续参考图3,为本申请实施例的光学信息采集装置1的部分结构(或逻辑)的框图,其中绘制的元器件不一定代表其实际的形状、结构或尺寸,而只是作为示意。图3中的所述光学信息采集装置1主要元件还包括控制单元12和存储单元13,所述控制单元12电性连接其它元器件,以输出控制指令对其它元器件进行控制,所述存储单元13用于存储控制程序,以供所述控制单元12调用。Please continue to refer to FIG. 3 , which is a block diagram of a part of the structure (or logic) of the optical
请参考图4所示,当用户通过所述触发器3发出触发信号时,所述控制单元12经触发控制所述瞄准单元7投射瞄准图案9瞄准目标光学字符M(比如条码或文字等字符),使得目标光学字符M位于瞄准图案9的矩形框11内,中心光斑10对准目标光学字符M,使得目标光学字符M正好位于所述摄像头6视场的中央。所述控制单元12进而发送指令控制所述摄像头6采集目标光学字符M的图像。在所述摄像头6采集图像的同时,所述控制单元12控制多个所述补光灯8补光。Please refer to FIG. 4 , when the user sends a trigger signal through the
多个所述补光灯8的补光时间预先被设定包括第一时段和第二时段,在第一时段,多个所述补光灯8依序补光,本申请中多个所述补光灯8补光的初始顺序为:白光、红光、蓝光。在每种颜色的所述补光灯8补光时,所述摄像头6均可以采集多帧图像,每一帧图像的采集周期包括图像采集时间和图像传输处理时间,所述控制单元12同步计算每一帧图像的对比度,且所述摄像头6根据自动曝光控制算法进行自动曝光,从而可以根据前一帧图像的对比度调整曝光参数,以期望下一帧图像有更大的对比度。具体来说,若所述摄像头6的帧率为50HZ,为了提高识读效率,第一时段通常设置得较短,可将第一时段设置为300-600ms,比如第一时段为300ms,白、红、蓝三种颜光补光灯8的补光时间均为100ms,在每一种颜光补光灯8补光时,所述摄像头6可以采集到5帧图像,且由于采用自动曝光控制算法调整曝光参数,理论上,对于容易识读的光学信息,比如简单条形码、低密度二维码、简单文字数字符号等,通常在第一时段就可以成功识读,若光学信息成功识读,则所述控制单元12控制结束本次识读过程,直至经下一次触发开始下一次识读过程。The supplementary light time of the plurality of
对于容易识读的光学信息,若在第一时段的蓝光补光灯8补光时已经识读成功,则所述控制单元12控制结束本次光学信息识读过程;下一次经触发时,在第一时段,所述控制单元12控制多个所述补光灯8依序补光,且第一个补光的补光灯8为上一次结束整个识读过程时最后补光的补光灯8,由于前一次在蓝光补光灯8补光时,光学信息识读成功,则下一次触发由蓝光补光灯8第一个补光,第一时段补光灯8的补光顺序为蓝色、红色、白色。For the optical information that is easy to read, if the reading has been successful when the blue
由于第一时段时间较短,对一些难以识读的光学信息,如高密度条码和二维码、DPM码、复杂文字符号等,在第一时段通常无法读取成功。图5示出了所述光学信息采集装置1采集难以识读的光学信息时,多种颜色的补光灯8的补光时序图,在第一时段白、红、蓝三色补光灯8依序补光,所述控制单元12计算并比较第一时段所有图像的对比度,从而获得对比度最大的图像,且以采集对比度最大的图像时的补光灯8在第二时段进行补光。第二时段通常设置为更长的时间,比如600-5000ms,所述摄像头6在第二时段采集图像可以有更长的时间进行自动曝光,理论上可以获得对比度更大的图像,使得在第一时段难以识读的光学信息也可以成功识读。Due to the short duration of the first period, some difficult-to-read optical information, such as high-density barcodes and two-dimensional codes, DPM codes, complex characters, etc., usually cannot be read successfully in the first period. FIG. 5 shows a timing diagram of the supplementary light of the multi-color
举例来说,对于难以识读的光学信息,在第一时段以白光、红光、蓝光依次补光却没有识读成功光学信息时,所述控制单元12计算第一时段采集的所有图像的对比度,当获得红光补光灯8补光时采集的图像的对比度最大时,则在所述控制单元12控制红光补光灯8在第二时段持续补光,直至识读成功或超时。在下一次经触发时,在第一时段,所述控制单元12控制多个补光灯8依序补光,且补光顺序为红色、蓝色、白色。For example, for optical information that is difficult to read, the
现有技术中图像对比度的计算方法,通常是计算整幅图像的对比度,效率较低,而且该对比度也不是整幅图像中目标光学字符M的对比度。而光学字符的识别,比如条码的识别,主要依靠的是条码的“条”与“空”的对比度,当“条”与“空”的对比度越大,条码相对越容易识读;当“条”与“空”的对比度越小,条码相对越难识读。参考图6所示,本实施例中,为了进一步提高识读效率,对图像对比度的计算过程也进行了优化,即针对所述摄像头6采集的图像(P1,P2),所述控制单元12仅计算图像(P1,P2)中特定位置的对比度,最理想的情况是,特定位置刚好是目标光学字符M占据的位置,可能通过以下方法实现:所述控制单元12(或单独的图像处理单元,未图示,下同)对整幅图像(P1,P2)进行分割,切割出图像(P1,P2)中可能是目标光学字符M的可疑部分Y,并且计算可疑部分Y的对比度,如果整幅图像中仅切割出一个可疑部分Y,则该可疑部分Y的对比度就极有可能是目标光学字符M的对比度,更加准确且更有效率;而当整幅图像(P1,P2)中切割出多个可疑部分Y都有可能是目标光学字符M,则无法准确获取目标光学字符M的对比度。进一步可以通过以下方法获取多个可疑部分Y中目标光学字符M的对比度:由于用户的操作习惯,通常会将瞄准图案9的中心光斑10对准目标光学字符M,使得所述中心光斑10与所述目标光学字符M的至少一部分重叠,当整幅图像(P1,P2)中有多个可疑部分Y都可能是目标光学字符M时,仅切割出与所述目标中心光斑10重叠的可疑部分Y即为目标光学字符M,仅计算该可疑部分Y的对比度。The method for calculating the image contrast in the prior art usually calculates the contrast of the entire image, which is inefficient, and the contrast is not the contrast of the target optical character M in the entire image. The recognition of optical characters, such as barcode recognition, mainly depends on the contrast between the "bar" and "empty" of the barcode. When the contrast between "bar" and "empty" is greater, the barcode is relatively easier to read; The smaller the contrast between " and "empty", the more difficult the barcode is to read. Referring to FIG. 6 , in this embodiment, in order to further improve the reading efficiency, the calculation process of the image contrast is also optimized, that is, for the images (P1, P2) collected by the
进一步,由于仅需要获得目标光学字符M的对比度,则在自动曝光的过程中,仅根据目标光学字符M的亮度来进行自动曝光,而不考虑目标光学字符M周围背景的亮度。Further, since only the contrast of the target optical character M needs to be obtained, in the process of automatic exposure, the automatic exposure is performed only according to the brightness of the target optical character M, without considering the brightness of the background around the target optical character M.
进一步,还需要考虑所述瞄准图案9对对比度计算的影响。请继续参考图6所示,图像(P1)中由于所述瞄准图案9通常亮度较大(P1中的瞄准图案9是黑色,其仅作为示例,实际图像中瞄准图案9的亮度较大,在二值化的图像中通常是亮度最大的部分),甚至可能是整幅图像中亮度最大的部分,而且当所述中心光斑10与目标光学字符M重叠时,更会对目标光学字符M的对比度造成影响,因此,需要过滤掉图像中的瞄准图案9:可以在一帧图像(P1)的采集周期中,在图像采集时间内不投射所述瞄准图案9,在图像传输处理时间内投射瞄准图案9,从而既可以通过所述瞄准图案9瞄准,同时也避免所述瞄准图案9过亮导致的图像过曝;或者在采集一帧图像(P1)时投射瞄准图案9,在采集下一帧图像(P2)时不投射所述瞄准图案9,而仅计算下一帧图像的对比度。Further, the influence of the aiming
一种实施例中(未图示,下同),所述扫描窗口和所述补光窗口合为一个窗口,多个所述补光灯与所述摄像头设置于同一个窗口中;进一步,多个所述补光灯可与所述摄像头、所述瞄准单元可以集成为一个模块,该模块通常叫做扫描引擎或扫描头。In an embodiment (not shown, the same below), the scanning window and the supplementary light window are combined into one window, and a plurality of the supplementary light and the camera are arranged in the same window; Each of the fill light can be integrated with the camera and the aiming unit into a module, which is usually called a scan engine or a scan head.
一种实施例中(未图示,下同),在第一时段,可以通过不同颜色的补光灯同时补光,比如通过红光和蓝光补光灯同时补光,以提供更丰富的补光颜色,以期获得对比度更大的图像。In an embodiment (not shown, the same below), in the first period of time, the light can be supplemented by different colors of supplementary lights at the same time, such as red light and blue light supplementary lights at the same time, to provide more abundant supplementary light. light color for a more contrasting image.
一种实施例中(未图示,下同),当中心光斑不与目标光学字符重叠时,或者由于光学字符密度很大,导致多个不同的光学字符同时与中心光斑的一部分重叠时,可以首先确定中心光斑的中心坐标,然后确定与该中心坐标距离最近的光学字符为目标光学字符。In an embodiment (not shown, the same below), when the center light spot does not overlap with the target optical character, or when the optical character density is very high, causing multiple different optical characters to overlap with a part of the center light spot at the same time, it can be First determine the center coordinate of the center spot, and then determine the optical character closest to the center coordinate as the target optical character.
如图7所示,为本申请前述实施例的光学信息采集装置1一种采集光学信息的方法的流程图,包括以下步骤:As shown in FIG. 7 , it is a flowchart of a method for collecting optical information of the optical
S1:控制摄像头6采集图像并控制多种颜色的补光灯8在第一时段依序补光。S1: Control the
多种颜色的补光灯8的初始补光顺序为:白光、红光、蓝光。所述摄像头6在每一种颜色补光灯8的补光时间,均能采集到多帧图像,The initial fill light sequence of the
S2:计算并比较在多种颜色的补光灯8补光时采集的图像的对比度。S2: Calculate and compare the contrasts of the images collected when the
S3:以对比度最大的图像对应的补光灯8在第二时段进行补光。S3: Fill light in the second time period with the
第二时段通常设置为更长的时间,所述摄像头6在第二时段采集图像可以时,有更长的时间进行自动曝光,理论上可以获得对比度更大的图像,使得在第一时段难以识读的光学信息也可以成功识读。The second period of time is usually set to a longer period of time. When the
本申请的光学信息采集装置和光学信息采集方法具有以下有益效果:The optical information collection device and optical information collection method of the present application have the following beneficial effects:
本申请的光学信息采集装置1和光学信息采集方法,在摄像头6采集图像时通过多个不同颜色的补光灯8进行补光,且将补光时间分为第一时段和第二时段,在第一时段通过多个所述补光灯8依序补光,并计算所述摄像头6采集的多帧图像的对比度,在第二时段通过对比度最大的图像对应的补光灯8进行补光,使得本申请的光学信息采集装置1和光学信息采集方法不仅适用于不同材质/颜色的材料上光学信息的采集,对容易识读的简单光学信息,在第一时段即可成功识读,而且对于一些难以识读的特殊光学字符(如DPM码,DirectPart Mark),在第二时段有针对性进行补光,也有良好的识读效果,提高识读效率。In the optical
以上详细说明仅为本申请之较佳实施例的说明,非因此局限本申请之专利范围,所以,凡运用本创作说明书及图示内容所为之等效技术变化,均包含于本创作之专利范围内。The above detailed description is only the description of the preferred embodiment of the present application, and is not intended to limit the scope of the patent of the present application. Therefore, any equivalent technical changes made by using the contents of the description and illustrations of this creation are included in the patent of this creation. within the range.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210032808.2ACN114374785B (en) | 2022-01-12 | 2022-01-12 | Optical information acquisition device |
| CN202310943171.7ACN116939336A (en) | 2022-01-12 | 2022-01-12 | Optical information collection device and optical information collection method |
| CN202410932666.4ACN118921564A (en) | 2022-01-12 | 2022-01-12 | Optical information acquisition method |
| PCT/CN2022/133269WO2023134304A1 (en) | 2022-01-12 | 2022-11-21 | Optical information collection apparatus and optical information collection method |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210032808.2ACN114374785B (en) | 2022-01-12 | 2022-01-12 | Optical information acquisition device |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310943171.7ADivisionCN116939336A (en) | 2022-01-12 | 2022-01-12 | Optical information collection device and optical information collection method |
| CN202410932666.4ADivisionCN118921564A (en) | 2022-01-12 | 2022-01-12 | Optical information acquisition method |
| Publication Number | Publication Date |
|---|---|
| CN114374785Atrue CN114374785A (en) | 2022-04-19 |
| CN114374785B CN114374785B (en) | 2024-08-09 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210032808.2AActiveCN114374785B (en) | 2022-01-12 | 2022-01-12 | Optical information acquisition device |
| CN202310943171.7APendingCN116939336A (en) | 2022-01-12 | 2022-01-12 | Optical information collection device and optical information collection method |
| CN202410932666.4APendingCN118921564A (en) | 2022-01-12 | 2022-01-12 | Optical information acquisition method |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310943171.7APendingCN116939336A (en) | 2022-01-12 | 2022-01-12 | Optical information collection device and optical information collection method |
| CN202410932666.4APendingCN118921564A (en) | 2022-01-12 | 2022-01-12 | Optical information acquisition method |
| Country | Link |
|---|---|
| CN (3) | CN114374785B (en) |
| WO (1) | WO2023134304A1 (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2023134304A1 (en)* | 2022-01-12 | 2023-07-20 | 深圳盈达信息科技有限公司 | Optical information collection apparatus and optical information collection method |
| WO2024098916A1 (en)* | 2022-11-11 | 2024-05-16 | 无锡盈达聚力科技有限公司 | Imaging apparatus and imaging method |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7261238B1 (en)* | 2006-05-26 | 2007-08-28 | Symbol Technologies, Inc. | Method of locating imaged bar codes for an imaging-based bar code reader |
| CN101061487A (en)* | 2004-08-31 | 2007-10-24 | 讯宝科技公司 | System and method for aiming an optical code scanning device |
| CN106372556A (en)* | 2016-08-30 | 2017-02-01 | 西安小光子网络科技有限公司 | Optical label identification method |
| JP2018164196A (en)* | 2017-03-27 | 2018-10-18 | カシオ計算機株式会社 | Image acquisition apparatus, image acquisition method, and program |
| US20190205583A1 (en)* | 2017-09-28 | 2019-07-04 | Datalogic Ip Tech S.R.L. | System and method for illuminating a target of a barcode reader |
| CN110852127A (en)* | 2019-10-26 | 2020-02-28 | 深圳盈达信息科技有限公司 | Bar code reading method and terminal |
| CN111382590A (en)* | 2020-04-03 | 2020-07-07 | 福建新大陆自动识别技术有限公司 | A small barcode image acquisition unit |
| CN111460848A (en)* | 2020-04-01 | 2020-07-28 | 福州符号信息科技有限公司 | Reading equipment capable of identifying bar codes of various materials and color bar codes and identification method |
| CN113515966A (en)* | 2021-08-10 | 2021-10-19 | 海伯森技术(深圳)有限公司 | Multi-spectrum light illumination code scanning method and device, storage medium and equipment |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9418270B2 (en)* | 2011-01-31 | 2016-08-16 | Hand Held Products, Inc. | Terminal with flicker-corrected aimer and alternating illumination |
| JP6335037B2 (en)* | 2014-06-19 | 2018-05-30 | 株式会社Subaru | Outside environment recognition device |
| CN111541873B (en)* | 2020-05-08 | 2021-10-26 | 北京嘀嘀无限科技发展有限公司 | Control method and system for vehicle monitoring and computer readable storage medium |
| CN114374785B (en)* | 2022-01-12 | 2024-08-09 | 深圳盈达信息科技有限公司 | Optical information acquisition device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101061487A (en)* | 2004-08-31 | 2007-10-24 | 讯宝科技公司 | System and method for aiming an optical code scanning device |
| US7261238B1 (en)* | 2006-05-26 | 2007-08-28 | Symbol Technologies, Inc. | Method of locating imaged bar codes for an imaging-based bar code reader |
| CN106372556A (en)* | 2016-08-30 | 2017-02-01 | 西安小光子网络科技有限公司 | Optical label identification method |
| JP2018164196A (en)* | 2017-03-27 | 2018-10-18 | カシオ計算機株式会社 | Image acquisition apparatus, image acquisition method, and program |
| US20190205583A1 (en)* | 2017-09-28 | 2019-07-04 | Datalogic Ip Tech S.R.L. | System and method for illuminating a target of a barcode reader |
| CN110852127A (en)* | 2019-10-26 | 2020-02-28 | 深圳盈达信息科技有限公司 | Bar code reading method and terminal |
| CN111460848A (en)* | 2020-04-01 | 2020-07-28 | 福州符号信息科技有限公司 | Reading equipment capable of identifying bar codes of various materials and color bar codes and identification method |
| CN111382590A (en)* | 2020-04-03 | 2020-07-07 | 福建新大陆自动识别技术有限公司 | A small barcode image acquisition unit |
| CN113515966A (en)* | 2021-08-10 | 2021-10-19 | 海伯森技术(深圳)有限公司 | Multi-spectrum light illumination code scanning method and device, storage medium and equipment |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2023134304A1 (en)* | 2022-01-12 | 2023-07-20 | 深圳盈达信息科技有限公司 | Optical information collection apparatus and optical information collection method |
| WO2024098916A1 (en)* | 2022-11-11 | 2024-05-16 | 无锡盈达聚力科技有限公司 | Imaging apparatus and imaging method |
| Publication number | Publication date |
|---|---|
| CN118921564A (en) | 2024-11-08 |
| CN116939336A (en) | 2023-10-24 |
| WO2023134304A1 (en) | 2023-07-20 |
| CN114374785B (en) | 2024-08-09 |
| Publication | Publication Date | Title |
|---|---|---|
| CN114374785A (en) | Optical information acquisition device and optical information acquisition method | |
| CN107194301A (en) | A kind of recognition methods of Quick Response Code and device | |
| EP1950687A2 (en) | Barcode reader | |
| US8596542B2 (en) | Apparatus operative for capture of image data | |
| US8074887B2 (en) | Optical reader having a plurality of imaging modules | |
| US20040020990A1 (en) | Optical reader having a plurality of imaging modules | |
| CN112434544A (en) | Cigarette carton code detection and identification method and device | |
| CN107122690A (en) | With flash of light correction sight and the terminal alternately illuminated | |
| CN108460307A (en) | With the symbol reader of multi-core processor and its operating system and method | |
| TWI676936B (en) | Barcode detection method and barcode detection system | |
| WO2014187474A1 (en) | Identifying one- or two-dimensional bar codes via weighted image data combination | |
| CN105158275B (en) | Apple stem/calyx detection method based on near-infrared coding dot matrix structure light | |
| WO2007072166A2 (en) | Counting device for small series | |
| CN116739009A (en) | Scanning device, light supplementing lamp control system and control method thereof | |
| CN105844197B (en) | A kind of double lens image acquisition and processing unit for DPM code readers | |
| CN111460848A (en) | Reading equipment capable of identifying bar codes of various materials and color bar codes and identification method | |
| CN103780832A (en) | Systems and methods for determining and adjusting camera parameters using multi-gain images | |
| WO2016103285A1 (en) | System and method for reading direct part marking (dpm) codes on objects | |
| CN119379539B (en) | Image stitching method, system and readable storage medium | |
| CN105095813B (en) | The reading method and equipment of Ultraluminescence bar code | |
| CN109472767B (en) | Stage lamp missing state analysis system | |
| US20040217261A1 (en) | Device for counting stacked products | |
| CN110505376A (en) | Image collecting device and method | |
| CN107661862A (en) | Express delivery automatic sorting array camera arrangement | |
| JPH10213423A (en) | Device and method for measuring three-dimensional shape |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |