Processing method, processing device and electronic equipment

By adjusting the environmental parameters of the object to be identified so that it is clearly separated from the background color, the problem of low image segmentation accuracy caused by the similar color of the object to be identified and the background is solved, and higher recognition accuracy is achieved.

CN111145194BActive Publication Date: 2024-09-20LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201911415251.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-31
Publication Date
2024-09-20
Estimated Expiration
2040-09-20

AI Technical Summary

Technical Problem

In the existing technology, the object to be identified is similar in color to the background of the settlement desk, resulting in low image segmentation accuracy and affecting the accuracy of identifying the object to be identified.

Method used

By adjusting environmental parameters based on the color information of the object to be recognized, it is clearly separated from the background color, and using fill light and image processing technology to improve image segmentation accuracy.

Benefits of technology

It effectively improves the image segmentation accuracy and recognition accuracy of the object to be identified, and improves the ability to accurately identify the object to be identified.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111145194B
    Figure CN111145194B
Patent Text Reader

Abstract

The present disclosure provides a processing method, comprising: adjusting the environmental parameters of the first environment where the object to be identified is located according to a determined adjustment strategy based at least on the color information of the object to be identified, wherein the adjustment strategy at least makes the color of the first environment where the object to be identified is located different from that of the object to be identified; and obtaining a first image of the object to be identified, so as to obtain identification information of the object to be identified based at least on the recognition processing of the first image. The present disclosure also provides a processing device and an electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to a processing method, a processing device and an electronic device. Background Art

[0002] With the rapid development of artificial intelligence, automatic control, communication and computer technology, unmanned stores are booming, and the application scenarios of visual recognition technology of objects to be identified are becoming more and more extensive. Among them, the recognition technology of objects to be identified based on the checkout counter method has been put into practical use. The most critical factor of this recognition technology of objects to be identified is to segment the image of the object to be identified, and then identify the segmented image.

[0003] In the process of implementing the concept of the present disclosure, the inventors found that there are at least the following problems in the prior art. The accuracy of image segmentation affects the accuracy of object recognition. Due to the diversity of colors of objects to be recognized, the colors of some objects to be recognized are similar to the background color of the checkout counter, and the accuracy of object recognition is not high. Summary of the invention

[0004] One aspect of the present disclosure provides a processing method, comprising: first, adjusting the environmental parameters of a first environment in which the object to be identified is located according to a determined adjustment strategy based at least on the color information of the object to be identified, wherein the adjustment strategy at least makes the color of the first environment in which the object to be identified is located different from that of the object to be identified. Then, obtaining a first image of the object to be identified, so as to obtain identification information of the object to be identified based at least on the recognition processing of the first image.

[0005] Optionally, adjusting the environmental parameters of the first environment in which the object to be identified is located according to a determined adjustment strategy at least based on the color information of the object to be identified may include: determining the color type and distribution of the object to be identified based on the color information of the object to be identified; determining a first adjustment strategy that matches the color type and distribution, so as to compensate the first color to the area to be identified where the object to be identified is located based on the first adjustment strategy; wherein the degree of recognition between the first color and the color type and distribution of the object to be identified meets a first threshold.

[0006] Optionally, adjusting the environmental parameters of the first environment in which the object to be identified is located according to a determined adjustment strategy at least based on the color information of the object to be identified may include: obtaining posture information of the object to be identified in the area to be identified where it is located; determining a second adjustment strategy for adjusting the environmental parameters based on the posture information and the color type and distribution of the object to be identified, and determining compensation parameters for the area to be identified based on the second adjustment strategy; and compensating the object to be identified in the area to be identified with a second color and a brightness matching the second color at least based on the compensation parameters; wherein the second color is different from the color type of the object to be identified.

[0007] Optionally, compensating the object to be identified in the area to be identified with a brightness matching the second color at least based on the compensation parameter may include: determining a brightness-adjustable light source that is the same as the second color based on the posture information; and controlling the brightness-adjustable light source to compensate the object to be identified with light of a brightness matching the second color based on the compensation parameter.

[0008] Optionally, obtaining the identification information of the object to be identified based at least on the recognition processing of the first image may include: determining the partition granularity of the first image based at least on the attribute information of the object to be identified; performing image partitioning on the first image according to the partition granularity to remove environmental noise and obtain at least one image partition of the object to be identified; extracting vector features of the at least one image partition based at least on the attribute information to mark the object to be identified based at least on the vector features and obtain the identification information of the object to be identified; wherein different partition granularities correspond to different numbers of edge pixel points of image partitions.

[0009] Optionally, partitioning the first image according to the partition granularity to remove environmental noise to obtain at least one image partition of the object to be identified may include:

[0010] Obtain the image gradient of the first image at different pixel points; determine the pixel points whose image gradient is greater than a first threshold as edge pixel points of the first image; determine the partition edge pixel points from the determined edge pixel points according to the partition granularity, so as to form at least one image partition based on the partition edge pixel points; remove the image partition corresponding to the first environment from the at least one image partition based on the color information of the object to be identified, so as to obtain at least one image partition of the object to be identified.

[0011] Optionally, the method further includes: detecting that the object to be identified is in the area to be identified of the first environment, obtaining a second image of the object to be identified, and determining color information of the object to be identified based on the second object.

[0012] Optionally, the method further comprises: comparing the first image of the object to be identified with samples in a sample database to output prompt information for updating the sample database or identification information of the object to be identified.

[0013] Another aspect of the present disclosure provides a processing device, including an environmental parameter adjustment module and a first image acquisition module. The environmental parameter adjustment module is used to adjust the environmental parameters of the first environment where the object to be identified is located according to a determined adjustment strategy based at least on the color information of the object to be identified, and the adjustment strategy at least makes the color of the first environment where the object to be identified is located different from that of the object to be identified; and the first image acquisition module is used to obtain a first image of the object to be identified, so as to obtain identification information of the object to be identified based at least on the recognition processing of the first image.

