Image acquisition method and device, electronic equipment and storage medium

By acquiring and processing the image of the target object, determining the character area and adjusting the acquisition position, the problem of not being able to capture large and small characters clearly at the same time is solved, and the efficiency and speed of character detection are improved.

CN119992557APending Publication Date: 2025-05-13HEFEI LCFC INFORMATION TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411979170.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

During the production process of laptop keyboards, it is impossible to shoot large and small characters in the manual clearly at the same time, resulting in inefficient character detection.

Method used

By acquiring the first target image of the target object, a character area of ​​the second target character is determined, and a second acquisition position is determined based on the central coordinate of the area, and a second target image is obtained for character recognition.

Benefits of technology

It realizes the recognition and detection of different characters of the target object simultaneously, improves the efficiency of character recognition and detection, and significantly shortens time-consuming.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119992557A_ABST
    Figure CN119992557A_ABST
Patent Text Reader

Abstract

The invention provides an image acquisition method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining a first target image for a target object based on a first acquisition position; the first target image comprises a first target character and a second target character, and the definition of the first target character is greater than that of the second target character; determining a character region for the second target character in the first target image; determining a second collection position for the second target character based on the center coordinate of the character area for the second target character; based on the second acquisition position, obtaining a second target image for a second target character; the first target image and the second target image are used for performing character recognition on the target object. Different characters of a target object can be recognized and detected at the same time, the character recognition and detection efficiency is improved, and consumed time is greatly shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to an image acquisition method, device, electronic device and storage medium. Background Art

[0002] In the production process of laptop keyboards, it is necessary to inspect the characters in the manual to determine whether there are any misprints or omissions in the manual. However, the size of the characters in the manual is quite different, and it is impossible to clearly capture both large and small characters at the same time. In other words, it is impossible to inspect both large and small characters at the same time. Summary of the invention

[0003] The present application provides an image acquisition method, device, electronic device and storage medium to at least solve the above technical problems existing in the prior art.

[0004] According to a first aspect of the present application, there is provided an image acquisition method, the method comprising:

[0005] Based on the first acquisition position, a first target image for the target object is acquired; the first target image includes a first target character and a second target character, and the clarity of the first target character is greater than that of the second target character;

[0006] Determining a character region for a second target character in the first target image;

[0007] Determining a second acquisition position for the second target character based on the center coordinates of the character area for the second target character;

[0008] Based on the second acquisition position, a second target image for a second target character is obtained; the first target image and the second target image are used to perform character recognition on the target object.

[0009] In one possible implementation manner, determining the character region for the second target character in the first target image includes:

[0010] Performing binarization processing on the first target image to obtain a binarized image;

[0011] Based on the target detection algorithm, connected domain detection is performed on the binary image to obtain a character region for the second target character in the first target image.

[0012] In one possible implementation, the obtaining of the center coordinates of the character area for the second target character includes:

[0013] Determine the bounding rectangle of the character area;

[0014] Obtain target vertex coordinate information of the circumscribed rectangle;

[0015] Based on the target vertex coordinate information of the circumscribed rectangle, the width and height information of the circumscribed rectangle, the center coordinates of the character area for the second target character are obtained.

[0016] In one possible implementation, determining the second acquisition position for the second target character based on the center coordinates of the character area for the second target character includes:

[0017] Based on the first acquisition position, determining a calibration matrix of acquisition positions and coordinate information;

[0018] Based on the center coordinates of the character area for the second target character and the calibration matrix, a second acquisition position for the second target character is determined.

[0019] In one possible implementation, after obtaining the second target image for the second target character, the method further includes:

[0020] Based on the first target image, character recognition is performed on a first target character of the target object to obtain a first recognition result; the first recognition result is used to indicate whether the first target character of the target object is abnormal;

[0021] Based on the second target image, character recognition is performed on the second target character of the target object to obtain a second recognition result; the second recognition result is used to characterize whether there is an abnormality in the second target character of the target object.

[0022] In one possible implementation, the volume of the first target character is larger than that of the second target character.

[0023] In one possible implementation, a vertical distance between the first acquisition position and the target object is greater than a vertical distance between the second acquisition position and the target object.

[0024] According to a second aspect of the present application, an image acquisition device is provided, the device comprising:

[0025] A first acquisition unit is used to acquire a first target image for the target object based on the first acquisition position; the first target image includes a first target character and a second target character, and the clarity of the first target character is greater than that of the second target character;

[0026] A first determining unit, used to determine a character area for a second target character in the first target image;

