Image processing method and device

By collecting and rendering the category labels of the target object in image processing, the problem of slow image recognition speed in the existing technology is solved, the category of the target object is quickly recognized and displayed, and the image processing efficiency is improved.

CN112784693BActive Publication Date: 2024-10-22ZHUHAI KINGSOFT ONLINE GAME TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011631540.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-31
Publication Date
2024-10-22
Estimated Expiration
2040-12-31

AI Technical Summary

Technical Problem

In the existing technology, the image recognition algorithm is cumbersome to execute, resulting in a slow target object detection rate and difficulty in meeting the need for rapid recognition.

Method used

By receiving the image acquisition task, the configuration information of the target object is collected, including target category labels, and the target object is rendered based on these labels to generate a rendered image to quickly determine and display the category of the target object.

Benefits of technology

It achieves rapid recognition of target object categories, improves image processing efficiency, and facilitates subsequent debugging and recognition accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112784693B_ABST
    Figure CN112784693B_ABST
Patent Text Reader

Abstract

This specification provides an image processing method and device, wherein the image processing method includes: receiving an image acquisition task for a current scene; receiving an image acquisition task for a current scene; based on the image acquisition task, collecting a first image of the current scene, acquiring configuration information of a target object included in the current scene and adding it to the first image, wherein the configuration information includes a target category label of the target object; based on the target category label, determining the target category of the target object, and rendering the target object to obtain a second image of the current scene including the target object. In this way, by setting a target category label for the target object in advance and adding the target category label to the first image, the category of the target object can be quickly determined, and by rendering the target object according to the target category label of the target object, the category of the target object can be intuitively displayed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to an image processing method and device. Background Art

[0002] With the development of computer technology, the detection of target objects in images has gradually become an important research issue. Target object detection can include two processes: target object positioning and target object recognition. Target object recognition is mainly used to determine the category of the target object in the image. The existing technology usually determines the category of the target object in the image based on the image recognition algorithm, which requires the computing device to execute a relatively cumbersome image recognition algorithm, and the recognition rate may be relatively slow. Summary of the invention

[0003] In view of this, the embodiment of this specification provides an image processing method. This specification also relates to an image processing device, a computing device, and a computer-readable storage medium to solve the technical defects existing in the prior art.

[0004] According to a first aspect of an embodiment of this specification, there is provided an image processing method, including:

[0005] Receive an image acquisition task for the current scene;

[0006] Based on the image acquisition task, a first image of the current scene is acquired, and configuration information of a target object included in the current scene is acquired and added to the first image, wherein the configuration information includes a target category label of the target object;

[0007] Based on the target category label, the target category of the target object is determined, and the target object is rendered to obtain a second image of the current scene including the target object.

[0008] Optionally, rendering the target object to obtain a second image of the current scene including the target object includes:

[0009] Based on the target category label, determining a target rendering color corresponding to the target object;

[0010] The target object included in the current scene is rendered based on the target rendering color to obtain a second image of the current scene including the target object.

[0011] Optionally, before determining the target rendering color corresponding to the target object based on the target category label, the method further includes:

[0012] Determine the correspondence between category labels and rendering colors;

[0013] Accordingly, determining the target rendering color corresponding to the target object based on the target category label includes:

[0014] Based on the target category label, a rendering color corresponding to the target category label is determined from the corresponding relationship, and the determined rendering color is used as the target rendering color.

[0015] Optionally, before acquiring the first image of the current scene based on the image acquisition task, the method further includes:

[0016] Generating a target category label of the target object;

[0017] The target category label is stored in the configuration information of the target object.

[0018] Optionally, before acquiring the first image of the current scene based on the image acquisition task, the method further includes:

[0019] generating a target behavior label of the target object based on the detected behavior instruction;

[0020] The target behavior tag is stored in the configuration information of the target object.

[0021] Optionally, the method further comprises:

[0022] If the target category is a preset category, it is determined that the image acquisition task is completed.

[0023] Optionally, the configuration information further includes a target behavior tag, and the method further includes:

[0024] Based on the target behavior label, a target behavior of the target object is determined.