[0014] Optionally, the environmental parameter adjustment module includes: an object color determination submodule and a first adjustment strategy determination submodule. The object color determination submodule is used to determine the color type and distribution of the object to be identified based on the color information of the object to be identified; the first adjustment strategy determination submodule is used to determine a first adjustment strategy that matches the color type and distribution, so as to compensate the first color to the area to be identified where the object to be identified is located based on the first adjustment strategy; wherein the recognition degree between the first color and the color type and distribution of the object to be identified meets a first threshold.

[0015] Optionally, the environmental parameter adjustment module includes: a posture acquisition submodule, a first adjustment strategy determination submodule, and a compensation submodule. The posture acquisition submodule is used to obtain the posture information of the object to be identified in the area to be identified where it is located; the first adjustment strategy determination submodule is used to determine the second adjustment strategy for adjusting the environmental parameters based on the posture information and the color type and distribution of the object to be identified, so as to determine the compensation parameters of the area to be identified based on the second adjustment strategy; the compensation submodule is used to compensate the object to be identified in the area to be identified with a second color and a brightness matching the second color based on at least the compensation parameters; wherein the second color is different from the color type of the object to be identified.

[0016] Optionally, the compensation submodule includes a light source determination unit and a compensation unit. The light source determination unit is used to determine a brightness adjustable light source with the same brightness as the second color based on the posture information; and the compensation unit is used to control the brightness adjustable light source to compensate the object to be identified with light of a brightness matching the second color based on the compensation parameter.

[0017] Optionally, the device further includes an image recognition module, including a granularity determination submodule, a partitioning submodule, and an identification information acquisition submodule. The granularity determination submodule is used to determine the partitioning granularity of the first image based at least on the attribute information of the object to be identified; the partitioning submodule is used to partition the first image according to the partitioning granularity to remove environmental noise and obtain at least one image partition of the object to be identified; the identification information acquisition submodule is used to extract the vector features of the at least one image partition based at least on the attribute information to mark the object to be identified based at least on the vector features and obtain the identification information of the object to be identified; different partitioning granularities correspond to different numbers of edge pixel points of the image partitions.

[0018] Optionally, the partitioning submodule includes: an image gradient obtaining unit, an edge pixel determination unit, a partitioning unit, and a screening unit. The image gradient obtaining unit is used to obtain the image gradient of the first image at different pixel points; the edge pixel determination unit is used to determine the pixel points whose image gradient is greater than a first threshold as the edge pixel points of the first image; the partitioning unit is used to determine the partition edge pixel points from the determined edge pixel points according to the partition granularity, so as to form at least one image partition based on the partition edge pixel points; the screening unit is used to remove the image partition corresponding to the first environment from the at least one image partition based on the color information of the object to be identified, so as to obtain at least one image partition of the object to be identified.

[0019] Optionally, the device further comprises a second image acquisition module, which is used to detect that the object to be identified is in the area to be identified in the first environment, and obtain a second image of the object to be identified, so as to determine the color information of the object to be identified based on the second object.

[0020] Optionally, the device further comprises a prompt module, which is used to compare the first image of the object to be identified with samples in the sample database to output prompt information for updating the sample database or identification information of the object to be identified.

[0021] Another aspect of the present disclosure provides an electronic device, including: an image acquisition component for acquiring images; a light source component for providing light sources of multiple colors; one or more processors and a computer-readable storage medium for storing one or more computer programs, wherein the computer programs implement the method described above when executed by the processors.

[0022] Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, which are used to implement the above method when executed.

[0023] Another aspect of the present disclosure provides a computer program, which includes computer executable instructions, and the instructions are used to implement the method described above when executed.

[0024] According to the processing method provided by the embodiment of the present disclosure, the image of the object to be identified is first pre-captured, the color in the image of the object to be identified is identified, and then the color with a large contrast with the color in the image of the object to be identified is calculated to automatically adjust the environment parameters so that the image of the object to be identified and the environment image are more clearly distinguished. This can effectively improve the segmentation accuracy of the image of the object to be identified, thereby improving the accuracy of identifying the object to be identified. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] For a more complete understanding of the present disclosure and its advantages, reference will now be made to the following description taken in conjunction with the accompanying drawings, in which:

[0026] Figure 1 The application scenarios of the processing method, processing device and electronic device according to the embodiments of the present disclosure are schematically shown;

[0027] Figure 2 The system architecture applicable to the processing method, the processing device and the electronic device according to the embodiment of the present disclosure is schematically shown;

[0028] Figure 3 A flowchart schematically shows a processing method according to an embodiment of the present disclosure;

[0029] Figure 4 A schematic diagram of an object to be detected in the first scene in the prior art is schematically shown;

[0030] Figure 5 A schematic diagram schematically shows a second scene of an object to be detected in the prior art;

[0031] Figure 6 A schematic diagram schematically shows an object to be detected in a first scene according to an embodiment of the present disclosure;

[0032] Figure 7 A schematic diagram schematically shows an object to be detected in a second scene according to an embodiment of the present disclosure;

[0033] Figure 8 A schematic diagram of edge pixels according to an embodiment of the present disclosure is schematically shown;

[0034] Fig. 9 A schematic diagram of edge pixels according to another embodiment of the present disclosure is schematically shown;

[0035] Fig.10 A schematic diagram schematically shows a light source of an electronic device according to an embodiment of the present disclosure;

[0036] Fig.11 A schematic diagram schematically shows a light source of an electronic device according to another embodiment of the present disclosure;

[0037] Fig.12 A flowchart schematically shows a processing method according to another embodiment of the present disclosure;