[0027] A second determining unit, configured to determine a second acquisition position for the second target character based on the center coordinates of the character area for the second target character;

[0028] The second acquisition unit is used to obtain a second target image for a second target character based on the second acquisition position; the first target image and the second target image are used to perform character recognition on the target object.

[0029] According to a third aspect of the present application, an electronic device is provided, including:

[0030] at least one processor; and

[0031] a memory communicatively connected to the at least one processor; wherein,

[0032] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the present application.

[0033] According to a fourth aspect of the present application, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the method described in the present application.

[0034] In the present application, based on the first acquisition position, a first target image for the target object is obtained; the first target image includes a first target character and a second target character, and the clarity of the first target character is greater than that of the second target character; the character area for the second target character in the first target image is determined; based on the center coordinates of the character area for the second target character, a second acquisition position for the second target character is determined; based on the second acquisition position, a second target image for the second target character is obtained; the first target image and the second target image are used for character recognition for the target object. Different characters of the target object can be recognized and detected at the same time, the efficiency of character recognition and detection is improved, and the time consumption is greatly shortened.

[0035] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become readily understood. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, wherein:

[0037] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.

[0038] Figure 1 A schematic diagram of the implementation process of the image acquisition method according to an embodiment of the present application is shown;

[0039] Figure 2 A schematic diagram of an image acquisition mechanism according to an embodiment of the present application is shown;

[0040] Figure 3 A schematic diagram of the application process of the image acquisition method according to an embodiment of the present application is shown;

[0041] Figure 4 A schematic diagram of the structure of the image acquisition device according to an embodiment of the present application is shown;

[0042] Figure 5 A schematic diagram of the structure of an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0043] In order to make the purpose, features, and advantages of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0044] It is understandable that in the production process of laptop keyboards, it is impossible to clearly capture both large and small characters in the manual. In the related art, in order to ensure that the smallest characters can be clearly captured, a 16k line scan camera is used to scan the entire manual. Although this solution can capture both large and small characters clearly, the camera hardware cost is too high, and due to the high output image resolution, it will bring a lot of time cost for subsequent character detection.

[0045] The embodiment of the present application provides an image acquisition method, which acquires a first target image for a target object based on a first acquisition position; the first target image includes a first target character and a second target character, and the clarity of the first target character is greater than that of the second target character; the character area for the second target character in the first target image is determined; based on the center coordinates of the character area for the second target character, a second acquisition position for the second target character is determined; based on the second acquisition position, a second target image for the second target character is obtained; the first target image and the second target image are used for character recognition for the target object. Different characters of the target object can be recognized and detected at the same time without increasing the hardware cost, thereby improving the efficiency of character recognition and detection and greatly shortening the time consumption.

[0046] The present application embodiment provides an image acquisition method, such as Figure 1 As shown, the method includes:

[0047] S101: Based on a first acquisition position, a first target image for a target object is acquired; the first target image includes a first target character and a second target character, and the clarity of the first target character is greater than that of the second target character.

[0048] In this step, the target object is an object that needs to be detected by characters, such as the instruction manual of the production process of a laptop keyboard. The first target character is a large character, and the second target character is a small character. In this embodiment, the camera is used to shoot the target object to obtain the corresponding image. Specifically, in this embodiment of the application, the following is adopted: Figure 2 The image acquisition mechanism shown in the figure acquires images of the target object. Figure 2 As shown, the image acquisition mechanism includes two cameras: a mounted camera 1 and a mounted camera 2. Among them, the mounted camera 1 is mainly used to acquire images of the first target characters (large characters) of the target object. The mounted camera 2 is mainly used to acquire images of the second target characters (small characters) of the target object. Figure 3 , the first acquisition position is the acquisition position of the mounting camera 1, and its position is fixed. The target object is placed below the acquisition position of the mounting camera 1, and a first target image for the target object is obtained. The first target image is a global image for the target object, which includes both the first target character and the second target character. However, the clarity of the first target character is relatively high, so the first target image is stored as an image for subsequent character detection for the first target character.

[0049] S102: Determine a character region for a second target character in the first target image.

[0050] In this step, refer to Figure 3 Since the definition of the second target character in the first target image is low, it is necessary to determine the character area where the second target character is located from the first target image in order to collect a partial image of the second target character. The number of character areas can be one or more, preferably more than one.

[0051] S103: Determine a second acquisition position for the second target character based on the center coordinates of the character area for the second target character.