[0025] Optionally, the method further comprises:

[0026] If the target category is a preset category and the target behavior is a preset behavior, it is determined that the image acquisition task is completed.

[0027] According to a second aspect of the embodiments of this specification, there is provided an image processing apparatus, including:

[0028] A receiving module, configured to receive an image acquisition task for a current scene;

[0029] an acquisition module, configured to acquire a first image of the current scene based on the image acquisition task, acquire configuration information of a target object included in the current scene and add the configuration information to the first image, wherein the configuration information includes a target category label of the target object;

[0030] The rendering module is configured to determine the target category of the target object based on the target category label, and render the target object to obtain a second image of the current scene including the target object.

[0031] Optionally, the rendering module is configured to:

[0032] Based on the target category label, determining a target rendering color corresponding to the target object;

[0033] The target object included in the current scene is rendered based on the target rendering color to obtain a second image of the current scene including the target object.

[0034] Optionally, the rendering module is further configured to:

[0035] Determine the correspondence between category labels and rendering colors;

[0036] Based on the target category label, a rendering color corresponding to the target category label is determined from the corresponding relationship, and the determined rendering color is used as the target rendering color.

[0037] Optionally, the acquisition module is further configured to:

[0038] Generating a target category label of the target object;

[0039] The target category label is stored in the configuration information of the target object.

[0040] Optionally, the acquisition module is further configured to:

[0041] generating a target behavior label of the target object based on the detected behavior instruction;

[0042] The target behavior tag is stored in the configuration information of the target object.

[0043] Optionally, the rendering module is further configured to:

[0044] If the target category is a preset category, it is determined that the image acquisition task is completed.

[0045] Optionally, the rendering module is further configured to:

[0046] The configuration information also includes a target behavior tag, based on which the target behavior of the target object is determined.

[0047] Optionally, the rendering module is configured to:

[0048] If the target category is a preset category and the target behavior is a preset behavior, it is determined that the image acquisition task is completed.

[0049] According to a third aspect of an embodiment of this specification, a computing device is provided, including:

[0050] Memory and processor;

[0051] The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions:

[0052] Receive an image acquisition task for the current scene;

[0053] Based on the image acquisition task, a first image of the current scene is acquired, and configuration information of a target object included in the current scene is acquired and added to the first image, wherein the configuration information includes a target category label of the target object;

[0054] Based on the target category label, the target category of the target object is determined, and the target object is rendered to obtain a second image of the current scene including the target object.

[0055] According to a fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the image processing method are implemented.

[0056] The image processing method provided in this specification receives an image acquisition task for a current scene; based on the image acquisition task, a first image of the current scene is collected, configuration information of a target object included in the current scene is acquired and added to the first image, wherein the configuration information includes a target category label of the target object; based on the target category label, the target category of the target object is determined, and the target object is rendered to obtain a second image of the current scene including the target object. By setting a target category label for the target object in advance and adding the target category label to the first image, the category of the target object in the first image can be quickly determined, and by rendering the target object according to the target category label of the target object, the category of the target object can be intuitively displayed for subsequent debugging. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 is a flow chart of an image processing method provided by an embodiment of this specification;

[0058] Figure 2 is a processing flow chart of an image processing method applied to a game scene provided in an embodiment of this specification;

[0059] Figure 3 is a structural schematic diagram of an image processing device provided by an embodiment of this specification;

[0060] Figure 4 It is a structural block diagram of a computing device provided in an embodiment of this specification. DETAILED DESCRIPTION

[0061] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.

[0062] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0063] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0064] First, the terms involved in one or more embodiments of this specification are explained.

[0065] The first image: a real scene image of the current scene including the target object, which is an image displayed to the user and includes the real colors of the current scene.

[0066] Second image: A rendered image of the current scene including the target object. This image is displayed to the developer. The colors of the target objects of the same category in this image are the same, but may be different from the real colors. This is only used to distinguish target objects of different categories so that the image can be intuitively displayed to include several categories of target objects.

[0067] In this specification, an image processing method is provided. This specification also relates to an image processing apparatus, a computing device, and a computer-readable storage medium, which are described in detail one by one in the following embodiments.