[0038] Fig.13 A block diagram schematically shows a processing device according to an embodiment of the present disclosure; and

[0039] Fig.14 A block diagram of an electronic device according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0040] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0041] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0042] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.

[0043] In the case of using expressions such as "at least one of A, B, and C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.). In the case of using expressions such as "at least one of A, B, or C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, or C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0044] Some block diagrams and / or flow charts are shown in the accompanying drawings. It should be understood that some boxes or combinations thereof in the block diagrams and / or flow charts can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that these instructions can create a device for implementing the functions / operations described in these block diagrams and / or flow charts when executed by the processor. The technology of the present disclosure can be implemented in the form of hardware and / or software (including firmware, microcode, etc.). In addition, the technology of the present disclosure can take the form of a computer program product on a computer-readable storage medium storing instructions, which can be used by an instruction execution system or used in conjunction with an instruction execution system.

[0045] Figure 1 The application scenarios of the processing method, processing device and electronic device according to the embodiments of the present disclosure are schematically shown. It should be noted that: Figure 1 The examples shown are merely scenarios in which the embodiments of the present disclosure can be applied, to help those skilled in the art understand the technical content of the present disclosure, but do not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.

[0046] like Figure 1 As shown, the scenario of using a checkout counter for settlement is used as an example for explanation. The checkout counter includes a table body 1, a settlement area 2, a display device 3 and an image acquisition device 4. Of course, the checkout counter may also include, for example: a warehousing detection platform, a weighing device, a payment device, a QR code, a packaging device, a code scanning device, and the like. The checkout counter may use the image acquisition device 4 to capture images of the goods on the settlement area 2, and then identify the goods to determine the price and other information of the goods, which is convenient for users to settle accounts. Compared with the settlement method of using a scanner to scan goods, there is no need for users or cashiers to scan the designated area of ​​the goods. They only need to place the goods in the settlement area 2 to identify the price and other information of the goods, which helps to improve the convenience of operation for users or cashiers.

[0047] However, the commodity recognition technology based on the checkout counter method has been put into practical use. The most critical factor of this technology is to segment the commodity image and then identify it. The accuracy of image segmentation affects the accuracy of commodity recognition. In actual use, due to the diversity of commodity image colors, some commodity images are similar in color to the checkout counter background, resulting in low image segmentation accuracy, thereby reducing the accuracy of commodity recognition.

[0048] The embodiments of the present disclosure provide a processing method, a processing device and an electronic device. The method includes an environment adjustment process and an image processing process. In the environment adjustment process, the environment parameters of the first environment in which the object to be identified is located are adjusted according to a determined adjustment strategy at least based on the color information of the object to be identified, and the adjustment strategy at least makes the color of the first environment in which the object to be identified is different from that of the object to be identified. After completing the environment adjustment process, the image processing process is entered to obtain the first image of the object to be identified, so as to obtain the identification information of the object to be identified based on at least the recognition processing of the first image. Since the image of the object to be identified is pre-collected first, the color in the image of the object to be identified is identified, and then the color with a large contrast with the color in the image of the object to be identified is calculated to automatically adjust the environment parameters, so that the image of the object to be identified and the environment image are more clearly separated, the image segmentation accuracy is improved, and then the accuracy of commodity identification is improved.

[0049] Figure 2 The system architecture applicable to the processing method, processing device and electronic device according to the embodiments of the present disclosure is schematically shown.

[0050] It should be noted that Figure 2 What is shown is merely an example of a system architecture to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.

[0051] like Figure 2 As shown, the system architecture 200 according to this embodiment may include terminal devices 201, 202, 203, a network 204 and a server 205. The network 204 may include multiple gateways, routers, hubs, network cables, etc., which are used to provide a medium for communication links between the terminal devices 201, 202, 203 and the server 205. The network 204 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0052] The user can use the terminal devices 201 and 202 to interact with other terminal devices and the server 205 through the network 204 to receive or send information, such as sending payment requests, image processing requests, and receiving processing results. The terminal devices 201, 202, and 203 can be installed with various communication client applications, such as banking applications, shopping applications, web browser applications, search applications, office applications, instant messaging tools, email client, social platform software, etc. (only for example).

[0053] The terminal devices 201 and 202 include but are not limited to smart phones, virtual reality devices, augmented reality devices, tablet computers, laptop computers, and other electronic devices that can implement online payment functions.

[0054] The terminal device 203 may be an electronic device with a camera and a specific color fill light function, which may identify an object to be identified through fill light, photographing, image processing, etc., including but not limited to a checkout counter, an object recognition device, etc.

[0055] The server 205 can receive the request and process the request. For example, the server 205 can be a background management server, a server cluster, etc. The background management server can analyze and process the received payment request, image processing request, compensation color request, etc., and feed back the processing result to the terminal device.

[0056] It should be noted that the processing method provided in the embodiment of the present disclosure can generally be executed by the terminal device 203 and the server 205. Accordingly, the processing device provided in the embodiment of the present disclosure can generally be set in the terminal device 203 and the server 205. The processing method provided in the embodiment of the present disclosure can also be executed by a terminal device, a server or a server cluster that communicates with the terminal device 201, 202, 203 and / or the server 205.

[0057] It should be understood that the number of terminal devices, networks and servers is only illustrative. Depending on the implementation requirements, there can be any number of terminal devices, networks and servers.

[0058] Figure 3 The flowchart of the processing method according to the embodiment of the present disclosure is schematically shown.

[0059] like Figure 3 As shown, the method includes operations S301 to S303.

[0060] In operation S301, environmental parameters of a first environment where the object to be identified is located are adjusted according to a determined adjustment strategy based at least on color information of the object to be identified, wherein the adjustment strategy at least makes the color of the first environment where the object to be identified is different from that of the object to be identified.

