[go: up one dir, main page]

CN115049818B - Number identification method, device, computer equipment and storage medium - Google Patents

Number identification method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN115049818B
CN115049818B CN202210667522.1A CN202210667522A CN115049818B CN 115049818 B CN115049818 B CN 115049818B CN 202210667522 A CN202210667522 A CN 202210667522A CN 115049818 B CN115049818 B CN 115049818B
Authority
CN
China
Prior art keywords
image
analyzed
camera
target area
light source
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.)
Active
Application number
CN202210667522.1A
Other languages
Chinese (zh)
Other versions
CN115049818A (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.)
Xi'an Jixun Industrial Co ltd
Original Assignee
Xi'an Jixun Industrial 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 Xi'an Jixun Industrial Co ltd filed Critical Xi'an Jixun Industrial Co ltd
Priority to CN202210667522.1A priority Critical patent/CN115049818B/en
Publication of CN115049818A publication Critical patent/CN115049818A/en
Application granted granted Critical
Publication of CN115049818B publication Critical patent/CN115049818B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/22Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/50Depth or shape recovery
    • G06T7/55Depth or shape recovery from multiple images
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/10Image acquisition
    • G06V10/12Details of acquisition arrangements; Constructional details thereof
    • G06V10/14Optical characteristics of the device performing the acquisition or on the illumination arrangements
    • G06V10/141Control of illumination
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/28Quantising the image, e.g. histogram thresholding for discrimination between background and foreground patterns
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/82Arrangements for image or video recognition or understanding using pattern recognition or machine learning using neural networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Computation (AREA)
  • Databases & Information Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Image Analysis (AREA)

Abstract

本发明涉及编号识别方法、装置、计算机设备和存储介质,方法包括:开启摄像头,开启光源,通过所述摄像头多次获取目标区域的图像,得到多个待分析图像;解析各所述待分析图像,得到各所述待分析图像的深度值;基于各所述待分析图像的深度值,计算得到所述待分析图像的深度变化值;根据所述深度变化值,确定所述待分析图像的阴影区域;基于所述阴影区域,对所述待分析图像进行解析,得到所述目标区域的编号。通过解析图像的深度值,进而确定目标区域中的阴影区域,从而解析出目标区域中的编号。有效提高了编号的识别精度和识别效率,从而实现快速地物品入库。

The present invention relates to a number recognition method, device, computer equipment and storage medium. The method comprises: turning on a camera, turning on a light source, acquiring images of a target area through the camera for multiple times, and obtaining multiple images to be analyzed; parsing each of the images to be analyzed to obtain a depth value of each of the images to be analyzed; calculating a depth change value of the image to be analyzed based on the depth value of each of the images to be analyzed; determining a shadow area of the image to be analyzed based on the depth change value; parsing the image to be analyzed based on the shadow area to obtain the number of the target area. By parsing the depth value of the image, the shadow area in the target area is determined, thereby parsing the number in the target area. The recognition accuracy and efficiency of the number are effectively improved, thereby realizing rapid storage of items.

Description

