Clothes image acquisition method and device, storage medium and clothes image acquisition device

Adjusting the fill light through the clothing image acquisition equipment solves the problems of uneven ambient light and excessive shadow area, improves the lighting uniformity of the clothing picture and the modeling quality of the three-dimensional model, and improves the user experience.

CN119233054APending Publication Date: 2024-12-31QINGDAO HAIER WASHING MASCH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310798944.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-30
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

In the prior art, when taking clothing pictures, the ambient light is uneven and the shadow area is too large, resulting in a reduced modeling quality and user experience of the 3D virtual fitting model.

Method used

The brightness and color of the initial clothing picture are obtained through the clothing image acquisition device, the brightness and position of the target fill light are calculated, and the fill light is adjusted to obtain the target clothing picture with uniform light, so as to improve the light uniformity of the image.

Benefits of technology

It improves the modeling quality and user experience of the three-dimensional model, ensures even lighting of the clothes pictures, and enhances the display of the clothing matching effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119233054A_ABST
    Figure CN119233054A_ABST
Patent Text Reader

Abstract

The invention provides a clothes image acquisition method and device, a storage medium and a clothes image acquisition device, and relates to the technical field of image processing and intelligent devices. The clothes image acquisition method comprises the following steps: acquiring a target light-supplementing lamp position according to a brightness difference between the brightness of clothes in an initial clothes picture sent by clothes image acquisition equipment and the final brightness, and acquiring the brightness of the target light-supplementing lamp according to the color of the clothes in the initial clothes picture and the final brightness, and sending the target light supplementing lamp position and the target light supplementing lamp brightness to the clothes image acquisition equipment, and obtaining a target clothes picture of which the clothes brightness is the final brightness according to the returned picture. Through the mode, the image information acquired by the clothes image acquisition equipment is uniform in illumination, the modeling quality of the three-dimensional model acquired according to the image is improved, and meanwhile, the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of image processing and intelligent devices, and specifically relates to a clothing image acquisition method, device, storage medium and clothing image acquisition device. Background Art

[0002] With the continuous improvement of technology and people's growing user needs, more and more users buy clothes online. However, online shopping now refers to clothing display pictures directly, or refers to the fitting effects of models in the live broadcast room to determine whether to buy. Since users cannot predict their own wearing effects, they will return the goods later, which affects the user's purchasing experience.

[0003] In the face of the problem that users cannot predict their own wearing effects, the existing technology builds a 3D virtual fitting model based on clothing pictures and user data. Users can check the compatibility of the clothes with themselves based on the 3D virtual fitting model and then choose whether to buy.

[0004] However, the above methods rely on the quality of the reference image. When the light in the shooting environment is uneven, the shadow area on the clothing image is too large, which reduces the modeling quality and user experience of the 3D virtual fitting model. Summary of the invention

[0005] In order to solve the above problems in the prior art, the present application provides a clothing image acquisition method, device, storage medium and clothing image acquisition device.

[0006] In a first aspect, the present application provides a clothing image acquisition method, the method comprising:

[0007] Acquire an initial clothing picture sent by a clothing image acquisition device, wherein the initial clothing picture is a picture of clothing acquired when the clothing image acquisition device does not turn on a fill light;

[0008] Acquire clothing information of the clothing according to the initial clothing picture, wherein the clothing information includes brightness of the clothing;

[0009] Acquire fill light information of the clothing image acquisition device according to the clothing information and the target brightness, wherein the fill light information includes the target fill light brightness and the target fill light position;

[0010] A target clothing picture is acquired according to the candidate clothing photos sent by the clothing image acquisition device, wherein the candidate clothing photos are photos acquired by the clothing image acquisition device according to the fill light information.

[0011] In a possible implementation manner, the clothing information further includes clothing color, and acquiring the clothing information of the clothing according to the initial clothing picture includes:

[0012] Identify the color of clothing in the initial clothing picture, and convert the initial clothing picture from the RGB space to the HIS space, wherein the RGB space is used to display the color of the picture and the HIS space is used to display the brightness of the picture;

[0013] Dividing the converted initial clothing image into a plurality of areas to be adjusted by a detection frame, wherein the detection frame is a rectangular area containing a plurality of grids, and the number of the areas to be adjusted is the same as the number of the grids;

[0014] The brightness of the clothes in each of the areas to be adjusted is obtained.

[0015] In a possible implementation manner, acquiring fill light information of the clothing image acquisition device according to the clothing information and target brightness includes:

[0016] Acquire the target fill light brightness according to the clothing color, the target brightness and the natural light intensity;

[0017] Acquire a plurality of new clothing pictures sent by the clothing processing device, wherein the new clothing pictures are pictures acquired when the brightness of the fill light is the target fill light brightness and the fill light is in a preset position, and the number of the new clothing pictures is the same as the number of the preset positions;