[0061] In this embodiment, the color information of the object to be identified may be color information determined by image processing, or may be color information input by a user, or may be color information received from other electronic devices. Environmental parameters include, but are not limited to, any one or more of color, fill light brightness, compensation color, and fill light duration. Adjustment strategies include, but are not limited to, at least one of the following: fill light related strategies, switching background related strategies, etc. Among them, the fill light related strategy may be to fill light the object to be identified and / or the ambient light by a fill light, etc. The switching background related strategy may switch the background of the environment in which the object to be identified is located, such as when the object to be identified is placed on a device that can adjust the display image (such as a display panel, a backlight source that can adjust the color, etc.), and the adjustment of the environmental parameters is achieved by adjusting the display image. This method may make the color of the first environment in which the object to be identified is located different from that of the object to be identified, which helps to accurately determine the image of the object to be identified from the image.

[0062] In one embodiment, adjusting the environmental parameters of the first environment where the object to be identified is located according to a determined adjustment strategy at least based on the color information of the object to be identified may include the following operations.

[0063] First, the color type and distribution of the object to be identified are determined based on the color information of the object to be identified. For example, an image including the object to be identified and the environment in which the object to be identified is located can be taken first, and image processing such as color recognition can be performed on the image to determine the color type and distribution of the object to be identified. For example, the image includes four colors: red, yellow, blue and white, wherein the approximate area where the object to be identified is located includes the four colors: red, yellow, blue and white, the edge area of ​​the object to be identified mainly includes blue and white, and red and yellow are in the internal area of ​​the object to be identified, etc.

[0064] Then, a first adjustment strategy matching the color type and distribution is determined to compensate the first color to the area to be identified where the object to be identified is located based on the first adjustment strategy. For example, since the edge area of ​​the object to be identified mainly includes blue and white, and the background color of the first environment where the object to be identified is located is white, it is necessary to adjust the background color of the first environment to a color with a large color difference between white and blue, such as red, yellow, etc. In addition, the first adjustment strategy may also include a background color adjustment method: such as adjusting the background color by fill light or adjusting the background color by adjusting the display image. In addition, the first adjustment strategy may also include information on the duration of adjusting the background color. Specifically, the first adjustment strategy may be determined by checking a database or the like. For example, the database stores a mapping relationship between the color type and distribution and the first adjustment strategy. Each strategy in the first adjustment strategy may be determined by simulation, calibration, or the like.

[0065] The recognition degree between the first color and the color type and distribution of the object to be identified meets the first threshold. For example, when the recognition degree between a certain color and the color type and distribution of the object to be identified exceeds 90%, the certain color can be used as the first color. The distribution of the color is such as 90% of the distribution area is different from the first color.

[0066] The mapping relationship between the color type and distribution and the first adjustment strategy can be as follows. For a specified object (such as a test sample, including multiple colors distributed in multiple areas), the environmental parameters are adjusted based on the first adjustment strategy, and the images of the object to be identified are divided for the images taken by various first adjustment strategies to obtain the image segmentation accuracy of the object to be identified. Then, the mapping relationship between the color type and distribution and the first adjustment strategy is calibrated based on the image segmentation accuracy. Among them, the image segmentation accuracy refers to the ratio of the area (or the number of pixels included) of the segmented image to the area (or the number of pixels included) of the accurate image (such as the image determined by calibration) after the image of the object to be identified is automatically segmented from the image taken by the camera. The mapping relationship between the color type and distribution and the first adjustment strategy can be calibrated in the following manner: after determining the first adjustment strategy based on the color type and distribution, adjusting the environmental parameters of the first environment based on the first adjustment strategy, and then obtaining the image of the object to be identified, performing image segmentation of the object to be identified, and determining the mapping relationship between the color type and distribution and the first adjustment strategy based on whether the image segmentation accuracy of the object to be identified exceeds a preset accuracy threshold (such as establishing an association relationship when the image segmentation accuracy of the object to be identified exceeds a preset accuracy threshold).

[0067] In another embodiment, adjusting the environmental parameters of the first environment where the object to be identified is located according to a determined adjustment strategy at least based on the color information of the object to be identified may include the following operations.

[0068] First, the posture information of the object to be identified in the area to be identified is obtained, wherein the posture information may include: standing and lying posture information, folding posture information, etc. of the object to be identified.

[0069] Then, a second adjustment strategy for adjusting the environmental parameters is determined based on the posture information and the color type and distribution of the object to be identified, so as to determine the compensation parameters of the area to be identified based on the second adjustment strategy.

[0070] Next, based at least on the compensation parameters, a second color and a brightness matching the second color are compensated to the object to be identified in the area to be identified. The second color is different from the color type of the object to be identified. In this embodiment, the compensation parameters may include not only the compensation color but also the compensation brightness. The sensitivity of the image sensor to different colors is not exactly the same. For colors with high sensitivity, the brightness of the compensation light can be appropriately reduced to save energy and increase the life of the fill light. For colors with low sensitivity, the brightness of the compensation light can be appropriately increased to improve the recognition effect.

[0071] Taking adjusting the environmental parameters of the first environment by means of compensation light as an example, compensating the brightness matching the second color to the object to be identified in the area to be identified based on at least the compensation parameters may include the following operations.

[0072] First, a brightness-adjustable light source with the same color as the second color is determined based on the posture information. The brightness-adjustable light sources can be distributed in different directions of the object to be identified. A brightness-adjustable light source can emit light of one or more colors. For example, a brightness-adjustable light source integrates a blue light source (such as a blue light LED) and a yellow light source (such as a yellow light LED), and the brightness of the blue light and / or the brightness of the yellow light can be adjusted by adjusting the current applied to the blue light source and / or the yellow light source. In addition, when adjusting the brightness of the blue light and the brightness of the yellow light, the color can also be adjusted (such as by adjusting the ratio of blue light and yellow light to achieve blue light, green light, yellow light or white light, etc.). For another example, multiple monochromatic light sources with adjustable brightness can be set separately.

