Interaction method, image processing method and device
By cutting and combining original pictures into collage pictures and dynamically replacing them, the problems of single picture display and high resource consumption in the existing technology are solved, and rich visual effects and low resource consumption interaction methods are achieved.
Patent Information
- Application Number
- CN201811513378.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-12-11
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2038-12-11
AI Technical Summary
In the existing technology, the pictures displayed through the display interface have a single visual effect, making it difficult for users to quickly find the picture content that meets their expectations, resulting in excessive resource consumption.
By cutting the original picture into multiple collage pictures, and combining and switching these pictures according to the content type, a diverse display object is formed, and pictures are dynamically replaced in response to user operations.
It enriches visual effects, reduces resource consumption, and provides new interaction methods. Users can freely match diverse display contents without having to search for a large number of images.
Smart Images

Figure CN111309220B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer application technology, and in particular to an interaction method, an image processing method and an apparatus. Background Art
[0002] Currently, the images displayed through the display interface have a single visual effect. Users can only obtain the image content that meets their expectations by searching and viewing a large number of other images. However, a large number of searches will lead to resource consumption. Summary of the invention
[0003] The embodiments of the present application provide an interactive method, an image processing method and an apparatus, which enrich the visual effects and reduce resource consumption.
[0004] In a first aspect, an embodiment of the present application provides an interaction method, including:
[0005] Display a display object composed of multiple collage images;
[0006] In response to a switching operation on any collage picture, acquiring a first target collage picture whose content type matches the any collage picture;
[0007] At least any one of the collage pictures is replaced with the first target collage picture.
[0008] In a second aspect, an embodiment of the present application provides a method for processing an image, including:
[0009] Determine at least one content type corresponding to the original image;
[0010] Cropping the original image to obtain image regions corresponding to the at least one content type;
[0011] The picture areas respectively corresponding to the at least one content type are used as collage pictures.
[0012] Among them, collage images of different content types are used to combine to form a display object.
[0013] In a third aspect, an interactive device is provided in an embodiment of the present application, including:
[0014] A display module, used to display a display object composed of multiple collage images;
[0015] An acquisition module, configured to, in response to a switching operation on any collage picture, acquire a first target collage picture whose content type matches the any collage picture;
[0016] A replacement module is used to replace at least any one of the collage pictures with the first target collage picture.
[0017] In a fourth aspect, an embodiment of the present application provides an image processing device, including:
[0018] A type determination module, used to determine at least one content type corresponding to the original image;
[0019] A picture processing module, used for cropping the original picture to obtain picture regions corresponding to the at least one content type; a picture determination module, used for using the picture regions corresponding to the at least one content type as collage pictures;
[0020] Among them, collage images of different content types are used to combine to form a display object.
[0021] In a fifth aspect, an embodiment of the present application provides a terminal, comprising a storage component, a display component, and a processing component; the storage component stores one or more computer program instructions; the one or more computer program instructions are called and executed by the processing component;
[0022] The processing component is used to:
[0023] Displaying a display object composed of a plurality of collage images through the display component;
[0024] In response to a switching operation on any collage picture, acquiring a first target collage picture whose content type matches the any collage picture;
[0025] At least any one of the collage pictures is replaced with the first target collage picture.
[0026] In a sixth aspect, an embodiment of the present application provides a server, including a processing component and a storage component;
[0027] The storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component;
[0028] The processing component is used to:
[0029] Determine at least one content type corresponding to the original image;
[0030] Cropping the original image to obtain image regions corresponding to the at least one content type;
[0031] Using the picture areas corresponding to the at least one content type as collage pictures;
[0032] Among them, collage images of different content types are used to combine to form a display object.
[0033] In the embodiment of the present application, a display object composed of multiple collage images is displayed; in response to a switching operation on any collage image, a first target collage image whose content type matches the any collage image is obtained; and the any collage image is replaced with the first target collage image. By combining and switching multiple collage images, different display contents can be displayed, enriching the visual effect, without the need for a large number of image searches, and thus reducing resource consumption.
[0034] These and other aspects of the present application will become more clearly understood in the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0036] Figure 1 A flowchart of an embodiment of an interaction method provided by the present application is shown;
[0037] Figure 2a to Figure 2g Schematic diagrams of picture interaction in a practical application of the embodiment of the present application are respectively shown;
[0038] Figure 3 A flowchart of an embodiment of a picture processing method provided by the present application is shown;
[0039] Figure 4a to Figure 4d Schematic diagrams showing display objects in a practical application of the embodiment of the present application are shown respectively;
[0040] Figure 5 A schematic diagram showing the structure of an embodiment of an interactive device provided by the present application is shown;
[0041] Figure 6 A schematic diagram showing the structure of an embodiment of a terminal provided by the present application is shown;
[0042] Figure 7 A schematic diagram showing the structure of an embodiment of a picture processing device provided by the present application is shown;
[0043] Figure 8 A schematic diagram of the structure of an embodiment of a server provided by the present application is shown. DETAILED DESCRIPTION
[0044] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0045] In some of the processes described in the specification and claims of this application and the above-mentioned figures, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel. The serial numbers of the operations, such as 101, 102, etc., are only used to distinguish between different operations, and the serial numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.
[0046] The embodiment of the present application provides an interactive method, which can display diverse display content by splicing and switching multiple collage images, thereby enriching the visual effect, eliminating the need for a large amount of searching, and reducing resource consumption.
[0047] However, the images currently displayed through the display interface have a single visual effect, and users can only view the image content. If they do not like the image content, they can only find image content that meets their visual needs by searching for other images. However, this workload will be very large. For example, in the product matching recommendation scenario in e-commerce, only model pictures of clothes that have been matched can be shown to users. However, users may only like tops but not bottoms. If users want to find the matching effect they like, they need to keep searching and viewing a large number of pictures. Since the matching effect conveyed by pictures is currently limited, users may not be able to find the matching they want. By adopting the technical solution of the embodiment of the present application, through the combination and switching of collage pictures, diverse display content can be achieved, and the visual effect is enriched. In the product matching scenario, the collage pictures can be top pictures, bottom pictures, etc. that can be combined and displayed, which meets the user's needs for free matching and enriches the visual effect. A variety of display content can be displayed without a lot of searching, and a new interaction method is provided, which enriches the user interaction method and improves the user experience. The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0048] Figure 1A flowchart of an embodiment of an interactive method provided in an embodiment of the present application, which describes the technical solution of the present application in detail from the perspective of the interface display of the client, and the method may include the following steps:
[0049] 101: Displaying a display object composed of multiple collage images.
[0050] The multiple collage images can be obtained by cutting one or more original images.
[0051] The display content presented by the display object is formed by splicing the image contents in the multiple collage images.
[0052] In order to ensure the visual effect of the display content presented by the display object, multiple collage images can be spliced in a predetermined splicing method, so that the display content presented by the display object meets certain aesthetic requirements and forms content with a specific shape or specific structure.
[0053] The collage image may determine its corresponding content type according to its image content.
[0054] Multiple content types may be required to form a display object, and the multiple collage images may be determined according to the multiple content types corresponding to the display object.
[0055] Optionally, the collage image can be obtained by cutting the image area corresponding to the content type in the original image to which it belongs according to its content type. That is, each collage image can be obtained by cutting the image area corresponding to the content type in the original image to which it belongs according to its content type.
[0056] In addition, in an actual application, the collage image can also be obtained by specifically identifying the target object in the original image to which it belongs and the various components of the target object, and cropping the original image according to the various components; the content type of the collage image is determined according to its corresponding components, and the specific content type of the collage image can refer to its corresponding components.
[0057] Among them, the various components of the target object can be pre-set in combination with actual needs. For example, when the subject object is a human body, the various components can include the head part, other body parts except the head, upper body parts, lower body parts, body parts of a one-piece suit, and foot parts, etc. Among them, the upper body parts refer to the body parts wearing upper clothes (such as T-shirts, shirts, vests, etc.), the lower body parts refer to the body parts wearing lower clothes (such as shorts, trousers, skirts, etc.), and the one-piece suit body parts refer to the body parts wearing one-piece suits (such as dresses, jumpsuits, etc.). The foot parts can also refer to the body parts wearing shoes (long boots, short boots, etc.).
[0058] Therefore, the plurality of collage images may be determined according to the components of the target object. The plurality of collage images may be combined to form a display object including the target object; wherein different collage images corresponding to the same component have different image contents.
[0059] The target object may refer to a human body, for example. The display content of the human body (skin color, clothing, portrait or figure, etc.) in different original pictures may be different. The multiple collage pictures may respectively correspond to human bodies with different display contents, or at least some of the collage pictures may respectively correspond to human bodies with different display contents.
[0060] Optionally, the method may further include:
[0061] Provide an interactive interface;
[0062] The display object composed of multiple collage pictures includes:
[0063] A display object composed of a plurality of collage images is displayed in the interactive interface.
[0064] Optionally, the interactive interface may be provided when a user interaction trigger request is received.
[0065] 102: In response to a switch operation on any collage picture, obtain a first target collage picture whose content type matches the any collage picture.
[0066] Optionally, a first target collage picture whose content type matches any of the collage pictures may be searched from the collage picture set. The collage picture set may be sent from the server to the client.
[0067] Of course, optionally, a first target collage picture whose content type matches any of the collage pictures may also be requested from the server.
[0068] Each collage picture in the collage picture set can be obtained by cutting out a picture area corresponding to the content type in the original picture to which it belongs according to the content type.
[0069] Multiple collage images in the display object can be switched.
[0070] In addition, one or more collage images may be switched at the same time, so when a switching operation is detected for any collage image, the operation of step 102 may be performed.
[0071] The first target collage picture whose content type matches any one of the collage pictures may be a first target collage picture whose content type is the same as any one of the collage pictures;
[0072] It may also be a first target collage picture whose content type at least includes the content type of any one of the collage pictures.
[0073] For example, if the content type of the first target collage image is a body part of a one-piece suit, and the content type of any of the collage images is a body part of an upper garment, then the body part of the one-piece suit includes the upper garment body part.
[0074] Optionally, in response to the switching operation on any collage picture, acquiring a first target collage picture whose content type matches any collage picture may include:
[0075] In response to a designated sliding operation on any collage picture, a first target collage picture whose content type matches the any collage picture is acquired.
[0076] The designated sliding operation may refer to a sliding operation in a predetermined direction, or may refer to a dragging operation of any collage image, that is, a sliding operation of controlling any collage image to move from a first position to a second position.
[0077] Of course, the switching operation on any collage image may also refer to a click operation on any collage image, such as a single click or a double click, etc. The embodiment of the present application does not impose any specific limitation on the switching operation.
[0078] 103: Use the first target collage picture to replace at least any one of the collage pictures.
[0079] After the first target collage picture is obtained, the first target collage picture can be used to replace any collage picture to update the display content of the display object.
[0080] After replacing at least any one of the collage images with the first target collage image, the process may return to step 101 to continue execution, that is, the first target collage image is used as a new collage image, and the collage image request in the display object may continue to be switched to continue updating the display content of the display object.
[0081] In this embodiment, a display object composed of multiple collage images can be displayed; in response to a switching operation on any collage image, a first target collage image whose content type matches any collage image is obtained; and any collage image is replaced with the first target collage image. By combining and switching multiple collage images, different display contents can be displayed, enriching the visual effect, and a variety of display contents can be obtained without performing a large number of image searches, reducing resource consumption, and providing a new interaction method, thereby enriching the user interaction method.
[0082] The combination of the multiple collage images may be splicing or collage, that is, any two collage images may partially overlap.
[0083] Therefore, as an optional manner, the display object composed of multiple collage images may include:
[0084] According to the splicing order of the multiple collage pictures, the multiple collage pictures are spliced together to obtain a display object;
[0085] The display object is displayed.
[0086] That is, the image splicing technology may be used to sequentially splice a plurality of collage images in a splicing order to form a display object.
[0087] The stitching order of the multiple collage images may be determined according to the content types of the multiple collage images.
[0088] Therefore, in some embodiments, before the multiple collage images are spliced together in the splicing order to obtain the display object, the method may further include:
[0089] According to a plurality of content types corresponding to the display object, acquiring collage images respectively corresponding to the plurality of content types, to obtain the plurality of collage images;
[0090] The splicing order corresponding to the multiple content types is used as the splicing order of the multiple collage images.
[0091] The splicing order corresponding to the multiple content types can be preset. In addition, when the multiple content types correspond to the components of the target object, the splicing order corresponding to the multiple content types can be the connection order of the components of the target object. For example, when the components are composed of a head part, an upper body part, a lower body part and a foot part, the connection order can be that the head part is connected to the upper body part, the upper body part is connected to the lower body part, and the lower body part is connected to the foot part.
[0092] As another optional manner, the plurality of collage pictures may include at least one bottom collage picture and at least one upper collage picture;
[0093] The display object composed of multiple collage images may include:
[0094] splicing the at least one bottom layer collage picture to obtain a bottom layer picture according to the splicing order of the at least one bottom layer collage picture;
[0095] Determine a collage start position of the at least one upper-layer collage picture in the bottom-layer picture;
[0096] Determining a hierarchical order of the at least one upper-layer collage picture;
[0097] Combining the at least one upper-layer collage picture on the bottom-layer picture in sequence according to the collage starting position of the at least one upper-layer collage picture and the layer order to obtain a display object;
[0098] The display object is displayed.
[0099] That is, the display object can be displayed by stacking multiple collage images in layers, and there are at least partially overlapping collage images. The display object is mainly divided into a bottom layer and an upper layer.
[0100] The bottom layer can adopt image stitching technology to stitch at least one bottom layer collage picture to obtain a bottom layer picture.
[0101] The upper layer may be covered in the bottom layer picture in sequence according to the collage start position of at least one upper layer collage picture in the bottom layer picture and in a hierarchical order.
[0102] Optionally, each bottom layer collage picture may be obtained by cropping its bottom layer original picture, and each top layer collage picture may be obtained by cropping its top layer original picture, so the bottom layer picture may be specifically obtained by splicing multiple bottom layer collage pictures.
[0103] In an optional manner, the bottom layer collage picture may refer to the bottom layer original picture, that is, the bottom layer original picture is used as the bottom layer collage picture. In this case, a bottom layer collage picture may be used as the bottom layer picture.
[0104] Optionally, the collage start position of at least one upper-layer collage picture in the bottom-layer picture may be determined according to the content type of the at least one upper-layer collage picture.
[0105] The hierarchical order of the at least one upper-layer collage picture may also be determined according to the content type of the at least one upper-layer collage picture.
[0106] In some embodiments, after splicing the at least one underlying collage picture to obtain an underlying picture in a splicing order of the at least one underlying collage picture, the method may further include:
[0107] According to at least one content type of the underlying image corresponding to the display object and at least one content type corresponding to the upper image, at least one underlying collage image of the underlying image content type and at least one upper collage image are obtained.
[0108] The splicing order of the at least one underlying collage picture may refer to the splicing order corresponding to the content type of the at least one underlying collage picture.
[0109] The stitching order corresponding to the content type of the at least one underlying collage picture can be preset. In addition, the underlying original picture can be cut according to the first component parts corresponding to the target object. Therefore, the at least one underlying collage picture corresponds to the first component parts of the target object respectively. The stitching order corresponding to the content type of the at least one underlying collage picture can be the connection order of the first component parts of the target object. For example, if the first component parts are composed of the head part and other body parts except the head, it can be known that the head part is connected to other body parts.
[0110] The collage start position of the at least one upper-layer collage picture may be determined according to the content type of the at least one upper-layer collage picture.
[0111] In an optional manner, when both the bottom collage picture and the upper collage picture correspond to the components of the target object, the upper original picture can be cut according to the second components corresponding to the target object. Therefore, the collage starting position of the at least one upper collage picture can be determined according to the second components corresponding to the at least one upper collage picture. The display content of the bottom picture formed by splicing at least one bottom collage picture includes the target object. According to the second components of the target object, the splicing positions of the second components in the bottom picture can be determined, so the collage starting position of the upper collage picture can be determined according to the splicing positions of the second components corresponding to them.
[0112] The first component part and the second component part are both determined according to the component structure of the target object, and they may be the same or different. The first and the second are only used to distinguish different cropping of the bottom original image and the upper original image.
[0113] For example, if at least one upper collage image corresponds to the upper body part and the lower body part of the human body respectively, then the starting position of the collage of the upper body part in the underlying image is the splicing position of the head part and the upper body part of the target object in the underlying image, and the starting position of the collage of the lower body part is the splicing position of the upper body part and the lower body part of the target object in the underlying image.
[0114] For ease of understanding, Figure 2a to Figure 2c As shown in Figure 2aThe underlying image is formed by stitching at least one underlying collage image, and the underlying image includes an underlying collage image 20 and an underlying collage image 21, which respectively correspond to component A and component B of the target object. The target object is assumed to be divided into component A, component B, component C and component D. The stitching position of the target object may include a position 201 of a stitching line between component A and component B, a position 201 of a stitching line between component A and component C, and a position 202 of a stitching line between component C and component D. It can be seen that the position of the stitching line between component A and component B is the same as the position of the stitching line between component A and component C.
[0115] Assume that at least one upper layer collage picture includes two upper layer collage pictures, corresponding to component C and component D respectively, and assume that the hierarchical order of each component is that component A and component B are located at the bottom layer, component D is located at the second layer from the bottom layer, and component C is located at the third layer from the second layer. It can be known that the splicing starting position of the upper layer collage picture corresponding to component C is the splicing line position 201, and the splicing starting position of the upper layer collage picture corresponding to component D is the splicing line position 202;
[0116] If Figure 2b As shown in , after the bottom layer collage images corresponding to component parts A and component parts B are respectively spliced to form the bottom layer image, the upper layer collage image 21 corresponding to component part D of the second layer is superimposed starting from the position 202 where the splicing line is located; Figure 2c As shown in FIG. 2 , starting from the position of the splicing line 201, the upper layer collage image 22 corresponding to the component part C of the second layer is superimposed, so as to obtain Figure 2c Display objects in .
[0117] because Figure 2b as well as Figure 2c It can be seen that the upper layer collage picture 22 corresponding to component part C covers at least part of the content of the upper layer collage picture 21 corresponding to component part D.
[0118] For the display object, the user can perform a switching operation on any collage image. For example, a switching operation on the upper collage image 21 corresponding to the component part D is detected. Figure 2d As shown in FIG. 1 , the upper layer collage picture 23 corresponding to the component part D can be found according to the content type of the upper layer collage picture 21, that is, the component part D, as the first target collage picture, and the upper layer collage picture 23 can be used to replace the upper layer collage picture 21. Figure 2d As shown in Figure 2e The display object after the display content is updated as shown in FIG.
[0119] In some embodiments, the method may further include:
[0120] Display at least one collage prompt message;
[0121] In response to a selection operation on any collage prompt information, determining that any collage prompt information corresponds to a to-be-collaged picture;
[0122] The pictures to be pieced together are pieced together in the display object according to the pieced together starting positions of the pictures to be pieced together in the bottom layer pictures.
[0123] Each collage prompt information may correspond to a collage picture. For any selected collage prompt information, a corresponding collage picture may be determined, which is named "picture to be collaged" for easy distinction.
[0124] According to the content type of the image to be collaged, its collage starting position in the bottom image can be determined, and then the image to be collaged can be collaged in the display object, that is, starting from the corresponding splicing starting position, covering the display object. The image to be collaged is used as the top layer collage image to cover the collage images of other layers.
[0125] like Figure 2f As shown in Figure 2c Assume that the starting position of the collage image is the splicing line 201. Figure 2e That is, it shows the display object after the display content is updated after the collage picture 24 is collaged.
[0126] The collage prompt information may be a thumbnail image of the corresponding collage image, so as to facilitate the user to understand the image content of the corresponding collage image.
[0127] In some embodiments, after replacing any one of the collage pictures with the first target collage picture, the method may further include:
[0128] Find out whether there is a second target collage picture whose picture content matches the first target collage picture and whose content type is different from that of the first target collage picture;
[0129] The second target collage picture is used to replace the unreplaced collage picture corresponding to the content type of the second target collage picture in the display object.
[0130] The corresponding relationship of collage pictures with matching picture contents but different content types can be preset. Therefore, the second target collage picture can be obtained by searching the corresponding relationship.
[0131] In addition, since the plurality of collage images may come from different original images, in order to ensure the combination effect, in some embodiments, according to the collage starting position of the at least one upper-layer collage image and the hierarchical order, the at least one upper-layer collage image is sequentially combined on the bottom-layer image, before obtaining the display object, the method further includes:
[0132] Determine whether the main content of any upper-layer collage image meets the collage requirements;
[0133] If not, adjust any of the upper collage images according to the collage requirement so that any of the upper collage images meets the collage requirement.
[0134] The collage requirement may, for example, refer to whether the proportion of the main content of any upper-layer collage image is the same as the proportion of the main content corresponding to the content type of any upper-layer collage image in the underlying image. If not, any upper-layer collage image may be enlarged or reduced so that the proportion of the main content of the two images is the same, thereby achieving seamless stitching.
[0135] For example, the collage requirement may refer to whether the main content of any upper-layer collage picture is the same as the display direction of the main content corresponding to the content type of any upper-layer collage picture in the underlying picture. If not, any upper-layer collage picture can be rotated to adjust the display direction of its main content so that the display direction of the picture content corresponding to the content type of any upper-layer collage picture in the underlying picture is the same.
[0136] The main content of any upper-layer collage image may refer to the image content including its corresponding component parts.
[0137] In some embodiments, the content type of the first target collage picture at least includes the content type of any of the collage pictures. Therefore, in response to the switching operation on any of the collage pictures, obtaining the first target collage picture whose content type matches the any of the collage pictures may include:
[0138] In response to a switching operation on any collage picture, obtaining a first target collage picture whose content type at least includes the content type of any collage picture;
[0139] The using the first target collage picture to replace at least any one of the collage pictures comprises:
[0140] determining, according to the content type of the first target collage picture, at least one picture to be replaced among the plurality of collage pictures;
[0141] The at least one to-be-replaced picture is replaced with the first target collage picture.
[0142] The at least one picture to be replaced includes any one of the collage pictures.
[0143] For example, if the content type of the first target collage picture is one-piece body parts, and the content type of any of the collage pictures is upper body parts, then the one-piece body parts include the upper body parts. In addition, the one-piece body parts may also include lower body parts; therefore, at least one replacement picture to be replaced includes a collage picture of upper body parts and a collage picture of lower body parts.
[0144] like Figure 2g As shown in Figure 2c The display object shown detects a switching operation of the upper collage picture 21 for the component part C. It is assumed that the target object is also divided into a component part E. The content type of the first target collage picture matching the upper collage picture 21 is assumed to be component part E, and the component part E includes component part C and component part D. Therefore, the at least one picture to be replaced includes not only the upper collage picture 21, but also the upper collage picture 22. Figure 2g That is, it shows a schematic diagram of the display object after the at least one to-be-replaced picture is replaced by the first target collage picture 25 .
[0145] In some embodiments, in response to the switching operation on any collage picture, obtaining a first target collage picture whose content type matches any collage picture may include:
[0146] From the collage pictures corresponding to the content type of any collage picture, a collage picture is randomly selected or, according to the presentation order of the collage pictures, the next collage picture adjacent to any collage picture is selected as the first target collage picture.
[0147] Figure 3 This is a flowchart of another embodiment of a picture processing method provided in an embodiment of the present application. This embodiment describes the technical solution of the present application from the perspective of obtaining a collage picture. The method may include the following steps:
[0148] 301: Determine at least one content type corresponding to the original image.
[0149] 302: Crop the original image to obtain image regions corresponding to the at least one content type.
[0150] 303: Use the picture areas corresponding to the at least one content type as collage pictures.
[0151] Among them, collage images of different content types are used to combine to form a display object.
[0152] The server can save the correspondence between each collage image and its content type to form a collage image set, and can provide the collage image set to the client, so that the client can select a first target collage image from the collage image set to replace any collage image requested to be switched in the display object.
[0153] In some embodiments, cropping the original image to obtain image regions corresponding to the at least one content type includes:
[0154] Identify the various components of the target object in the original image;
[0155] Determine the content type corresponding to each of the component parts;
[0156] Cutting the original image according to the various component parts to obtain image regions corresponding to the at least one content type;
[0157] The step of using the picture areas corresponding to the at least one content type as a collage picture comprises:
[0158] The image regions where the component parts corresponding to the at least one content type are located are used as collage images.
[0159] The original image may be cut in a horizontal, vertical or circular manner to form a collage image with a specific shape.
[0160] In some embodiments, the original picture may include a bottom layer original picture and an upper layer original picture;
[0161] The identifying of the components of the target object in the original image may include:
[0162] For the bottom original picture, identifying each first component part of the target object in the bottom original picture;
[0163] For the upper original picture, identifying each second component part of the target object in the upper original picture;
[0164] Determining the content type corresponding to each component part may include:
[0165] For the bottom original image, determine the content type corresponding to each first component part;
[0166] For the upper original image, determine the content type corresponding to each second component part;
[0167] The cutting of the original image according to the various component parts may include:
[0168] For the bottom original picture, the bottom original picture is cut according to each first component part to obtain the picture area corresponding to the at least one content type;
[0169] For the upper layer original picture, the upper layer original picture is cut according to each second component part to obtain the picture areas corresponding to the at least one content type;
[0170] The step of using the image regions where the component parts corresponding to the at least one content type are located as the collage image comprises:
[0171] For the bottom original picture, the picture area where the first component parts corresponding to the at least one content type are located is used as the bottom collage picture;
[0172] For the upper layer original picture, the picture area where the second component parts corresponding to the at least one content type are located is used as the upper layer collage picture;
[0173] Among them, at least one bottom layer collage picture is used for splicing to obtain a bottom layer picture; at least one upper layer collage picture is used for collage on the bottom layer picture to obtain a display object.
[0174] In a practical application, the upper-layer original image may refer to an original product image, which includes a human body wearing a product, and is a product image that matches user behavior characteristics and is captured from an e-commerce platform. The user behavior characteristics may refer to historical purchase records, for example. The purchased products may be determined based on the historical purchase records, and the product image of the purchased product may be used as the original product image, etc.
[0175] Therefore, in some embodiments, the method may further include:
[0176] Identify original product images that match user behavior characteristics.
[0177] The bottom-layer original image may refer to an original standard image, which is obtained by capturing a model's body.
[0178] In some embodiments, determining at least one content type corresponding to the original image includes:
[0179] For the original product image, according to the product category corresponding to the original product image, determine the content type corresponding to the product category;
[0180] For an original standard picture, at least one content type preconfigured for the original standard picture is determined.
[0181] In a practical application, the technical solution of the embodiment of the present application can be applied to the product combination recommendation scenario in the e-commerce platform.
[0182] The bottom layer collage picture can be obtained by cutting the original standard picture; the original standard picture is obtained by collecting the model's body; the upper layer collage picture is obtained by cutting the original product picture; the original product picture includes a human body wearing the product;
[0183] The content type of the collage image is determined according to the corresponding human body part, that is, each collage image (including the bottom collage image or the upper collage image) corresponds to a human body part, and the corresponding content type is determined according to the corresponding human body part.
[0184] For example, when the product is clothing, it is suitable for clothing matching recommendation scenarios.
[0185] The original standard image and the original product image may be cut according to various components of the human body. Optionally, the original standard image and the original product image may include images of a human body in a standing position.
[0186] In the clothing matching recommendation scenario, since clothing includes many categories, such as tops, coats, pants, skirts, shoes and bags, etc., they can be classified into upper body clothing, lower body clothing, one-piece clothing, coats, and shoes, etc. Therefore, the human body can be divided into the head part, upper body clothing part, lower body clothing part, one-piece clothing part, and foot part, etc.
[0187] The original product images may be selected from a collection of images provided by the product provider, where the images meet the posture requirements. In order to adapt to various human postures in the original product images, the original standard images may be obtained by collecting models in different postures (such as different standing postures).
[0188] Cropping the original standard image can obtain a standard collage image, and cropping the original product image can obtain a product collage image;
[0189] Usually, the original standard image can be cut to obtain a standard collage image corresponding to the head part and a standard collage image corresponding to other body parts except the head. In addition, the splicing positions between different components of the human body can be determined, so that the underlying image obtained by splicing the standard collage images can also determine the corresponding splicing positions. The different standard collage images constituting the underlying image can come from the same original standard image or from different original standard images, but the human body structure formed is the same, so the various splicing positions in the underlying image are obtained.
[0190] The original product images can be cropped according to the product categories of the original product images (T-shirts, pants, skirts, windbreakers, etc.) to obtain product collage images of upper body garments (T-shirts or shirts, etc.), product collage images of lower body garments (pants, skirts or shorts), product collage images of jumpsuits (dresses or jumpsuits), product collage images of feet (shoes), or product collage images of outer suits (windbreakers, short jackets, long jackets or down jackets, etc.).
[0191] Each collage image obtained by cutting can be saved in correspondence with its corresponding content type (component part) to form a collage image set. When the server receives a display request from the client, the collage image set can be sent to the client, and the client displays a display object composed of multiple collage images. The display object composed of multiple collage images initially displayed by the client can be pre-configured. For this display object, the user can operate the request to switch the collage images.
[0192] like Figure 4a , shows a display object composed of a plurality of collage pictures, which is obtained by combining a standard collage picture 401 of the head part, a standard collage picture 402 of other body parts except the head, a product collage picture 403 of the upper body part, and a product collage picture 404 of the lower body part. The standard collage pictures 401 and the standard collage pictures 402 are spliced to obtain a bottom layer picture, which includes a splicing position 41 and a splicing position 42; the product collage picture 404 uses the splicing position 42 as the collage starting position, and the product collage picture 403 uses the splicing position 41 as the collage starting position, wherein the hierarchical order between the collage pictures is: the standard collage pictures 401 and the standard collage pictures 402 are located at the bottom layer, the product collage picture 404 is located at the second layer above the bottom layer; the product collage picture 403 is located at the third layer from the second layer to the top.
[0193] Assuming that a switching operation is performed on product collage pictures 403 and product collage pictures 404, one may be randomly selected from each product collage picture corresponding to the upper body part, or the next product collage picture 405 of product collage picture 403 may be selected according to the display order of each product collage picture corresponding to the upper body part; similarly, one may be randomly selected from each product collage picture corresponding to the lower body part, or the next product collage picture 406 of product collage picture 404 may be selected according to the display order of each product collage picture corresponding to the lower body part;
[0194] By replacing product collage picture 403 with product collage picture 405 and replacing product collage picture 404 with product collage picture 406, the following can be obtained: Figure 4bShown is the updated display object.
[0195] In addition, in order to further improve the visual effect, for the product collage image 403, it is possible to search whether there is a standard collage image with matching image content but different content type. If so, Figure 4c As shown in , it is assumed that the standard collage picture 407 matching the product collage picture 403 is a standard collage picture of the head part, that is, the standard collage picture 407 can be used to replace the standard collage picture 401;
[0196] As for the product collage picture 404, assuming that the standard collage picture 408 matched therewith is a standard collage picture of other body parts except the head, the standard collage picture 408 can be used to replace the standard collage picture 402, thereby obtaining Figure 4c The updated display object is shown to further enhance the display effect of the display object.
[0197] In addition, if Figure 4a As shown in , the interactive interface can also display collage prompt information 409, and the selection operation for the prompt information 409 is as follows: Figure 4d As shown in , the corresponding image to be collaged 410 can be determined. Assuming that the image to be collaged 410 is a product collage image of a body part of an outer suit, the image to be collaged 410 is collaged in the display object according to the collage starting position of the image to be collaged 410, that is, the splicing position 41, to obtain Figure 4d The updated display object shown can also replace the standard collage picture 401 with the standard collage picture 411 according to the to-be-collage picture 410 to improve the display effect.
[0198] In addition, if the product collage picture does not meet the collage requirements of its corresponding components, such as the proportion of the corresponding components in the product collage picture is different from the proportion of the corresponding components in the original standard picture, then the product collage picture needs to be adjusted, such as enlarging or reducing the product collage picture, so as to meet the collage requirements and ensure the coordination of the proportions of the human body structure in the displayed object.
[0199] Figure 5 A schematic diagram of a structure of an embodiment of an interactive device provided in an embodiment of the present application, the device may include:
[0200] Display module 501, used to display a display object composed of multiple collage pictures;
[0201] An acquisition module 502 is configured to acquire, in response to a switching operation on any collage picture, a first target collage picture whose content type matches the any collage picture;
[0202] The replacement module 502 is configured to replace at least any one of the collage pictures with the first target collage picture.
[0203] In some embodiments, the display module is used to splice the multiple collage images in a splicing order to obtain a display object; and display the display object.
[0204] In some embodiments, the apparatus may further include:
[0205] The splicing order determination module is used to obtain collage images corresponding to multiple content types according to the multiple content types corresponding to the display object, and obtain the multiple collage images; and use the splicing order corresponding to the multiple content types as the splicing order of the multiple collage images.
[0206] In some embodiments, the plurality of collage pictures include at least one bottom collage picture and at least one upper collage picture;
[0207] The display module is specifically configured to splice the at least one bottom layer collage picture to obtain a bottom layer picture according to the splicing order of the at least one bottom layer collage picture;
[0208] Determine a collage start position of the at least one upper-layer collage picture in the bottom-layer picture;
[0209] Determining a hierarchical order of the at least one upper-layer collage picture;
[0210] Combining the at least one upper-layer collage picture on the bottom-layer picture in sequence according to the collage starting position of the at least one upper-layer collage picture and the layer order to obtain a display object;
[0211] The display object is displayed.
[0212] In some embodiments, the apparatus may further include:
[0213] The image determination module is used to obtain at least one bottom-layer image content type bottom-layer collage image and at least one upper-layer collage image according to at least one content type corresponding to the bottom layer and at least one content type corresponding to the upper layer of the display object.
[0214] In some embodiments, the display module is further used to display at least one collage prompt information;
[0215] The acquisition module is further used to determine the to-be-collaged picture corresponding to any collage prompt information in response to a selection operation on any collage prompt information;
[0216] The replacement module is further used to paste the pictures to be pasted in the display object according to the pasting start position of the pictures to be pasted in the bottom layer pictures.
[0217] In a certain embodiment, the collage image is obtained by cropping an image region corresponding to the content type in the original image to which it belongs according to the content type.
[0218] In some embodiments, the collage image is obtained by identifying various components of the target object in the original image to which it belongs and cropping the original image according to the various components; the content type of the collage image is determined according to its corresponding components.
[0219] In some embodiments, the apparatus may further include:
[0220] A search module, configured to search for a second target collage picture whose picture content matches the first target collage picture and whose content type is different from that of the first target collage picture;
[0221] The replacement module is further configured to use the second target collage picture to replace the unreplaced collage picture corresponding to the content type of the second target collage picture in the display object.
[0222] In a certain embodiment, the device may further include:
[0223] A judgment module, judging whether any upper layer collage picture meets the collage requirements;
[0224] The adjustment module is used to adjust any one of the upper layer collage pictures according to the collage requirement if the result of the judgment module is no.
[0225] In some embodiments, the acquisition module is specifically configured to acquire, in response to a designated sliding operation on any collage image, a first target collage image whose content type matches the any collage image.
[0226] In some embodiments, the display module is specifically used to provide an interactive interface; a display object composed of a plurality of collage images is displayed in the interactive interface.
[0227] In some embodiments, the acquisition module is specifically configured to, in response to a switching operation on any collage picture, acquire a first target collage picture whose content type at least includes a content type of any collage picture;
[0228] The replacement module is specifically configured to determine at least one picture to be replaced among the plurality of collage pictures according to the content type of the first target collage picture;
[0229] The at least one to-be-replaced picture is replaced with the first target collage picture.
[0230] In some embodiments, the bottom layer collage image is obtained by cutting the original standard image; the original standard image is obtained by capturing the model's body; the upper layer collage image is obtained by cutting the original product image; the original product image includes a human body wearing the product;
[0231] The content type of the collage image is determined according to the corresponding human body part, that is, each collage image corresponds to a human body part, and its content type is determined by the corresponding human body part.
[0232] In some embodiments, the acquisition module is specifically used to randomly select a collage picture from the collage pictures corresponding to the content type of any collage picture or select the next adjacent collage picture of any collage picture according to the display order of each collage picture as the first target collage picture.
[0233] Figure 5 The interactive device can execute Figure 1 The implementation principle and technical effect of the interactive method described in the illustrated embodiment will not be described in detail. The specific manner in which each module and unit performs operations in the interactive device in the above embodiment has been described in detail in the embodiment of the method, and will not be described in detail here.
[0234] In one possible design, Figure 5 The interactive device of the embodiment shown can be implemented as a terminal, such as
[0235] Figure 6 As shown, the terminal may include a storage component 601, a processing component 602 and a display component 603;
[0236] The storage component 601 stores one or more computer instructions, wherein the one or more computer instructions are called and executed by the processing component 602 .
[0237] The processing component 602 is used to:
[0238] Displaying a display object composed of multiple collage pictures through the display component 603;
[0239] In response to a switching operation on any collage picture, acquiring a first target collage picture whose content type matches the any collage picture;
[0240] At least any one of the collage pictures is replaced with the first target collage picture.
[0241] The processing component 602 may include one or more processors to execute computer instructions to complete all or part of the steps in the above method. Of course, the processing component may also be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.
[0242] The storage component 601 is configured to store various types of data to support operations at the terminal. The storage component can 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.
[0243] The display component 603 can be an electroluminescent (EL) element, a liquid crystal display or a micro display with a similar structure, or a retinal direct display or a similar laser scanning display.
[0244] Of course, the terminal may also include other components, such as input / output interfaces, communication components, etc.
[0245] The input / output interface provides an interface between the processing component and the peripheral interface module, which may be an output device, an input device, etc.
[0246] The communication component is configured to facilitate wired or wireless communication between the terminal and other devices, etc.
[0247] The present application also provides a computer-readable storage medium storing a computer program, wherein the computer program can achieve the above-mentioned Figure 1 The interaction method of the illustrated embodiment.
[0248] Figure 7 A schematic diagram of a structure of an embodiment of a picture processing device provided in an embodiment of the present application, the device may include:
[0249] A type determination module 701, configured to determine at least one content type corresponding to the original image;
[0250] The picture processing module 702 is used to crop the original picture to obtain picture areas corresponding to the at least one content type;
[0251] The picture determination module 703 is configured to use the picture areas corresponding to the at least one content type as collage pictures.
[0252] Among them, collage images of different content types are used to combine to form a display object.
[0253] In some embodiments, the apparatus may further include:
[0254] A saving module, used to save each collage picture and its corresponding content type to form a collage picture set;
[0255] A providing module is used to provide the collage picture set to a client, so that the client can select a first target collage picture from the collage picture set to replace any collage picture requested to be switched in the display object.
[0256] In some embodiments, the image processing module is specifically used to identify various components of the target object in the original image; determine the content types corresponding to the various components; cut the original image according to the various components to obtain image areas corresponding to the at least one content type;
[0257] The picture determination module is specifically configured to use the picture areas where the component parts corresponding to the at least one content type are located as collage pictures.
[0258] The device may also include:
[0259] In some embodiments, the image processing module may be specifically used to: for the bottom layer original image, identify each first component part of the target object in the bottom layer original image, determine the content type corresponding to each first component part, and cut the bottom layer original image according to each first component part to obtain the image area corresponding to the at least one content type; for the upper layer original image, identify each second component part of the target object in the upper layer original image, determine the content type corresponding to each second component part, and cut the upper layer original image according to each second component part to obtain the image area corresponding to the at least one content type;
[0260] The picture determination module is specifically used to use, for the bottom layer original picture, the picture area where the first component part corresponding to the at least one content type is located as the bottom layer collage picture; and for the top layer original picture, use the picture area where the second component part corresponding to the at least one content type is located as the top layer collage picture;
[0261] Among them, at least one bottom layer collage picture is used for splicing to obtain a bottom layer picture; at least one upper layer collage picture is used for collage on the bottom layer picture to obtain a display object.
[0262] In some embodiments, the upper layer original picture is an original product picture; the lower layer original picture is an original standard picture;
[0263] The type determination module is specifically used to determine the content type corresponding to the product category according to the product category corresponding to the original product image;
[0264] For an original standard picture, at least one content type preconfigured for the original standard picture is determined.
[0265] Figure 7 The image processing device can execute Figure 3 The implementation principle and technical effect of the picture processing method described in the illustrated embodiment will not be described in detail. The specific manner in which each module and unit performs operations in the picture processing device in the above embodiment has been described in detail in the embodiment of the method, and will not be described in detail here.
[0266] In one possible design, Figure 7 The picture processing device of the embodiment shown can be implemented as a server, such as Figure 8 As shown, the server may include a storage component 801 and a processing component 802;
[0267] The storage component 801 stores one or more computer instructions, wherein the one or more computer instructions are called and executed by the processing component 802 .
[0268] The processing component 802 is used to:
[0269] Determine at least one content type corresponding to the original image;
[0270] Cropping the original image to obtain image regions corresponding to the at least one content type;
[0271] The picture areas respectively corresponding to the at least one content type are used as collage pictures.
[0272] Among them, collage images of different content types are used to combine to form a display object.
[0273] The processing component 802 may include one or more processors to execute computer instructions to complete all or part of the steps in the above method. Of course, the processing component may also be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.
[0274] The storage component 801 is configured to store various types of data to support operations at the server. The storage component can 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.
[0275] Of course, the server may also include other components, such as input / output interfaces, communication components, etc.
[0276] The input / output interface provides an interface between the processing component and the peripheral interface module, which may be an output device, an input device, etc.
[0277] The communication component is configured to facilitate, among other things, wired or wireless communications between the server and other devices.
[0278] The present application also provides a computer-readable storage medium storing a computer program, wherein the computer program can achieve the above-mentioned Figure 3 The picture processing method of the illustrated embodiment.
[0279] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0280] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0281] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0282] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions 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 make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. An interactive method, characterized in that: include: Display a display object composed of multiple collage images; In response to a switching operation on any collage picture, acquiring a first target collage picture whose content type matches the any collage picture; replacing at least any one of the collage pictures with the first target collage picture; The plurality of collage pictures include at least one bottom collage picture and at least one upper collage picture; The display object formed by combining multiple collage pictures comprises: according to the splicing order of the at least one bottom collage picture, splicing the at least one bottom collage picture to obtain a bottom picture; determining the collage starting position of the at least one upper collage picture in the bottom picture; determining the hierarchical order of the at least one upper collage picture; according to the collage starting position and the hierarchical order of the at least one upper collage picture, sequentially combining the at least one upper collage picture on the bottom picture to obtain a display object; and displaying the display object; Among them, the collage starting position of the at least one upper-layer collage image in the bottom-layer image is determined according to the content type of the at least one upper-layer collage image, and the hierarchical order of the at least one upper-layer collage image is determined according to the content type of the at least one upper-layer collage image; the splicing order of the at least one bottom-layer collage image refers to the splicing order corresponding to the content type of the at least one bottom-layer collage image.
2. The method according to claim 1, characterized in that: Display objects that display multiple collage images include: According to the splicing order of the multiple collage pictures, the multiple collage pictures are spliced together to obtain a display object; The display object is displayed.
3. The method according to claim 2, characterized in that Also includes: According to a plurality of content types corresponding to the display object, acquiring collage images respectively corresponding to the plurality of content types, to obtain the plurality of collage images; The splicing order corresponding to the multiple content types is used as the splicing order of the multiple collage images.
4. The method according to claim 1, characterized in that: Also includes: At least one bottom layer collage picture and at least one upper layer collage picture are acquired according to at least one content type corresponding to the bottom layer and at least one content type corresponding to the upper layer of the display object.
5. The method according to claim 1, characterized in that Also includes: Display at least one collage prompt message; In response to a selection operation on any collage prompt information, determining a to-be-collage picture corresponding to any collage prompt information; The pictures to be pieced together are pieced together in the display object according to the pieced together starting positions of the pictures to be pieced together in the bottom layer pictures.
6. The method according to claim 1, characterized in that The collage image is obtained by cutting, according to the content type, the image area corresponding to the content type in the original image to which it belongs.
7. The method according to claim 1, characterized in that The collage picture is obtained by identifying various components of the target object in the original image to which it belongs, and cutting the original image according to the various components; the content type of the collage picture is determined according to the corresponding components.
8. The method according to claim 1, characterized in that After replacing any one of the collage pictures with the first target collage picture, the method further includes: Searching for a second target collage picture whose picture content matches the first target collage picture and whose content type is different from that of the first target collage picture; The second target collage picture is used to replace the unreplaced collage picture corresponding to the content type of the second target collage picture in the display object.
9. The method according to claim 1, characterized in that: Before obtaining the display object by sequentially combining the at least one upper-layer collage picture on the bottom-layer picture according to the collage starting position of the at least one upper-layer collage picture and the layer order, the method further includes: Determine whether any upper collage image meets the collage requirements; If not, adjust any one of the upper collage images according to the collage requirement.
10. The method according to claim 1, characterized in that In response to the switching operation on any collage picture, acquiring a first target collage picture whose content type matches any collage picture comprises: In response to a designated sliding operation on any collage picture, a first target collage picture whose content type matches the any collage picture is acquired.
11. The method according to claim 1, characterized in that: Also includes: Provide an interactive interface; The display object composed of multiple collage pictures includes: A display object composed of a plurality of collage images is displayed in the interactive interface.
12. The method according to claim 1, characterized in that In response to the switching operation on any collage picture, acquiring a first target collage picture whose content type matches any collage picture comprises: In response to a switching operation on any collage picture, obtaining a first target collage picture whose content type at least includes the content type of any collage picture; The using the first target collage picture to replace at least any one of the collage pictures comprises: determining, according to the content type of the first target collage picture, at least one picture to be replaced among the plurality of collage pictures; The at least one to-be-replaced picture is replaced with the first target collage picture.
13. The method according to claim 1, characterized in that The bottom layer collage picture is obtained by cutting the original standard picture; the original standard picture is obtained by collecting the model's body; the upper layer collage picture is obtained by cutting the original product picture; the original product picture includes a human body wearing the product; The content type of the collage image is determined according to the component parts of the human body to which it corresponds.
14. The method according to claim 1, characterized in that In response to the switching operation on any collage picture, acquiring a first target collage picture whose content type matches any collage picture comprises: From the collage pictures corresponding to the content type of any collage picture, a collage picture is randomly selected or, according to the presentation order of the collage pictures, the next collage picture adjacent to any collage picture is selected as the first target collage picture.
15. A method for processing an image, characterized in that: include: Determine at least one content type corresponding to the original image; Cropping the original image to obtain image regions corresponding to the at least one content type; Using the picture areas corresponding to the at least one content type as collage pictures; Wherein, collage pictures of different content types are used to form a display object in combination, and the multiple collage pictures include at least one bottom collage picture and at least one upper collage picture. The display object is obtained by splicing the at least one bottom collage picture in a splicing order of the at least one bottom collage picture; determining a collage starting position of the at least one upper collage picture in the bottom picture; determining a hierarchical order of the at least one upper collage picture; and sequentially combining the at least one upper collage picture on the bottom picture according to the collage starting position of the at least one upper collage picture and the hierarchical order to obtain the display object; Among them, the collage starting position of the at least one upper-layer collage image in the bottom-layer image is determined according to the content type of the at least one upper-layer collage image, and the hierarchical order of the at least one upper-layer collage image is determined according to the content type of the at least one upper-layer collage image; the splicing order of the at least one bottom-layer collage image refers to the splicing order corresponding to the content type of the at least one bottom-layer collage image.
16. The method according to claim 15, characterized in that Also includes: Save each collage picture and its corresponding content type to form a collage picture set; The collage picture set is provided to the client, so that the client selects a first target collage picture from the collage picture set to replace any collage picture requested to be switched in the display object.
17. The method according to claim 15, characterized in that The step of trimming the original image to obtain the image regions corresponding to the at least one content type comprises: Identify the various components of the target object in the original image; Determine the content type corresponding to each of the component parts; Cutting the original image according to the various component parts to obtain image regions corresponding to the at least one content type; The step of using the picture areas corresponding to the at least one content type as a collage picture comprises: The image regions where the component parts corresponding to the at least one content type are located are used as collage images.
18. The method according to claim 17, characterized in that The identifying of the components of the target object in the original image includes: For the bottom original picture, identifying each first component part of the target object in the bottom original picture; For the upper original picture, identifying each second component part of the target object in the upper original picture; Determining the content type corresponding to each component part includes: For the bottom original image, determine the content type corresponding to each first component part; For the upper original image, determine the content type corresponding to each second component part; The cutting of the original image according to the various components to obtain the image regions corresponding to the at least one content type comprises: For the bottom original picture, the bottom original picture is cut according to each first component part to obtain the picture area corresponding to the at least one content type; For the upper layer original picture, the upper layer original picture is cut according to each second component part to obtain the picture areas corresponding to the at least one content type; The step of using the image regions where the component parts corresponding to the at least one content type are located as the collage image comprises: For the bottom original picture, the picture area where the first component parts corresponding to the at least one content type are located is used as the bottom collage picture; For the upper layer original picture, the picture area where the second component parts corresponding to the at least one content type are located is used as the upper layer collage picture; Among them, at least one bottom layer collage picture is used for splicing to obtain a bottom layer picture; at least one upper layer collage picture is used for collage on the bottom layer picture to obtain a display object.
19. The method according to claim 18, characterized in that The upper original picture is the original product picture; the lower original picture is the original standard picture; Determining at least one content type corresponding to the original image includes: For the original product image, according to the product category corresponding to the original product image, determine the content type corresponding to the product category; For an original standard picture, at least one content type preconfigured for the original standard picture is determined.
20. An interactive device, characterized in that: include: A display module, used to display a display object composed of multiple collage images; An acquisition module, configured to, in response to a switching operation on any collage picture, acquire a first target collage picture whose content type matches the any collage picture; a replacement module, configured to replace at least any one of the collage pictures with the first target collage picture; The plurality of collage pictures include at least one bottom collage picture and at least one upper collage picture; The display module is specifically used to splice the at least one bottom layer collage picture to obtain a bottom layer picture according to the splicing order of the at least one bottom layer collage picture; determine the collage starting position of the at least one upper layer collage picture in the bottom layer picture; determine the hierarchical order of the at least one upper layer collage picture; according to the collage starting position and the hierarchical order of the at least one upper layer collage picture, sequentially combine the at least one upper layer collage picture on the bottom layer picture to obtain a display object; and display the display object; Among them, the collage starting position of the at least one upper-layer collage image in the bottom-layer image is determined according to the content type of the at least one upper-layer collage image, and the hierarchical order of the at least one upper-layer collage image is determined according to the content type of the at least one upper-layer collage image; the splicing order of the at least one bottom-layer collage image refers to the splicing order corresponding to the content type of the at least one bottom-layer collage image.
21. A picture processing device, characterized in that: include: A type determination module, used to determine at least one content type corresponding to the original image; An image processing module, configured to crop the original image to obtain image regions corresponding to the at least one content type; A picture determination module, configured to use picture areas corresponding to the at least one content type as collage pictures; Wherein, collage pictures of different content types are used to form a display object in combination, and the multiple collage pictures include at least one bottom collage picture and at least one upper collage picture. The display object is obtained by splicing the at least one bottom collage picture in a splicing order of the at least one bottom collage picture; determining a collage starting position of the at least one upper collage picture in the bottom picture; determining a hierarchical order of the at least one upper collage picture; and sequentially combining the at least one upper collage picture on the bottom picture according to the collage starting position of the at least one upper collage picture and the hierarchical order to obtain the display object; Among them, the collage starting position of the at least one upper-layer collage image in the bottom-layer image is determined according to the content type of the at least one upper-layer collage image, and the hierarchical order of the at least one upper-layer collage image is determined according to the content type of the at least one upper-layer collage image; the splicing order of the at least one bottom-layer collage image refers to the splicing order corresponding to the content type of the at least one bottom-layer collage image.
Citation Information
Patent Citations
Method and electronic device for creating an image collage
CN101513034A
Internet two-dimensional fitting cooperative evaluation system and evaluation method
CN101895583A
Image editing apparatus and image editing method
CN103358680A
Presentation format for an application tile
CN103562834A
Processing method for image information and mobile terminal
CN106777329A
Cited By
Interaction method, and image processing method and apparatus
WO2020119543A1
