CN112487835A - Method, device, equipment and system for detecting light spot of light supplementing lamp of code scanning equipment - Google Patents

Method, device, equipment and system for detecting light spot of light supplementing lamp of code scanning equipment Download PDF

Info

Publication number
CN112487835A
CN112487835A CN202011284469.4A CN202011284469A CN112487835A CN 112487835 A CN112487835 A CN 112487835A CN 202011284469 A CN202011284469 A CN 202011284469A CN 112487835 A CN112487835 A CN 112487835A
Authority
CN
China
Prior art keywords
window
image
uniformity
average brightness
code scanning
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011284469.4A
Other languages
Chinese (zh)
Other versions
CN112487835B (en
Inventor
谭世恒
陈家大
吕俊杰
邵黎明
刘会淼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Alipay Hangzhou Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202011284469.4A priority Critical patent/CN112487835B/en
Publication of CN112487835A publication Critical patent/CN112487835A/en
Application granted granted Critical
Publication of CN112487835B publication Critical patent/CN112487835B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10821Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Electromagnetism (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Input (AREA)

Abstract

The specification provides a method, a device, equipment and a system for detecting light spots of a fill-in light of a code scanning device. Whether the facula of the light filling lamp of sweeping yard equipment is qualified is further detected based on the average brightness, the degree of consistency that calculate, has realized sweeping yard equipment light filling lamp facula's automated inspection, has improved the detection efficiency of light filling lamp facula to programmed automated inspection standard is unanimous, and the testing result is more accurate.

Description

Method, device, equipment and system for detecting light spot of light supplementing lamp of code scanning equipment
Technical Field
The specification belongs to the technical field of computers, and particularly relates to a method, a device, equipment and a system for detecting light spots of a light supplementing lamp of a code scanning device.
Background
With the popularization of bar code technology and mobile payment, graphic code identification such as one-dimensional codes and two-dimensional codes is gradually applied to various industries of society, and code scanning equipment is widely used. Sweep a yard equipment in some and often have the light filling lamp device, the light filling lamp can be used for remedying the ambient brightness not enough, and the image acquisition effect of reinforcing bar code is favorable to quick discernment bar code. However, the quality of the generated light spots is affected by the installation position and the brightness specification of the light supplement lamp, so that the image effect acquired by the code scanning device is affected, and the decoding performance of the code scanning device is affected finally. Therefore, the light spots of the light supplement lamp need to be detected, and the defective products are screened out for maintenance or replacement.
Whether the uniformity of the light spot reaches the standard or not may be subjectively judged by workers on the light supplementing lamp, and whether the brightness of the light spot reaches the standard or not is judged by adopting an illuminometer, so that whether the code scanning equipment is qualified or not is determined. The method excessively depends on manual experience, the detection efficiency is low due to complex operation, the judgment is subjective, the standards are different, and the accuracy is low.
Disclosure of Invention
An object of the embodiments of the present specification is to provide a method, an apparatus, a device, and a system for detecting light spots of a fill-in light lamp of a code scanning device, so that accuracy and efficiency of light spot detection of the fill-in light lamp of the code scanning device are improved.
In one aspect, an embodiment of the present specification provides a method for detecting light spots of a fill-in lamp of a code scanning device, where the method includes:
segmenting a detection image scanned by code scanning equipment into a plurality of window images, wherein the detection image is obtained by scanning a specified color plate by the code scanning equipment under the condition that a light supplement lamp is turned on;
calculating the average brightness of each window image;
calculating the overall image uniformity of the detection image and the window uniformity of each window image according to the calculated average brightness;
and judging whether the light spots of a light supplementing lamp of the code scanning equipment are qualified or not according to the average brightness of each window image, the window uniformity of each window image and the overall image uniformity.
On the other hand, this specification provides a light filling lamp facula detection device who sweeps a yard equipment, includes:
the window segmentation module is used for segmenting a detection image scanned by the code scanning device into a plurality of window images, wherein the detection image is obtained by scanning a specified color plate by the code scanning device under the condition that a light supplement lamp is turned on;
the brightness calculation module is used for calculating the average brightness of each window image;
the uniformity calculation module is used for calculating the overall image uniformity of the detection image and the window uniformity of each window image according to the calculated average brightness;
and the light spot detection module is used for judging whether the light spots of the light supplement lamp of the code scanning device are qualified or not according to the average brightness of each window image, the window uniformity of each window image and the overall image uniformity.
In another aspect, an embodiment of the present specification provides a fill-in lamp light spot detection device for a code scanning device, including at least one processor and a memory for storing processor-executable instructions, where the processor executes the instructions to implement the fill-in lamp light spot detection method for the code scanning device.
In another aspect, an embodiment of the present specification provides a light spot detection system for a light supplement lamp of a code scanning device, including: the device comprises a code scanning device, a designated color plate and a fixing plate, wherein the code scanning device comprises a camera device, a light supplementing lamp and a main control chip;
the fixing plate is used for fixing the designated color plate and the code scanning device, the central axis of the camera device is perpendicular to the designated color plate, the light supplement lamp is turned on, the camera device is controlled to scan the designated color plate, and a detection image is obtained;
the main control chip comprises at least one processor and a memory for storing executable instructions of the processor, and the processor executes the instructions to realize the light spot detection method of the light supplementing lamp of the code scanning device.
According to the method, the device, the equipment and the system for detecting the light spots of the fill-in lamp of the code scanning equipment, after the code scanning equipment is used for collecting the detection image of the designated color plate, the detection image is subjected to image segmentation, the average brightness of the segmented window image is calculated, and then the overall image uniformity of the detection image and the window image uniformity of the window image are calculated based on the calculated average brightness. Whether the facula of the light filling lamp of sweeping yard equipment is qualified is further detected based on the average brightness, the degree of consistency that calculate, has realized sweeping yard equipment light filling lamp facula's automated inspection, has improved the detection efficiency of light filling lamp facula to programmed automated inspection standard is unanimous, and the testing result is more accurate.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present specification, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
FIG. 1 is a schematic structural diagram of a code scanning device in an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of an embodiment of a method for detecting light spots of a fill-in light lamp of a code scanning device according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a light spot detection system of a fill-in lamp of a code scanning device in an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of segmentation of a detected image in one embodiment of the present description;
fig. 5 is a schematic view illustrating a light spot detection process of a fill-in lamp of a code scanning device in another embodiment of the present disclosure;
fig. 6 is a schematic block structure diagram of an embodiment of a light spot detection device of a fill-in light of a code scanning apparatus provided in this specification;
fig. 7 is a block diagram of a hardware structure of a fill-in lamp light spot detection server of a code scanning device in an embodiment of the present disclosure.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all of the embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step should fall within the scope of protection of the present specification.
Fig. 1 is a schematic structural diagram of a code scanning device in an embodiment of this specification, and as shown in fig. 1, the code scanning device in the embodiment of this specification may include a positioning light control chip (i.e., a positioning light IC (integrated Circuit chip) in fig. 1), a main control chip (i.e., a main control IC in fig. 1), a positioning light, a camera device (i.e., a camera), a fill light, and a fill light control chip (i.e., a fill light IC in fig. 1), where the fill light may provide a light source for the camera device when the code scanning device scans a code, so as to capture a graphic code. Wherein, camera equipment can be used for scanning the pattern code, and the pilot lamp control chip can be used for controlling the pilot lamp, and the main control chip can be used for calculating and control other equipment in the code equipment of sweeping like: the code scanning program can be started to control the image pickup equipment to scan graphic codes and the like. The positioning lamp is mainly used for facilitating positioning of the position of the graphic code by a user, so that the code scanning device can completely acquire the image of the graphic code area and then decode the image by the main control chip. The light filling lamp is mainly used for making up that it is not enough to sweep the ambient brightness when sign indicating number equipment sweeps the sign indicating number, and reinforcing image acquisition's effect, the facula of light filling lamp is especially important to the light filling effect of sweeping sign indicating number equipment, and this description embodiment can provide an automatic light filling lamp facula detection method, realizes carrying out automatic detection to the facula of light filling lamp, improves the efficiency and the accuracy that light filling lamp facula detected.
Fig. 2 is a schematic flowchart of an embodiment of a method for detecting light spots of a fill-in light lamp of a code scanning device according to an embodiment of the present disclosure. Although the present specification provides the method steps or apparatus structures as shown in the following examples or figures, more or less steps or modules may be included in the method or apparatus structures based on conventional or non-inventive efforts. In the case of steps or structures which do not logically have the necessary cause and effect relationship, the execution order of the steps or the block structure of the apparatus is not limited to the execution order or the block structure shown in the embodiments or the drawings of the present specification. When the described method or module structure is applied to a device, a server or an end product in practice, the method or module structure according to the embodiment or the figures may be executed sequentially or in parallel (for example, in a parallel processor or multi-thread processing environment, or even in an implementation environment including distributed processing and server clustering).
In a specific embodiment, as shown in fig. 2, in an embodiment of the method for detecting a light spot of a fill-in light of a code scanning device provided in this specification, the method may be applied to the code scanning device, where the code scanning device may be a terminal such as a computer, a tablet computer, and a smart phone, and the method may include the following steps:
step 202, segmenting a detection image scanned by the code scanning device into a plurality of window images, wherein the detection image is obtained by scanning a specified color plate by the code scanning device under the condition that a light supplement lamp is turned on.
In a specific implementation process, fig. 3 is a schematic structural diagram of a light spot detection system of a fill-in lamp of a code scanning device in an embodiment of this specification, and as shown in fig. 3, the detection system may include the code scanning device, a fixing plate, and a color designation plate. As shown in fig. 3, the designated color plate in the embodiment of the present disclosure may be a white color plate or a gray color plate, because the light supplement lamp is visible light and has various spectrum lights, and the white color plate or the gray color plate may prevent the color plate from absorbing the light of the light supplement lamp to cause the loss of the color blank, for example; if adopt the red board, then other light just is absorbed for the light filling lamp has other spectra just to lose, can't detect the facula of light filling lamp. As shown in fig. 3, a camera (i.e., a camera device) and a light supplement lamp are arranged in the code scanning device, the fixing plate and the designated color plate can be placed as shown in fig. 3, the light supplement lamp of the code scanning device is turned on, the opposite designated color plate is scanned by the code scanning device, and a detection image is acquired.
In some embodiments of the present specification, the scanning method for detecting an image includes:
and enabling the central axis of the camera equipment of the code scanning equipment to be perpendicular to the specified color plate, and scanning the specified color plate in a dark environment by utilizing the camera equipment of the code scanning equipment to obtain the detection image.
In a specific implementation process, the detection system can be placed in a dark room, namely a dark environment, so that the interference of ambient light is avoided. And then the central axis of the camera equipment of the code scanning equipment is perpendicular to the specified color plate, so that a light supplement lamp of the code scanning equipment can be vertically arranged on the specified color plate, and the same reflectivity is ensured. After placing and sweeping sign indicating number equipment and appointed color plate, can open the light filling lamp, open the camera equipment of sweeping sign indicating number equipment, camera equipment just can scan appointed color plate, gathers the detection image.
After the detection image is obtained, the detection image collected by the code scanning device can be segmented into a plurality of window images, and the detection image can be uniformly segmented, for example: the detection image may be divided into N rows and M columns to obtain a plurality of window images, where N, M is a positive integer, and a specific value may be set according to actual needs.
And step 204, calculating the average brightness of each window image.
In a specific implementation process, after a detection image acquired by the code scanning device is segmented into a plurality of window images, the average brightness of each window image can be calculated, for example: the brightness of each window may be calculated and then divided by the number of the window images to obtain the average brightness of each window image, and of course, other methods may also be used to calculate the average brightness of the window images, and the embodiments of the present specification are not particularly limited.
In some embodiments of the present specification, the segmenting the detection image scanned by the code scanning device into a plurality of window images includes:
the detection image is divided into a plurality of window images, and each window image is divided into a plurality of sub-window images;
the calculating the average brightness of each window image comprises the following steps:
and calculating the average brightness of each window image and the average brightness of each sub-window image.
In a specific implementation process, when the detection image acquired by the code scanning device is segmented, the detection image can be uniformly segmented into a plurality of window images, and then each window image is segmented into a plurality of sub-window images. Fig. 4 is a schematic view illustrating the segmentation of the detection image in one embodiment of the present specification, and as shown in fig. 4, the detection image may be first segmented into 3 × 3 window images, and then each window image may be segmented into 3 × 5 sub-window images. In calculating the average luminance of each window image, the average luminance of each window image and the average luminance of each sub-window image may be calculated. The detection image is divided into the plurality of window images, and then each window image is divided into the sub-window images, so that the brightness, the uniformity and the like of the detection image can be calculated more accurately, the parameter calculation of the light spot of the light supplementing lamp is more accurate, and a data base is laid for the light spot detection of the light supplementing lamp.
In some embodiments of the present specification, the calculating the average brightness of each window image includes:
taking the ratio of the accumulated value of all pixels in the sub-window image to the number of pixels in the sub-window image as the average brightness of the corresponding sub-window image;
and taking the ratio of the sum of the average brightness of each sub-window image in the window image to the number of the sub-window images in the window image as the average brightness of the corresponding window image.
In a specific implementation process, a ratio of an accumulated value of all pixels of the sub-window image to the number of pixels of the sub-window image may be used as an average luminance of the sub-window image, for example: the average brightness of the first sub-window image a in the upper left corner of fig. 4 may be the sum of all pixel values in the sub-window image a divided by the number of pixels in the sub-window image a. By adopting the method, the average brightness of each sub-window image is calculated in sequence, the average brightness of the window image is calculated according to the average brightness of each sub-window image, and the sum of the average brightness of each sub-window image in the window image can be calculated and divided by the number of the sub-window images in the window image to obtain the average brightness of the corresponding window image. For example: the average luminance of the first window image B in the upper left corner of fig. 4 may be the sum of the average luminances of 3 × 5 sub-window images in the window image B divided by 3 × 5 to 15, and so on, and the average luminance of each window image may be calculated. By adopting the mode of sub-window division, the average brightness of the window image can more accurately cover the light spot of the light supplementing lamp, and the light spot of the light supplementing lamp can be further more accurately detected.
And step 206, calculating the global uniformity of the detection image and the window uniformity of each window image according to the calculated average brightness.
In a specific implementation, after the average brightness of the window images is calculated, the global uniformity of the detected image and the window uniformity of each window image can be calculated based on the calculated average brightness. The uniformity can be used to characterize the degree of light dispersion, which can be used to display images. The overall image uniformity of the detection image can be calculated according to the distribution of the window image and the sub-window image and the calculated average brightness, the average brightness of the window image at the specified position, and the window uniformity of the corresponding window image can be calculated according to the average brightness of the sub-window image at the specified position in the window image. Meanwhile, the whole image uniformity of the detected image and the window uniformity of each window image are considered, and data of two dimensions of brightness and uniformity are considered, so that the detection standard is more comprehensive, the coverage is wider, and the detection result is more reliable and accurate.
In some embodiments of the present description, said calculating a global uniformity of the inspection image according to the calculated average brightness includes:
calculating the uniformity of the whole image according to the sum of the average brightness differences of the window images which are symmetrical to each other in the detection image; wherein the mutually symmetrical window images take the center of the detection image as a symmetrical center.
In a specific implementation, the sum of the differences of the average brightness of the window images in the detection image that are symmetric about the center point of the detection image can be used as the global uniformity of the detection image. Of course, the overall uniformity of the detected image may also be calculated according to a product of an accumulated value of the difference values of the average brightness of the symmetric window images and a specified coefficient or weight, or the weight values of the window images at different positions are set first, and then the overall uniformity of the detected image is calculated based on the weight values and the difference values of the average brightness of the symmetric window images, which is not limited in the embodiments of the present specification.
In some embodiments of the present disclosure, the method for calculating the window uniformity includes:
and calculating the window uniformity of the corresponding window image according to the difference value between the maximum value of the average brightness and the minimum value of the average brightness of each sub-window image in the window image.
In a specific implementation process, when calculating the window uniformity of the window image, the window uniformity may be calculated according to the average brightness of each sub-window image in the window image, the sub-window image with the largest average brightness and the sub-window image with the smallest average brightness are selected from the window images, and the difference between the maximum value and the minimum value of the average brightness may be used as the window uniformity of the window image. Assuming that there are 15 sub-window images in the window image a, wherein the average brightness of the sub-window image a is a maximum of 1, and the average brightness of the sub-window image b is b1, the window uniformity of the window image a can be defined as a1-b 1. Of course, the sum of the differences of the average luminances of the sub-window images symmetrical to each other in the window image may also be used as the window uniformity of the window image, similar to the global uniformity, or the global uniformity may be similar to the window uniformity, and the difference between the maximum value and the minimum value of the average luminances in the window image is selected as the global uniformity, or other manners are used to calculate the uniformity.
For example: assuming that the detection image is divided into N × M window images, and then each window image is divided into N × M sub-window images, the average luminance of each window image may be represented as B (i, j), and the average luminance of each sub-window image may be represented as B (i, j, k, l), where i is 1, …, N; j is 1, …, M; k is 1, …, n; l is 1, …, m. The calculation method for detecting the global uniformity of the image can be expressed as:
Figure BDA0002781892330000061
the window uniformity of each window image can be expressed as:
Figure BDA0002781892330000062
and 208, judging whether the light spots of the light supplement lamp of the code scanning device are qualified or not according to the average brightness of each window image, the window uniformity of each window image and the overall image uniformity.
In a specific implementation process, after the average brightness, the window uniformity and the overall image uniformity of the window image are calculated, whether the light spot of the fill-in light is qualified or not can be verified, for example: whether the calculated average brightness, the calculated window uniformity and the calculated full map uniformity meet preset conditions can be judged, the preset conditions can represent conditions which need to be met by the average brightness, the calculated window uniformity and the calculated full map uniformity of the window image when the light spot of the light supplement lamp is qualified, the qualified preset conditions and the qualified specific conditions of the light supplement lamp can be set according to expert experience or experiments, and the embodiment of the specification is not limited specifically. Such as: at least two of the average brightness, the window uniformity and the full map uniformity of the window image can be set to meet the qualified requirements, and then the light spot of the light supplement lamp is determined to be qualified for detection, or the light spot of the light supplement lamp can be determined to be qualified for detection only if the average brightness, the window uniformity and the full map uniformity of the window image meet the qualified requirements.
In some embodiments of this specification, the determining whether the light spot of the fill light of the code scanning device is qualified according to the average brightness of each window image, the window uniformity of each window image, and the global uniformity includes:
and comparing the average brightness, the window uniformity and the full map uniformity of each window image with a brightness threshold, a window uniformity threshold and a full map uniformity threshold respectively, and if the average brightness of each window image is greater than the brightness threshold, the window uniformity of each window image is less than the window uniformity threshold, and the full map uniformity is less than the full map uniformity threshold, determining that the light spot of the light supplementing lamp of the code scanning equipment is qualified.
In a specific implementation process, a luminance threshold, a window uniformity threshold, and a full map uniformity threshold that the light spot of the fill-in light is qualified may be preset, and the specific size of each threshold may be determined according to an actual situation, which is not specifically limited in the embodiments of this specification. After the average brightness, the window uniformity and the map uniformity of the window images in the detection image collected by the code scanning device are calculated, the average brightness of each window image can be compared with a brightness threshold, if the average brightness of each window image is greater than the brightness threshold, the window uniformity of each window image is compared with a window uniformity threshold, if the window uniformity of each window image is less than the window uniformity threshold, the map uniformity is compared with the map uniformity threshold, and if the map uniformity is less than the map uniformity threshold, the light spots of the fill-in light lamp are determined to be qualified.
Of course, the comparison sequence of the average brightness, the window uniformity and the overall graph uniformity is not particularly limited, and the comparison sequence may be selected according to actual needs or may also be compared with corresponding threshold values at the same time, and the embodiments of the present specification are not particularly limited. When actual needs are needed, if the requirement on the light spot of the light supplement lamp is not high, two of the light spots can be selected to be qualified or at least one of the light spots is selected to be qualified, and then the light spot of the light supplement lamp is considered to be qualified. Of course, the average brightness, the window uniformity and the overall image uniformity are used as the detection standards for qualification, so that the quality of the light supplement lamp can be controlled, and the code scanning effect of the code scanning equipment is ensured.
The camera device of the code scanning device can send the acquired detection image to the processor of the scanning device, and the code scanning device automatically executes the method described in the above embodiment to detect whether the light spot of the light supplement lamp of the code scanning device is qualified. The detection result may be sent to a display device in fig. 3, which may be a mobile phone client or a display of the user or a display screen of the code scanning device, etc., so that the user can view the detection result.
In the method for detecting light spots of a fill-in lamp of a code scanning device provided in the embodiment of the present description, after a detection image of a designated color plate is collected by the code scanning device, the detection image is subjected to image segmentation, the average brightness of a segmented window image is calculated, and then the overall uniformity of the detection image and the window image uniformity of the window image are calculated based on the calculated average brightness. Whether the facula of the light filling lamp of sweeping yard equipment is qualified is further detected based on the average brightness, the degree of consistency that calculate, has realized sweeping yard equipment light filling lamp facula's automated inspection, has improved the detection efficiency of light filling lamp facula to programmed automated inspection standard is unanimous, and the testing result is more accurate.
Fig. 5 is a schematic view of a light spot detection process of a fill-in light lamp of a code scanning device in another embodiment of this specification, and the light spot detection process of the fill-in light lamp in the embodiment of this specification is specifically described below with reference to fig. 5:
step1, placing the detection equipment according to the attached drawing 3, and then turning on a light supplement lamp of the code scanning equipment; special attention is paid to the fact that it is performed in a dark room, i.e. without ambient light interference.
Step2, the camera of the code scanning apparatus, i.e., the image pickup apparatus, is set to a fixed exposure mode, and the exposure time Shutter and the Gain are set, and a detection image IMG is acquired. Of particular note, the camera axis of the sweep is perpendicular to the white (or gray) plate. In addition, the exposure time Shutter and the Gain need to be calibrated in advance according to actual equipment, and the image is required not to be overexposed or underexposed under the exposure parameters.
Step3, dividing the detection image IMG into N rows and M columns, and obtaining a window image with W × H pixels (namely, N × M windows in total); then, each window is further divided into n rows and m columns, and the size of the sub-window image is w × h pixels (namely, each window has n × m sub-windows). As shown in fig. 4, the image is divided into 9 windows of 3 rows and 3 columns, and each window is divided into 15 sub-windows of 3 rows and 5 columns.
Then calculating the average brightness B (i, j, k, l) of each sub-window image in the detection image IMG and the average brightness B (i, j) of each window image; wherein, i is 1, …, N; j is 1, …, M; k is 1, …, n; l is 1, …, m.
Step4, calculating the global uniformity U of the detected image, and the calculation method can refer to the above formula (1).
Step5, calculating the window uniformity u (i, j) of each window image, and the calculation method can refer to the above formula (2).
Step6, judging the brightness of each window image, and if the brightness is qualified, requiring all B (i, j) to meet the following requirements: b (i, j) > TB (i, j), wherein i ═ 1, …, N; j is 1, …, M; TB (i, j) is a pre-calibrated brightness threshold.
Step7, then judging the uniformity of the whole image, and if the uniformity is qualified, requiring that: u < TU, where TU is a pre-calibrated threshold for global uniformity.
Step8, finally, judging the window uniformity of each window image, and if the window uniformity is qualified, requiring all u (i, j) to meet the following conditions: u (i, j) < Tu (i, j), wherein i ═ 1, …, N; j is 1, …, M; tu (i, j) is a pre-calibrated window uniformity threshold.
And if the average brightness, the window uniformity and the overall image uniformity in Step6-Step8 are all qualified, determining that the light spot detection result of the fill-in light lamp is qualified, and transmitting the detection result to display equipment through a data line in fig. 3 so as to be convenient for a user to view.
The embodiment of the specification can automatically judge whether the light spot of the light supplementing lamp is qualified or not, manual intervention is not needed, automation is realized, and production efficiency is improved. Moreover, the light spot quality of the light supplementing lamp can be well measured according to two dimensional indexes of brightness and uniformity, the calculated amount is low, and the realization is convenient and fast. The used equipment is simple, only a jig with white or gray paperboard is needed, and the realization cost is low.
In the present specification, each embodiment of the method is described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. The relevant points can be obtained by referring to the partial description of the method embodiment.
Based on the light spot detection method for the light supplement lamp of the code scanning device, one or more embodiments of the present specification further provide a device for detecting the light spot of the light supplement lamp of the code scanning device. The system may include devices (including distributed systems), software (applications), modules, components, servers, clients, etc. that use the methods described in embodiments of the present specification in conjunction with hardware where necessary to implement the apparatus. Based on the same innovative conception, embodiments of the present specification provide an apparatus as described in the following embodiments. Since the implementation scheme of the apparatus for solving the problem is similar to that of the method, the specific apparatus implementation in the embodiment of the present specification may refer to the implementation of the foregoing method, and repeated details are not repeated. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Specifically, fig. 6 is a schematic block structure diagram of an embodiment of a light spot detection device of a fill-in lamp of a code scanning device provided in this specification, where the device may be applied to the code scanning device, as shown in fig. 6, the light spot detection device of the fill-in lamp of the code scanning device provided in this specification may include:
the window segmentation module 61 is configured to segment a detection image scanned by the code scanning device into a plurality of window images, where the detection image is obtained by scanning a specified color plate by the code scanning device when the light supplement lamp is turned on;
a brightness calculation module 62, configured to calculate an average brightness of each window image;
a uniformity calculation module 63, configured to calculate a global uniformity of the detected image and a window uniformity of each window image according to the calculated average brightness;
and the light spot detection module 64 is configured to determine whether the light spots of the light supplement lamp of the code scanning device are qualified according to the average brightness of each window image, the window uniformity of each window image, and the overall image uniformity.
The light spot detection device for the fill-in lamp of the code scanning device provided in the embodiment of the present description utilizes the code scanning device to collect the detection image of the designated color plate, then performs image segmentation on the detection image, calculates the average brightness of the segmented window image, and then calculates the overall image uniformity of the detection image and the window image uniformity of the window image based on the calculated average brightness. Whether the facula of the light filling lamp of sweeping yard equipment is qualified is further detected based on the average brightness, the degree of consistency that calculate, has realized sweeping yard equipment light filling lamp facula's automated inspection, has improved the detection efficiency of light filling lamp facula to programmed automated inspection standard is unanimous, and the testing result is more accurate.
In some embodiments of the present description, the window cutting module is specifically configured to:
the detection image is divided into a plurality of window images, and each window image is divided into a plurality of sub-window images;
the brightness calculation module is specifically configured to:
and calculating the average brightness of each window image and the average brightness of each sub-window image.
In the embodiment of the specification, the detection image is divided into the plurality of window images, and then the sub-window images are divided for each window image, so that the brightness, the uniformity and the like of the detection image can be calculated more accurately, the parameter calculation of the light spot of the light supplement lamp is more accurate, and a data base is laid for the light spot detection of the light supplement lamp.
In some embodiments of the present description, the uniformity calculation module is specifically configured to:
calculating the uniformity of the whole image according to the sum of the average brightness differences of the window images which are symmetrical to each other in the detection image; wherein the mutually symmetrical window images take the center of the detection image as a symmetrical center.
In some embodiments of the present description, the uniformity calculation module is specifically configured to:
and calculating the window uniformity of the corresponding window image according to the difference value between the maximum value of the average brightness and the minimum value of the average brightness of each sub-window image in the window image.
In the embodiment of the specification, the whole image uniformity of the detected image and the window uniformity of each window image are considered at the same time, and data of two dimensions of brightness and uniformity are considered, so that the detection standard is more comprehensive, the coverage is wider, and the further detection result is more reliable and accurate.
It should be noted that the above-mentioned apparatus may also include other embodiments according to the description of the corresponding method embodiment. The specific implementation manner may refer to the description of the above corresponding method embodiment, and is not described in detail herein.
This specification embodiment still provides a sweep light spot check out test set of sign indicating number equipment, includes: at least one processor and a memory for storing processor-executable instructions, where the processor executes the instructions to implement the light spot detection method of the fill-in light of the code scanning device in the above embodiment, such as:
segmenting a detection image scanned by code scanning equipment into a plurality of window images, wherein the detection image is obtained by scanning a specified color plate by the code scanning equipment under the condition that a light supplement lamp is turned on;
calculating the average brightness of each window image;
calculating the overall image uniformity of the detection image and the window uniformity of each window image according to the calculated average brightness;
and judging whether the light spots of a light supplementing lamp of the code scanning equipment are qualified or not according to the average brightness of each window image, the window uniformity of each window image and the overall image uniformity.
As shown in fig. 1 and fig. 3, an embodiment of the present specification further provides a light spot detection system for a fill-in lamp of a code scanning device, including: the device comprises a code scanning device, a designated color plate and a fixing plate, wherein the code scanning device comprises a camera device, a light supplementing lamp and a main control chip;
the fixing plate is used for fixing the designated color plate and the code scanning device, the central axis of the camera device is perpendicular to the designated color plate, the light supplement lamp is turned on, the camera device is controlled to scan the designated color plate, and a detection image is obtained;
the main control chip comprises at least one processor and a memory for storing an executable instruction of the processor, and the processor executes the instruction to realize the light spot detection method of the light supplementing lamp of the code scanning device in the embodiment.
It should be noted that the above description of the apparatus and system according to the method embodiments may also include other embodiments. The specific implementation manner may refer to the description of the related method embodiment, and is not described in detail herein.
The light spot detection device of the light supplementing lamp of the code scanning device provided by the specification can also be applied to various data analysis and processing systems. The system or server or terminal or device may be a single server, or may include a server cluster, a system (including a distributed system), software (applications), actual operating devices, logical gate devices, quantum computers, etc. using one or more of the methods described herein or one or more embodiments of the system or server or terminal or device, in combination with necessary end devices implementing hardware. The system for checking for discrepancies may comprise at least one processor and a memory storing computer-executable instructions that, when executed by the processor, implement the steps of the method of any one or more of the embodiments described above.
The method embodiments provided by the embodiments of the present specification can be executed in a mobile terminal, a computer terminal, a server or a similar computing device. Taking an example of the operation on a server, fig. 7 is a hardware structure block diagram of a fill-in light spot detection server of a code scanning device in an embodiment of this specification, and the computer terminal may be the fill-in light spot detection server of the code scanning device or a fill-in light spot detection device of the code scanning device in the above embodiment. As shown in fig. 7, the server 10 may include one or more (only one shown) processors 100 (the processors 100 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA, etc.), a non-volatile memory 200 for storing data, and a transmission module 300 for communication functions. It will be understood by those skilled in the art that the structure shown in fig. 7 is only an illustration and is not intended to limit the structure of the electronic device. For example, the server 10 may also include more or fewer components than shown in FIG. 7, and may also include other processing hardware, such as a database or multi-level cache, a GPU, or have a different configuration than shown in FIG. 7, for example.
The non-volatile memory 200 may be configured to store software programs and modules of application software, such as program instructions/modules corresponding to the light spot detection method of the fill-in light of the code scanning device in the embodiment of the present disclosure, and the processor 100 executes various functional applications and resource data updates by running the software programs and modules stored in the non-volatile memory 200. Non-volatile memory 200 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the non-volatile memory 200 may further include memory located remotely from the processor 100, which may be connected to a computer terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, office-to-network, mobile communication networks, and combinations thereof.
The transmission module 300 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal. In one example, the transmission module 300 includes a Network adapter (NIC) that can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission module 300 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The method or apparatus provided in this specification and described in the foregoing embodiments may implement service logic through a computer program and record the service logic on a storage medium, where the storage medium may be read and executed by a computer, and implement the effects of the solutions described in the embodiments of this specification, such as:
segmenting a detection image scanned by code scanning equipment into a plurality of window images, wherein the detection image is obtained by scanning a specified color plate by the code scanning equipment under the condition that a light supplement lamp is turned on;
calculating the average brightness of each window image;
calculating the overall image uniformity of the detection image and the window uniformity of each window image according to the calculated average brightness;
and judging whether the light spots of a light supplementing lamp of the code scanning equipment are qualified or not according to the average brightness of each window image, the window uniformity of each window image and the overall image uniformity.
The storage medium may include a physical device for storing information, and typically, the information is digitized and then stored using an electrical, magnetic, or optical media. The storage medium may include: devices that store information using electrical energy, such as various types of memory, e.g., RAM, ROM, etc.; devices that store information using magnetic energy, such as hard disks, floppy disks, tapes, core memories, bubble memories, and usb disks; devices that store information optically, such as CDs or DVDs. Of course, there are other ways of storing media that can be read, such as quantum memory, graphene memory, and so forth.
The method or the apparatus for detecting light spots of a fill-in light of a code scanning device provided in the embodiment of the present specification can be implemented in a computer by a processor executing corresponding program instructions, for example, the c + + language of a windows operating system is used for implementation on a PC terminal, a linux system is used for implementation, or other implementations such as android and iOS system programming languages are used for implementation on an intelligent terminal, and processing logic based on a quantum computer is implemented.
It should be noted that descriptions of the apparatus, the computer storage medium, and the system described above according to the related method embodiments may also include other embodiments, and specific implementations may refer to descriptions of corresponding method embodiments, which are not described in detail herein.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the hardware + program class embodiment, since it is substantially similar to the method embodiment, the description is simple, and the relevant points can be referred to only the partial description of the method embodiment.
The embodiments of the present description are not limited to what must be consistent with industry communications standards, standard computer resource data updating and data storage rules, or what is described in one or more embodiments of the present description. Certain industry standards, or implementations modified slightly from those described using custom modes or examples, may also achieve the same, equivalent, or similar, or other, contemplated implementations of the above-described examples. The embodiments using the modified or transformed data acquisition, storage, judgment, processing and the like can still fall within the scope of the alternative embodiments of the embodiments in this specification.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a vehicle-mounted human-computer interaction device, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
Although one or more embodiments of the present description provide method operational steps as described in the embodiments or flowcharts, more or fewer operational steps may be included based on conventional or non-inventive approaches. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. When the device or the end product in practice executes, it can execute sequentially or in parallel according to the method shown in the embodiment or the figures (for example, in the environment of parallel processors or multi-thread processing, even in the environment of distributed resource data update). The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the presence of additional identical or equivalent elements in a process, method, article, or apparatus that comprises the recited elements is not excluded. The terms first, second, etc. are used to denote names, but not any particular order.
For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. Of course, when implementing one or more of the present description, the functions of each module may be implemented in one or more software and/or hardware, or a module implementing the same function may be implemented by a combination of multiple sub-modules or sub-units, etc. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable resource data updating apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable resource data updating apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable resource data update apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable resource data update apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage, graphene storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
As will be appreciated by one skilled in the art, one or more embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, one or more embodiments of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
One or more embodiments of the present description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more embodiments of the present specification can also be practiced in distributed computing environments where tasks are performed by remote devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, and the relevant points can be referred to only part of the description of the method embodiments. In the description of the specification, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the specification. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
The above description is merely exemplary of one or more embodiments of the present disclosure and is not intended to limit the scope of one or more embodiments of the present disclosure. Various modifications and alterations to one or more embodiments described herein will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of the present specification should be included in the scope of the claims.

Claims (14)

1. A method for detecting light spots of a fill-in lamp of a code scanning device comprises the following steps:
segmenting a detection image scanned by code scanning equipment into a plurality of window images, wherein the detection image is obtained by scanning a specified color plate by the code scanning equipment under the condition that a light supplement lamp is turned on;
calculating the average brightness of each window image;
calculating the overall image uniformity of the detection image and the window uniformity of each window image according to the calculated average brightness;
and judging whether the light spots of a light supplementing lamp of the code scanning equipment are qualified or not according to the average brightness of each window image, the window uniformity of each window image and the overall image uniformity.
2. The method of claim 1, wherein the segmenting the detected image scanned by the code scanning device into a plurality of window images comprises:
the detection image is divided into a plurality of window images, and each window image is divided into a plurality of sub-window images;
the calculating the average brightness of each window image comprises the following steps:
and calculating the average brightness of each window image and the average brightness of each sub-window image.
3. The method of claim 1, wherein said calculating a global uniformity of said inspection image based on said calculated average luminance comprises:
calculating the uniformity of the whole image according to the sum of the average brightness differences of the window images which are symmetrical to each other in the detection image; wherein the mutually symmetrical window images take the center of the detection image as a symmetrical center.
4. The method of claim 2, wherein the window uniformity is calculated by:
and calculating the window uniformity of the corresponding window image according to the difference value between the maximum value of the average brightness and the minimum value of the average brightness of each sub-window image in the window image.
5. The method of claim 1, wherein the determining whether the light spot of the fill-in lamp of the code scanning device is qualified according to the average brightness of each window image, the window uniformity of each window image, and the global uniformity comprises:
and comparing the average brightness, the window uniformity and the full map uniformity of each window image with a brightness threshold, a window uniformity threshold and a full map uniformity threshold respectively, and if the average brightness of each window image is greater than the brightness threshold, the window uniformity of each window image is less than the window uniformity threshold, and the full map uniformity is less than the full map uniformity threshold, determining that the light spot of the light supplementing lamp of the code scanning equipment is qualified.
6. The method of claim 2, wherein calculating the average brightness of each window image comprises:
taking the ratio of the accumulated value of all pixels in the sub-window image to the number of pixels in the sub-window image as the average brightness of the corresponding sub-window image;
and taking the ratio of the sum of the average brightness of each sub-window image in the window image to the number of the sub-window images in the window image as the average brightness of the corresponding window image.
7. The method of claim 1, wherein the designated color plate is a white plate or a gray plate.
8. The method of claim 1, the scanning method of detecting an image comprising:
and enabling the central axis of the camera equipment of the code scanning equipment to be perpendicular to the specified color plate, and scanning the specified color plate in a dark environment by utilizing the camera equipment of the code scanning equipment to obtain the detection image.
9. The utility model provides a sweep light filling lamp facula detection device of sign indicating number equipment, includes:
the window segmentation module is used for segmenting a detection image scanned by the code scanning device into a plurality of window images, wherein the detection image is obtained by scanning a specified color plate by the code scanning device under the condition that a light supplement lamp is turned on;
the brightness calculation module is used for calculating the average brightness of each window image;
the uniformity calculation module is used for calculating the overall image uniformity of the detection image and the window uniformity of each window image according to the calculated average brightness;
and the light spot detection module is used for judging whether the light spots of the light supplement lamp of the code scanning device are qualified or not according to the average brightness of each window image, the window uniformity of each window image and the overall image uniformity.
10. The apparatus of claim 9, the window cropping module to be specifically configured to:
the detection image is divided into a plurality of window images, and each window image is divided into a plurality of sub-window images;
the brightness calculation module is specifically configured to:
and calculating the average brightness of each window image and the average brightness of each sub-window image.
11. The apparatus of claim 9, the uniformity calculation module being specifically configured to:
calculating the uniformity of the whole image according to the sum of the average brightness differences of the window images which are symmetrical to each other in the detection image; wherein the mutually symmetrical window images take the center of the detection image as a symmetrical center.
12. The apparatus of claim 10, the uniformity calculation module being specifically configured to:
and calculating the window uniformity of the corresponding window image according to the difference value between the maximum value of the average brightness and the minimum value of the average brightness of each sub-window image in the window image.
13. The utility model provides a sweep light filling lamp facula check out test set of sign indicating number equipment, includes: at least one processor and a memory for storing processor-executable instructions, the processor implementing the method of any one of claims 1-8 when executing the instructions.
14. The utility model provides a sweep light filling lamp facula detecting system of sign indicating number equipment, includes: the device comprises a code scanning device, a designated color plate and a fixing plate, wherein the code scanning device comprises a camera device, a light supplementing lamp and a main control chip;
the fixing plate is used for fixing the designated color plate and the code scanning device, the central axis of the camera device is perpendicular to the designated color plate, the light supplement lamp is turned on, the camera device is controlled to scan the designated color plate, and a detection image is obtained;
the main control chip comprises at least one processor and a memory for storing processor executable instructions, and the processor executes the instructions to realize the method of any one of claims 1 to 8.
CN202011284469.4A 2020-11-17 2020-11-17 Method, device, equipment and system for detecting light spot of light supplementing lamp of code scanning equipment Active CN112487835B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011284469.4A CN112487835B (en) 2020-11-17 2020-11-17 Method, device, equipment and system for detecting light spot of light supplementing lamp of code scanning equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011284469.4A CN112487835B (en) 2020-11-17 2020-11-17 Method, device, equipment and system for detecting light spot of light supplementing lamp of code scanning equipment

Publications (2)

Publication Number Publication Date
CN112487835A true CN112487835A (en) 2021-03-12
CN112487835B CN112487835B (en) 2022-07-12

Family

ID=74930941

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011284469.4A Active CN112487835B (en) 2020-11-17 2020-11-17 Method, device, equipment and system for detecting light spot of light supplementing lamp of code scanning equipment

Country Status (1)

Country Link
CN (1) CN112487835B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113065374A (en) * 2021-04-01 2021-07-02 支付宝(杭州)信息技术有限公司 Two-dimensional code identification method, device and equipment
CN114279679A (en) * 2021-04-15 2022-04-05 上海商米科技集团股份有限公司 Automated testing method and system, testing device and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118608A (en) * 2009-12-30 2011-07-06 捷达世软件(深圳)有限公司 System and method for adjusting video monitoring light
CN106412457A (en) * 2016-10-31 2017-02-15 维沃移动通信有限公司 Image processing method and mobile terminal
CN109934034A (en) * 2019-02-22 2019-06-25 无锡盈达聚力科技有限公司 A kind of scanning means and barcode scanning method of Parameter adjustable
CN111460844A (en) * 2020-04-17 2020-07-28 支付宝(杭州)信息技术有限公司 Method, device and equipment for detecting positioning light of code scanning equipment
CN111935415A (en) * 2020-08-18 2020-11-13 浙江大华技术股份有限公司 Brightness adjusting method and device, storage medium and electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118608A (en) * 2009-12-30 2011-07-06 捷达世软件(深圳)有限公司 System and method for adjusting video monitoring light
CN106412457A (en) * 2016-10-31 2017-02-15 维沃移动通信有限公司 Image processing method and mobile terminal
CN109934034A (en) * 2019-02-22 2019-06-25 无锡盈达聚力科技有限公司 A kind of scanning means and barcode scanning method of Parameter adjustable
CN111460844A (en) * 2020-04-17 2020-07-28 支付宝(杭州)信息技术有限公司 Method, device and equipment for detecting positioning light of code scanning equipment
CN111935415A (en) * 2020-08-18 2020-11-13 浙江大华技术股份有限公司 Brightness adjusting method and device, storage medium and electronic device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113065374A (en) * 2021-04-01 2021-07-02 支付宝(杭州)信息技术有限公司 Two-dimensional code identification method, device and equipment
CN113065374B (en) * 2021-04-01 2023-10-27 支付宝(杭州)信息技术有限公司 Two-dimensional code identification method, device and equipment
CN114279679A (en) * 2021-04-15 2022-04-05 上海商米科技集团股份有限公司 Automated testing method and system, testing device and computer readable storage medium

Also Published As

Publication number Publication date
CN112487835B (en) 2022-07-12

Similar Documents

Publication Publication Date Title
US11587219B2 (en) Method and apparatus for detecting pixel defect of optical module, and device
CN112487835B (en) Method, device, equipment and system for detecting light spot of light supplementing lamp of code scanning equipment
CN107328791B (en) Defect detection method and device
CN112749575B (en) Code scanning equipment and working mode identification method, device and equipment of code scanning equipment
CN112469066B (en) 5G network coverage evaluation method and device
US20190349577A1 (en) Method and device for detecting digital camera
TW202225682A (en) Circuit board checking method, electronic device, and storage medium
CN113902793B (en) Method, system and electronic equipment for predicting end-to-end building height based on single-vision remote sensing image
CN117146739B (en) Angle measurement verification method and system for optical sighting telescope
CN116721399B (en) Point cloud target detection method and device for quantitative perception training
CN110831057A (en) Network coverage condition detection method, device and storage medium
CN116563841B (en) Detection method and detection device for power distribution network equipment identification plate and electronic equipment
CN113010435A (en) Method and device for screening algorithm model and test platform
CN117011532A (en) Image processing method, apparatus, device, storage medium, and program product
WO2019165870A1 (en) Method, apparatus, and device for recognizing bar code
CN114821309A (en) Indoor transformer substation switch and indicator lamp state identification method and system
CN111211735B (en) Detection method and device for photovoltaic power station
CN114782710B (en) Image feature extraction method and device and display panel restoration method
CN117218552B (en) Estimation algorithm optimization method and device based on pixel change detection
CN116046303B (en) Deflection intelligent detection system, method and device
CN117649613B (en) Optical remote sensing image optimization method and device, storage medium and electronic equipment
CN114118317B (en) Internet of things-based network distribution equipment inspection method and device and electronic equipment
CN118115574A (en) Positioning method and device for double-split drainage line of transformer substation and robot
CN115841455A (en) Optical fiber end face detection method and device, terminal equipment and storage medium
CN117788383A (en) Plastic package circuit model defect injection method, system and equipment based on ultrasonic image

Legal Events

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