[0073] Then, the brightness-adjustable light source is controlled based on the compensation parameter to compensate the object to be identified with light of a brightness matching the second color.

[0074] In operation S303, a first image of the object to be identified is obtained, so as to obtain identification information of the object to be identified based on at least a recognition process of the first image.

[0075] The recognition processing of the first image may include the following operations: extracting a product image from the captured first image, then extracting features of the product image to obtain image features, and then obtaining an image recognition result based on the image features. In addition, image preprocessing may be performed on the first image and / or the product image.

[0076] In order to facilitate understanding of the technical solution of the present disclosure, Figure 4-5 The prior art is described as an example, and then based on the same scenario, Figure 6-7 Take this as an example to illustrate.

[0077] Figure 4The schematic diagram of the object to be detected in the first scene in the prior art is schematically shown.

[0078] like Figure 4 As shown, combined Figure 1 The settlement station embodiment of FIG. Figure 4 As shown in the figure above, the commodity placed on the settlement area 2 includes color areas 51 and 52. Among them, the color of color area 51 is the same or similar to that of settlement area 2. For example, the colors of the two are difficult to distinguish in the captured image. In the prior art, when performing image recognition on commodities, since the colors of color area 51 and settlement area 2 are difficult to distinguish, it is likely that the commodity image obtained is as follows: Figure 4 The area shown in FIG52 below, while image area 51 may be misjudged as settlement area 2. Therefore, the result of image recognition may be inaccurate due to the above misjudgment.

[0079] Figure 5 The schematic diagram of the object to be detected in the second scene in the prior art is schematically shown.

[0080] like Figure 5 As shown, combined Figure 1 The settlement station embodiment of FIG. Figure 5 As shown in the figure above, the commodity placed on the settlement area 2 includes color areas 51 and 52. Among them, the color of color area 52 is the same or similar to that of settlement area 2. For example, the colors of the two are difficult to distinguish in the captured image. When performing image recognition on commodities in the prior art, since the colors of color area 52 and settlement area 2 are difficult to distinguish, it is likely that the commodity image obtained is as follows: Figure 4 The area shown in Figure 51 below, while image area 52 may be misjudged as settlement area 2. Therefore, the result of image recognition may be inaccurate due to the above misjudgment.

[0081] Figure 6 A schematic diagram of an object to be detected in a first scene according to an embodiment of the present disclosure is schematically shown.

[0082] like Figure 6 As shown, Figure 6 The above picture is Figure 4 In the scene shown in FIG. 1 , when it is detected that the image includes two colors, a compensating color complementary to the above two colors can be found, and then the environment is supplemented with light, and the following can be obtained: Figure 6 The result is shown in the figure below. At this time, the color of the checkout area 2 is quite different from the colors of the color areas 51 and 52 on the product, which can effectively improve the recognition accuracy of the product image, and further improve the accuracy of the product information based on the product image recognition.

[0083] Figure 7A schematic diagram of an object to be detected in a second scene according to an embodiment of the present disclosure is schematically shown.

[0084] like Figure 7 As shown, Figure 7 The above picture is Figure 5 In the scene shown in FIG. 1 , when it is detected that the image includes two colors, a compensating color complementary to the above two colors can be found, and then the environment is supplemented with light, and the following can be obtained: Figure 7 The result is shown in the figure below. At this time, the color of the checkout area 2 is quite different from the colors of the color areas 51 and 52 on the product, which can effectively improve the recognition accuracy of the product image, and further improve the accuracy of the product information based on the product image recognition.

[0085] In another embodiment, obtaining the identification information of the object to be identified based at least on the recognition processing of the first image may include the following operations.

[0086] First, the partition granularity of the first image is determined based at least on the attribute information of the object to be identified. The attribute information of the object to be identified includes but is not limited to at least one of the following: item type, configuration attributes input according to the user's item preprocessing requirements, etc. The attribute information of the object to be identified can be a default attribute or a configured information, such as product name, quantity, price, total price, manufacturer, model, etc.

[0087] Then, the first image is partitioned according to the partition granularity to remove environmental noise and obtain at least one image partition of the object to be identified. For example, one or more commodity images are determined from the first image (such as allowing multiple commodities to be identified simultaneously), and images other than the commodity images in the first image are removed as environmental noise, that is, the background image can be removed.

[0088] Next, vector features of the at least one image partition are extracted based at least on the attribute information, so as to mark the object to be identified based at least on the vector features, and obtain identification information of the object to be identified. The vector feature extraction process of the image partition can be the same as the prior art. For example, the vector features can include vectors for at least one of the following: edge, corner, area, ridge, color, texture, shape, spatial relationship, etc.

[0089] Among them, different partition granularities correspond to different numbers of edge pixel points of image partitions.

[0090] Specifically, partitioning the first image according to the partition granularity to remove environmental noise and obtain at least one image partition of the object to be identified may include the following operations.

[0091] First, the image gradient of the first image at different pixel points is obtained. For example, the image gradient can be a grayscale value or a pixel value. In this embodiment, a grayscale image or an original color image can be used to partition the image through edge detection to obtain an image of the object to be identified. Among them, the purpose of the edge detection method is to detect points in the image where parameters such as brightness change significantly. Significant changes in image attributes usually reflect important events and changes in the attributes. For example, discontinuities in depth, discontinuities in surface orientation, changes in material properties, changes in scene lighting, etc. Through edge detection, the amount of data can be greatly reduced, and information that can be considered irrelevant can be eliminated, retaining important structural properties of the image.