[0068] Figure 1 A flowchart of an image processing method provided according to an embodiment of the present specification is shown, which specifically includes the following steps:

[0069] Step 102: receiving an image acquisition task for the current scene.

[0070] As an example, the image acquisition task may be to acquire an image of the current scene.

[0071] For example, in a game scenario, a user may receive a task in the game while playing the game, and the task may require providing images captured in the game.

[0072] Step 104: based on the image acquisition task, collect a first image of the current scene, obtain configuration information of the target object included in the current scene and add it to the first image, wherein the configuration information includes a target category label of the target object.

[0073] As an example, the configuration information can be used to describe the characteristics of the target object. The target category label can be used to identify the category of the target object. For example, the category can be a cat, a dog, a television, a person, a sofa, a table, etc.

[0074] As an example, the configuration information may also include a global identifier of the target object, which may be used to uniquely identify a target object. The global identifier may be set when the target object is created, and the global identifier may be numbers, letters, and the like.

[0075] In some embodiments, during the process of capturing the first image of the current scene, the device can obtain a global identifier of the target objects included in the current scene, and based on the correspondence between the global identifier and the configuration information, can determine the configuration information of each target object. The configuration information may include a target category label of the target object, and therefore, the target category label can be added to the target object in the first image.

[0076] Exemplarily, assuming that the current scene includes two target objects, after receiving the image acquisition task, the user can click the photo button on the screen to take a picture of the current scene displayed on the screen. During this process, the device can obtain the global identification of the two target objects in the current scene, namely A and B, and obtain the configuration information of each target object based on the global identification of the two target objects, that is, obtain the configuration information of target object A and the configuration information of target object B, and the target category label a in the configuration information of target object A can be added to the target object A in the first image, and the target category label b in the configuration information of target object B can be added to the target object B in the first image.

[0077] It should be noted that when the image acquisition task has requirements for the collected image, it is necessary to determine whether the image meets the requirements after the image is collected. In order to facilitate the subsequent identification of whether the target object in the collected image meets the requirements, a label can be set for the target object in advance.

[0078] In some embodiments, the requirement for the acquired image may be to include a target object of a specific category. Therefore, based on the image acquisition task, before acquiring the first image of the current scene, it also includes: generating a target category label for the target object; and storing the target category label in the configuration information of the target object.

[0079] That is, a target category label can be set for the target object in advance, and the target category label can be stored in the configuration information of the target object. In this way, when the configuration information of the target object is obtained, the target category label of the target object can be obtained and added to the first image, so as to identify the first image and determine whether the target object in the first image meets the requirements.

[0080] For example, when creating a target object, the global identifier of the target object may be set to A, and the target object is a sofa, the target category label of the target object may be set to shafa, and the target category label may be stored in the configuration information of the target object.

[0081] In other embodiments, the requirement for the acquired image may be to include a target object with specific behavior. Therefore, based on the image acquisition task, before collecting the first image of the current scene, it also includes: generating a target behavior label of the target object based on the detected behavior instructions; and storing the target behavior label in the configuration information of the target object.

[0082] As an example, the behavior instruction may include specific behaviors, such as running, jumping, leaping, etc.

[0083] The target behavior tag may be used to represent the behavior of the target object. For example, the behavior of the target object may be running, jumping, walking, etc.

[0084] That is, a target behavior tag of the target object can be generated in advance according to the detected behavior instruction to identify the behavior of the target object, and the target behavior tag is stored in the configuration information of the target object. In this way, when the configuration information of the target object is obtained, the target behavior tag of the target object can be obtained and added to the first image, so as to identify the first image and determine whether the target object in the first image meets the requirements.

[0085] For example, if the user wants the target object A to perform a jumping action, the user can trigger the option corresponding to "jump" in the behavior space corresponding to the target object A through the device's interactive interface. The device can detect the behavior instructions for the target object, and the behavior instructions include the "jump" behavior. A target behavior label can be generated for the target object A based on the behavior instructions. The target behavior label can be beng, which is used to indicate that the target object A is performing the "jump" behavior, and the target behavior label can be stored in the configuration information of the target object.