[0052] In this step, the second acquisition position is the acquisition position of the aforementioned mounted camera 2, and its position is not fixed and can be adaptively changed according to the position of the character area. The embodiment of the present application determines its acquisition position by the center coordinates of the character area of ​​the second target character. For the specific process, please refer to the detailed description of the relevant parts below, which will not be repeated.

[0053] S104: Based on the second acquisition position, a second target image for a second target character is obtained; the first target image and the second target image are used to perform character recognition on the target object.

[0054] In this step, each character area has its corresponding second acquisition position. When performing image acquisition for each character area, the mounted camera 2 is guided to the corresponding second acquisition position for shooting through the three-axis motion mechanism to obtain a (second target) image for the second target character. Using the first target image and the second target image as specific images for the first target character and the second target character of the target object for character recognition and detection can speed up the detection and recognition efficiency and shorten the overall time consumption.

[0055] In the scheme shown in steps S101 to S104, based on the first acquisition position, a first target image for the target object is obtained; the first target image includes a first target character and a second target character, and the clarity of the first target character is greater than that of the second target character; the character area for the second target character in the first target image is determined; based on the center coordinates of the character area for the second target character, a second acquisition position for the second target character is determined; based on the second acquisition position, a second target image for the second target character is obtained; the first target image and the second target image are used for character recognition for the target object. Different characters of the target object can be recognized and detected at the same time, the efficiency of character recognition and detection is improved, and the time consumption is greatly shortened.

[0056] In an optional solution, determining the character region for the second target character in the first target image includes:

[0057] Performing binarization processing on the first target image to obtain a binarized image;

[0058] Based on the target detection algorithm, connected domain detection is performed on the binary image to obtain a character region for the second target character in the first target image.

[0059] In this application, the first target image obtained by taking a global view is binarized, and the binarized image obtained by binarization includes multiple connected domains. The Blob algorithm is used to perform connected domain analysis on the binarized image, and the connected domains with a smaller area (less than a preset threshold) are screened out, and the obtained character area is the character area of ​​the second target character. The character area of ​​the second target character can be obtained quickly and accurately, saving time for subsequent character recognition.

[0060] In an optional solution, the acquisition of the center coordinates of the character area for the second target character includes:

[0061] Determine the bounding rectangle of the character area;

[0062] Obtain target vertex coordinate information of the circumscribed rectangle;

[0063] Based on the target vertex coordinate information of the circumscribed rectangle, the width and height information of the circumscribed rectangle, the center coordinates of the character area for the second target character are obtained.

[0064] In the present application, after obtaining the character region for the second target character, the bounding rectangle of each character region is obtained. The target vertex coordinate information of the bounding rectangle is the coordinate information of the upper left vertex of the bounding rectangle. Based on the target vertex coordinate information of the bounding rectangle and its width and height information, the center coordinates of the character region can be obtained. The specific calculation process of the center coordinates of the character region is shown in formula (1) and formula (2):

[0065] Center[i].x=SmallROI[i].x+ SmallROI[i].width / 2 Formula (1)

[0066] Center[i].y=SmallROI[i].y+ SmallROI[i].height / 2 Formula (2)

[0067] Among them, Center[i] represents the center coordinates of the i-th character area. Center[i].x represents the horizontal coordinates of the center coordinates of the i-th character area. Center[i].y represents the vertical coordinates of the center coordinates of the i-th character area. SmallROI[i] represents the bounding rectangle of the i-th character area. SmallROI[i].x represents the horizontal coordinates of the target vertex coordinate information of the bounding rectangle of the i-th character area. SmallROI[i].y represents the vertical coordinates of the target vertex coordinate information of the bounding rectangle of the i-th character area. SmallROI[i].width represents the width of the bounding rectangle of the i-th character area. SmallROI[i].height represents the height of the bounding rectangle of the i-th character area.

[0068] Center[i].x and Center[i].y calculated by formula (1) and formula (2) together constitute the center coordinates of the second target character. Based on the center coordinates of the character area of ​​the second target character, it is possible to quickly and accurately locate Figure 2 The collection position of camera 2 is mounted in the middle.

[0069] In an optional solution, determining the second acquisition position for the second target character based on the center coordinates of the character area for the second target character includes:

[0070] Based on the first acquisition position, determining a calibration matrix of acquisition positions and coordinate information;

[0071] Based on the center coordinates of the character area for the second target character and the calibration matrix, a second acquisition position for the second target character is determined.

[0072] In this application, since the first acquisition position is fixed, before acquiring the first target image, refer to Figure 3 , perform 9-point calibration on the first acquisition position and the three-axis coordinate system to obtain a calibration matrix. The calibration matrix represents the mapping relationship between the acquisition position and the coordinate information. Based on the center coordinates of the character area of ​​the second target character and the calibration matrix, the second acquisition position of the mounted camera 2 can be determined. The specific calculation process is shown in formula (3):

[0073] Location[i](x,y)=Center[i](x,y)* Trans formula (3)

[0074] Wherein, Location[i](x,y) represents the coordinates of the second acquisition position for the i-th character area. Center[i](x,y) represents the center coordinates of the i-th character area. Trans represents the calibration matrix.

[0075] Based on the above formula (3), the second acquisition position for each character area can be determined. Figure 3 , by guiding the mounted camera 2 to the corresponding second acquisition position through the three-axis motion mechanism to shoot the small character area, a second target image for the second target character can be obtained. The embodiment of the present application can realize imaging of the first target character and the second target character through two cameras, without increasing the hardware cost, and can improve the efficiency of the character detection process.

[0076] In an optional solution, after obtaining the second target image for the second target character, the method further includes:

[0077] Based on the first target image, character recognition is performed on a first target character of the target object to obtain a first recognition result; the first recognition result is used to indicate whether the first target character of the target object is abnormal;

[0078] Based on the second target image, character recognition is performed on the second target character of the target object to obtain a second recognition result; the second recognition result is used to characterize whether there is an abnormality in the second target character of the target object.

[0079] In the present application, for a first target image, character recognition is performed on a first target character to obtain a first recognition result. The first recognition result characterizes whether there is an abnormality in the first target character, such as whether it is missing or misprinted. For a second target image, character recognition is performed on a second target character to obtain a second recognition result. The second recognition result characterizes whether there is an abnormality in the second target character, such as whether it is missing or misprinted. Based on the first recognition result and the second recognition result, a character detection result for the target object can be obtained to facilitate correction or reprinting of the target object (the instruction manual in the embodiment of the present application).

[0080] In an optional solution, the volume of the first target character is larger than that of the second target character.

[0081] In the present application, as mentioned above, the first target character is a large character, and the second target character is a small character. Naturally, the volume of the first target character is larger than that of the second target character.

[0082] In an optional solution, a vertical distance between the first acquisition position and the target object is greater than a vertical distance between the second acquisition position and the target object.

[0083] In this application, reference Figure 2 As shown, since the volume of the first target character is larger than that of the second target character, and the first acquisition position is the position where the mounted camera 1 shoots the first target character, and the second acquisition position is the position where the mounted camera 2 shoots the second target character, in order to shoot the first target character with a larger volume, the vertical distance between the mounted camera 1 and the target object is higher. Similarly, in order to ensure that the second target character with a smaller volume is clearly shot, the vertical distance between the mounted camera 2 and the target object is lower.

[0084] The present application also provides an image acquisition device, such as Figure 4 As shown, the device comprises:

[0085] A first acquisition unit 401 is used to acquire a first target image for a target object based on a first acquisition position; the first target image includes a first target character and a second target character, and the clarity of the first target character is greater than that of the second target character;

[0086] A first determining unit 402 is used to determine a character region for a second target character in the first target image;

[0087] A second determining unit 403 is used to determine a second acquisition position for the second target character based on the center coordinates of the character area for the second target character;

[0088] The second acquisition unit 404 is used to obtain a second target image for a second target character based on the second acquisition position; the first target image and the second target image are used to perform character recognition on the target object.

[0089] In an optional solution, the first determination unit 402 is used to binarize the first target image to obtain a binary image; based on a target detection algorithm, perform connected domain detection on the binary image to obtain a character area for the second target character in the first target image.

[0090] In an optional solution, it also includes:

[0091] The third acquisition unit is used to determine the circumscribed rectangle of the character area; obtain the target vertex coordinate information of the circumscribed rectangle; and obtain the center coordinates of the character area for the second target character based on the target vertex coordinate information of the circumscribed rectangle and the width and height information of the circumscribed rectangle.

[0092] In an optional scheme, the second determination unit 403 is used to determine a calibration matrix of acquisition positions and coordinate information based on the first acquisition position; and determine a second acquisition position for the second target character based on the center coordinates of the character area for the second target character and the calibration matrix.

[0093] In an optional solution, the device further includes:

[0094] A recognition unit is used to perform character recognition on a first target character of a target object based on a first target image to obtain a first recognition result; the first recognition result is used to characterize whether the first target character of the target object has any abnormality; based on a second target image, perform character recognition on a second target character of the target object to obtain a second recognition result; the second recognition result is used to characterize whether the second target character of the target object has any abnormality.