[0018] The target fill light position is obtained according to the multiple new clothing pictures.

[0019] In a possible implementation, acquiring the target fill light brightness according to the clothing color, the target brightness, and the natural light intensity includes:

[0020] Obtain a target brightness range corresponding to the target brightness;

[0021] Acquire the corresponding natural light intensity range according to the natural light intensity

[0022] According to the target brightness range, the natural light intensity range and the clothing color, the target fill light brightness is obtained from a preset relationship, wherein the preset relationship is used to indicate the relationship between the target brightness range, the natural light intensity range, the clothing color and the target fill light brightness.

[0023] In a possible implementation, acquiring the target fill light position according to the multiple new clothing images includes:

[0024] Convert each of the new clothing images from the RGB space to the HIS space, and obtain the brightness of the new area to be adjusted according to the detection frame;

[0025] Obtaining a brightness angle between the light of the fill light irradiating the local clothing corresponding to each grid in the detection frame and a vertical line of the local clothing when the fill light is in the preset position;

[0026] According to the brightness of the plurality of new areas to be adjusted corresponding to each grid and the brightness angle, acquiring the brightness change rate corresponding to each grid;

[0027] Acquire a target angle according to the brightness change rate and the target brightness;

[0028] The target fill light position corresponding to each grid is obtained according to the target angle, so that the new brightness angle is equal to the target angle.

[0029] In a possible implementation, acquiring a target clothing image according to the candidate clothing photo sent by the clothing image acquisition device includes:

[0030] receiving a plurality of candidate clothing photos sent by the clothing processing device;

[0031] Acquire a partial photo corresponding to each of the adjusted clothing photos, wherein the partial photo is acquired according to the grid corresponding to the adjusted clothing photo;

[0032] The partial photos are spliced ​​together to obtain a target clothing photo.

[0033] In a second aspect, the present application provides a clothing image acquisition device, comprising: a base, a mannequin, a fill light, a counterweight and a support rod, wherein the fill light is slidably connected to an edge of the base, the support rod and the counterweight are arranged relative to the base, the shooting device is fixed on the support rod, and the base is used to place the mannequin.

[0034] In a possible implementation, the fill light includes a lamp pole and a plurality of bulbs, the bulbs are fixed on the lamp pole, and the bulbs are used to adjust the brightness of the fill light.

[0035] In a third aspect, the present application provides a clothing image acquisition control device, comprising: a picture acquisition module, a clothing acquisition module and a fill light acquisition module, wherein:

[0036] The picture acquisition module is used to acquire an initial clothing picture sent by the clothing image acquisition device, wherein the initial clothing picture is a picture of clothing acquired when the clothing image acquisition device does not turn on the fill light;

[0037] The clothing acquisition module is used to acquire clothing information of the clothing according to the initial clothing picture, wherein the clothing information includes brightness of the clothing;

[0038] The fill light acquisition module is used to acquire the fill light information of the clothing image acquisition device according to the clothing information and the target brightness, wherein the fill light information includes the target fill light brightness and the target fill light position;

[0039] The picture acquisition module is further used to acquire a target clothing picture according to the candidate clothing photos sent by the clothing image acquisition device, wherein the candidate clothing photos are photos acquired by the clothing image acquisition device according to the fill light information.

[0040] In a possible implementation, the clothing acquisition module is further used to:

[0041] Identify the color of clothing in the initial clothing picture, and convert the initial clothing picture from the RGB space to the HIS space, wherein the RGB space is used to display the color of the picture and the HIS space is used to display the brightness of the picture;

[0042] Dividing the converted initial clothing image into a plurality of areas to be adjusted by a detection frame, wherein the detection frame is a rectangular area containing a plurality of grids, and the number of the areas to be adjusted is the same as the number of the grids;

[0043] The brightness of the clothes in each of the areas to be adjusted is obtained.

[0044] In a possible implementation manner, the fill light acquisition module is further used to:

[0045] Acquire the target fill light brightness according to the clothing color, the target brightness and the natural light intensity;

[0046] Acquire a plurality of new clothing pictures sent by the clothing processing device, wherein the new clothing pictures are pictures acquired when the brightness of the fill light is the target fill light brightness and the fill light is in a preset position, and the number of the new clothing pictures is the same as the number of the preset positions;

[0047] The target fill light position is obtained according to the multiple new clothing pictures.

[0048] In a possible implementation manner, the fill light acquisition module is further used to:

[0049] Obtain a target brightness range corresponding to the target brightness;

[0050] Acquire the corresponding natural light intensity range according to the natural light intensity

[0051] According to the target brightness range, the natural light intensity range and the clothing color, the target fill light brightness is obtained from a preset relationship, wherein the preset relationship is used to indicate the relationship between the target brightness range, the natural light intensity range, the clothing color and the target fill light brightness.