[0086] Step 106: determine the target category of the target object based on the target category label, and render the target object to obtain a second image of the current scene including the target object.

[0087] The second image may be a rendered image of the current scene including the target object, and the color of the target object in the image is different from the real color of the target object, and the color is only used to distinguish target objects of different categories.

[0088] In implementation, the correspondence between the category label and the category may be preset, so that based on the target category label, the category corresponding to the target category label may be determined from the correspondence, and the determined category may be used as the target category.

[0089] For example, the category label shafa may be preset to correspond to the category sofa, the category label yizi may correspond to the category chair, and the category label dianshi may correspond to the category television. Assuming that the target category label is dianshi, it may be determined that the target category of the target object is television.

[0090] Furthermore, the method further includes: if the target category is a preset category, determining that the image acquisition task is completed.

[0091] In one possible implementation, if the image acquisition task requires that the first image acquired must include a target image of a preset category, the first image can be identified. Since the first image includes a target category label of the target object, the target category of the target object in the first image can be determined based on the target category label. If the target category is a preset category, it can be determined that the first image meets the requirements of the image acquisition task, that is, the image acquisition task is completed.

[0092] Furthermore, the configuration information may further include a target behavior tag, and the method further includes: determining a target behavior of the target object based on the target behavior tag.

[0093] That is, if the configuration information includes a target behavior tag, the first image may include the target behavior tag of the target object, and the target behavior of the target object may be determined according to the target behavior tag.

[0094] Exemplarily, a correspondence between a behavior label and a behavior may be preset, so that based on a target behavior label, a behavior corresponding to the target behavior label may be determined from the correspondence, and the determined behavior may be used as the target behavior.

[0095] For example, the behavior label pao can be preset to correspond to the behavior "run", the behavior label tiao can correspond to the behavior "jump", and the behavior label kua can correspond to the behavior "cross". Assuming that the target behavior label is tiao, the target behavior of the target object can be determined to be "jump".

[0096] Furthermore, the method further includes: if the target category is a preset category, and the target behavior is a preset behavior, determining that the image acquisition task is completed.

[0097] In another possible implementation, if the image acquisition task requires that the first image acquired must include a target image of a preset category, and the behavior of the target image of the preset category is a preset behavior, the first image can be recognized. Since the first image includes a target category label and a target behavior label of the target object, the target category of the target object in the first image can be determined based on the target category label, and the target behavior of the target object in the first image can be determined based on the target behavior label of the target object. If the target category is a preset category, and the target behavior of the target object of the preset category is a preset behavior, it can be determined that the first image meets the requirements of the image acquisition task, that is, the image acquisition task is completed.

[0098] In some embodiments, a specific implementation of rendering the target object to obtain a second image of the current scene including the target object may include: determining a target rendering color corresponding to the target object based on the target category label; and rendering the target object included in the current scene based on the target rendering color to obtain a second image of the current scene including the target object.

[0099] That is, the target rendering color corresponding to the target object can be determined according to the target category label, and the target object can be rendered according to the target rendering color to obtain the second image.

[0100] In this way, by rendering target objects of different categories according to different colors, the categories of multiple target objects included in the second image can be intuitively seen. If the categories of the multiple target objects in the second image are different from the categories of the multiple target objects actually existing in the current scene, it can be considered that there may be problems with the recognition program, and the program can be debugged to make the recognition more accurate.

[0101] As an example, before determining the target rendering color corresponding to the target object based on the target category label, the method further includes: determining a correspondence between the category label and the rendering color; accordingly, determining the target rendering color corresponding to the target object based on the target category label may include: based on the target category label, determining the rendering color corresponding to the target category label from the correspondence, and using the determined rendering color as the target rendering color.

[0102] That is, the correspondence between the category label and the rendering color may be preset, and then according to the target category label, the rendering color corresponding to the target category label may be acquired from the first relationship, and the rendering color may be determined as the target rendering color of the target object.