[0092] Then, the pixel points whose image gradient is greater than the first threshold are determined as the edge pixel points of the first image. Specifically, edge detection can be performed based on search and zero-crossing methods. Among them, the search-based method detects the boundary by finding the maximum and minimum values ​​in the first-order derivative of the image, usually locating the boundary in the direction of the maximum gradient. The zero-crossing-based method finds the boundary by finding the zero crossing of the second-order derivative of the image, usually the zero crossing point of the Laplacian operator (Laplacian) or the zero crossing point represented by nonlinear difference. The first threshold can be determined by calibration and other methods.

[0093] Next, according to the partition granularity, partition edge pixel points are determined from the determined edge pixel points, so as to form at least one image partition based on the partition edge pixel points.

[0094] Figure 8 A schematic diagram of edge pixels according to an embodiment of the present disclosure is schematically shown. Fig. 9 A schematic diagram of edge pixels according to another embodiment of the present disclosure is schematically shown.

[0095] like Figure 8 and Fig. 9 The figure shows the pixel points of the same pattern at different partition granularities. When the partition granularity is different, the number of edge pixel points determined is different. Generally, the smaller the partition granularity, the more edge pixel points there are, and the obtained edge is closer to the real edge of the image.

[0096] Then, based on the color information of the object to be identified, the image partition corresponding to the first environment is removed from the at least one image partition to obtain at least one image partition of the object to be identified.

[0097] The following combination Fig.10 and Fig.11 An exemplary description is given of a brightness-adjustable light source.

[0098] Fig.10 A schematic diagram of a light source of an electronic device according to an embodiment of the present disclosure is schematically shown.

[0099] like Fig.10 As shown, multiple brightness adjustable light sources 6 can be respectively arranged in one or more directions above the platform 1 and / or the settlement area 2. The multiple brightness adjustable light sources 6 can be monochromatic light sources or color adjustable light sources. The multiple brightness adjustable light sources 6 can be divided into multiple groups and respectively arranged in multiple directions, and each group can include multiple light sources of the same or different colors.

[0100] Fig.11 A schematic diagram of a light source of an electronic device according to another embodiment of the present disclosure is schematically shown.

[0101] like Fig.11 As shown, the settlement area 2 can be a transparent or semi-transparent area. A plurality of brightness-adjustable light sources 6 can be respectively arranged under the settlement area 2. The plurality of brightness-adjustable light sources 6 can be monochromatic light sources or color-adjustable light sources. The plurality of brightness-adjustable light sources 6 can be divided into a plurality of groups and respectively arranged in a plurality of directions, and each group can include a plurality of light sources of the same or different colors.

[0102] The above method can be used to adjust environmental parameters in a simple and quick manner, with low cost and easy to promote.

[0103] Fig.12 The flowchart schematically shows a processing method according to another embodiment of the present disclosure.

[0104] like Fig.12 As shown, the method may further include operation S1201.

[0105] It is detected that the object to be identified is in the area to be identified of the first environment, and a second image of the object to be identified is obtained to determine color information of the object to be identified based on the second object.

[0106] For example, the area to be identified may be the settlement area 2. When an object is detected to be placed on the settlement area 2, a photo may be taken to obtain a second image of the object to be identified and determine the color information of the object to be identified. The determination of whether there is an object on the settlement area 2 may be performed by an image sensor, an electronic scale, etc. In addition, the determination of whether there is an object on the settlement area 2 may be performed by a signal input manually, such as clicking a setting button, etc.

[0107] It should be noted that, for a camera set at a fixed position, the camera's field of view can be used as the area to be identified. In addition, when determining the color information of the object to be identified, all colors included in the area to be identified can be used as the color information of the object to be identified. The above method can be used to determine the color information of the object to be identified simply and quickly.

[0108] In another embodiment, the method may further include operation S1203.

[0109] In operation S1203, the first image of the object to be identified is compared with samples in the sample database to output prompt information for updating the sample database or identification information of the object to be identified.

[0110] In this embodiment, the sample most similar to the image can be determined from the sample database by image similarity comparison, and then the identification information of the object to be identified can be determined based on the identification information of the sample. The sample database can include a mapping relationship between the sample and the identification information.

[0111] In addition, taking the checkout counter as an example, the postures of the items placed on the checkout counter can be various, such as placement position, placement angle, bending degree, folding degree, etc. Therefore, there can be many images for a commodity. When constructing a sample database, for a sample, only a limited number of photos of postures can be associated with the corresponding identification information. However, if the photos of samples in different postures can be increased, it will help to improve the recognition accuracy of the object to be detected. Therefore, the sample database can be updated based on the first image of the object to be identified. The update operation can be performed automatically, or the first image of the object to be identified can be sent to the auditor for review and approval, and then the sample database is updated. In this way, as the number of times the sample data is used increases, the accuracy of identifying the object to be identified based on it increases.

[0112] The processing method provided by the embodiment of the present disclosure adjusts the environmental parameters (such as the background color and brightness of the checkout counter, etc.) by hardware dimming, such as optimizing the checkout counter into a transparent glass counter, adding colored lights inside the counter, and adjusting the environmental parameters by controlling the light color and light intensity. Specifically, first pre-collect images including the goods, identify the colors in the images, and then calculate the appropriate background color according to a specific algorithm, and automatically adjust the environmental parameters, such as adjusting the background light color and light intensity, so that the product image and the checkout counter background are clearly separated, and the accuracy of image segmentation is improved, thereby achieving improved accuracy in product recognition.

[0113] Fig.13 The block diagram schematically shows a processing device according to an embodiment of the present disclosure.

[0114] like Fig.13 As shown, the electronic device 1300 may include an environment parameter adjustment module 1310 and a first image acquisition module 1330 .

[0115] Among them, the environmental parameter adjustment module 1310 is used to adjust the environmental parameters of the first environment where the object to be identified is located according to a determined adjustment strategy at least based on the color information of the object to be identified, and the adjustment strategy at least makes the color of the first environment where the object to be identified is different from that of the object to be identified.

[0116] The first image obtaining module 1330 is used to obtain a first image of the object to be identified, so as to obtain identification information of the object to be identified based at least on the recognition processing of the first image.

[0117] In one embodiment, the environmental parameter adjustment module 1310 may include: an object color determination submodule and a first adjustment strategy determination submodule.

[0118] The object color determination submodule is used to determine the color type and distribution of the object to be identified based on the color information of the object to be identified.

[0119] The first adjustment strategy determination submodule is used to determine a first adjustment strategy that matches the color type and distribution.

[0120] The first adjustment strategy compensates a first color to the to-be-recognized area where the to-be-recognized object is located, wherein the degree of recognition between the first color and the color type and distribution of the to-be-recognized object meets a first threshold.

[0121] In another embodiment, the environmental parameter adjustment module may include: a posture acquisition submodule, a first adjustment strategy determination submodule and a compensation submodule.

[0122] The posture acquisition submodule is used to obtain the posture information of the object to be identified in the area to be identified where the object is located.

[0123] The first adjustment strategy determination submodule is used to determine a second adjustment strategy for adjusting the environmental parameters based on the posture information and the color type and distribution of the object to be identified, so as to determine the compensation parameters of the area to be identified based on the second adjustment strategy.

[0124] The compensation submodule is used to compensate the second color and the brightness matching the second color to the object to be identified in the area to be identified based at least on the compensation parameter, wherein the second color is different from the color type of the object to be identified.

[0125] Specifically, the compensation submodule may include a light source determination unit and a compensation unit.

[0126] The light source determination unit is used to determine a brightness-adjustable light source having the same color as the second color based on the posture information.

[0127] The compensation unit is used to control the brightness-adjustable light source to compensate the to-be-identified object with light of brightness matching the second color based on the compensation parameter.

[0128] In another embodiment, the apparatus 1300 may further include an image recognition module, which may include a granularity determination submodule, a partitioning submodule, and an identification information acquisition submodule.

[0129] The granularity determination submodule is used to determine the partition granularity of the first image based at least on the attribute information of the object to be identified.

[0130] The partitioning submodule is used to partition the first image according to the partitioning granularity to remove environmental noise and obtain at least one image partition of the object to be identified.

[0131] The identification information acquisition submodule is used to extract the vector features of the at least one image partition based on at least the attribute information, so as to mark the object to be identified based on at least the vector features and obtain the identification information of the object to be identified. Different partition granularities correspond to different numbers of edge pixel points of the image partition.

[0132] For example, the partitioning submodule may include: an image gradient obtaining unit, an edge pixel point determining unit, a partitioning unit, and a screening unit.

[0133] The image gradient obtaining unit is used to obtain the image gradient of the first image at different pixel points.

[0134] The edge pixel point determination unit is used to determine the pixel points whose image gradient is greater than a first threshold as edge pixel points of the first image.

[0135] The partitioning unit is used to determine partition edge pixel points from the determined edge pixel points according to the partition granularity, so as to form at least one image partition based on the partition edge pixel points.

[0136] The screening unit is used to remove the image partition corresponding to the first environment from the at least one image partition based on the color information of the object to be identified, so as to obtain at least one image partition of the object to be identified.

[0137] In another embodiment, the device 1300 may further include: a second image acquisition module. The second image acquisition module is used to detect that the object to be identified is in the area to be identified in the first environment, obtain a second image of the object to be identified, and determine the color information of the object to be identified based on the second object.

[0138] In another embodiment, the apparatus 1300 may further include a prompt module. The prompt module is used to compare the first image of the object to be identified with the samples in the sample database to output prompt information for updating the sample database or identification information of the object to be identified.

[0139] The operations performed by the modules, submodules, and units included in the device 1300 can be found in the above description and will not be repeated here.

[0140] According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits, or at least part of the functions of any one of them can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems on chips, systems on substrates, systems on packages, application specific integrated circuits (ASICs), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules, submodules, units, and subunits can be at least partially implemented as computer program modules, and when the computer program modules are run, the corresponding functions can be performed.

[0141] For example, any multiple of the environmental parameter adjustment module 1310 and the first image acquisition module 1330 can be combined in one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the environmental parameter adjustment module 1310 and the first image acquisition module 1330 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in any appropriate combination of any of them. Alternatively, at least one of the environmental parameter adjustment module 1310 and the first image acquisition module 1330 can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding function can be executed.

[0142] Fig.14A block diagram of an electronic device according to an embodiment of the present disclosure is schematically shown. Fig.14 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0143] like Fig.14 As shown, the electronic device 1400 includes: one or more processors 1410, a computer-readable storage medium 1420, an image acquisition component 1430 and a light source component 1440. The image acquisition component 1430 is used to acquire images. The light source component 1440 is used to provide light sources of multiple colors. The electronic device can perform the method according to the embodiment of the present disclosure.

[0144] Specifically, the processor 1410 may include, for example, a general-purpose microprocessor, an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 1410 may also include an onboard memory for cache purposes. The processor 1410 may be a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0145] Computer-readable storage medium 1420, for example, can be a non-volatile computer-readable storage medium, and specific examples include but are not limited to: magnetic storage devices, such as magnetic tapes or hard disks (HDDs); optical storage devices, such as compact disks (CD-ROMs); memories, such as random access memories (RAMs) or flash memories, and the like.

[0146] The computer-readable storage medium 1420 may include a program 1421 , which may include code / computer-executable instructions that, when executed by the processor 1410 , cause the processor 1410 to perform a method according to an embodiment of the present disclosure or any variation thereof.