[0052] In a possible implementation manner, the fill light acquisition module is further used to:

[0053] Convert each of the new clothing images from the RGB space to the HIS space, and obtain the brightness of the new area to be adjusted according to the detection frame;

[0054] Obtaining a brightness angle between the light of the fill light irradiating the local clothing corresponding to each grid in the detection frame and a vertical line of the local clothing when the fill light is in the preset position;

[0055] According to the brightness of the plurality of new areas to be adjusted corresponding to each grid and the brightness angle, acquiring the brightness change rate corresponding to each grid;

[0056] Acquire a target angle according to the brightness change rate and the target brightness;

[0057] The target fill light position corresponding to each grid is obtained according to the target angle, so that the new brightness angle is equal to the target angle.

[0058] In a possible implementation manner, the image acquisition module is further used to:

[0059] receiving a plurality of candidate clothing photos sent by the clothing processing device;

[0060] Acquire a partial photo corresponding to each of the adjusted clothing photos, wherein the partial photo is acquired according to the grid corresponding to the adjusted clothing photo;

[0061] The partial photos are spliced ​​together to obtain a target clothing photo.

[0062] In a fourth aspect, the present application provides an electronic device, comprising: at least one processor and a memory, wherein:

[0063] The memory is used to store computer-executable instructions;

[0064] The at least one processor is used to execute the computer-executable instructions stored in the memory, so that the at least one processor executes the clothing image acquisition method as described in any one of the first aspects.

[0065] In a fifth aspect, the present application provides a computer storage medium, wherein the computer storage medium stores computer execution instructions, and when the computer execution instructions are executed by a processor, they are used to implement the clothing image acquisition method as described in any of the above items.

[0066] In a sixth aspect, the present application also provides a computer program product, including a computer program, which, when executed by a processor, can implement the steps of the clothing image acquisition method as described in any one of the above items.

[0067] The present application provides a clothing image acquisition method, device, storage medium and clothing image acquisition device, which obtains the target fill light position according to the brightness difference between the brightness of the clothing in the initial clothing picture sent by the clothing image acquisition device and the final brightness, obtains the target fill light brightness according to the clothing color in the initial clothing picture and the final brightness, sends the target fill light position and the target fill light brightness to the clothing image acquisition device, and obtains the target clothing picture with the clothing brightness as the final brightness according to the returned picture. Through the above method, the image information obtained by the clothing image acquisition device is evenly illuminated, the modeling quality of the three-dimensional model obtained according to the image is improved, and the user experience is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0069] Figure 1 A schematic diagram of a method for collecting clothing images provided in an embodiment of the present application Figure 1 ;

[0070] Figure 2 A schematic diagram of a method for collecting clothing images provided in an embodiment of the present application Figure 2 ;

[0071] Figure 3 A schematic diagram of a method for collecting clothing images provided in an embodiment of the present application Figure 3 ;

[0072] Figure 4 A schematic diagram of the structure of a clothing image acquisition control device provided in an embodiment of the present application;

[0073] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0074] Figure 6 A schematic diagram of the structure of a clothing image acquisition device provided in an embodiment of the present application.

[0075] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0076] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0077] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in sequences other than those illustrated or described herein, for example.

[0078] In the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0079] With the growth of technology and user demand, more and more users are pursuing efficiency in life. Compared with the traditional offline physical store shopping, more users choose online shopping. Users refer to the clothing display pictures on the purchase interface or the model fitting effects in the live broadcast room to choose whether to place an order. However, due to the lack of actual trying on, the return rate of online shopping clothes is relatively high.

[0080] The existing technology uses a 3D virtual fitting system to simulate the fitting effect of the user and the clothes they want to buy, so that the user can intuitively view the matching effect of the clothes without wasting time, which improves the user's shopping experience. However, this method is based on clothing photos and user photos. The modeling quality is closely related to the photo quality. However, when the shooting environment is not well lit, the shadow on the clothing picture is large, which reduces the modeling quality of the three-dimensional model and reduces the user experience.

[0081] The present application provides a clothing image acquisition method, which obtains the target fill light position according to the brightness difference between the brightness of the clothing in the initial clothing picture sent by the clothing image acquisition device and the final brightness, obtains the target fill light brightness according to the clothing color in the initial clothing picture and the final brightness, sends the target fill light position and the target fill light brightness to the clothing image acquisition device, and obtains the target clothing picture with the clothing brightness as the final brightness according to the returned picture. Through the above method, the image information obtained by the clothing image acquisition device is illuminated evenly, the modeling quality of the three-dimensional model obtained according to the image is improved, and the user experience is improved at the same time.

[0082] Next, the technical solution shown in the present application is described in detail through specific embodiments. It should be noted that the following embodiments can exist independently or in combination with each other, and the same or similar contents will not be described repeatedly in different embodiments.