[0103] For example, it can be determined that the category label shafa corresponds to the rendering color yellow, the category label dianshiji corresponds to the rendering color green, and the category label mao corresponds to the rendering color blue. In this way, multiple sets of corresponding relationships can be determined. When determining the target rendering color corresponding to the target object, the target rendering color corresponding to the target object can be determined based on the target category label of the target object. Assuming that the target category label of the target object is dianshi, in the corresponding relationship, the rendering color corresponding to the category label dianshi is green, then it can be determined that the target rendering color of the target object is green.

[0104] The image processing method provided in this specification receives an image acquisition task for a current scene; based on the image acquisition task, a first image of the current scene is collected, configuration information of a target object included in the current scene is acquired and added to the first image, wherein the configuration information includes a target category label of the target object; based on the target category label, the target category of the target object is determined, and the target object is rendered to obtain a second image of the current scene including the target object. By setting a target category label for the target object in advance and adding the target category label to the first image, the category of the target object in the first image can be quickly determined, and by rendering the target object according to the target category label of the target object, the category of the target object can be intuitively displayed for subsequent debugging.

[0105] The following combination Figure 2 , taking the application of the image processing method provided in this specification in a game scene as an example, the image processing method is further described. Figure 2 A processing flow chart of an image processing method applied to a game scene provided in an embodiment of this specification is shown, which specifically includes the following steps:

[0106] Step 202: Generate a target category tag for the game object, and store the target category tag in the configuration information of the game object.

[0107] In this embodiment, the game object may be furniture, pets, etc. For example, the game object may be a sofa, a television, a cat, etc. Accordingly, the target category label of the game object may be shafa, dainshiji, mao, etc.

[0108] For example, a target category label of a sofa may be generated as shafa, and the label shafa may be stored in the configuration information of the game object sofa. A target category label of pet A may be generated as mao, and the label mao may be stored in the configuration information of pet A.

[0109] Step 204: Generate a target behavior tag for the game object based on the detected behavior instruction, and store the target behavior tag in the configuration information of the game object.

[0110] In this step, the game object may be a pet, and further, the game object may be a cat, a dog, a bird, etc. Accordingly, the target category label of the game object may be mao, gou, naio, etc.

[0111] For example, if a "run" command is received for pet A, a target behavior tag of pet A can be generated as pao, and the tag pao can be stored in the configuration information of pet A. If a "jump" command is received for pet A, a target behavior tag of pet A can be generated as tiao, and the tag tiao can be stored in the configuration information of pet A.

[0112] The above steps 202 to 204 are subordinate descriptions of step 104. For their specific implementation, please refer to the relevant description of step 104, which will not be repeated in this embodiment.

[0113] Step 206: receiving an image acquisition task for the current scene.

[0114] When playing a game, the user may receive a task in the game, which requires providing some images taken in the game. That is, when playing a game, the user may receive an image acquisition task, which is to acquire a scene image of the current scene.

[0115] Step 208: Based on the image acquisition task, a first image of the current scene is captured, and configuration information of the game objects included in the current scene is acquired and added to the first image.

[0116] Wherein, the configuration information includes a target category label of the game object and a target behavior label of the game object.

[0117] For example, assuming that the current scene includes a sofa and two cats, after receiving the image acquisition task, the user can click the camera button on the screen to take a picture of the current scene displayed on the screen. In this process, the device can obtain the configuration information of a sofa and the configuration information of two cats included in the current scene. After obtaining the first image, the configuration information of the sofa can be added to the position corresponding to the sofa in the first image, and the configuration information of the two cats can be added to the positions corresponding to the two cats in the first image.

[0118] For example, assuming that the global identifier of a sofa is A, the global identifiers of two cats are B and C, and the cat with the global identifier B is executing the "jump" instruction, and the cat with the global identifier C is executing the "run" instruction, then the configuration information of a sofa may include the target category label shafa, the configuration information of the cat with the global identifier B is the target category label mao and the target behavior label tiao, and the configuration information of the cat with the global identifier C is the target category label mao and the target behavior label pao. That is, the first image may include a sofa and two cats, and the position of the sofa is marked with the target category label shafa, the position of cat B is marked with the target category label mao and the target behavior label tiao, and the position of cat C is marked with the target category label mao and the target behavior label pao.

[0119] It should be noted that the above step 208 is a subordinate description of step 104. For its specific implementation, please refer to the relevant description of step 104, which will not be repeated in this embodiment.

[0120] Step 210: Determine the target category of the game object based on the target category label.

[0121] Continuing with the above example, the first image can be identified. In the first image, the target category label of the game object with the global identification A is shafa, and the target category labels of the two game objects with the global identifications B and C are both mao. According to the correspondence between the target category label and the target category, it can be determined that the target category of the game object with the global identification A is sofa, and it can be determined that the target category of the two game objects with the global identifications B and C are both cats.

[0122] Step 212: Determine the target rendering color corresponding to the game object based on the target category label.

[0123] In implementation, the correspondence between the category label and the rendering color may be predetermined. Based on the target category label, the rendering color corresponding to the target category label is determined from the correspondence, and the determined rendering color is used as the target rendering color.

[0124] For example, it can be determined that the category label shafa corresponds to the rendering color yellow, the category label dianshiji corresponds to the rendering color green, and the category label mao corresponds to the rendering color blue, and thus, multiple sets of corresponding relationships can be determined. When determining the target rendering color corresponding to the game object, the target rendering color corresponding to the game object can be determined based on the target category label of the game object.

[0125] Continuing with the above example, assume that the current scene includes three game objects, with global identifiers A, B, and C. The target category label of the game object with global identifier A is shafa, and the target category labels of the two game objects with global identifiers B and C are both mao. Based on the target category label shafa, it can be determined from the correspondence that the rendering color corresponding to shafa is yellow, and based on the target category label mao, it can be determined from the correspondence that the rendering color corresponding to mao is blue.

[0126] Step 214: Render the game object included in the current scene based on the target rendering color to obtain a second image of the current scene including the game object.

[0127] For example, the game object corresponding to the global identifier A can be rendered yellow, and the game objects corresponding to the global identifiers B and C can be rendered blue. In this way, it can be clearly and intuitively determined that the three game objects included in the current scene are two cats and a sofa.

[0128] Step 216, determining the target behavior of the game object based on the target behavior tag.

[0129] For example, assuming that among the three game objects included in the current game scene, two game objects include target behavior labels, both of which are cats, and the global identifications of the two cats are B and C respectively, the target behavior label of the cat with the global identification B is tiao, and the target behavior label of the cat with the global identification C is pao. According to the correspondence between the target category label and the target category, it can be determined that the target behavior of the cat with the global identification B is jump, and the target behavior of the cat with the global identification C is run.

[0130] It should be noted that there is no strict execution order between step 216 and step 212 .

[0131] Step 218: If the target category is a preset category and the target behavior is a preset behavior, determine that the image acquisition task is completed.

[0132] Assuming that the preset categories are sofa and cat, and the preset behaviors are running and jumping of cats, continuing with the above example, the three target objects included in the current scene are a sofa and two cats, and the target behaviors of the two cats are running and jumping respectively, it can be determined that the image acquisition task is completed.

[0133] It should be noted that the above steps 210 to 218 are subordinate descriptions of step 106. For their specific implementation, please refer to the relevant description of step 106, which will not be repeated in this embodiment.

[0134] The image processing method provided in this specification, based on the image acquisition task, collects the first image of the current scene, obtains the configuration information of the target object included in the current scene and adds it to the first image, wherein the configuration information includes the target category label of the target object; based on the target category label, determines the target category of the target object, and renders the target object to obtain a second image of the current scene including the target object. By setting the target category label for the target object in advance and adding the target category label to the first image, the category of the target object in the first image can be quickly determined, and by rendering the target object according to the target category label of the target object, the category of the target object can be intuitively displayed for subsequent debugging.

[0135] Corresponding to the above method embodiment, this specification also provides an image processing device embodiment, Figure 3 FIG. 1 shows a schematic diagram of the structure of an image processing device provided by an embodiment of the present specification. Figure 3 As shown, the device comprises:

[0136] A receiving module 302 is configured to receive an image acquisition task for a current scene;

[0137] The acquisition module 304 is configured to acquire a first image of the current scene based on the image acquisition task, acquire configuration information of a target object included in the current scene and add the configuration information to the first image, wherein the configuration information includes a target category label of the target object;

[0138] The rendering module 306 is configured to determine the target category of the target object based on the target category label, and render the target object to obtain a second image of the current scene including the target object.

[0139] Optionally, the rendering module 306 is configured to:

[0140] Based on the target category label, determining a target rendering color corresponding to the target object;

[0141] The target object included in the current scene is rendered based on the target rendering color to obtain a second image of the current scene including the target object.

[0142] Optionally, the rendering module 306 is further configured to:

[0143] Determine the correspondence between category labels and rendering colors;

[0144] Based on the target category label, a rendering color corresponding to the target category label is determined from the corresponding relationship, and the determined rendering color is used as the target rendering color.

[0145] Optionally, the acquisition module 304 is further configured to:

[0146] Generating a target category label of the target object;

[0147] The target category label is stored in the configuration information of the target object.

[0148] Optionally, the acquisition module 304 is further configured to:

[0149] generating a target behavior label of the target object based on the detected behavior instruction;

[0150] The target behavior tag is stored in the configuration information of the target object.

[0151] Optionally, the rendering module 306 is further configured to:

[0152] If the target category is a preset category, it is determined that the image acquisition task is completed.

[0153] Optionally, the rendering module 306 is further configured to:

[0154] The configuration information also includes a target behavior tag, based on which the target behavior of the target object is determined.

[0155] Optionally, the rendering module 306 is configured to:

[0156] If the target category is a preset category and the target behavior is a preset behavior, it is determined that the image acquisition task is completed.

[0157] The image processing method provided in this specification, based on the image acquisition task, collects the first image of the current scene, obtains the configuration information of the target object included in the current scene and adds it to the first image, wherein the configuration information includes the target category label of the target object; based on the target category label, determines the target category of the target object, and renders the target object to obtain a second image of the current scene including the target object. By setting the target category label for the target object in advance and adding the target category label to the first image, the category of the target object in the first image can be quickly determined, and by rendering the target object according to the target category label of the target object, the category of the target object can be intuitively displayed for subsequent debugging.

[0158] The above is a schematic scheme of an image processing device of this embodiment. It should be noted that the technical scheme of the image processing device and the technical scheme of the above-mentioned image processing method belong to the same concept, and the details not described in detail in the technical scheme of the image processing device can be referred to the description of the technical scheme of the above-mentioned image processing method.

[0159] Figure 4 The structure block diagram of a computing device 400 provided according to an embodiment of the present specification is shown. The components of the computing device 400 include but are not limited to a memory 410 and a processor 420. The processor 420 is connected to the memory 410 via a bus 430, and the database 450 is used to store data.

[0160] The computing device 400 also includes an access device 440 that enables the computing device 400 to communicate via one or more networks 460. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 440 may include one or more of any type of network interface (e.g., a network interface card (NIC)) wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a World Wide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.

[0161] In one embodiment of the present specification, the above components of the computing device 400 and Figure 4 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 4 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0162] Computing device 400 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or PC. Computing device 400 may also be a mobile or stationary server.

[0163] The processor 420 is used to execute the following computer executable instructions:

[0164] Receive an image acquisition task for the current scene;

[0165] Based on the image acquisition task, a first image of the current scene is acquired, and configuration information of a target object included in the current scene is acquired and added to the first image, wherein the configuration information includes a target category label of the target object;

[0166] Based on the target category label, the target category of the target object is determined, and the target object is rendered to obtain a second image of the current scene including the target object.

[0167] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the above-mentioned image processing method belong to the same concept, and the details not described in detail in the technical scheme of the computing device can be referred to the description of the technical scheme of the above-mentioned image processing method.

[0168] An embodiment of the present specification further provides a computer-readable storage medium storing computer instructions, which are used when executed by a processor to:

[0169] Receive an image acquisition task for the current scene;