Number identification method, device, computer equipment and storage medium
Technical Field
The invention relates to the technical field of number identification, in particular to a number identification method.
Background
When the articles are put in storage, the articles in storage and personnel returning the articles are required to be associated and recorded. In the conventional article warehouse-in system, the operator manually inputs the number on the article, and then the process of inputting the article number is inefficient. The other mode is to realize the number input by adopting a two-dimensional code recognition mode, however, aiming at the metal surface with the same color, the two-dimensional code recognition mode has the problem of low recognition accuracy.
Disclosure of Invention
Based on this, it is necessary to provide a number identification method, apparatus, computer device, and storage medium.
A number identification method, comprising:
Starting a camera, starting a light source, and acquiring images of a target area for a plurality of times through the camera to obtain a plurality of images to be analyzed;
analyzing each image to be analyzed to obtain a depth value of each image to be analyzed;
Calculating a depth change value of the image to be analyzed based on the depth value of each image to be analyzed;
determining a numbering region of the image to be analyzed according to the depth change value;
And analyzing the image to be analyzed based on the numbering region to obtain the numbering of the target region.
In one embodiment, the step of analyzing the image to be analyzed based on the numbered area to obtain the number of the target area includes:
Creating a reference surface image;
performing binarization processing on the image to be analyzed based on the numbering region to obtain a binarized image;
Inputting each binarized image into the reference surface image, and storing the binarized image into an integrated image in a preset format;
and filtering and restoring the integrated image to obtain the number of the target area.
In one embodiment, the preset format is a tif format.
In one embodiment, the step of turning on the camera and turning on the light source to obtain the images of the target area multiple times by the camera to obtain multiple images to be analyzed includes:
and starting the camera, starting a light source facing the preset direction of the target area, acquiring an image of the target area through the camera, obtaining an image to be analyzed corresponding to the light source in the preset direction, closing the camera, and closing the light source in the preset direction.
In one embodiment, the steps of turning on the camera, turning on a light source facing the preset direction of the target area, obtaining an image of the target area through the camera, obtaining an image to be analyzed corresponding to the light source in the preset direction, turning off the camera, and turning off the light source in the preset direction include:
starting the camera and starting a light source facing the preset direction of the target area;
And starting a slow motion mode of the camera, controlling the camera to acquire an image of the target area in the slow motion mode, obtaining an image to be analyzed corresponding to the light source in the preset direction, closing the camera, and closing the light source in the preset direction.
In one embodiment, the steps of turning on the camera, turning on a light source facing the preset direction of the target area, obtaining an image of the target area through the camera, obtaining an image to be analyzed corresponding to the light source in the preset direction, turning off the camera, and turning off the light source in the preset direction include:
starting the camera, starting a first light source facing the first direction of the target area, acquiring at least one image of the target area through the camera to obtain a first image to be analyzed, closing the camera, and closing the first light source;
starting the camera, starting a second light source facing the second direction of the target area, acquiring at least one image of the target area through the camera to obtain a second image to be analyzed, closing the camera, and closing the second light source;
Starting the camera, starting a third light source facing a third direction of the target area, acquiring an image of the target area at least once through the camera to obtain a third image to be analyzed, closing the camera, and closing the third light source;
starting the camera, starting a fourth light source facing the fourth direction of the target area, acquiring an image of the target area at least once through the camera to obtain a fourth image to be analyzed, closing the camera, and closing the fourth light source;
and taking the first image to be analyzed, the second image to be analyzed, the third image to be analyzed and the fourth image to be analyzed as the images to be analyzed.
In one embodiment, the number of the first image to be analyzed, the second image to be analyzed and the second image to be analyzed is six.
A number identification device comprising:
The image acquisition module to be analyzed is used for starting the camera, starting the light source, and acquiring images of the target area for a plurality of times through the camera to obtain a plurality of images to be analyzed;
The depth value obtaining module is used for analyzing each image to be analyzed to obtain the depth value of each image to be analyzed;
The depth change value obtaining module is used for calculating the depth change value of the image to be analyzed based on the depth value of each image to be analyzed;
The shadow area determining module is used for determining the numbering area of the image to be analyzed according to the depth change value;
And the target area number obtaining module is used for analyzing the image to be analyzed based on the number area to obtain the number of the target area.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the number identification method described in any of the embodiments above when the computer program is executed.
A computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the number identification method described in any of the embodiments above.
The method has the beneficial effects that the number in the target area is analyzed by analyzing the depth value of the image and further determining the shadow area in the target area. The identification precision and the identification efficiency of the numbers on the same-color metal surface are effectively improved, and therefore quick ground object warehousing is achieved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are only some embodiments of the invention, and that other drawings can be obtained from these drawings without inventive faculty for a person skilled in the art.
FIG. 1 is a flow chart of a number identification method in one embodiment;
FIG. 2 is a block diagram of a number identification device in one embodiment;
FIG. 3 is an internal block diagram of a computer device in one embodiment.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It will be appreciated that the numbering and identification method of the present application is applicable to the identification of the numbering of items in a warehouse of items, which may be production materials such as bottles, caps, boxes, casings, etc., but also guns. Embodiments of the application are not limited in this regard.
As shown in fig. 1, the number identifying method according to an embodiment of the present invention is used for identifying numbers of the same-color metal surfaces, and includes:
Step 110, turning on a camera, turning on a light source, and obtaining images of a target area through the camera for multiple times to obtain multiple images to be analyzed.
In this embodiment, the target area is a position with a number on the article, and when the image is acquired, the camera is aligned and faces the target area, and the light source emits light in a direction towards the target area. Therefore, when the camera is started, the light source is synchronously started to irradiate the target area, and then the camera shoots the target area to obtain an image to be analyzed.
It should be understood that, the object is placed on the detection table for numbering and identifying, because the object is manually placed, because the position may be random, in order to accurately obtain the target area, in one embodiment, the camera and the light source are respectively arranged on different mechanical arms, the mechanical arms can drive the camera and the light source to move, and the positions of the camera and the light source can be adjusted according to the position where the object is placed, so that when the user randomly places the object, the camera can accurately align with the target area and the light source can accurately irradiate the target area.
And 120, analyzing each image to be analyzed to obtain a depth value of each image to be analyzed.
In this embodiment, the number in the target area has a protruding feature or a recessed feature, for example, the number in the target area protrudes from the surface of the target area, for example, the number in the target area is recessed from the surface of the target area, so that the number of the target area can be identified by analyzing the depth of the number in the target area. In this embodiment, a plurality of images to be analyzed are analyzed to obtain depth values of the images to be analyzed.
Specifically, when the number in the target area is recessed in the surface of the target area, the depth value in the image to be analyzed is the value of the depth of the recess, and when the number in the target area is raised in the surface of the target area, the depth value in the image to be analyzed is the value of the height of the surface of the number raised in the target area.
Step 130, calculating a depth variation value of the image to be analyzed based on the depth value of each image to be analyzed.
In this embodiment, the depth values of the images to be analyzed are compared, so as to obtain a depth variation value of the images to be analyzed, where the depth variation value can be regarded as a difference value of the depths of the images to be analyzed. In one embodiment, the average depth value of each image to be analyzed may be calculated according to the depth value of each image to be analyzed.
And step 140, determining a shadow area of the image to be analyzed according to the depth change value.
In this embodiment, the shadow area is a numbered area, and the shape of the shadow area is matched with the shape of the numbered area. In this embodiment, according to the depth change value, it may be determined that a region with a depth value unchanged or a change value smaller than a first preset depth value is a blank region, and a region with a depth value changed or a change value larger than a second preset depth value is a numbered region.
And step 150, analyzing the image to be analyzed based on the shadow area to obtain the number of the target area.
In this embodiment, the number of the target area is obtained by analyzing the image to be analyzed based on the shadow area.
In one embodiment, after the number of the target area is obtained, the number of the target area is stored, and the number of the target area is associated with personnel information and stored. In this embodiment, the personnel information is information of personnel returning the article, and the personnel information is obtained, that is, the personnel information of the personnel returning the article is obtained, so that the personnel information is associated with the number of the article, and the quick storage of the article is realized.
In this embodiment, the number in the target area is resolved by resolving the depth value of the image, and then determining the shadow area in the target area. The identification precision and the identification efficiency of the numbers are effectively improved, so that quick ground object storage is realized.
In one embodiment, the image to be analyzed is input to a neural network, and the image to be analyzed is analyzed based on the shadow area through the neural network to obtain the number of the target area.
In this embodiment, a large number of sample images with depth values, shadow areas and numbers of target areas determined are input to a neural network for learning, and a neural network model for analyzing the numbers of the target areas is obtained.
In order to analyze and obtain the number of the target area, in one embodiment, the step of analyzing the image to be analyzed based on the shadow area to obtain the number of the target area includes creating a reference surface image, performing binarization processing on the image to be analyzed based on the shadow area to obtain a binarized image, inputting the binarized images into the reference surface image, storing the binarized images into an integrated image in a preset format, and performing filtering reduction on the integrated image to obtain the number of the target area.
In this embodiment, the reference surface image is a blank image as a reference surface. In this embodiment, the binarization processing is performed on the salient light to be analyzed based on the shadow area, so that the image to be analyzed is converted into a black-and-white image, and then each black-and-white image to be analyzed is put into the reference surface image and stored as an image with a preset Format, in this embodiment, the preset Format is a tif (TAG IMAGE FILE Format, label image file) Format. In this embodiment, the reference surface image into which the image to be analyzed after binarization processing is placed is converted into an image in the tif format, and then the image in the tif format is filtered and restored, so that the number of the target area is obtained by analysis.
In order to more accurately calculate the depth value of the target area, in one embodiment, the steps of starting the camera, starting the light source, acquiring the images of the target area through the camera for multiple times, and obtaining a plurality of images to be analyzed include starting the camera, starting the light source facing the preset direction of the target area, acquiring the images of the target area through the camera, obtaining the images to be analyzed corresponding to the light source in the preset direction, closing the camera, and closing the light source in the preset direction.
In this embodiment, the light source is used to illuminate the target area and improve the brightness of the target area. In this way, due to the number protrusions or depressions in the target area, shadows are formed under the irradiation of light, which is beneficial to the analysis of the depth value of the target area. In this embodiment, when the camera is turned on, the image capturing triggers the light source to be turned on synchronously, the light source irradiates towards the target area, and the camera shoots an image of the target area, and as the target area generates local shadows under the irradiation of the light source, the depth detection of the shot image of the target area is more accurate. After the image is obtained by shooting, the camera is turned off, and the light source is triggered to be turned off. In this embodiment, the preset directions are plural, that is, each preset direction corresponds to one light source, the light emitting direction of each light source faces to a preset direction, when an image of a target area is shot once, one light source corresponding to the preset direction is turned on, after the image is shot, the camera is turned off once, the light source corresponding to the preset direction is turned off, then, the camera is turned on again, another light source corresponding to the preset direction is triggered, after the image is shot, the camera is turned off once again, the light source corresponding to the other preset direction is turned off, the light sources of the preset directions are turned on in sequence, and the target area irradiated by the light source of each preset direction is respectively shot with a plurality of images to be analyzed, so as to obtain a plurality of images to be analyzed. Therefore, the images to be analyzed under the irradiation of the light sources with different angles are obtained through the irradiation of the light sources with different angles, and the depth value of the images to be analyzed can be obtained through accurate analysis.
In one embodiment, the steps of starting the camera, starting the light source in the preset direction towards the target area, acquiring an image of the target area through the camera, obtaining an image to be analyzed corresponding to the light source in the preset direction, closing the camera, and closing the light source in the preset direction comprise the steps of starting the camera, starting the light source in the preset direction towards the target area, starting a slow motion mode of the camera, controlling the camera to acquire the image of the target area in the slow motion mode, obtaining the image to be analyzed corresponding to the light source in the preset direction, closing the camera, and closing the light source in the preset direction.
In this embodiment, by turning on the slow motion mode, the captured image can be fully exposed, so that the sharpness of the obtained image to be analyzed can be improved.
In one embodiment, the steps of turning on the camera, turning on a light source facing the preset direction of the target area, obtaining an image of the target area through the camera, obtaining an image to be analyzed corresponding to the light source in the preset direction, turning off the camera, and turning off the light source in the preset direction include:
starting the camera, starting a first light source facing the first direction of the target area, acquiring at least one image of the target area through the camera to obtain a first image to be analyzed, closing the camera, and closing the first light source;
starting the camera, starting a second light source facing the second direction of the target area, acquiring at least one image of the target area through the camera to obtain a second image to be analyzed, closing the camera, and closing the second light source;
Starting the camera, starting a third light source facing a third direction of the target area, acquiring an image of the target area at least once through the camera to obtain a third image to be analyzed, closing the camera, and closing the third light source;
starting the camera, starting a fourth light source facing the fourth direction of the target area, acquiring an image of the target area at least once through the camera to obtain a fourth image to be analyzed, closing the camera, and closing the fourth light source;
and taking the first image to be analyzed, the second image to be analyzed, the third image to be analyzed and the fourth image to be analyzed as the images to be analyzed.
In this embodiment, the first direction is the upper end or the upper portion of the target area, the second direction is the lower end or the lower portion of the target area, the third direction is the left side of the target area, and the fourth direction is the right side of the target area, so that the four positions of the target area are sequentially irradiated with the light source, the four positions are sequentially captured and acquired to obtain a plurality of images to be analyzed, the height variation value of each image to be analyzed is obtained, and the shadow area is obtained by analyzing according to the height variation value.
In one embodiment, the number of the first image to be analyzed, the second image to be analyzed and the second image to be analyzed is six, respectively.
In this embodiment, the light sources are sequentially irradiated in four directions of the upper portion, the lower portion, the left side and the right side of the target area, and the capturing and collecting images are sequentially performed six times on four positions in a circulating manner, so that six first images to be analyzed, six second images to be analyzed, six third images to be analyzed and six fourth images to be analyzed are obtained, the calculation precision of the depth value is improved, the precision of the shadow area is improved, and the number can be accurately extracted.
In one embodiment, as shown in fig. 2, there is provided a number recognition apparatus including:
the image to be analyzed acquisition module 210 is configured to turn on a camera, turn on a light source, and acquire images of a target area through the camera multiple times to obtain multiple images to be analyzed;
A depth value obtaining module 220, configured to parse each of the images to be analyzed to obtain a depth value of each of the images to be analyzed;
a depth change value obtaining module 230, configured to calculate a depth change value of the image to be analyzed based on the depth value of each image to be analyzed;
a shadow area determining module 240, configured to determine a shadow area of the image to be analyzed according to the depth change value;
the target area number obtaining module 250 is configured to parse the image to be analyzed based on the shadow area to obtain the number of the target area.
In one embodiment, the target area number obtaining module includes:
A surface image creation unit for creating a reference surface image;
The binarization processing unit is used for carrying out binarization processing on the image to be analyzed based on the shadow area to obtain a binarized image;
An integrated image storage unit for inputting each of the binarized images to the reference surface image and storing the same as an integrated image in a preset format;
and the target area number obtaining unit is used for filtering and restoring the integrated image to obtain the number of the target area.
In one embodiment, the preset format is a tif format.
In one embodiment, the image obtaining module to be analyzed is further configured to turn on the camera, turn on a light source facing the target area in a preset direction, obtain an image of the target area through the camera, obtain an image to be analyzed corresponding to the light source in the preset direction, turn off the camera, and turn off the light source in the preset direction.
In one embodiment the image acquisition module to be analyzed comprises:
The synchronous starting unit is used for starting the camera and starting a light source facing the preset direction of the target area;
The slow motion mode shooting unit is used for starting a slow motion mode of the camera, controlling the camera to acquire an image of the target area in the slow motion mode, obtaining an image to be analyzed corresponding to the light source in the preset direction, closing the camera, and closing the light source in the preset direction.
In one embodiment, the image acquisition module to be analyzed includes:
the first capturing and collecting unit is used for starting the camera, starting a first light source facing the first direction of the target area, acquiring an image of the target area at least once through the camera to obtain a first image to be analyzed, closing the camera, and closing the first light source;
the second capturing and collecting unit is used for starting the camera, starting a second light source facing the second direction of the target area, acquiring an image of the target area at least once through the camera to obtain a second image to be analyzed, closing the camera, and closing the second light source;
the third capturing and collecting unit is used for starting the camera, starting a third light source facing the third direction of the target area, acquiring an image of the target area at least once through the camera to obtain a third image to be analyzed, closing the camera, and closing the third light source;
The fourth capturing and collecting unit is used for starting the camera, starting a fourth light source facing the fourth direction of the target area, acquiring an image of the target area at least once through the camera to obtain a fourth image to be analyzed, closing the camera, and closing the fourth light source;
And the output unit is used for taking the first image to be analyzed, the second image to be analyzed, the third image to be analyzed and the fourth image to be analyzed as the images to be analyzed.
In one embodiment, the number of the first image to be analyzed, the second image to be analyzed and the second image to be analyzed is six, respectively.
For specific limitations of the number recognition means, reference may be made to the above limitations of the number recognition method, and no further description is given here. The respective modules in the above number identifying means may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided. The internal structure thereof can be shown in fig. 3. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program, and is deployed with a database for images, numbers. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used to communicate with other computer devices in which application software is deployed. The computer program is executed by a processor to implement a number identification method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 3 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided that includes a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the number identification method described in any of the embodiments above when the computer program is executed by the processor.
In one embodiment, a computer readable storage medium is provided, on which a computer program is stored which, when executed by a processor, implements the steps of the number identification method described in any of the embodiments above.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (SYNCHLINK) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (10)