[0083] Figure 1 This is a schematic diagram of the structure of a clothing image acquisition device provided in an embodiment of the present application. Figure 1 As shown, the clothing image acquisition device includes: a base, a mannequin, a fill light, a counterweight and a support rod, wherein:

[0084] The fill light is slidably connected to the edge of the base, the support rod and the counterweight are arranged relative to the base, the shooting device is fixed on the support rod, and the base is used to place the mannequin. The fill light includes a lamp pole and a plurality of bulbs, the bulbs are fixed on the lamp pole, and the bulbs are used to adjust the brightness of the fill light.

[0085] In this embodiment, the specific steps of adjusting the brightness of the fill light are:

[0086] Adjust the switch status of multiple bulbs fixed on the light pole to make the fill light brightness equal to the target fill light brightness. At the same time, the bulb can be selected with multiple brightness levels, and the brightness of the fill light of the clothing image acquisition device can be made equal to the target fill light brightness by combining the bulb level and the number of bulbs turned on.

[0087] Figure 2 A schematic diagram of a method for collecting clothing images is provided in the present application. Figure 1 .like Figure 2 As shown, the method includes:

[0088] S201. Acquire an initial clothing picture sent by a clothing image acquisition device, wherein the initial clothing picture is a picture of clothing acquired when the clothing image acquisition device does not turn on a fill light.

[0089] In this step, the initial clothing photo is used to obtain the target fill light brightness. After the clothing image acquisition device acquires the initial clothing photo, the initial clothing photo can be directly connected to upload to the server, or the user can operate to upload the initial clothing photo to the server.

[0090] Furthermore, when the clothing image acquisition device acquires clothing, the fill light needs to be turned off. This embodiment does not make any requirements on the position of the fill light for taking the initial clothing photo.

[0091] S202. Acquire clothing information of the clothing according to the initial clothing picture, where the clothing information includes clothing brightness and clothing color.

[0092] In this step, in order to improve the quality of the three-dimensional model obtained by modeling the initial clothing picture, the initial clothing picture needs to be clear, that is, the clothing in the initial clothing picture can fully present the details of the clothing. In order to achieve the requirement that the clothing in the initial clothing picture can fully present the details of the clothing, the brightness and saturation of the clothing in the initial clothing picture are required to be within an appropriate range.

[0093] Furthermore, since the intensity of natural light may not meet this requirement, it is necessary to use the fill light of the clothing image acquisition device to adjust the brightness and saturation of the clothing in the clothing photo. The brightness of the fill light needs to be adjusted according to the color of the clothing itself, so it is necessary to obtain the brightness and color of the clothing in the initial clothing picture.

[0094] Among them, since most clothes contain more colors, this embodiment adopts different color selection strategies according to the number of colors contained in the clothes. When the color of the clothes is a pure color, the pure color is the color of the clothes; if the color of the clothes is a non-pure color, the color system with the largest proportion of the clothes is the color of the clothes. For example: the clothes are 30% orange, 20% red, 35% yellow, and 15% red, then the color of the clothes is red.

[0095] Specifically, the steps of obtaining clothing brightness according to the initial clothing image are:

[0096] Converting the initial clothing image from the RGB space to the HIS space, wherein the RGB space is used to display the color of the image and the HIS space is used to display the brightness of the image;

[0097] Dividing the converted initial clothing image into a plurality of areas to be adjusted by a detection frame, wherein the detection frame is a rectangular area containing a plurality of grids, and the number of the areas to be adjusted is the same as the number of the grids;

[0098] The brightness of the clothes in each of the areas to be adjusted is obtained.

[0099] S203. Acquire fill light information of the clothing image acquisition device according to the clothing information and the target brightness, where the fill light information includes target fill light brightness and target fill light position.

[0100] In this step, the target brightness is the brightness that can clearly show the details of the clothing, that is, the brightness of the final clothing image used for modeling. This embodiment does not impose any limitation on the target brightness, and it can be selected according to actual conditions.

[0101] Specifically, the corresponding target fill light brightness can be obtained from the shooting knowledge base according to the color of the clothing, and the shooting knowledge base is a priori shooting experience. The obtained target fill light brightness is sent to the clothing image acquisition device, and a new clothing photo captured at this brightness is obtained. The target fill light position is obtained according to the brightness difference between the brightness of the clothing in the new clothing photo and the target brightness.

[0102] Furthermore, since the brightness of the fill light received by the clothes is inconsistent, the brightness of the clothes in the new clothes photo may be inconsistent. The brightness of the clothes corresponding to each grid can be obtained through the detection frame, and the average brightness can be calculated based on the brightness of multiple clothes, and the average brightness can be used as the brightness of the new clothes photo; the target fill light position corresponding to each grid can also be obtained based on the brightness of the clothes corresponding to each grid.