[0147] Program 1421 may be configured to have, for example, a computer program code including a computer program module. For example, in an example embodiment, the code in program 1421 may include one or more program modules, for example, including program module 1421A, program module 1421B, ... It should be noted that the division method and number of program modules are not fixed, and those skilled in the art may use appropriate program modules or program module combinations according to actual conditions, and when these program module combinations are executed by processor 1410, processor 1410 may execute the method according to an embodiment of the present disclosure or any variation thereof.

[0148] According to an embodiment of the present disclosure, the processor 1410 may interact with the computer-readable storage medium 1420 to execute a method according to an embodiment of the present disclosure or any variation thereof.

[0149] According to an embodiment of the present disclosure, at least one of the environment parameter adjustment module 1310 and the first image acquisition module 1330 may be implemented as a reference. Fig.14 The program modules described herein, when executed by the processor 1410, can implement the corresponding operations described above.

[0150] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0151] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0152] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0153] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0154] Although the present disclosure has been shown and described with reference to specific exemplary embodiments of the present disclosure, it should be understood by those skilled in the art that various changes in form and details may be made to the present disclosure without departing from the spirit and scope of the present disclosure as defined by the appended claims and their equivalents. Therefore, the scope of the present disclosure should not be limited to the above-mentioned embodiments, but should be determined not only by the appended claims, but also by the equivalents of the appended claims.

Claims

1. A processing method comprising: adjusting the environmental parameters of the first environment in which the object to be identified is located according to a determined adjustment strategy based at least on the color information of the object to be identified, wherein the adjustment strategy at least makes the color of the first environment in which the object to be identified is located different from that of the object to be identified, wherein the adjustment strategy includes at least one of a fill light related strategy or a background switching related strategy, and the background switching related strategy includes switching the background light source or background image of the environment in which the object to be identified is located; and A first image of the object to be identified under the adjusted environmental parameters is obtained, so as to obtain identification information of the object to be identified based at least on recognition processing of the first image.

2. The method according to claim 1, wherein: The step of adjusting the environmental parameters of the first environment in which the object to be identified is located according to the determined adjustment strategy at least based on the color information of the object to be identified includes: Determine the color type and distribution of the object to be identified based on the color information of the object to be identified; Determine a first adjustment strategy that matches the color type and distribution, so as to compensate a first color to the to-be-recognized area where the to-be-recognized object is located based on the first adjustment strategy; The degree of recognition between the first color and the color type and distribution of the object to be identified meets a first threshold.

3. The method according to claim 1, wherein: The step of adjusting the environmental parameters of the first environment in which the object to be identified is located according to the determined adjustment strategy at least based on the color information of the object to be identified includes: Obtaining posture information of the object to be identified in the area to be identified; Determining a second adjustment strategy for adjusting the environmental parameter based on the posture information and the color type and distribution of the object to be identified, so as to determine a compensation parameter of the area to be identified based on the second adjustment strategy; Compensating the object to be identified in the area to be identified with a second color and a brightness matching the second color based at least on the compensation parameter; The second color is different from the color type of the object to be identified.

4. The method according to claim 3, wherein: Compensating the brightness matching the second color to the object to be identified in the area to be identified based at least on the compensation parameter, comprising: Determine, based on the posture information, a brightness-adjustable light source having the same color as the second color; The brightness-adjustable light source is controlled based on the compensation parameter to compensate the object to be identified with light of brightness matching the second color.

5. The method according to claim 1, wherein: The obtaining identification information of the object to be identified based at least on the recognition processing of the first image includes: Determining a partition granularity of the first image based at least on attribute information of the object to be identified; Partitioning the first image according to the partition granularity to remove environmental noise and obtain at least one image partition of the object to be identified; extracting the vector features of the at least one image partition based at least on the attribute information, so as to mark the object to be identified based at least on the vector features, and obtain identification information of the object to be identified; Among them, different partition granularities correspond to different numbers of edge pixel points of image partitions.

6. The method according to claim 5, wherein: Partitioning the first image according to the partition granularity to remove environmental noise and obtain at least one image partition of the object to be identified includes: Obtaining the image gradient of the first image at different pixel points; Determine pixels whose image gradient is greater than a first threshold as edge pixels of the first image; Determining partition edge pixel points from the determined edge pixel points according to the partition granularity, so as to form at least one image partition based on the partition edge pixel points; Based on the color information of the object to be identified, the image partition corresponding to the first environment is removed from the at least one image partition to obtain at least one image partition of the object to be identified.

7. The method according to claim 1, further comprising: It is detected that the object to be identified is in the area to be identified of the first environment, and a second image of the object to be identified is obtained to determine color information of the object to be identified based on the second image.

8. The method according to any one of claims 1 to 7, further comprising: The first image of the object to be identified is compared with the samples in the sample database to output prompt information for updating the sample database or identification information of the object to be identified.

9. A processing device comprising: an environmental parameter adjustment module, configured to adjust the environmental parameters of the first environment in which the object to be identified is located according to a determined adjustment strategy based at least on the color information of the object to be identified, wherein the adjustment strategy at least makes the color of the first environment in which the object to be identified is located different from that of the object to be identified, wherein the adjustment strategy includes at least one of a fill light related strategy or a background switching related strategy, and the background switching related strategy includes switching the background light source or background image of the environment in which the object to be identified is located; and The first image acquisition module is used to obtain a first image of the object to be identified under the adjusted environmental parameters, so as to obtain identification information of the object to be identified based at least on recognition processing of the first image.

10. An electronic device comprising: An image acquisition component, used for acquiring images; A light source assembly, used for providing light sources of multiple colors; one or more processors; as well as A computer-readable storage medium, used for storing one or more computer programs, wherein when the computer programs are executed by the processor, the method according to any one of claims 1 to 7 is implemented.