1.一种编号识别方法,其特征在于,包括:1. A number identification method, characterized by comprising: 开启摄像头,依次开启多个预设方向的光源,通过所述摄像头对每一个预设方向的光源照射下的目标区域分别多次拍摄,得到多个待分析图像;Turning on the camera, and sequentially turning on the light sources in multiple preset directions, and taking multiple photos of the target area illuminated by the light source in each preset direction through the camera to obtain multiple images to be analyzed; 解析各所述待分析图像,得到各所述待分析图像的深度值,所述深度值为目标区域在光的照射下,形成阴影,解析出的该目标区域的深度值;Analyze each of the images to be analyzed to obtain a depth value of each of the images to be analyzed, wherein the depth value is a depth value of the target area obtained by analyzing a shadow formed by the target area under the illumination of light; 基于各所述待分析图像的深度值,计算得到所述待分析图像的深度变化值;Based on the depth value of each of the images to be analyzed, a depth change value of the image to be analyzed is calculated; 根据所述深度变化值,确定所述待分析图像的阴影区域,阴影区域为编号区域,即深度值变化或者变化值大于第二预设深度值的区域为编号区域;Determine, according to the depth change value, a shadow area of the image to be analyzed, where the shadow area is a numbered area, that is, an area where the depth value changes or the change value is greater than a second preset depth value is a numbered area; 基于所述编号区域,对所述待分析图像进行解析,得到所述目标区域的编号。Based on the numbered area, the image to be analyzed is parsed to obtain the number of the target area. 2.根据权利要求1所述的编号识别方法,其特征在于,所述基于所述阴影区域,对所述待分析图像进行解析,得到所述目标区域的编号的步骤包括:2. The number recognition method according to claim 1, characterized in that the step of parsing the image to be analyzed based on the shadow area to obtain the number of the target area comprises: 创建基准表面图像;Creating a reference surface image; 基于所述编号区域对所述待分析图像进行二值化处理,得到二值化图像;Binarization processing is performed on the image to be analyzed based on the numbered regions to obtain a binary image; 将各所述二值化图像输入至所述基准表面图像,保存为预设格式的整合图像;Inputting each of the binary images into the reference surface image and saving it as an integrated image in a preset format; 对所述整合图像进行滤波还原,得到所述目标区域的编号。The integrated image is filtered and restored to obtain the number of the target area. 3.根据权利要求2所述的编号识别方法,其特征在于,所述预设格式为tif格式。3. The number recognition method according to claim 2 is characterized in that the preset format is tif format. 4.根据权利要求1-3任一项中所述的编号识别方法,其特征在于,所述开启摄像头,开启光源,通过所述摄像头多次获取目标区域的图像,得到多个待分析图像的步骤包括:4. The number recognition method according to any one of claims 1 to 3, characterized in that the step of turning on the camera, turning on the light source, and acquiring images of the target area multiple times through the camera to obtain multiple images to be analyzed comprises: 开启所述摄像头,并依次开启多个预设方向的光源,通过所述摄像头对每一个预设方向的光源照射下的目标区域分别多次拍摄,得到该预设方向的光源对应的待分析图像,关闭所述摄像头,关闭预设方向的光源。Turn on the camera, and turn on multiple light sources in preset directions in turn, use the camera to take multiple photos of the target area illuminated by the light source in each preset direction to obtain the image to be analyzed corresponding to the light source in the preset direction, turn off the camera, and turn off the light source in the preset direction. 5.根据权利要求4所述的编号识别方法,其特征在于,所述开启所述摄像头,并开启朝向所述目标区域的预设方向的光源,通过所述摄像头获取所述目标区域的图像,得到该预设方向的光源对应的待分析图像,关闭所述摄像头,关闭预设方向的光源的步骤包括:5. The number recognition method according to claim 4 is characterized in that the steps of turning on the camera and turning on a light source in a preset direction toward the target area, acquiring an image of the target area through the camera, obtaining an image to be analyzed corresponding to the light source in the preset direction, and turning off the camera and the light source in the preset direction include: 开启所述摄像头,并开启朝向所述目标区域的预设方向的光源;Turning on the camera and turning on a light source in a preset direction toward the target area; 开启所述摄像头的慢动作模式,控制所述摄像头在慢动作模式下获取所述目标区域的图像,得到该预设方向的光源对应的待分析图像,关闭所述摄像头,关闭预设方向的光源。Turn on the slow motion mode of the camera, control the camera to obtain the image of the target area in the slow motion mode, obtain the image to be analyzed corresponding to the light source in the preset direction, turn off the camera, and turn off the light source in the preset direction. 6.根据权利要求4所述的编号识别方法,其特征在于,所述开启所述摄像头,并开启朝向所述目标区域的预设方向的光源,通过所述摄像头获取所述目标区域的图像,得到该预设方向的光源对应的待分析图像,关闭所述摄像头,关闭预设方向的光源的步骤包括:6. The number recognition method according to claim 4, characterized in that the steps of turning on the camera and turning on the light source in a preset direction toward the target area, acquiring an image of the target area through the camera, obtaining an image to be analyzed corresponding to the light source in the preset direction, and turning off the camera and the light source in the preset direction include: 开启所述摄像头,开启朝向所述目标区域的第一方向的第一光源,通过所述摄像头获取至少一次所述目标区域的图像,得到第一待分析图像,关闭所述摄像头,关闭所述第一光源;Turning on the camera, turning on a first light source in a first direction toward the target area, acquiring an image of the target area at least once through the camera to obtain a first image to be analyzed, turning off the camera, and turning off the first light source; 开启所述摄像头,开启朝向所述目标区域的第二方向的第二光源,通过所述摄像头获取至少一次所述目标区域的图像,得到第二待分析图像,关闭所述摄像头,关闭所述第二光源;Turning on the camera, turning on a second light source in a second direction toward the target area, acquiring an image of the target area at least once through the camera to obtain a second image to be analyzed, turning off the camera, and turning off the second light source; 开启所述摄像头,开启朝向所述目标区域的第三方向的第三光源,通过所述摄像头获取至少一次所述目标区域的图像,得到第三待分析图像,关闭所述摄像头,关闭所述第三光源;Turning on the camera, turning on a third light source in a third direction toward the target area, acquiring an image of the target area at least once through the camera to obtain a third image to be analyzed, turning off the camera, and turning off the third light source; 开启所述摄像头,开启朝向所述目标区域的第四方向的第四光源,通过所述摄像头获取至少一次所述目标区域的图像,得到第四待分析图像,关闭所述摄像头,关闭所述第四光源;Turning on the camera, turning on a fourth light source in a fourth direction toward the target area, acquiring an image of the target area at least once through the camera to obtain a fourth image to be analyzed, turning off the camera, and turning off the fourth light source; 以所述第一待分析图像、所述第二待分析图像、所述第三待分析图像和所述第四待分析图像作为所述待分析图像。The first image to be analyzed, the second image to be analyzed, the third image to be analyzed, and the fourth image to be analyzed are used as the images to be analyzed. 7.根据权利要求6所述的编号识别方法,其特征在于,所述第一待分析图像、所述第二待分析图像、所述第二待分析图像和所述第二待分析图像的数量分别为六个。7 . The number recognition method according to claim 6 , wherein the number of the first image to be analyzed, the second image to be analyzed, the second image to be analyzed and the second image to be analyzed is six respectively. 8.一种编号识别装置,其特征在于,包括:8. A number recognition device, comprising: 待分析图像获取模块,用于开启摄像头,依次开启多个预设方向的光源,通过所述摄像头对每一个预设方向的光源照射下的目标区域分别多次拍摄,得到多个待分析图像;The image acquisition module to be analyzed is used to turn on the camera, turn on the light sources in multiple preset directions in sequence, and use the camera to take multiple photos of the target area illuminated by the light source in each preset direction to obtain multiple images to be analyzed; 深度值获得模块,用于解析各所述待分析图像,得到各所述待分析图像的深度值,所述深度值为目标区域在光的照射下,形成阴影,解析出的该目标区域的深度值;A depth value acquisition module is used to analyze each of the images to be analyzed to obtain a depth value of each of the images to be analyzed, wherein the depth value is the depth value of the target area obtained by analyzing a shadow formed by the target area under the illumination of light; 深度变化值获得模块,用于基于各所述待分析图像的深度值,计算得到所述待分析图像的深度变化值;A depth change value obtaining module, used for calculating the depth change value of the image to be analyzed based on the depth value of each of the images to be analyzed; 阴影区域确定模块,用于根据所述深度变化值,确定所述待分析图像的编号区域,深度值变化或者变化值大于第二预设深度值的区域为编号区域;A shadow area determination module, used to determine the numbered area of the image to be analyzed according to the depth change value, and the area where the depth value changes or the change value is greater than the second preset depth value is the numbered area; 目标区域编号获得模块,用于基于所述编号区域,对所述待分析图像进行解析,得到所述目标区域的编号。The target area number obtaining module is used to analyze the image to be analyzed based on the numbered area to obtain the number of the target area. 9.一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至7中任一项所述方法的步骤。9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 7 when executing the computer program. 10.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至7中任一项所述的方法的步骤。10. A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
CN202210667522.1A 2022-06-14 2022-06-14 Number identification method, device, computer equipment and storage medium Active CN115049818B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210667522.1A CN115049818B (en) 2022-06-14 2022-06-14 Number identification method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210667522.1A CN115049818B (en) 2022-06-14 2022-06-14 Number identification method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115049818A CN115049818A (en) 2022-09-13
CN115049818B true CN115049818B (en) 2025-06-03