[0170] Based on the image acquisition task, a first image of the current scene is acquired, and configuration information of a target object included in the current scene is acquired and added to the first image, wherein the configuration information includes a target category label of the target object;

[0171] Based on the target category label, the target category of the target object is determined, and the target object is rendered to obtain a second image of the current scene including the target object.

[0172] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the above-mentioned image processing method belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be referred to the description of the technical scheme of the above-mentioned image processing method.

[0173] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0174] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0175] It should be noted that, for the convenience of description, the aforementioned method embodiments are all described as a series of action combinations, but those skilled in the art should be aware that this specification is not limited by the order of the actions described, because according to this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this specification.

[0176] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0177] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is limited only by the claims and their full scope and equivalents.

Claims

1. An image processing method, characterized in that: The method comprises: Receive an image acquisition task for the current scene; Based on the image acquisition task, a first image of the current scene is acquired, and configuration information of a target object included in the current scene is acquired and added to the first image, wherein the configuration information includes a target category label of the target object and a target behavior label of the target object; Determining a target category of the target object based on the target category label, and determining a target behavior of the target object based on the target behavior label; If the target category is a preset category and the target behavior is a preset behavior, determining that the image acquisition task is completed; The target object is rendered to obtain a second image of the current scene including the target object, wherein the second image is an image displayed to developers and is used to distinguish target objects of different categories.

2. The image processing method according to claim 1, characterized in that: The step of rendering the target object to obtain a second image of the current scene including the target object comprises: Based on the target category label, determining a target rendering color corresponding to the target object; The target object included in the current scene is rendered based on the target rendering color to obtain a second image of the current scene including the target object.

3. The image processing method according to claim 2, characterized in that: Before determining the target rendering color corresponding to the target object based on the target category label, the method further includes: Determine the correspondence between category labels and rendering colors; Accordingly, determining the target rendering color corresponding to the target object based on the target category label includes: Based on the target category label, a rendering color corresponding to the target category label is determined from the corresponding relationship, and the determined rendering color is used as the target rendering color.

4. The image processing method according to claim 1, wherein: Before acquiring the first image of the current scene based on the image acquisition task, the method further includes: Generating a target category label of the target object; The target category label is stored in the configuration information of the target object.

5. The image processing method according to claim 1, wherein: Before acquiring the first image of the current scene based on the image acquisition task, the method further includes: generating a target behavior label of the target object based on the detected behavior instruction; The target behavior tag is stored in the configuration information of the target object.

6. The image processing method according to claim 1, characterized in that: The method further comprises: If the target category is a preset category, it is determined that the image acquisition task is completed.

7. An image processing device, characterized in that: The device comprises: A receiving module, configured to receive an image acquisition task for a current scene; an acquisition module, configured to acquire a first image of the current scene based on the image acquisition task, acquire configuration information of a target object included in the current scene and add the configuration information to the first image, wherein the configuration information includes a target category label of the target object and a target behavior label of the target object; The rendering module is configured to determine the target category of the target object based on the target category label, and determine the target behavior of the target object based on the target behavior label; if the target category is a preset category and the target behavior is a preset behavior, determine that the image acquisition task is completed; and render the target object to obtain a second image of the current scene including the target object, wherein the second image is an image displayed to developers for distinguishing target objects of different categories.

8. A computing device, characterized in that include: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions to implement the following method: Receive an image acquisition task for the current scene; Based on the image acquisition task, a first image of the current scene is acquired, and configuration information of a target object included in the current scene is acquired and added to the first image, wherein the configuration information includes a target category label of the target object and a target behavior label of the target object; Determining a target category of the target object based on the target category label, and determining a target behavior of the target object based on the target behavior label; If the target category is a preset category and the target behavior is a preset behavior, determining that the image acquisition task is completed; The target object is rendered to obtain a second image of the current scene including the target object, wherein the second image is an image displayed to developers and is used to distinguish target objects of different categories.

9. A computer-readable storage medium storing computer instructions, which, when executed by a processor, implement the steps of the image processing method according to any one of claims 1 to 6.