[0095] In an optional solution, the volume of the first target character is larger than that of the second target character.

[0096] In an optional solution, a vertical distance between the first acquisition position and the target object is greater than a vertical distance between the second acquisition position and the target object.

[0097] It should be noted that the image acquisition device of the embodiment of the present application solves the problem in a similar principle to the aforementioned image acquisition method. Therefore, the implementation process, implementation principle and beneficial effects of the image acquisition device can all be referred to the description of the implementation process, implementation principle and beneficial effects of the aforementioned method, and the repeated parts will not be repeated.

[0098] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.

[0099] Figure 5 A schematic block diagram of an example electronic device 500 that can be used to implement an embodiment of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.

[0100] like Figure 5 As shown, the device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a storage unit 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0101] A number of components in the device 500 are connected to the I / O interface 505, including: an input unit 506, such as a keyboard, a mouse, etc.; an output unit 507, such as various types of displays, speakers, etc.; a storage unit 508, such as a disk, an optical disk, etc.; and a communication unit 509, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0102] The computing unit 501 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 501 performs the various methods and processes described above, such as image acquisition methods. For example, in some embodiments, the image acquisition method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 500 via the ROM 502 and / or the communication unit 509. When the computer program is loaded into the RAM 503 and executed by the computing unit 501, one or more steps of the image acquisition method described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the image acquisition method in any other appropriate manner (e.g., by means of firmware).

[0103] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0104] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code can be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0105] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0106] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0107] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0108] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0109] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.

[0110] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0111] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. An image acquisition method, characterized in that: The method comprises: Based on the first acquisition position, a first target image for the target object is acquired; the first target image includes a first target character and a second target character, and the clarity of the first target character is greater than that of the second target character; Determining a character region for a second target character in the first target image; Determining a second acquisition position for the second target character based on the center coordinates of the character area for the second target character; Based on the second acquisition position, a second target image for a second target character is obtained; the first target image and the second target image are used to perform character recognition on the target object.

2. The method according to claim 1, characterized in that The determining of the character region for the second target character in the first target image includes: Performing binarization processing on the first target image to obtain a binarized image; Based on the target detection algorithm, connected domain detection is performed on the binary image to obtain a character region for the second target character in the first target image.

3. The method according to claim 1 or 2, characterized in that: The obtaining of the center coordinates of the character area for the second target character includes: Determine the bounding rectangle of the character area; Obtain target vertex coordinate information of the circumscribed rectangle; Based on the target vertex coordinate information of the circumscribed rectangle, the width and height information of the circumscribed rectangle, the center coordinates of the character area for the second target character are obtained.

4. The method according to claim 1 or 2, characterized in that: The determining a second acquisition position for the second target character based on the center coordinates of the character area for the second target character comprises: Based on the first acquisition position, determining a calibration matrix of acquisition positions and coordinate information; Based on the center coordinates of the character area for the second target character and the calibration matrix, a second acquisition position for the second target character is determined.

5. The method according to claim 1, characterized in that After obtaining the second target image for the second target character, the method further includes: Based on the first target image, character recognition is performed on a first target character of the target object to obtain a first recognition result; the first recognition result is used to indicate whether the first target character of the target object is abnormal; Based on the second target image, character recognition is performed on the second target character of the target object to obtain a second recognition result; the second recognition result is used to characterize whether there is an abnormality in the second target character of the target object.

6. The method according to claim 1, characterized in that The volume of the first target character is larger than that of the second target character.

7. The method according to claim 6, characterized in that A vertical distance between the first acquisition position and the target object is greater than a vertical distance between the second acquisition position and the target object.

8. An image acquisition device, characterized in that: The device comprises: A first acquisition unit is used to acquire a first target image for the target object based on the first acquisition position; the first target image includes a first target character and a second target character, and the clarity of the first target character is greater than that of the second target character; A first determining unit, used to determine a character area for a second target character in the first target image; A second determining unit, configured to determine a second acquisition position for the second target character based on the center coordinates of the character area for the second target character; The second acquisition unit is used to obtain a second target image for a second target character based on the second acquisition position; the first target image and the second target image are used to perform character recognition on the target object.

9. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to make a computer execute the method according to any one of claims 1-7.

Citation Information

Patent Citations

  • Shooting method and device

    CN105611147A

  • Vehicle frame number identification method and device, storage medium and electronic device

    CN113673416A

  • Image shooting method and device, terminal equipment and storage medium

    CN114500857A

  • Mathematical problem solving method and system combining visual scanning identification and correction

    CN116884006A