[0103] S204. Acquire a target clothing picture according to the candidate clothing photos sent by the clothing image acquisition device, wherein the candidate clothing photos are photos acquired by the clothing image acquisition device according to the fill light information.

[0104] In this step, when the average brightness is used as the brightness of the clothing, the target fill light position is obtained as one, and the candidate photo collected according to the fill light information is the target clothing photo.

[0105] Furthermore, when the new clothing image is split into multiple parts, multiple target fill light positions are obtained, and each grid of the detection frame corresponds to a target fill light position. That is, multiple candidate clothing photos are obtained based on the fill light information, and the target clothing photo is obtained by splicing the candidate clothing photos.

[0106] The present application provides a clothing image acquisition method, which obtains the target fill light position according to the brightness difference between the brightness of the clothing in the initial clothing picture sent by the clothing image acquisition device and the final brightness, obtains the target fill light brightness according to the clothing color in the initial clothing picture and the final brightness, sends the target fill light position and the target fill light brightness to the clothing image acquisition device, and obtains the target clothing picture with the clothing brightness as the final brightness according to the returned picture. Through the above method, the image information obtained by the clothing image acquisition device is illuminated evenly, the modeling quality of the three-dimensional model obtained according to the image is improved, and the user experience is improved at the same time.

[0107] Figure 3 A schematic diagram of a method for collecting clothing images is provided in the present application. Figure 2 The embodiment of the present application provides a detailed description of the steps of how to obtain the target fill light brightness and the target fill light position. Figure 3 As shown, the method includes:

[0108] S301. Obtain a target brightness range corresponding to the target brightness, obtain a corresponding natural light intensity range according to the natural light intensity, and obtain the target fill light brightness from a preset relationship according to the target brightness range, the natural light intensity range and the clothing color.

[0109] In this step, in order for the clothing image captured by the clothing image acquisition device to better show the characteristics of the clothing, the light of the fill light needs to be adjusted according to the parameters of the clothing itself and the light environment of the shooting location. Therefore, this embodiment obtains the target fill light brightness according to the target brightness, natural light intensity and clothing color.

[0110] Specifically, since the range of natural light intensity and target brightness is large, the natural light intensity and target brightness are divided into multiple ranges, and the target brightness of the fill light is obtained from the preset relationship according to the target brightness range corresponding to the target brightness, the natural light intensity range corresponding to the natural light intensity, and the color of the clothing. The preset relationship is used to indicate the relationship between the target brightness range, the natural light intensity range, the clothing color, and the target brightness of the fill light.

[0111] Furthermore, after obtaining the target fill light brightness, the service terminal sends the target fill light brightness to the clothing image acquisition device, first adjusts the fill light brightness to the target fill light brightness, and then obtains the target fill light position based on this brightness.

[0112] S302: Acquire multiple new clothing images sent by the clothing processing device, convert each of the new clothing images from the RGB space to the HIS space, and acquire the brightness of the new area to be adjusted according to the detection frame.

[0113] In this step, the new clothing picture is a picture obtained when the brightness of the fill light is the target fill light brightness and the fill light is at a preset position. The new clothing picture is used to obtain the target fill light position. This embodiment does not impose any limitation on the number and position of the preset positions. For example, the preset positions may be 4-5.

[0114] Furthermore, the number of the new clothing pictures is the same as the number of the preset positions. That is, each time the position of the fill light is adjusted, the clothing image acquisition device needs to capture a photo of the clothing and transmit the captured new clothing picture to the server. After receiving multiple new clothing pictures sent by the clothing image acquisition device, the clothing brightness of each new clothing picture is obtained. In this embodiment, the new clothing picture is split into multiple local pictures to obtain the clothing brightness of each local area, that is, the new clothing picture is divided into multiple new areas to be adjusted through the detection frame, and the clothing brightness of each new area to be adjusted is obtained. The specific operation steps have been described in detail in the aforementioned embodiment, so they will not be described in detail here.

[0115] S303, obtaining a brightness angle between a light irradiated by the fill light on the local clothing corresponding to each grid in the detection frame and a perpendicular line to the local clothing when the fill light is in the preset position.

[0116] In this step, when the fill light moves, the light received by the fill light at different parts of the clothing is inconsistent, and the brightness of the corresponding clothing is also inconsistent. Therefore, this embodiment divides the clothing into multiple grids of the detection frame, and calculates the rate of change of the brightness of the local clothing corresponding to each grid as the position of the fill light changes. Since the range of the local clothing is small, it is considered that the rate of change of the brightness of the local clothing corresponding to each grid as the position of the fill light changes is consistent.

[0117] S304: Obtain a brightness change rate corresponding to each grid according to the brightness of the plurality of areas to be adjusted corresponding to each grid and the brightness angle.