Family

ID=83161712

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210667522.1A Active CN115049818B (en) 2022-06-14 2022-06-14 Number identification method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115049818B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2024081903A (en) * 2022-12-07 2024-06-19 トヨタ自動車株式会社 Data updating method and program

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108322646A (en) * 2018-01-31 2018-07-24 广东欧珀移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN114364973A (en) * 2019-09-13 2022-04-15 柯尼卡美能达株式会社 Surface defect discriminating device, appearance inspecting device, and program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112798617B (en) * 2021-01-28 2025-04-22 江苏骠马电力科技有限公司 Mirror-like object defect detection device and detection method thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108322646A (en) * 2018-01-31 2018-07-24 广东欧珀移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN114364973A (en) * 2019-09-13 2022-04-15 柯尼卡美能达株式会社 Surface defect discriminating device, appearance inspecting device, and program

Also Published As

Publication number Publication date
CN115049818A (en) 2022-09-13

Similar Documents

Publication Publication Date Title
WO2021047232A1 (en) Interaction behavior recognition method, apparatus, computer device, and storage medium
Moya et al. APHIS: a new software for photo-matching in ecological studies
US20170308736A1 (en) Three dimensional object recognition
CN112580499B (en) Text recognition method, device, equipment and storage medium
CN111144372A (en) Vehicle detection method, device, computer equipment and storage medium
Astanin et al. Reflective workpiece detection and localization for flexible robotic cells
Stavropoulos et al. A vision-based system for real-time defect detection: a rubber compound part case study
JP6104198B2 (en) Object recognition device
US11335007B2 (en) Method to generate neural network training image annotations
CN118608806B (en) Intelligent optimization method and system for image processing algorithm of industrial cameras
CN115937059A (en) Part inspection system with generatively trained models
CN115049818B (en) Number identification method, device, computer equipment and storage medium
CN119246521B (en) Product internal structure defect detection method and system based on AOI multispectral imaging
CN110210288A (en) Palm grain identification method and device
US10395090B2 (en) Symbol detection for desired image reconstruction
CN113298069A (en) Steel seal character recognition method and device, computer equipment and storage medium
JP2016206909A (en) Information processing apparatus and information processing method
CN118135179B (en) Cascade identification method and device for cutting plate, computer equipment and storage medium
CN114155471A (en) Design drawing and object verification method, device, computer equipment and system
JP6175904B2 (en) Verification target extraction system, verification target extraction method, verification target extraction program
JP2015212650A (en) Tool mark collation system
CN118010172A (en) Wavelength detection method, device, computer equipment and storage medium
Álvaro et al. An image-based measure for evaluation of mathematical expression recognition
CN112926610B (en) License plate image screening model construction method and license plate image screening method
EP4687112A1 (en) Template matching using the magnitude of a target image gradient

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20230705

Address after: 710000 Room 08013, Floor 27, Building B, Yangyang International, No. 132, Zhuque Street, Yanta District, Xi'an, Shaanxi

Applicant after: Xi'an Jixun Industrial Co.,Ltd.

Address before: Room 1201, Building 8, No. 6, Hualing 1st Road, Dutang, Chashan Town, Dongguan City, Guangdong Province, 523000

Applicant before: Guangdong Keypoint Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant