CN115830299A - Image recognition method and device, storage medium and processor - Google Patents

Image recognition method and device, storage medium and processor Download PDF

Info

Publication number
CN115830299A
CN115830299A CN202211466286.3A CN202211466286A CN115830299A CN 115830299 A CN115830299 A CN 115830299A CN 202211466286 A CN202211466286 A CN 202211466286A CN 115830299 A CN115830299 A CN 115830299A
Authority
CN
China
Prior art keywords
image
target
target object
instruction sent
responding
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.)
Pending
Application number
CN202211466286.3A
Other languages
Chinese (zh)
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.)
Jilin Yillion Bank Co ltd
Original Assignee
Jilin Yillion Bank 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 Jilin Yillion Bank Co ltd filed Critical Jilin Yillion Bank Co ltd
Priority to CN202211466286.3A priority Critical patent/CN115830299A/en
Publication of CN115830299A publication Critical patent/CN115830299A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Analysis (AREA)

Abstract

The application discloses an image identification method and device, a storage medium and a processor. The method comprises the following steps: receiving a selection instruction sent by a target object, wherein the selection instruction is used for indicating that an original image to be identified is subjected to selection operation, and the target object is an object for identifying the original image; responding to a selection instruction sent by a target object, and selecting a partial image from an original image to obtain a target image; carrying out gray level processing on a target image to obtain a first image; and carrying out identification processing on the first image according to the image identification system to obtain an identification result, and returning the identification result to the target object. By the method and the device, the problem that the image recognition effect is poor due to the fact that partial content in the image is recognized in an artificial mode in the related technology is solved.

Description