[0118] In this step, the brightness change rate is the amount of brightness change of the local clothing when the brightness angle corresponding to the vertical line between the fill light and the local clothing changes by one degree. The corresponding calculation formula is: brightness change rate = local clothing brightness change value / brightness angle change value.

[0119] Furthermore, there are N preset positions of the fill light, where N is an integer greater than or equal to 2. In order to make the calculated brightness change rate more accurate, N can be selected as a number greater than 2. The corresponding calculated brightness change rates are also multiple, and the multiple brightness change rates can be averaged, and the average brightness change rate is used as the brightness change rate corresponding to the grid.

[0120] For example: brightness angle 1: 15°,15, brightness angle 2: 30°45, the brightness angle change value is 15°, the brightness change value is 30, and the corresponding brightness change rate is 2. That is, for every degree change in the brightness angle, the brightness changes by 2. When the brightness angle is 0, the brightness of the local clothing is the starting brightness, that is, the brightness of the local clothing under natural light, and also the brightness of the area to be adjusted corresponding to the grid of the initial clothing photo.

[0121] S305. Obtain a target angle according to the brightness change rate and the target brightness, and obtain the target fill light position corresponding to each grid according to the target angle, so that a new brightness angle is equal to the target angle.

[0122] In this step, the target angle is the angle between the light from the fill light irradiating the local clothing and the vertical line of the local clothing when the local clothing brightness is the target brightness. The calculation process of the target angle is: (target brightness-initial brightness) / brightness change rate. Then, the target fill light position corresponding to each grid is obtained according to the target angle.

[0123] For example, when the initial brightness is 30, the target brightness is 50, and the brightness change rate is 2, the target angle = (50-30) / 2 = 10°. That is, the position of the fill light is obtained based on 10°.

[0124] The present application provides a method for capturing clothing images. First, the target fill light brightness is obtained according to the clothing color, target brightness and natural light intensity. At this brightness, the fill light position is adjusted to calculate the brightness change rate. Then, the target fill light position corresponding to the clothing brightness of each part of the clothing image is calculated when the clothing brightness is the target brightness. In this way, the clothing brightness in the clothing image is the target brightness that best presents the clothing effect. This improves the presentation effect of the clothing photo, and then improves the quality of modeling.

[0125] Figure 4 A schematic diagram of a method for collecting clothing images is provided in the present application. Figure 3 The embodiment of the present application provides a detailed description of the steps of how to obtain a target clothing photo according to the target fill light position. Figure 4 As shown, the method includes:

[0126] S401: receiving a plurality of candidate clothing photos sent by the clothing processing device.

[0127] In this step, when the server obtains the target fill light position corresponding to each grid, it sends it to the clothing image acquisition device, and the clothing image acquisition device controls the fill light to slide along the edge of the base until the current fill light position is the same as the target fill light position. The clothing image acquisition device then takes a photo of the clothing and sends it to the server, while controlling the fill light to move so that the new current brightness angle is the same as the next target fill light position, and takes a photo of the clothing until the fill light moves to each target fill light position and takes a photo.

[0128] When the server receives all candidate clothing photos sent by the clothing image acquisition device, it obtains the target clothing photo based on the multiple candidate clothing photos.

[0129] S402, obtaining a partial photo corresponding to each of the adjusted clothing photos, wherein the partial photo is obtained according to the grid corresponding to the adjusted clothing photo.

[0130] In this step, the brightness of the clothing in a certain partial clothing photo in each candidate clothing photo is the same as the target brightness. The partial clothing photo is the partial clothing photo corresponding to the grid corresponding to the candidate clothing photo.

[0131] Specifically, a detection frame is used to divide each candidate clothing photo, and a partial clothing photo corresponding to the grid corresponding to the candidate clothing photo is saved. The partial clothing photo is associated with the position of the corresponding grid and stored. The position of the grid is used to obtain the target clothing image later.

[0132] S403: stitching the partial photos together to obtain a target clothing photo.

[0133] In this step, when all candidate clothing photos have obtained corresponding partial clothing photos, the partial clothing photos are spliced ​​to obtain the target clothing picture. First, the image position bound to each partial clothing picture is obtained, and the image position is the position of the associated storage grid. The partial clothing picture is moved to the corresponding image position. After all partial clothing pictures are moved, all partial clothing pictures are spliced ​​together to obtain the final target clothing picture.

[0134] Furthermore, the target clothing image is used to establish a clothing three-dimensional model. The target clothing image is sent to the clothing three-dimensional model, and the clothing three-dimensional model outputted by the clothing three-dimensional model is received.

[0135] The present application provides a clothing image acquisition method, which adjusts the position of the fill light according to the target fill light position to shoot the clothing to obtain candidate clothing images, and saves and pieces together the parts of the clothing brightness of multiple candidate clothing images that are at the target brightness to obtain the target clothing image. Through the above method, the target clothing image finally acquired has uniform light, and the quality of the three-dimensional model obtained therefrom is improved, while also improving the user experience.

[0136] Figure 5 This is a schematic diagram of the structure of a clothing image acquisition control device provided in an embodiment of the present application. The control device comprises: an image acquisition module 501, a clothing acquisition module 502 and a fill light acquisition module 503, wherein:

[0137] The picture acquisition module 501 is used to acquire an initial clothing picture sent by a clothing image acquisition device, wherein the initial clothing picture is a picture of clothing acquired when the clothing image acquisition device does not turn on a fill light;

[0138] The clothing acquisition module 502 is used to acquire clothing information of the clothing according to the initial clothing picture, wherein the clothing information includes brightness of the clothing;

[0139] The fill light acquisition module 503 is used to acquire the fill light information of the clothing image acquisition device according to the clothing information and the target brightness, wherein the fill light information includes the target fill light brightness and the target fill light position;

[0140] The picture acquisition module 501 is further used to acquire a target clothing picture according to the candidate clothing pictures sent by the clothing image acquisition device, wherein the candidate clothing pictures are pictures acquired by the clothing image acquisition device according to the fill light information.

[0141] In a possible implementation, the clothing acquisition module 502 is further configured to:

[0142] Identify the color of clothing in the initial clothing picture, and convert the initial clothing picture from the RGB space to the HIS space, wherein the RGB space is used to display the color of the picture and the HIS space is used to display the brightness of the picture;

[0143] Dividing the converted initial clothing image into a plurality of areas to be adjusted by a detection frame, wherein the detection frame is a rectangular area containing a plurality of grids, and the number of the areas to be adjusted is the same as the number of the grids;

[0144] The brightness of the clothes in each of the areas to be adjusted is obtained.

[0145] In a possible implementation manner, the fill light acquisition module 503 is further configured to:

[0146] Acquire the target fill light brightness according to the clothing color, the target brightness and the natural light intensity;

[0147] Acquire a plurality of new clothing pictures sent by the clothing processing device, wherein the new clothing pictures are pictures acquired when the brightness of the fill light is the target fill light brightness and the fill light is in a preset position, and the number of the new clothing pictures is the same as the number of the preset positions;

[0148] The target fill light position is obtained according to the multiple new clothing images.

[0149] In a possible implementation manner, the fill light acquisition module 503 is further configured to:

[0150] Obtain a target brightness range corresponding to the target brightness;

[0151] Acquire the corresponding natural light intensity range according to the natural light intensity

[0152] According to the target brightness range, the natural light intensity range and the clothing color, the target fill light brightness is obtained from a preset relationship, wherein the preset relationship is used to indicate the relationship between the target brightness range, the natural light intensity range, the clothing color and the target fill light brightness.

[0153] In a possible implementation manner, the fill light acquisition module 503 is further configured to:

[0154] Convert each of the new clothing images from the RGB space to the HIS space, and obtain the brightness of the new area to be adjusted according to the detection frame;

[0155] Obtaining a brightness angle between the light of the fill light irradiating the local clothing corresponding to each grid in the detection frame and a vertical line of the local clothing when the fill light is in the preset position;

[0156] According to the brightness of the plurality of new areas to be adjusted corresponding to each grid and the brightness angle, acquiring the brightness change rate corresponding to each grid;

[0157] Acquire a target angle according to the brightness change rate and the target brightness;

[0158] The target fill light position corresponding to each grid is obtained according to the target angle, so that the new brightness angle is equal to the target angle.

[0159] In a possible implementation manner, the picture acquisition module 501 is further used for:

[0160] receiving a plurality of candidate clothing photos sent by the clothing processing device;

[0161] Acquire a partial photo corresponding to each of the adjusted clothing photos, wherein the partial photo is acquired according to the grid corresponding to the adjusted clothing photo;

[0162] The partial photos are spliced ​​together to obtain a target clothing photo.

[0163] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 6 As shown, the electronic device 60 includes: at least one processor 601 and a memory 602, wherein:

[0164] The memory 602 is used to store computer-executable instructions;

[0165] The at least one processor 601 is used to execute the computer-executable instructions stored in the memory 602, so that the at least one processor 601 executes the clothing image acquisition method as described in any one of the first aspects.

[0166] Figure 6 A schematic diagram of the structure of a clothing image acquisition device provided in an embodiment of the present application.

[0167] Among them, at least one processor 601 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.

[0168] Optionally, in a specific implementation, the processor 601 and the memory 602 are implemented independently, and the processor 601 and the memory 602 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc., but it does not mean that there is only one bus or one type of bus.

[0169] Optionally, in a specific implementation, if the processor 601 and the memory 602 are integrated on a chip, the processor 601 and the memory 602 can communicate through an internal interface.

[0170] The present application also provides a computer storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the technical solution of the aforementioned clothing image acquisition method is implemented.