Image recognition method and device, storage medium and processor
Technical Field
The present application relates to the field of image recognition technologies, and in particular, to an image recognition method and apparatus, a storage medium, and a processor.
Background
In the process of processing a large number of pictures, the target object is strongly interfered by irrelevant images. In the case where the system cannot automatically recognize the process, the related art requires manual intervention. That is, for manually capturing the marker image in the picture, the related art generally copies the picture into some picture editing software, then uses a picture processing tool to capture the part of the picture, then manually uploads the captured local picture to the server to perform an identification attempt, and manually places the local picture again after failure to solve the capturing operation, and repeats the above actions until the picture can be normally identified. However, in the above process, since many pictures need to be operated and repeated attempts are needed, the fragmentation time of manual operation is increased, the labor cost in picture recognition is increased, and the efficiency in picture recognition is reduced.
Aiming at the problem that the effect of identifying the image is poor due to the fact that a part of content in the image is identified in a manual mode in the related technology, an effective solution is not provided at present.
Disclosure of Invention
The present application mainly aims to provide an image recognition method and apparatus, a storage medium, and a processor, so as to solve the problem in the related art that the effect of recognizing an image is poor due to the fact that a part of content in the image is recognized in an artificial manner.
In order to achieve the above object, according to one aspect of the present application, there is provided an image recognition method. The method comprises the following steps: receiving a selection instruction sent by a target object, wherein the selection instruction is used for representing selection operation on an original image to be identified, and the target object is an object for identifying the original image; responding to a selection instruction sent by the target object, and selecting a partial image from the original image to obtain a target image; carrying out gray level processing on the target image to obtain a first image; and carrying out identification processing on the first image according to a picture identification system to obtain an identification result, and returning the identification result to the target object.
Further, in response to a selection instruction sent by the target object, selecting a partial image from the original image to obtain a target image includes: responding to a selection instruction sent by the target object, and determining a target area selected from the original image; determining coordinate values corresponding to each vertex in the target area according to the target area selected from the original image; and determining the target image according to the coordinate value corresponding to each vertex in the target area.
Further, performing gray-scale processing on the target image to obtain a first image includes: saving the target image to a server; acquiring a color value corresponding to each pixel point in a target image in the server; acquiring a color value corresponding to each pixel point in the gray level image; and changing the color value corresponding to each pixel point in the target image according to the color value corresponding to each pixel point in the gray image to obtain the first image.
Further, the step of performing identification processing on the first image according to an image identification system to obtain an identification result includes: obtaining information pre-stored in the picture identification system; comparing information pre-stored in the picture identification system with the first image to determine a plurality of characters in the first image and position information of each character; and obtaining the character information in the first image according to the plurality of characters and the position information of each character, and taking the character information as the identification result.
Further, the selecting instruction at least comprises: clicking an instruction, dragging an instruction and releasing an instruction, responding to a selection instruction sent by the target object, and selecting a partial image from the original image to obtain a target image, wherein the step of obtaining the target image comprises the following steps: receiving a click instruction sent by the target object, wherein the click instruction is used for indicating that the original image is clicked; responding to a click command sent by the target object, and generating a second image according to the original image; receiving a dragging instruction sent by the target object based on the second image, wherein the dragging instruction is used for indicating that a part of image is selected from the second image; responding to a dragging instruction sent by the target object, and generating a third image according to the second image; receiving a release instruction sent by the target object based on the third image; and responding to a release instruction sent by the target object, and taking the third image as the target image.
Further, returning the recognition result to the target object includes: and displaying the target object in a pop-up box form according to the recognition result.
In order to achieve the above object, according to another aspect of the present application, there is provided an image recognition apparatus. The device includes: the device comprises a first receiving unit, a second receiving unit and a processing unit, wherein the first receiving unit is used for receiving a selection instruction sent by a target object, the selection instruction is used for representing selection operation on an original image to be identified, and the target object is an object for identifying the original image; the first response unit is used for responding to a selection instruction sent by the target object and selecting a partial image from the original image to obtain a target image; the first processing unit is used for carrying out gray processing on the target image to obtain a first image; and the second processing unit is used for carrying out recognition processing on the first image according to an image recognition system to obtain a recognition result and returning the recognition result to the target object.
Further, the first response unit includes: the first response module is used for responding to a selection instruction sent by the target object and determining a target area selected from the original image; the first determining module is used for determining a coordinate value corresponding to each vertex in a target area according to the target area selected from the original image; and the second determining module is used for determining the target image according to the coordinate value corresponding to each vertex in the target area.
Further, the first processing unit includes: the first storage module is used for storing the target image into a server; the first acquisition module is used for acquiring a color value corresponding to each pixel point in a target image in the server; the second acquisition module is used for acquiring a color value corresponding to each pixel point in the gray level image; and the first processing module is used for changing and processing the color value corresponding to each pixel point in the target image according to the color value corresponding to each pixel point in the gray image to obtain the first image.
Further, the second processing unit includes: the third acquisition module is used for acquiring information pre-stored in the picture identification system; the first comparison module is used for comparing information pre-stored in the picture identification system with the first image and determining a plurality of characters in the first image and position information of each character; and the third determining module is used for obtaining the character information in the first image according to the plurality of characters and the position information of each character, and taking the character information as the identification result.
Further, the selecting instruction at least comprises: click instruction, drag instruction and release instruction, the first response unit includes: the first receiving module is used for receiving a click instruction sent by the target object, wherein the click instruction is used for indicating that the original image is clicked; the second response module is used for responding to the click command sent by the target object and generating a second image according to the original image; a second receiving module, configured to receive, based on the second image, a drag instruction sent by the target object, where the drag instruction is used to indicate that a partial image is selected from the second image; the third response module is used for responding to a dragging instruction sent by the target object and generating a third image according to the second image; a third receiving module, configured to receive, based on the third image, a release instruction sent by the target object; and the fourth response module is used for responding to the release instruction sent by the target object and taking the third image as the target image.
Further, the second processing unit includes: and the first display module is used for displaying the target object in a pop-up box form according to the recognition result.
In order to achieve the above object, according to another aspect of the present application, there is provided a computer-readable storage medium storing a program, wherein the program performs the image recognition method of any one of the above.
In order to achieve the above object, according to another aspect of the present application, there is provided a processor for executing a program, wherein the program executes to execute the image recognition method according to any one of the above.
Through the application, the following steps are adopted: receiving a selection instruction sent by a target object, wherein the selection instruction is used for indicating that an original image to be identified is subjected to selection operation, and the target object is an object for identifying the original image; responding to a selection instruction sent by a target object, and selecting a partial image from an original image to obtain a target image; carrying out gray level processing on a target image to obtain a first image; the first image is identified according to the image identification system to obtain an identification result, and the identification result is returned to the target object, so that the problem that the image identification effect is poor due to the fact that partial content in the image is identified in a manual mode in the related art is solved. The method comprises the steps of selecting partial images from an original image by responding to a received selection instruction sent by a target object to obtain a target image, carrying out gray processing on the target image to obtain a first image, carrying out identification processing on the first image according to a picture identification system to obtain an identification result, and returning the identification result to the target object, so that the image to be processed can be automatically intercepted, the image can be automatically converted into a gray image for real-time identification, the fragmentation time of manual operation is greatly reduced, the image identification efficiency is improved, the image identification cost is reduced, and the image identification effect is further improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application. In the drawings:
fig. 1 is a flowchart of an image recognition method provided according to an embodiment of the present application;
FIG. 2 is a first flowchart of an image recognition method provided according to an embodiment of the present application;
FIG. 3 is a second flowchart of an image recognition method according to an embodiment of the present application;
FIG. 4 is a flowchart III of an image recognition method according to an embodiment of the present application;
FIG. 5 is a flow chart of an alternative image recognition method provided in accordance with an embodiment of the present application;
FIG. 6 is a schematic diagram of an image recognition device provided according to an embodiment of the application;
fig. 7 is a schematic diagram of an electronic device provided according to an embodiment of the application.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that relevant information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for presentation, analyzed data, etc.) referred to in the present disclosure are information and data that are authorized by the user or sufficiently authorized by various parties. For example, an interface is provided between the system and the relevant user or organization, before obtaining the relevant information, an obtaining request needs to be sent to the user or organization through the interface, and after receiving the consent information fed back by the user or organization, the relevant information is obtained.
For convenience of description, some terms or expressions referred to in the embodiments of the present application are explained below:
image recognition, which refers to a technique for processing, analyzing and understanding images by a computer to recognize various different patterns of objects and objects, is a practical application of applying a deep learning algorithm. Moreover, the image recognition technology at the present stage is generally divided into face recognition and commodity recognition, and the face recognition is mainly applied to security check, identity verification and mobile payment; the commodity identification is mainly applied to the commodity circulation process, in particular to the field of unmanned retail such as unmanned goods shelves and intelligent retail cabinets.
Fragmentation time, refers to the time when no work is scheduled, not scheduled. Because of the scatter and irregularity, it is called the fragmentation time.
The present invention is described below with reference to preferred implementation steps, and fig. 1 is a flowchart of an image recognition method provided in an embodiment of the present application, and as shown in fig. 1, the method includes the following steps:
step S101, receiving a selection instruction sent by a target object, where the selection instruction is used to indicate that an original image to be recognized is subjected to a selection operation, and the target object is an object for recognizing the original image.
For example, an instruction sent by the user to perform a selection operation on an original image to be subjected to image recognition is acquired.
And step S102, responding to a selection instruction sent by the target object, and selecting a partial image from the original image to obtain a target image.
For example, after responding to an instruction sent by a user to perform a selection operation on an original image to be subjected to image recognition, a partial image to be recognized is automatically intercepted from the original image to be subjected to image recognition.
Step S103, carrying out gray processing on the target image to obtain a first image.
For example, the automatically captured partial image to be recognized is converted into a grayscale image.
And step S104, performing identification processing on the first image according to the image identification system to obtain an identification result, and returning the identification result to the target object.
For example, according to the picture recognition system, content information in the converted grayscale image is recognized, and the recognized content information is transmitted to the user.
Through the steps from S101 to S104, partial images are selected from the original image by responding to the received selection instruction sent by the target object to obtain the target image, the gray level processing is carried out on the target image to obtain the first image, the first image is identified according to the image identification system to obtain the identification result, and the identification result is returned to the target object, so that the image to be processed can be automatically intercepted and automatically converted into the gray level image for real-time identification, the fragmentation time of manual operation is greatly reduced, the image identification efficiency is improved, the image identification cost is reduced, and the image identification effect is further improved.
Fig. 2 is a first flowchart of an image recognition method according to an embodiment of the present application, and as shown in fig. 2, in the image recognition method according to the embodiment of the present application, a selection instruction at least includes: clicking the instruction, dragging the instruction and releasing the instruction, responding to a selection instruction sent by the target object, selecting a part of image from the original image, and obtaining the target image comprises:
step S201, receiving a click command sent by a target object, wherein the click command is used for indicating the click operation of an original image;
step S202, responding to a click command sent by a target object, and generating a second image according to an original image;
step S203, receiving a dragging instruction sent by the target object based on the second image, wherein the dragging instruction is used for indicating that a partial image is selected from the second image;
step S204, responding to a dragging instruction sent by the target object, and generating a third image according to the second image;
step S205, based on the third image, receiving a release instruction sent by the target object;
and step S206, responding to the release instruction sent by the target object, and taking the third image as the target image.
For example, the operator may click a left mouse button (the click instruction mentioned above) on an image to be captured, move the left mouse button to drag (the drag instruction mentioned above), drag, select an image area, and release the left mouse button (the release instruction mentioned above) to generate the captured image. That is, the device may receive an instruction for clicking a left mouse button triggered by an operator (the target object), then respond to the click instruction, may present a cursor for clicking the mouse on an original image, and then receive and respond to a drag instruction for moving the left mouse button sent by the operator based on an image with a cursor, intercept a part of an image to be identified on the image with the cursor, and then receive and respond to an instruction for releasing the left mouse button sent by the operator, to obtain a final intercepted image.
In summary, the target image corresponding to the part to be identified can be conveniently selected by the dragging method, and the automatic image pickup is realized.
Fig. 3 is a second flowchart of an image recognition method according to an embodiment of the present application, and as shown in fig. 3, in the image recognition method according to the embodiment of the present application, selecting a partial image from an original image in response to a selection instruction sent by a target object to obtain a target image includes:
step S301, responding to a selection instruction sent by a target object, and determining a target area selected from an original image;
step S302, according to a target area selected from an original image, determining a coordinate value corresponding to each vertex in the target area;
step S303, determining a target image according to the coordinate value corresponding to each vertex in the target area.
For example, three events of mouse operation, namely left button click, left button dragging of a moving mouse, left button release, then four vertex coordinates of a rectangle are constructed, then the coordinates of the four vertices are acquired, an image in the coordinates is automatically picked up, and an image to be identified (the target image) is generated.
By the scheme, the target image to be identified can be quickly and accurately obtained according to the determined vertex coordinates of the area to be identified. In addition, by the method for assisting picture pickup, irrelevant picture parts can be eliminated, so that the success rate of picture identification is increased.
Fig. 4 is a flowchart of a third method for recognizing an image according to an embodiment of the present application, where as shown in fig. 4, performing a gray-scale process on a target image to obtain a first image includes:
step S401, storing the target image in a server;
step S402, obtaining a color value corresponding to each pixel point in a target image in a server;
step S403, obtaining a color value corresponding to each pixel point in the gray level image;
step S404, changing the color value corresponding to each pixel point in the target image according to the color value corresponding to each pixel point in the gray image to obtain a first image.
For example, after the operation picture picking is completed, the operation picture can be automatically saved on the server side, the saved file format can be tif (a file format), and the tif file can be directly used in the later step. In addition, the picture is composed of a pixel point matrix, and the operation on the picture is the operation on the pixel point matrix. As long as the position of the pixel point, such as the x-th row and the y-th column, is found in the pixel point matrix, the position of the pixel point in the pixel point matrix can be expressed as (x, y). And because the color of a pixel point can be represented as (R, G, B) by three color variables of red, green and blue, the color of the pixel point can be changed by assigning values to the three variables, and the process of carrying out gray level processing on the picture is completed.
By the scheme, the picture after the gray processing can be conveniently obtained, and then the picture after the gray processing is utilized to carry out digital picture identification, so that the accuracy of picture identification can be greatly improved.
In order to obtain the recognition result quickly and accurately, in the image recognition method provided in the embodiment of the present application, the recognition result may also be obtained through the following steps: obtaining information pre-stored in a picture identification system; comparing information pre-stored in the image recognition system with the first image to determine a plurality of characters in the first image and position information of each character; and obtaining character information in the first image according to the plurality of characters and the position information of each character, and taking the character information as a recognition result.
For example, the picture after gray processing can be used for performing recognition attempt with a picture recognition system in real time. Specifically, a number related template may be prestored in the image recognition system, then the number related template prestored in the image recognition system may be used to compare with a license plate (the image to be subjected to image recognition) and determine how many characters (the characters may be numbers) are contained in the license plate according to the obtained comparison result, and which position each number corresponds to respectively, and then according to the determined number of the numbers in the license plate and the information such as which position each number corresponds to respectively, the final content on the license plate is obtained, that is, how many license plate numbers are specified.
By the scheme, if a large number of irrelevant elements are eliminated in the obtained gray-scale image, the efficiency of image recognition can be improved. Meanwhile, the fragmentization time of manual operation can be shortened, so that the labor cost is saved.
In order to quickly and accurately return the recognition result to the target object, in the recognition method of the image provided by the embodiment of the application, the recognition result may also be returned to the target object by the following steps: and displaying the target object in a pop-up box form according to the recognition result.
For example, after the recognition is successful, that is, after the recognition result is obtained, the recognition result can be fed back to the operator. Moreover, the recognition result can be informed to the operator in the form of a bullet frame, i.e. the content corresponding to the bullet frame can be "", the recognition is successful "", the recognition is failed "".
Through the scheme, the identification result can be conveniently fed back to the operator, so that the operator can conveniently obtain the identification result.
For example, fig. 5 is a flowchart of an optional image recognition method provided according to an embodiment of the present application, and as shown in fig. 5, the optional image recognition method includes the following steps:
(1) The operator clicks a left mouse button on an image to be picked up;
(2) Selecting an image area through dragging, and if the image area is not selected, giving up;
(3) If so, releasing the left mouse button to generate a captured image;
(4) Automatically storing the image, performing ashing (gray scale) treatment, and giving up if the ashing fails;
(5) If the ashing is successful, performing identification attempt with a picture identification system in real time;
(5) Feeding back the identification result to an operator;
(6) And for the failed recognition, correcting the interception range again and capturing the image.
Therefore, the image to be processed can be automatically picked up and automatically converted into the gray image by dragging the mouse on the image to be processed through the scheme, real-time identification is carried out, the operation result is directly fed back, and the fragmentized operation time is greatly reduced, so that the image identification efficiency is improved, and the image identification cost is saved.
In summary, in the image identification method provided in the embodiment of the present application, a selection instruction sent by a target object is received, where the selection instruction is used to indicate that an original image to be identified is subjected to a selection operation, and the target object is an object for identifying the original image; responding to a selection instruction sent by a target object, and selecting a partial image from an original image to obtain a target image; carrying out gray level processing on a target image to obtain a first image; the first image is identified according to the image identification system to obtain an identification result, and the identification result is returned to the target object, so that the problem that the image identification effect is poor due to the fact that partial content in the image is identified in a manual mode in the related art is solved. The method comprises the steps of responding to a received selection instruction sent by a target object, selecting partial images from an original image to obtain a target image, carrying out gray level processing on the target image to obtain a first image, carrying out identification processing on the first image according to a picture identification system to obtain an identification result, and returning the identification result to the target object, so that the image to be processed can be automatically intercepted, automatically converted into a gray level image, and identified in real time, the fragmentation time of manual operation is greatly reduced, the image identification efficiency is improved, the image identification cost is reduced, and the image identification effect is further improved.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
The embodiment of the present application further provides an image recognition apparatus, and it should be noted that the image recognition apparatus of the embodiment of the present application may be used to execute the image recognition method provided by the embodiment of the present application. The following describes an image recognition apparatus according to an embodiment of the present application.
Fig. 6 is a schematic diagram of an image recognition apparatus according to an embodiment of the present application. As shown in fig. 6, the apparatus includes: a first receiving unit 601, a first responding unit 602, a first processing unit 603 and a second processing unit 604.
Specifically, the first receiving unit 601 is configured to receive a selection instruction sent by a target object, where the selection instruction is used to indicate that an original image to be recognized is subjected to a selection operation, and the target object is an object for recognizing the original image;
a first response unit 602, configured to select a partial image from the original image in response to a selection instruction sent by the target object, so as to obtain a target image;
a first processing unit 603, configured to perform gray-scale processing on a target image to obtain a first image;
the second processing unit 604 is configured to perform recognition processing on the first image according to the picture recognition system to obtain a recognition result, and return the recognition result to the target object.
To sum up, in the image recognition apparatus provided in the embodiment of the present application, the first receiving unit 601 receives a selection instruction sent by a target object, where the selection instruction is used to indicate that an original image to be recognized is selected, and the target object is an object for recognizing the original image; the first response unit 602 responds to a selection instruction sent by a target object, and selects a partial image from an original image to obtain a target image; the first processing unit 603 performs gray processing on the target image to obtain a first image; the second processing unit 604 performs recognition processing on the first image according to the image recognition system to obtain a recognition result, and returns the recognition result to the target object, thereby solving the problem of poor image recognition effect caused by recognizing partial content in the image in a manual manner in the related art. The method comprises the steps of selecting partial images from an original image by responding to a received selection instruction sent by a target object to obtain a target image, carrying out gray processing on the target image to obtain a first image, carrying out identification processing on the first image according to a picture identification system to obtain an identification result, and returning the identification result to the target object, so that the image to be processed can be automatically intercepted, the image can be automatically converted into a gray image for real-time identification, the fragmentation time of manual operation is greatly reduced, the image identification efficiency is improved, the image identification cost is reduced, and the image identification effect is further improved.
Optionally, in the image recognition apparatus provided in the embodiment of the present application, the first response unit includes: the first response module is used for responding to a selection instruction sent by the target object and determining a target area selected from the original image; the first determining module is used for determining a coordinate value corresponding to each vertex in a target area according to the target area selected from the original image; and the second determining module is used for determining the target image according to the coordinate value corresponding to each vertex in the target area.
Optionally, in the apparatus for recognizing an image provided in an embodiment of the present application, the first processing unit includes: the first storage module is used for storing the target image into the server; the first acquisition module is used for acquiring a color value corresponding to each pixel point in a target image in the server; the second acquisition module is used for acquiring a color value corresponding to each pixel point in the gray level image; and the first processing module is used for changing and processing the color value corresponding to each pixel point in the target image according to the color value corresponding to each pixel point in the gray image to obtain a first image.
Optionally, in an apparatus for recognizing an image provided in an embodiment of the present application, the second processing unit includes: the third acquisition module is used for acquiring information pre-stored in the picture identification system; the first comparison module is used for comparing information pre-stored in the image recognition system with the first image to determine a plurality of characters in the first image and position information of each character; and the third determining module is used for obtaining the character information in the first image according to the plurality of characters and the position information of each character, and taking the character information as the identification result.
Optionally, in the image recognition apparatus provided in the embodiment of the present application, the selection instruction at least includes: click instruction, drag instruction and release instruction, the first response unit includes: the first receiving module is used for receiving a click instruction sent by a target object, wherein the click instruction is used for indicating that the original image is clicked; the second response module is used for responding to the click command sent by the target object and generating a second image according to the original image; the second receiving module is used for receiving a dragging instruction sent by the target object based on the second image, wherein the dragging instruction is used for indicating that a part of image is selected from the second image; the third response module is used for responding to a dragging instruction sent by the target object and generating a third image according to the second image; the third receiving module is used for receiving a release instruction sent by the target object based on the third image; and the fourth response module is used for responding to the release instruction sent by the target object and taking the third image as the target image.
Optionally, in the apparatus for recognizing an image provided in an embodiment of the present application, the second processing unit includes: and the first display module is used for displaying the target object in a pop-up box form according to the recognition result.
The image recognition device comprises a processor and a memory, wherein the first receiving unit 601, the first responding unit 602, the first processing unit 603, the second processing unit 604 and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the effect of image recognition is improved by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a computer-readable storage medium on which a program is stored, which, when executed by a processor, implements the image recognition method.
The embodiment of the invention provides a processor, which is used for running a program, wherein the image identification method is executed when the program runs.
As shown in fig. 7, an embodiment of the present invention provides an electronic device, where the device includes a processor, a memory, and a program stored in the memory and executable on the processor, and the processor executes the program to implement the following steps: receiving a selection instruction sent by a target object, wherein the selection instruction is used for representing selection operation on an original image to be identified, and the target object is an object for identifying the original image; responding to a selection instruction sent by the target object, and selecting a partial image from the original image to obtain a target image; carrying out gray level processing on the target image to obtain a first image; and carrying out identification processing on the first image according to a picture identification system to obtain an identification result, and returning the identification result to the target object.
The processor executes the program and further realizes the following steps: responding to a selection instruction sent by the target object, selecting a partial image from the original image to obtain a target image, wherein the step of obtaining the target image comprises the following steps: responding to a selection instruction sent by the target object, and determining a target area selected from the original image; determining coordinate values corresponding to each vertex in the target area according to the target area selected from the original image; and determining the target image according to the coordinate value corresponding to each vertex in the target area.
The processor executes the program and further realizes the following steps: performing gray scale processing on the target image to obtain a first image comprises: saving the target image to a server; acquiring a color value corresponding to each pixel point in a target image in the server; acquiring a color value corresponding to each pixel point in the gray level image; and changing the color value corresponding to each pixel point in the target image according to the color value corresponding to each pixel point in the gray image to obtain the first image.
The processor executes the program and further realizes the following steps: the method comprises the following steps of carrying out identification processing on the first image according to a picture identification system, and obtaining an identification result, wherein the identification processing comprises the following steps: obtaining information pre-stored in the picture identification system; comparing information pre-stored in the picture identification system with the first image to determine a plurality of characters in the first image and position information of each character; and obtaining the character information in the first image according to the plurality of characters and the position information of each character, and taking the character information as the identification result.
The processor executes the program and further realizes the following steps: the selection instruction at least comprises: clicking an instruction, dragging an instruction and releasing an instruction, responding to a selection instruction sent by the target object, and selecting a partial image from the original image to obtain a target image, wherein the step of obtaining the target image comprises the following steps: receiving a click instruction sent by the target object, wherein the click instruction is used for indicating that the original image is clicked; responding to a click instruction sent by the target object, and generating a second image according to the original image; receiving a dragging instruction sent by the target object based on the second image, wherein the dragging instruction is used for indicating that a part of image is selected from the second image; responding to a dragging instruction sent by the target object, and generating a third image according to the second image; receiving a release instruction sent by the target object based on the third image; and responding to a release instruction sent by the target object, and taking the third image as the target image.
The processor executes the program and further realizes the following steps: returning the recognition result to the target object includes: and displaying the target object in a pop-up box form according to the recognition result.
The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device: receiving a selection instruction sent by a target object, wherein the selection instruction is used for representing selection operation on an original image to be identified, and the target object is an object for identifying the original image; responding to a selection instruction sent by the target object, and selecting a partial image from the original image to obtain a target image; carrying out gray level processing on the target image to obtain a first image; and carrying out identification processing on the first image according to a picture identification system to obtain an identification result, and returning the identification result to the target object.
When executed on a data processing device, is further adapted to perform a procedure for initializing the following method steps: responding to a selection instruction sent by the target object, selecting a partial image from the original image to obtain a target image, wherein the step of obtaining the target image comprises the following steps: responding to a selection instruction sent by the target object, and determining a target area selected from the original image; determining coordinate values corresponding to each vertex in the target area according to the target area selected from the original image; and determining the target image according to the coordinate value corresponding to each vertex in the target area.
When executed on a data processing device, is further adapted to perform a procedure for initializing the following method steps: performing gray scale processing on the target image to obtain a first image comprises: saving the target image to a server; acquiring a color value corresponding to each pixel point in a target image in the server; acquiring a color value corresponding to each pixel point in the gray level image; and changing the color value corresponding to each pixel point in the target image according to the color value corresponding to each pixel point in the gray image to obtain the first image.
When executed on a data processing device, is further adapted to perform a procedure for initializing the following method steps: the method comprises the following steps of carrying out identification processing on the first image according to a picture identification system, and obtaining an identification result, wherein the identification processing comprises the following steps: obtaining information pre-stored in the picture identification system; comparing information pre-stored in the picture identification system with the first image to determine a plurality of characters in the first image and position information of each character; and obtaining the character information in the first image according to the plurality of characters and the position information of each character, and taking the character information as the identification result.
When executed on a data processing device, is further adapted to perform a procedure for initializing the following method steps: the selection instruction at least comprises: clicking an instruction, dragging an instruction and releasing an instruction, responding to a selection instruction sent by the target object, and selecting a partial image from the original image to obtain a target image, wherein the step of obtaining the target image comprises the following steps: receiving a click instruction sent by the target object, wherein the click instruction is used for indicating that the original image is clicked; responding to a click instruction sent by the target object, and generating a second image according to the original image; receiving a dragging instruction sent by the target object based on the second image, wherein the dragging instruction is used for indicating that a partial image is selected from the second image; responding to a dragging instruction sent by the target object, and generating a third image according to the second image; receiving a release instruction sent by the target object based on the third image; and responding to a release instruction sent by the target object, and taking the third image as the target image.
When executed on a data processing device, is further adapted to perform a procedure for initializing the following method steps: returning the recognition result to the target object comprises: and displaying the target object in a pop-up box form according to the recognition result.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any alterations, equivalents, modifications, etc. which come within the spirit and principles of the application are intended to be included within the scope of the claims of the application.

Claims (10)

1. An image recognition method, comprising:
receiving a selection instruction sent by a target object, wherein the selection instruction is used for representing selection operation on an original image to be identified, and the target object is an object for identifying the original image;
responding to a selection instruction sent by the target object, and selecting a partial image from the original image to obtain a target image;
carrying out gray level processing on the target image to obtain a first image;
and carrying out identification processing on the first image according to a picture identification system to obtain an identification result, and returning the identification result to the target object.
2. The method of claim 1, wherein selecting a partial image from the original image in response to a selection instruction sent by the target object to obtain a target image comprises:
responding to a selection instruction sent by the target object, and determining a target area selected from the original image;
determining coordinate values corresponding to each vertex in the target area according to the target area selected from the original image;
and determining the target image according to the coordinate value corresponding to each vertex in the target area.
3. The method of claim 1, wherein performing grayscale processing on the target image to obtain a first image comprises:
saving the target image to a server;
acquiring a color value corresponding to each pixel point in a target image in the server;
acquiring a color value corresponding to each pixel point in the gray level image;
and changing the color value corresponding to each pixel point in the target image according to the color value corresponding to each pixel point in the gray image to obtain the first image.
4. The method of claim 1, wherein performing recognition processing on the first image according to a picture recognition system to obtain a recognition result comprises:
obtaining information pre-stored in the picture identification system;
comparing information pre-stored in the picture identification system with the first image to determine a plurality of characters in the first image and position information of each character;
and obtaining the character information in the first image according to the plurality of characters and the position information of each character, and taking the character information as the identification result.
5. The method according to claim 1, wherein the selection instruction comprises at least: clicking an instruction, dragging an instruction and releasing an instruction, responding to a selection instruction sent by the target object, and selecting a partial image from the original image to obtain a target image, wherein the step of obtaining the target image comprises the following steps:
receiving a click instruction sent by the target object, wherein the click instruction is used for indicating that the original image is clicked;
responding to a click instruction sent by the target object, and generating a second image according to the original image;
receiving a dragging instruction sent by the target object based on the second image, wherein the dragging instruction is used for indicating that a part of image is selected from the second image;
responding to a dragging instruction sent by the target object, and generating a third image according to the second image;
receiving a release instruction sent by the target object based on the third image;
and responding to a release instruction sent by the target object, and taking the third image as the target image.
6. The method of claim 1, wherein returning the recognition result to the target object comprises:
and displaying the target object in a pop-up box form according to the recognition result.
7. An apparatus for recognizing an image, comprising:
the device comprises a first receiving unit, a second receiving unit and a processing unit, wherein the first receiving unit is used for receiving a selection instruction sent by a target object, the selection instruction is used for representing selection operation on an original image to be identified, and the target object is an object for identifying the original image;
the first response unit is used for responding to a selection instruction sent by the target object and selecting a partial image from the original image to obtain a target image;
the first processing unit is used for carrying out gray processing on the target image to obtain a first image;
and the second processing unit is used for carrying out recognition processing on the first image according to an image recognition system to obtain a recognition result and returning the recognition result to the target object.
8. The apparatus of claim 7, wherein the first response unit comprises:
the first response module is used for responding to a selection instruction sent by the target object and determining a target area selected from the original image;
the first determining module is used for determining a coordinate value corresponding to each vertex in a target area according to the target area selected from the original image;
and the second determining module is used for determining the target image according to the coordinate value corresponding to each vertex in the target area.
9. A computer-readable storage medium characterized in that the storage medium stores a program, wherein the program executes the method of recognizing an image according to any one of claims 1 to 6.
10. A processor, characterized in that the processor is configured to run a program, wherein the program is configured to execute the image recognition method according to any one of claims 1 to 6 when running.
CN202211466286.3A 2022-11-22 2022-11-22 Image recognition method and device, storage medium and processor Pending CN115830299A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211466286.3A CN115830299A (en) 2022-11-22 2022-11-22 Image recognition method and device, storage medium and processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211466286.3A CN115830299A (en) 2022-11-22 2022-11-22 Image recognition method and device, storage medium and processor

Publications (1)

Publication Number Publication Date
CN115830299A true CN115830299A (en) 2023-03-21

Family

ID=85530172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211466286.3A Pending CN115830299A (en) 2022-11-22 2022-11-22 Image recognition method and device, storage medium and processor

Country Status (1)

Country Link
CN (1) CN115830299A (en)

Similar Documents

Publication Publication Date Title
CN108509231B (en) VR-based application program opening method, electronic device, equipment and storage medium
CN109116129B (en) Terminal detection method, detection device, system and storage medium
CN110675940A (en) Pathological image labeling method and device, computer equipment and storage medium
JP6653929B1 (en) Automatic determination processing device, automatic determination processing method, inspection system, program, and recording medium
WO2021134285A1 (en) Image tracking processing method and apparatus, and computer device and storage medium
CN112101386B (en) Text detection method, device, computer equipment and storage medium
CN114170435A (en) Method and device for screening appearance images for recovery detection
CN114003160A (en) Data visualization display method and device, computer equipment and storage medium
US9508006B2 (en) System and method for identifying trees
CN112052702A (en) Method and device for identifying two-dimensional code
CN116188700A (en) System for automatically generating 3D scene based on AIGC
CN111881740A (en) Face recognition method, face recognition device, electronic equipment and medium
CN117115823A (en) Tamper identification method and device, computer equipment and storage medium
US11899916B2 (en) User interface for modifying pictures
CN115830299A (en) Image recognition method and device, storage medium and processor
CN114170373A (en) Target object labeling method, processor, device and mixing station
US10133953B2 (en) System and method for enabling graphic-based interoperability with a run-time application
CN116017129A (en) Method, device, system, equipment and medium for adjusting angle of light supplementing lamp
US9798932B2 (en) Video extraction method and device
CN115115857A (en) Image matching method and device and computer equipment
US20190318188A1 (en) Image skew identification
CN113780269A (en) Image recognition method, device, computer system and readable storage medium
RU2775162C1 (en) System and method for tracking moving objects by video data
US20230103805A1 (en) System and Method of Machine Vision Assisted Task Optimization
CN115147628B (en) House image data processing method and device, terminal equipment and medium

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