[0171] The computer-readable storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The computer-readable storage medium may be any available medium that can be accessed by a general or special purpose computer.

[0172] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist as discrete components in the control device of the clothing processing device.

[0173] The division of the units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, which may be electrical, mechanical or other forms.

[0174] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0175] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0176] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0177] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0178] So far, the technical solution of the present application has been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present application is obviously not limited to these specific embodiments, and the above embodiments are only used to illustrate the technical solution of the present application rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A clothing image acquisition method, characterized in that: The method comprises: Acquire an initial clothing picture sent by a clothing image acquisition device, wherein the initial clothing picture is a picture of clothing acquired when the clothing image acquisition device does not turn on a fill light; Acquire clothing information of the clothing according to the initial clothing picture, wherein the clothing information includes clothing brightness; Acquire fill light information of the clothing image acquisition device according to the clothing information and the target brightness, wherein the fill light information includes the target fill light brightness and the target fill light position; A target clothing picture is acquired according to the candidate clothing photos sent by the clothing image acquisition device, wherein the candidate clothing photos are photos acquired by the clothing image acquisition device according to the fill light information.

2. The method according to claim 1, characterized in that The clothing information also includes clothing color, and acquiring the clothing information of the clothing according to the initial clothing picture includes: Identify the color of clothing in the initial clothing picture, and convert the initial clothing picture from the RGB space to the HIS space, wherein the RGB space is used to display the color of the picture and the HIS space is used to display the brightness of the picture; Dividing the converted initial clothing image into a plurality of areas to be adjusted by a detection frame, wherein the detection frame is a rectangular area containing a plurality of grids, and the number of the areas to be adjusted is the same as the number of the grids; The brightness of the clothes in each of the areas to be adjusted is obtained.

3. The method according to claim 2, characterized in that The step of acquiring fill light information of the clothing image acquisition device according to the clothing information and the target brightness includes: Acquire the target fill light brightness according to the clothing color, the target brightness and the natural light intensity; Acquire a plurality of new clothing pictures sent by the clothing processing device, wherein the new clothing pictures are pictures acquired when the brightness of the fill light is the target fill light brightness and the fill light is in a preset position, and the number of the new clothing pictures is the same as the number of the preset positions; The target fill light position is obtained according to the multiple new clothing images.

4. The method according to claim 3, characterized in that The step of obtaining the target fill light brightness according to the clothing color, the target brightness and the natural light intensity includes: Obtaining a target brightness range corresponding to the target brightness; Acquire a corresponding natural light intensity range according to the natural light intensity; According to the target brightness range, the natural light intensity range and the clothing color, the target fill light brightness is obtained from a preset relationship, wherein the preset relationship is used to indicate the relationship between the target brightness range, the natural light intensity range, the clothing color and the target fill light brightness.

5. The method according to claim 4, characterized in that The step of obtaining the target fill light position according to the multiple new clothing images includes: Convert each of the new clothing images from the RGB space to the HIS space, and obtain the brightness of the new area to be adjusted according to the detection frame; Obtaining a brightness angle between the light of the fill light irradiating the local clothing corresponding to each grid in the detection frame and a vertical line of the local clothing when the fill light is in the preset position; According to the brightness of the plurality of new areas to be adjusted corresponding to each grid and the brightness angle, acquiring the brightness change rate corresponding to each grid; Acquire a target angle according to the brightness change rate and the target brightness; The target fill light position corresponding to each grid is obtained according to the target angle, so that the new brightness angle is equal to the target angle.

6. The method according to claim 5, characterized in that The step of acquiring a target clothing image according to the candidate clothing photos sent by the clothing image acquisition device comprises: receiving a plurality of candidate clothing photos sent by the clothing processing device; Acquire a partial photo corresponding to each of the adjusted clothing photos, wherein the partial photo is acquired according to the grid corresponding to the adjusted clothing photo; The partial photos are spliced ​​together to obtain a target clothing photo.

7. A clothing image acquisition device, comprising: A base, a mannequin, a fill light, a counterweight and a support rod, wherein the fill light is slidably connected to an edge of the base, the support rod and the counterweight are arranged relative to the base, the shooting device is fixed on the support rod, and the base is used to place the mannequin.

8. The device according to claim 7, characterized in that The fill light comprises a lamp pole and a plurality of bulbs, wherein the bulbs are fixed on the lamp pole and are used to adjust the brightness of the fill light.

9. An electronic device, characterized in that: include: at least one processor and memory, wherein: The memory is used to store computer-executable instructions; The at least one processor is configured to execute the computer-executable instructions stored in the memory, so that the at least one processor performs the method according to any one of claims 1 to 6.

10. A computer storage medium, characterized in that: The computer storage medium stores computer executable instructions, which are used to implement the method according to any one of claims 1 to 6 when executed by a processor.