Wearing method, device and intelligent terminal of virtual article

By pre-constructing a group of ring-shaped images and switching images in response to swiping operations, the problems of high resource consumption and low efficiency in the process of wearing virtual items are solved, and a convenient and efficient wearing experience is achieved.

CN115857674BActive Publication Date: 2026-08-04BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING BAIDU NETCOM SCI & TECH CO LTD
Filing Date
2022-11-22
Publication Date
2026-08-04

AI Technical Summary

Technical Problem

Existing technologies require the construction of 3D models during the virtual item wearing process, which is cumbersome, complex, resource-intensive, and costly. It also requires complex matching logic algorithms, resulting in low efficiency and affecting user experience.

Method used

By using a pre-built virtual object ring map group, the system outputs an initial image in response to a wearing request and switches images from the ring map group when a sliding operation is detected. This avoids building 3D models and complex logic algorithms and directly outputs images of the wearing part from different angles.

Benefits of technology

It improves the convenience of wearing virtual items, saves resource costs, and enhances wearing efficiency and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115857674B_ABST
    Figure CN115857674B_ABST
Patent Text Reader

Abstract

This disclosure provides a method, device, and smart terminal for wearing virtual items, relating to the fields of metaverse, augmented reality, and virtual reality, and can be applied to virtual item try-on scenarios. The specific implementation scheme is as follows: In response to a wearing request, a video stream of a first image of the wearing part wearing the virtual item is output; in response to a sliding operation on the first image, the first image is switched to a second image according to the sliding operation. The first and second images are images from a group of images obtained by taking a panoramic view of the virtual item. A video stream of the second image of the wearing part wearing the virtual item is output. This eliminates the need to construct a 3D model, thus saving resources and costs associated with 3D modeling, and avoids complex matching logic algorithms, improving the efficiency of wearing virtual items and enhancing the wearer's experience through a convenient and quick method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the fields of metaverse, augmented reality, virtual reality and other technologies, and can be applied to virtual item try-on scenarios, especially to a method, device and smart terminal for wearing virtual items. Background Technology

[0002] Wearing virtual items refers to the experience where users (specifically, the wearers) can try on virtual items corresponding to real items without actually trying them on, thus gaining insight into how the wearer would look wearing the real items.

[0003] In some embodiments, a virtual item corresponding to a real item can be obtained by performing a 3D model of the real item, and the wearing effect of the virtual item worn by the wearer can be determined by a matching logic algorithm. Summary of the Invention

[0004] This disclosure provides a method, apparatus, and smart terminal for wearing virtual items to enhance the wearable experience.

[0005] According to a first aspect of this disclosure, a method for wearing a virtual item is provided, comprising:

[0006] In response to a wear request, output a video stream of the first image of the virtual item being worn on the wearable part;

[0007] In response to a sliding operation on the first image, the first image is switched to a second image according to the sliding operation, wherein the first image and the second image are images in a group of circular images obtained by taking a circular image of the virtual object;

[0008] Output a video stream of the second image showing the wearing part.

[0009] According to a second aspect of this disclosure, a wearable device for virtual items is provided, comprising:

[0010] The first output unit is used to output a video stream of a first image of the virtual item being worn on the wearing part in response to a wearing request;

[0011] A switching unit is configured to switch the first image to a second image in response to a sliding operation on the first image, wherein the first image and the second image are images in a group of circular images obtained by taking a circular image of the virtual object;

[0012] The second output unit is used to output a video stream of the second image of the worn part.

[0013] According to a third aspect of this disclosure, an electronic device is provided, comprising:

[0014] At least one processor; and

[0015] A memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect.

[0017] According to a fourth aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions, wherein the computer instructions are configured to cause the computer to perform the method according to the first aspect.

[0018] According to a fifth aspect of this disclosure, a computer program product is provided, the computer program product comprising: a computer program stored in a readable storage medium, wherein at least one processor of an electronic device can read the computer program from the readable storage medium, and the at least one processor executes the computer program to cause the electronic device to perform the method described in the first aspect.

[0019] According to a sixth aspect of this disclosure, a smart terminal is provided, comprising:

[0020] Camera, used to capture images of the worn parts;

[0021] The apparatus as described in the second aspect.

[0022] The virtual item wearing method, apparatus, and smart terminal disclosed herein include: responding to a wearing request, outputting a video stream of a first image of a wearing part wearing the virtual item; responding to a sliding operation on the first image, switching the first image to a second image according to the sliding operation, wherein the first image and the second image are images in a ring-shaped image group obtained by taking a ring-shaped image of the virtual item; outputting a video stream of a wearing part wearing the second image; and combining the ring-shaped image group and the sliding operation to output a video stream of a corresponding image of a wearing part wearing the virtual item. This method achieves virtual item wearing based on the ring-shaped image group, eliminating the need to construct a 3D model, thus saving resources and costs associated with 3D modeling. Furthermore, it eliminates the need for complex matching logic algorithms, improving the efficiency of virtual item wearing and enhancing the wearer's experience through a convenient and quick method.

[0023] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description

[0024] The accompanying drawings are provided to better understand this solution and do not constitute a limitation of this disclosure. Wherein:

[0025] Figure 1 This is a schematic diagram based on the first embodiment of the present disclosure;

[0026] Figure 2 This is a schematic diagram according to the second embodiment of the present disclosure;

[0027] Figure 3 This is an illustration based on the sharing page of this disclosure;

[0028] Figure 4 This is a schematic diagram of an image acquisition device according to the present disclosure;

[0029] Figure 5 It is a schematic diagram of the annular diagram set according to this disclosure;

[0030] Figure 6 This is a schematic diagram illustrating the wearing effect of virtual items based on this disclosure;

[0031] Figure 7 This is a schematic diagram according to the third embodiment of the present disclosure;

[0032] Figure 8 This is an illustration based on the sharing links and QR codes disclosed herein;

[0033] Figure 9 This is a schematic diagram according to the fourth embodiment of the present disclosure;

[0034] Figure 10 This is a schematic diagram according to the fifth embodiment of the present disclosure;

[0035] Figure 11 This is a schematic diagram according to the sixth embodiment of the present disclosure;

[0036] Figure 12 This is a block diagram of an electronic device used to implement the virtual item wearing method of the embodiments of this disclosure. Detailed Implementation

[0037] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0038] Augmented Reality (AR) technology refers to the technology that cleverly integrates virtual information with the real world. It widely uses various technologies such as multimedia, 3D modeling, real-time tracking and registration, intelligent interaction, and sensing to simulate and apply computer-generated virtual information such as text, images, 3D models, music, and videos to the real world. The two types of information complement each other, thereby achieving the "enhancement" of the real world.

[0039] Virtual Reality (VR), also known as virtual reality or virtual reality technology, encompasses computer, electronic information, and simulation technology. Its basic implementation is based on computer technology, utilizing and integrating the latest developments in various high-tech fields such as 3D graphics, multimedia, simulation, display, and server technology. With the help of computers and other equipment, it generates a realistic 3D virtual world that provides a multi-sensory experience, including visual, tactile, and olfactory sensations, thus giving people in the virtual world a sense of immersion.

[0040] Augmented reality (AR) and virtual reality (VR) technologies can be applied to the wearing of virtual items, enabling wearers to try on and try on virtual items (hereinafter referred to as "wearing"). Here, "virtual item" is a concept relative to a real item, representing the virtual form of a real item in a wearing scenario.

[0041] In some embodiments, the wearing of virtual items can be achieved based on 3D modeling, for example:

[0042] The image acquisition device can capture images of virtual objects and transmit the images to the 3D modeling device.

[0043] Correspondingly, the 3D modeling device receives images transmitted by the image acquisition device and performs 3D modeling based on the images to obtain a 3D model of the object. The 3D modeling device can also transmit the 3D model to an electronic device (hereinafter referred to as an electronic device) that enables the wearing of virtual objects.

[0044] Correspondingly, the electronic device receives the 3D model transmitted by the 3D modeling device. The electronic device can obtain the wearing parts of the wearer, and adjust and output the effect image of the wearing parts wearing virtual items based on the wearing parts and the 3D model.

[0045] However, on the one hand, the method described in the above embodiments requires the construction of a three-dimensional model, which is a tedious and complex process that consumes high resources and costs; on the other hand, adjusting and outputting the effect image of wearing virtual items on the wearing parts requires a complex matching logic algorithm, resulting in low efficiency in wearing virtual items and affecting the user's experience of wearing virtual items.

[0046] To avoid at least one of the above problems, this disclosure provides a technical concept developed through inventive effort: a ring-shaped image group of a virtual item is pre-constructed. To meet the wearer's needs for wearing the virtual item, an initial image of the virtual item (which can be any image in the pre-specified ring-shaped image group) can be output first. When the wearer's sliding operation is detected, the corresponding image is selected from the ring-shaped image group according to the sliding operation, and the initial image is replaced based on the selected image until the wearer completes the wearing of the virtual item.

[0047] Based on the above technical concept, this disclosure provides a method, device and smart terminal for wearing virtual items, which can be applied to the fields of metaverse, augmented reality and virtual reality. Specifically, it can be applied to the scenario of trying on virtual items, so as to improve the convenience of wearing virtual items and save resources.

[0048] Figure 1 This is a schematic diagram based on the first embodiment of the present disclosure, as shown below. Figure 1 As shown, the virtual wearing method for items according to embodiments of this disclosure includes:

[0049] S101: In response to the wearing request, output a video stream of the first image of the virtual item being worn on the wearing part. The first image is an image from a group of images obtained by taking a circumferential photograph of the virtual item.

[0050] For example, the execution subject of this embodiment can be a wearable device for virtual items (hereinafter referred to as a wearable device). The wearable device can be a terminal device, such as a smart terminal, specifically a mobile phone, tablet computer, smart bracelet, etc., which will not be listed here.

[0051] In this embodiment, a wearable device is used as an example of a smart terminal to illustrate the solution of this embodiment.

[0052] For example, a smart terminal has an output interface. The wearer can initiate a wearing request to the smart terminal based on the output interface. Correspondingly, the smart terminal can obtain the wearer's wearing parts (such as through a camera) and the first image in the surrounding object image group, and output a video stream of the first image of the wearing parts wearing virtual items through the output interface.

[0053] Among them, the ring object image group is a group of images consisting of N (N is a positive integer greater than 1) obtained by taking ring object photos of virtual objects, and the first image is any image in the ring object image group.

[0054] In some embodiments, the first image can be understood as the initial image for activating the wearing of the virtual item, and can be any image in a pre-specified group of images, such as a front view of the virtual item, a spatial view of the virtual item, etc. This embodiment does not limit the scope.

[0055] This embodiment does not limit the content of virtual items. For example, virtual items can be clothing, shoes, hats, watches, rings, etc.

[0056] S102: In response to a sliding operation on the first image, the first image is switched to the second image according to the sliding operation. The second image is an image from a group of images obtained by taking a panoramic view of the virtual object.

[0057] For example, the swiping operation can be based on the wearer's perspective and can be a swipe to the left, right, up, or down on the output interface. This embodiment does not limit the scope of the swipe operation.

[0058] Different sliding operations correspond to different second images. For example, the second image of a sliding operation to the left and the second image of a sliding operation to the right are different images in the ring image group.

[0059] For example, for a swipe operation by the wearer to the left on the first image, image A in the annular image group is identified as the second image; for a swipe operation by the wearer to the right on the first image, image B in the annular image group is identified as the second image. Here, both image A and image B are images in the annular image group, and image A and image B are two different images.

[0060] S103: Output the video stream of the second image of the wearing part.

[0061] Correspondingly, the smart terminal can replace the first image with the second image to output a video stream of the second image worn on the wearable part.

[0062] Based on the above analysis, this disclosure provides a method for wearing virtual items, including: responding to a wearing request, outputting a video stream of a first image of a wearing part wearing the virtual item; responding to a sliding operation on the first image, switching the first image to a second image according to the sliding operation, wherein the first image and the second image are images in a ring-shaped image group obtained by taking a ring-shaped image of the virtual item; and outputting a video stream of the second image of the wearing part wearing the virtual item. In this embodiment, by combining the ring-shaped image group and the sliding operation, the technical feature of outputting a video stream of the corresponding image of the wearing part wearing the virtual item is achieved based on the ring-shaped image group. There is no need to build a three-dimensional model, thereby saving the resources and costs of building a three-dimensional model. Moreover, there is no need to go through a complex matching logic algorithm, which improves the efficiency of wearing virtual items and improves the wearer's wearing experience in a convenient and quick way.

[0063] To help readers gain a deeper understanding of the implementation principles of this disclosure, the following is combined with... Figure 2 The method of wearing the virtual items disclosed herein is described in more detail. Among other things, Figure 2This is a schematic diagram based on the second embodiment of the present disclosure, as shown below. Figure 2 As shown, the method for wearing virtual items according to embodiments of this disclosure includes:

[0064] S201: Obtain and output the sharing page. The sharing page is used to enable the wearing of virtual items.

[0065] It should be understood that, in order to avoid tedious descriptions, the same technical features as those in the above embodiments will not be repeated in this embodiment.

[0066] For example, the shared page can be opened directly in the browser or WebView of the smart terminal. For instance, the wearer can initiate a request to open the shared page through the browser or WebView of the smart terminal, and the smart terminal will then display the shared page through its output interface.

[0067] The sharing page includes virtual buttons, such as those for browsing by wearer. Figure 3 Based on the perspective, Figure 3 As shown in the image on the left, the sharing page includes: an "AR" virtual button, a "Like" virtual button, a "Reset" virtual button, a "Move" virtual button, an "Auto Rotate" virtual button, and a "Landscape" virtual button.

[0068] Among these features, wearers can initiate a wear request to the smart terminal via the "AR" virtual button; wearers can initiate comments on virtual items via the "Like" virtual button; the "Reset" virtual button is used to restore the image of a rotated or moved virtual item to its initial state; the "Move" virtual button is used to move the image of a virtual item; the "Auto Rotate" virtual button is used to instruct the image of a virtual item to rotate automatically; and the "Landscape" virtual button is used to instruct the image of a virtual item to be displayed in landscape mode.

[0069] It should be understood that, Figure 3 The virtual button shown in the image on the left is only for illustrative purposes to show what virtual buttons may be included in a sharing page, and should not be construed as a limitation on virtual buttons.

[0070] For example, in some other embodiments, the sharing page may only include, as shown in the example, Figure 3 The virtual buttons shown in the image on the left, or the sharing page may also include... Figure 3 The virtual button is not shown in the image on the left, or it is included in the sharing page. Figure 3 Some of the virtual buttons in the image on the left.

[0071] For example, browsing by the wearer Figure 3 Based on the perspective Figure 3 The image on the right, relatively speaking, Figure 3The image on the right includes Figure 3 The virtual button not shown in the image on the left is the "Share" virtual button. Figure 3 The image on the right includes Figure 3 Some of the virtual buttons in the image on the left.

[0072] and Figure 3 This example demonstrates the application of the virtual item wearing method in an AR scene, showcasing virtual buttons (such as the "AR" virtual button) in the AR scene. It should not be construed as limiting the application scenarios of the virtual item wearing method in this embodiment. For example, the virtual item wearing method in this embodiment can also be applied to VR scenes, metaverse scenes, and so on, which will not be listed here.

[0073] Accordingly, the type and / or number of virtual buttons may differ depending on the application scenario. For example, if the virtual item wearing method of this embodiment is applied to a VR scene, the "AR" virtual button can be a "VR" virtual button; or if the virtual item wearing method of this embodiment is applied to a metaverse scene, the "AR" virtual button may be replaced with a "Start Wearing" virtual button, and so on, which will not be listed here.

[0074] In some embodiments, the sharing page can be generated by a cloud-based device. For example:

[0075] The virtual object can be photographed in a circular motion by an image acquisition device to obtain a group of circular object images (for easy distinction, this group of circular object images is called the initial group of circular object images), and the image acquisition device can transmit the initial group of circular object images to the cloud device.

[0076] In this embodiment, the image acquisition device is not limited. For example, the image acquisition device may include a smart terminal (which may be a different smart terminal from the smart terminal in the above embodiment or the same smart terminal; this embodiment does not limit this) and a turntable (or light box).

[0077] For example, such as Figure 4 As shown, the smart terminal is a mobile phone, the virtual object is a watch, the watch is placed on a turntable, and the watch rotates by the rotation of the turntable. The smart terminal takes pictures of the watch from different angles to obtain the initial set of circular object images.

[0078] The watch can be rotated evenly on the central axis by a turntable, and the shooting light source can be kept relatively stable during the shooting process, so as to obtain the initial ring object image group under a relatively stable shooting light source, thereby making the image quality in the initial ring object image group high.

[0079] The turntable can be a 360-degree turntable, a 360-degree turntable with a light box, or a 720-degree turntable with a light box; this embodiment does not impose any limitations.

[0080] The initial ring-shaped image set was obtained with a fixed center point distance and a uniform shooting angle. The center point distance refers to the distance between the center point of the watch and the center point of the smart terminal remaining constant during the watch's rotation. A uniform shooting angle means that the initial ring-shaped image set was obtained by taking pictures at the same angular intervals (such as preset shooting angle intervals).

[0081] This embodiment does not limit the number of images in the initial ring image group. For example, it can be 18 images (e.g., the smart terminal takes one image every 20 degrees of rotation of the turntable), or 36 images (e.g., the smart terminal takes one image every 5 degrees of rotation of the turntable), etc., which will not be listed here.

[0082] Relatively speaking, the more images in the initial ring map group, the richer the representation of virtual objects (such as...). Figure 4 The watch shown in the image exhibits its features from different shooting angles, resulting in smoother and more natural transitions and a better preview of the wearable device.

[0083] It should be understood that, Figure 4 The above description of image acquisition equipment is only for illustrative purposes, illustrating possible image acquisition equipment for obtaining initial ring-shaped object images, and should not be construed as a limitation on image acquisition equipment.

[0084] Accordingly, the cloud device acquires the initial ring object image set transmitted by the image acquisition device, and the cloud device performs background subtraction processing (i.e., background processing) on ​​the initial ring object image set to obtain the processed ring object image set (referred to as the ring object image set; that is, the ring object image set before processing is called the initial ring object image set, and the ring object image set after processing is called the ring object image set; the ring object image set described in the first embodiment is the processed ring object image set).

[0085] The cloud-based device can transmit the ring-object image set to the smart terminal, and can also generate a sharing page based on the ring-object image set and transmit the sharing page to the smart terminal. The ring-object image set is a ring-object image set with an alpha channel and no environmental background, and the sharing page can be in Hyper Text Markup Language (HTML) format.

[0086] If the virtual item is a ring, and the smart terminal captures an image every 5 degrees of rotation of the turntable, then the ring-object image set can be as follows: Figure 5 As shown. Figure 5Prefixes such as 00-00 indicate the image number in the ring-shaped object image group, while the suffix jpg indicates that the images in the ring-shaped object image group can be in jpg format.

[0087] For example, cloud devices can generate ring-shaped object diagrams based on technologies such as Hypertext Markup Language, lightweight, interpreted or just-in-time compiled programming languages ​​with function priority (JavaScript, JS), and Cascading Style Sheets (CSS). The specific implementation principle is not limited in this embodiment.

[0088] S202: In response to the wearing request, output a video stream of a first image of the virtual item being worn on the wearing part. The first image is an image from a group of images obtained by taking a circumferential photograph of the virtual item.

[0089] For example, the implementation principle of S202 can be found in the description of S101, which will not be repeated here.

[0090] For example, combining the above analysis and Figure 3 Wearers can click on, for example Figure 3 Click the "AR" virtual button on the sharing page shown to enter the preview state of the virtual wearable.

[0091] In some embodiments, after the wearer clicks the "AR" virtual button, the smart terminal outputs a system confirmation box so that the wearer can confirm whether to enable the smart terminal's camera permission. If the wearer clicks "No", the smart terminal outputs a prompt message to prompt the wearer whether to disable camera permission. If yes, the process ends. Conversely, if the wearer clicks "Yes", that is, the wearer confirms to enable camera permission, the camera will capture the wearer's wearing parts and enter the wear preview state.

[0092] For example, the camera of the smart terminal is turned on to capture a video stream, including the wearable parts, and the video stream is used as the background layer, the first image as the middle layer, and the virtual button as the top layer to generate and output the video stream.

[0093] For example, if the item is a ring and it is worn on a finger, generate and output as follows: Figure 6 The video stream shown. Among them, Figure 6 The image of the ring shown is the first image.

[0094] It is worth noting that the smart terminal may include a front-facing camera and a rear-facing camera. In some embodiments, if the wearer decides to enable camera permissions, the permissions for the rear-facing camera or the front-facing camera may be enabled by default, depending on the wearer's historical usage records or settings.

[0095] In other embodiments, the smart terminal can determine whether to enable permission for the front-facing camera or the rear-facing camera based on the virtual item.

[0096] For example, if the virtual items worn on the wearable part are watches, rings, shoes, etc., which can be photographed by the rear camera, then the permission to use the rear camera can be confirmed; if the virtual items worn on the wearable part are earrings, etc., which are more convenient to be photographed by the front camera, then the permission to use the front camera can be confirmed.

[0097] In other words, if the part of the virtual item that is being worn is more easily captured by the rear camera, then the permission to use the rear camera is confirmed; if the part of the virtual item that is being worn is more easily captured by the front camera, then the permission to use the front camera is confirmed.

[0098] S203: In response to a sliding operation on the first image, obtain the sliding distance and sliding direction corresponding to the sliding operation.

[0099] This embodiment does not limit the method for obtaining the sliding distance and sliding direction. For example, the sliding distance and sliding direction can be determined by monitoring the start and end positions of the sliding operation.

[0100] For example, such as Figure 6 As shown, if the wearing part is the wearer's left hand, the wearer can perform a sliding operation on the first image using their right hand. The starting position can be the pixel coordinates of the right hand on the output interface when the right hand starts sliding, and the ending position can be the pixel coordinates of the right hand on the output interface when the right hand stops sliding.

[0101] The sliding direction can be determined based on the wearer's viewing angle of the output interface, such as... Figure 6 Based on the wearer's viewing angle of the output interface, if the wearer's right hand slides from the right side of the output interface to the left side, it indicates that the sliding direction is to the left.

[0102] S204: Based on the sliding distance and sliding direction, switch from the first image to the second image. The second image is an image from a group of images obtained by taking a circumferential photograph of the virtual object.

[0103] Based on the above analysis, it can be seen that the images in the ring-shaped image group represent virtual objects from different shooting angles. That is, different images in the ring-shaped image group can represent the characteristics of the virtual object from different shooting angles. Therefore, in this embodiment, the smart terminal determines the sliding distance and direction through a sliding operation, so as to switch between images of the virtual object from different shooting angles by combining the sliding distance and direction. This facilitates the wearer's viewing of the wearing effect of the virtual object from different shooting angles, eliminating the need for complex matching logic algorithms, thereby improving the convenience and speed of wearing the device and enhancing the wearer's experience.

[0104] In some embodiments, S204 may include the following steps:

[0105] The first step is to convert the sliding distance into a deflection angle based on a preset conversion factor. The preset conversion factor is determined based on the number of images in the ring image group.

[0106] Based on the above analysis, it can be seen that the images in the annular image group are images representing different shooting angles of virtual objects, obtained by uniformly rotating the turntable. Therefore, the number of images in the annular image group varies depending on the angle of uniform rotation of the turntable. However, the circumference of one uniform rotation of the turntable is the same. Thus, the different number of images in the annular image group results in different arc lengths between adjacent images. Therefore, there is a certain conversion relationship between the arc length between adjacent images in the annular image group and the shooting angle difference between adjacent images in the annular image group. Based on this conversion relationship, a preset conversion coefficient can be calculated so that when obtaining the sliding distance, the sliding distance can be determined as the arc length between the first image and the second image. The deflection angle (which can be understood as the angle difference between the shooting angle of the first image and the shooting angle of the second image) can be determined by combining the preset conversion coefficient.

[0107] The second step is to obtain the second image from the ring image group based on the first image, the deflection angle, and the sliding direction, and then switch the first image to the second image.

[0108] Based on the above analysis, the deflection angle can be understood as the angular difference between the shooting angle of the first image and the shooting angle of the second image. The sliding direction can determine whether the sliding operation and the uniform rotation of the turntable during shooting are in the same or opposite direction. Therefore, by combining the deflection angle and the sliding direction to determine the second image from the ring image group, it meets the expectations of both the angle dimension and the direction dimension, thus making the second image highly reliable and effective.

[0109] In some embodiments, the first image has a first shooting angle, which is the angle at which the virtual object is photographed in a circular motion to obtain the first image. The second step may include the following sub-steps:

[0110] First sub-step: Determine the second shooting angle based on the deflection angle, sliding direction, and first shooting angle.

[0111] Based on the above analysis, it can be seen that the images in the annular image group were taken at a certain shooting angle. That is, the images in the annular image group have a shooting angle. Therefore, the first image was taken at a certain shooting angle. For ease of distinction, the shooting angle of the first image can be called the first shooting angle, and should not be understood as a limitation on the shooting angle of the first image.

[0112] The sliding direction may be the same as or opposite to the uniform rotation of the turntable during shooting. Therefore, the calculation method used to determine the second shooting angle will differ depending on the sliding direction.

[0113] For example, if the sliding direction is in the same direction as the uniform rotation of the turntable during shooting, a deflection angle can be added to the first shooting angle to obtain a second shooting angle.

[0114] Conversely, if the sliding direction is opposite to the uniform rotation of the turntable during shooting, the deflection angle can be subtracted from the first shooting angle to obtain the second shooting angle.

[0115] Second sub-step: From the ring object image group, obtain the second image obtained by taking a ring object photo of the virtual object from the second shooting angle, and switch the first image to the second image.

[0116] Similarly, the second shooting angle is the shooting angle when taking the second image, and should not be interpreted as a limitation on the second shooting angle.

[0117] Accordingly, after obtaining the second shooting angle, the second image obtained from the ring image group using the second shooting angle can be retrieved, and the first image can be switched to the second image.

[0118] In this embodiment, by combining different sliding directions and using different calculation methods to obtain the second shooting angle, the calculated second shooting angle can have high flexibility and reliability, thereby making the second image obtained from the ring object group based on the second shooting angle have high accuracy and reliability.

[0119] S205: Output the video stream of the second image of the wearing part.

[0120] For example, the implementation principle of S205 can be found in the description of S103, which will not be repeated here.

[0121] Based on the above analysis, in some embodiments, the smart terminal can switch video streams of different images of the worn parts through the wearer's swiping operation. In other embodiments, the smart terminal can also switch video streams of different resolution images of the worn parts through the wearer's zoom operation, so as to further improve the wearer's wearing experience.

[0122] To help readers deeply understand the implementation principle of how smart terminals switch between different resolution images of the worn parts of a video stream through the wearer's zoom operation, this section will now combine... Figure 7 The virtual wearing method for the items described in this disclosure is explained in detail. Figure 7 This is a schematic diagram based on the third embodiment of the present disclosure, as shown below. Figure 7 As shown, the virtual wearing method for items according to embodiments of this disclosure includes:

[0123] S701: In response to the wearing request, output a video stream of a first image of the virtual item being worn on the wearing part. The first image is an image from a group of images obtained by taking a circumferential photograph of the virtual item.

[0124] Similarly, to avoid tedious descriptions, the same technical features as those in the above embodiments will not be repeated in this embodiment.

[0125] For example, the implementation principle of S701 can be found in the description of S101, or in the descriptions of S201-S202, and will not be repeated here.

[0126] S702: In response to a scaling operation on the first image, determine the scaling degree of the first image based on the scaling operation.

[0127] For example, the wearer can perform a zoom operation on the first image by pinching with two fingers. The zoom operation can be either a magnification operation or a reduction operation on the first image.

[0128] For example, if the distance between two fingers increases, it means that the zoom operation is an enlargement operation of the first image; conversely, if the distance between two fingers decreases, it means that the zoom operation is a shrinking operation of the first image.

[0129] Correspondingly, if the scaling operation is an enlargement operation, the scaling degree is the enlargement degree; if the scaling operation is a shrinking operation, the scaling degree is the shrinking degree.

[0130] In other words, this embodiment can be understood as follows: the smart terminal can monitor the wearer's zoom-out and zoom-in operations on the first image. If the wearer's zoom-out operation on the first image is detected, the degree of zoom-out on the first image is determined based on the zoom-out operation; if the wearer's zoom-in operation on the first image is detected, the degree of zoom-in on the first image is determined based on the zoom-in operation.

[0131] This embodiment does not limit the implementation of the smart terminal's monitoring of the wearer's zooming operation on the first image. For example, you can refer to the implementation principle of monitoring the swipe operation, that is, the smart terminal can monitor the change in the distance between the wearer's two fingers on the output interface.

[0132] As described above, if the smart terminal detects a change in the distance between the wearer's two fingers on the output interface, and detects that the change represents an increase in the distance between the wearer's two fingers on the output interface, then the smart terminal determines that the wearer has performed a zoom operation, specifically a zoom-in operation; if the smart terminal detects that the change represents a decrease in the distance between the wearer's two fingers on the output interface, then the smart terminal determines that the wearer has performed a zoom operation, specifically a zoom-out operation.

[0133] In other words, in some embodiments, the zoom operation is implemented using two fingers, and the degree of zoom is determined based on the change in distance between the two fingers.

[0134] Relatively speaking, the degree of zoom is directly proportional to the change in distance between the two fingers. The greater the change in distance between the two fingers, the greater the zoom; conversely, the smaller the change in distance between the two fingers, the smaller the zoom.

[0135] For example, if the zoom operation is a magnification operation and the distance between the two fingers changes significantly, the magnification will be relatively large; conversely, if the zoom operation is a magnification operation and the distance between the two fingers changes little, the magnification will be relatively small.

[0136] If the zoom operation is a shrink operation and the distance between the two fingers changes significantly, the shrinkage will be relatively large; conversely, if the zoom operation is a shrink operation and the distance between the two fingers changes little, the shrinkage will be relatively small.

[0137] In this embodiment, by combining the change in distance between two fingers to determine the scaling degree, the wearer's participation can be incorporated during the wearing process, so that the wearing effect can better meet the wearer's personalized wearing needs, thereby improving the flexibility, versatility and reliability of the wear.

[0138] S703: Based on the preset mapping relationship between scaling level and sharpness, load a third image with a sharpness corresponding to the scaling level from the annular image group. The annular image group includes a third image, which is an image with the same shooting angle as the first image but with a different sharpness.

[0139] Based on the above analysis, the ring-shaped image set includes multiple images, and these multiple images represent the features of the virtual object from different shooting angles. In this embodiment, the ring-shaped image set may also include images representing the features of the virtual object from different resolutions.

[0140] For example, after obtaining the annular object image group based on the method described in the above embodiments, the images in the annular object image group can be used as base images. For each base image in the annular object image group, images of different resolutions can be generated to update the annular object image group and determine the mapping relationship between different resolutions and different scaling degrees.

[0141] Accordingly, when the scaling degree is obtained, the sharpness corresponding to the scaled image can be determined based on the mapping relationship, and an image with the sharpness corresponding to the scaling degree (such as the third image in this embodiment) can be obtained from the updated ring image group.

[0142] For example, the first image in the ring image group is a 1024*1024 pixel image, which is the original image captured from the first shooting angle. The third image is a 2048*2048 pixel image. Generally speaking, the original image output by the output interface, such as the first image output by the output interface being a 1024*1024 pixel image, can be obtained from the ring image group if the scaling operation is a magnification operation. This image represents the same shooting angle (i.e., the first shooting angle) as the first image, but with a different resolution, such as a 2048*2048 pixel image (i.e., the third image).

[0143] In contrast, loading the original image by default (such as the first image in this embodiment) can reduce loading time and provide a smoother wearing experience. When the wearer needs to zoom in to view the details of the item, a third image can be loaded so that the wearer can see the details of the item more clearly.

[0144] It should be understood that the implementation principle of the shrink operation can be found in the implementation principle of the zoom operation, and will not be repeated here.

[0145] S704: Outputs a video stream of the third image of the worn part.

[0146] For example, the implementation principle of S704 can be found in the implementation principle of S103, which will not be repeated here.

[0147] In this embodiment, by combining the scaling degree and mapping relationship to load a third image from the ring object image group, it is possible to enable the wearer to browse the features of virtual objects under different scaling scenarios, so as to meet the wearer's wearing experience.

[0148] It should be understood that the first, second, and third embodiments described above can be the embodiments described above, or some features can be extracted to obtain new embodiments, or they can be combined to obtain new embodiments, or they can be combined with other features to obtain new embodiments, etc. This embodiment is not limited.

[0149] For example, in some embodiments, in response to a drag operation on the first image, the smart terminal adjusts the output position of the first image according to the drag operation.

[0150] In other words, in order to meet the viewing angle requirements of the wearer, the wearer can drag the first image to adjust its output position on the output interface.

[0151] For example, the wearer can perform a drag operation by swiping with two fingers to output the first image at different positions on the output interface.

[0152] For example, if the smart terminal detects that the wearer is performing a drag operation by sliding two fingers, it can control the first image to move based on the drag operation until the drag operation stops. Then, it can control the first image to stop moving, so that the output position of the first image is adjusted from the position before the drag operation to the position at the end of the drag operation, thereby improving the wearer's wearing experience and meeting the wearer's personalized wearing needs.

[0153] It is worth noting that the above example only uses the first image for illustration. The smart terminal can adjust the output position of the first image according to the drag operation. Similarly, for other images, such as the second and third images, the smart terminal can adjust the output position of other images according to the drag operation. This embodiment does not limit this.

[0154] In other embodiments, in response to a request to generate an effect image, the smart terminal generates an effect image of the wearable part wearing the current image.

[0155] For example, if the current image is the first image, the effect image is the effect image of the wearer wearing the first image; if the current image is the second image, the effect image is the effect image of the wearer wearing the second image; if the current image is the third image, the effect image is the effect image of the wearer wearing the third image.

[0156] For example, when the wearer is satisfied with the wearing effect output by the output interface, they can initiate a request to generate an effect image through voice or touch, and the smart terminal will generate the corresponding effect image according to the request.

[0157] In some embodiments, the smart terminal can transmit the effect image to a cloud device. Accordingly, the cloud device receives the effect image transmitted by the smart terminal and generates a sharing link and / or QR code based on the effect image, such as... Figure 8 As shown, so that it can be shared.

[0158] The content in the sharing link and / or QR code can be an image of a virtual item, such as a ring image group, or the content in an effect image; this embodiment does not limit this.

[0159] According to another aspect of this disclosure, wearable devices for virtual items are also provided.

[0160] Figure 9 This is a schematic diagram based on the fourth embodiment of the present disclosure, as shown below. Figure 9 As shown, the wearable device 900 for virtual items disclosed herein includes:

[0161] The first output unit 901 is used to output a video stream of a first image of a virtual item being worn on a wearable part in response to a wear request.

[0162] The switching unit 902 is configured to switch the first image to a second image in response to a sliding operation on the first image, wherein the first image and the second image are images in a group of circular images obtained by taking a circular image of the virtual object.

[0163] The second output unit 903 is used to output a video stream of the second image of the wearing part.

[0164] Figure 10 This is a schematic diagram based on the fifth embodiment of the present disclosure, as shown below. Figure 10 As shown, the wearable device 1000 for virtual items disclosed herein includes:

[0165] The first output unit 1001 is used to output a video stream of a first image of a virtual item being worn on a wearable part in response to a wear request.

[0166] The switching unit 1002 is configured to switch the first image to a second image in response to a sliding operation on the first image, wherein the first image and the second image are images in a group of circular images obtained by taking a circular image of the virtual object.

[0167] In some embodiments, combined with Figure 10 It can be seen that the switching unit 1002 includes:

[0168] Acquisition subunit 10021 is used to acquire the sliding distance and sliding direction corresponding to the sliding operation.

[0169] The switching subunit 10022 is used to switch the first image to the second image according to the sliding distance and the sliding direction.

[0170] In some embodiments, the switching subunit 10022 includes:

[0171] The conversion module is used to convert the sliding distance into a deflection angle according to a preset conversion coefficient, wherein the preset conversion coefficient is determined based on the number of images in the annular image group, and the images in the annular image group are obtained by shooting at preset shooting angle intervals.

[0172] The acquisition module is used to acquire the second image from the annular image group based on the first image, the deflection angle, and the sliding direction.

[0173] In some embodiments, the first image has a first shooting angle, which is the angle at which the first image is obtained by taking a circumferential shot of the virtual object; the acquisition module includes:

[0174] The determination submodule is used to determine the second shooting angle based on the deflection angle, the sliding direction, and the first shooting angle.

[0175] The acquisition submodule is used to acquire a second image from the surrounding image group, obtained by taking a surrounding image of the virtual object from the second shooting angle.

[0176] A switching module is used to switch the first image to the second image.

[0177] The second output unit 1003 is used to output a video stream of the second image of the wearing part.

[0178] The determining unit 1004 is configured to determine the scaling degree of the first image in response to a scaling operation on the first image.

[0179] In some embodiments, the zoom operation is performed using two fingers, and the degree of zoom is determined based on the change in distance between the two fingers.

[0180] The loading unit 1005 is used to load a third image with a resolution corresponding to the scaling degree from the annular image group according to a preset mapping relationship between scaling degree and resolution. The annular image group includes the third image, which is an image with the same shooting angle as the first image but with different resolution.

[0181] The third output unit 1006 is used to output a video stream of the third image being worn by the wearing part.

[0182] The adjustment unit 1007 is used to adjust the output position of the first image in response to a drag operation on the first image, according to the drag operation.

[0183] According to another aspect of this disclosure, a smart terminal is also provided, comprising:

[0184] A camera is used to capture images of the parts of the body being worn.

[0185] Wearable devices for virtual items as described in any of the preceding embodiments.

[0186] For example, combining the above analysis and Figure 3 After the wearer clicks the "AR" virtual button, the smart terminal outputs a system confirmation box so that the wearer can confirm whether to enable the smart terminal's camera permission. If the wearer confirms that the smart terminal's camera permission is enabled, the smart terminal will control the camera to turn on and obtain the wearer's body parts through the camera.

[0187] Furthermore, based on the above analysis, it can be seen that in some embodiments, the camera can be a front-facing camera or a rear-facing camera. For different virtual objects, the camera used to acquire the wearable parts may be different. Please refer to the description in the above embodiments for details, which will not be repeated here.

[0188] In some embodiments, the smart terminal includes an output interface for outputting the video stream as described in the above embodiments.

[0189] In other embodiments, the smart terminal may also include a voice pickup component to acquire voice commands initiated by the wearer. The voice commands may be a wearing request as described in the above embodiments, or a request to generate an effect image as described in the above embodiments.

[0190] Figure 11 This is a schematic diagram based on the sixth embodiment of the present disclosure, as shown below. Figure 11 As shown, the electronic device 1100 in this disclosure may include a processor 1101 and a memory 1102.

[0191] Memory 1102 is used to store programs. Memory 1102 may include volatile memory, such as random-access memory (RAM), such as static random-access memory (SRAM), double data rate synchronous dynamic random-access memory (DDR SDRAM), etc.; memory may also include non-volatile memory, such as flash memory. Memory 1102 is used to store computer programs (such as application programs, functional modules, etc. that implement the above methods), computer instructions, etc. The computer programs, computer instructions, etc., can be partitioned and stored in one or more memories 1102. Furthermore, the computer programs, computer instructions, data, etc., can be accessed by processor 1101.

[0192] The aforementioned computer programs and instructions can be stored in one or more partitions of memory 1102. Furthermore, the aforementioned computer programs and instructions can be invoked by processor 1101.

[0193] The processor 1101 is configured to execute the computer program stored in the memory 1102 to implement the various steps in the methods described in the above embodiments.

[0194] For details, please refer to the relevant descriptions in the preceding method embodiments.

[0195] The processor 1101 and the memory 1102 can be independent structures or integrated structures. When the processor 1101 and the memory 1102 are independent structures, the memory 1102 and the processor 1101 can be coupled together via bus 1103.

[0196] The electronic device in this embodiment can execute the technical solution in the above method. Its specific implementation process and technical principle are the same, and will not be repeated here.

[0197] The collection, storage, use, processing, transmission, provision, and disclosure of user personal information (such as the parts worn by the wearer) in the technical solution disclosed herein comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0198] According to embodiments of this disclosure, this disclosure also provides an electronic device, a readable storage medium, and a computer program product.

[0199] According to embodiments of this disclosure, this disclosure also provides a computer program product comprising: a computer program stored in a readable storage medium, at least one processor of an electronic device being able to read the computer program from the readable storage medium, and the at least one processor executing the computer program causing the electronic device to perform the scheme provided in any of the above embodiments.

[0200] Figure 12 A schematic block diagram of an example electronic device 1200 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0201] like Figure 12 As shown, device 1200 includes a computing unit 1201, which can perform various appropriate actions and processes according to a computer program stored in read-only memory (ROM) 1202 or a computer program loaded from storage unit 1208 into random access memory (RAM) 1203. The RAM 1203 may also store various programs and data required for the operation of device 1200. The computing unit 1201, ROM 1202, and RAM 1203 are interconnected via bus 1204. Input / output (I / O) interface 1205 is also connected to bus 1204.

[0202] Multiple components in device 1200 are connected to I / O interface 1205, including: input unit 1206, such as keyboard, mouse, etc.; output unit 1207, such as various types of monitors, speakers, etc.; storage unit 1208, such as disk, optical disk, etc.; and communication unit 1209, such as network card, modem, wireless transceiver, etc. Communication unit 1209 allows device 1200 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0203] The computing unit 1201 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 1201 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 1201 performs the various methods and processes described above, such as a method for wearing virtual items. For example, in some embodiments, the method for wearing virtual items may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 1208. In some embodiments, part or all of the computer program may be loaded and / or installed on device 1200 via ROM 1202 and / or communication unit 1209. When the computer program is loaded into RAM 1203 and executed by the computing unit 1201, one or more steps of the method for wearing virtual items described above may be performed. Alternatively, in other embodiments, the computing unit 1201 may be configured to perform a method of wearing virtual items by any other suitable means (e.g., by means of firmware).

[0204] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0205] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0206] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0207] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0208] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.

[0209] Computer systems can include clients and servers. Clients and servers are generally geographically separated and typically interact via communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. A server can be a cloud server, also known as a cloud computing server or cloud host, a hosting product within the cloud computing service ecosystem, addressing the shortcomings of traditional physical hosts and VPS (Virtual Private Server, or simply "VPS") services, such as high management difficulty and weak business scalability. Servers can also be servers for distributed systems or servers incorporating blockchain technology.

[0210] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.

[0211] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.

Claims

1. A method for wearing a virtual item, comprising: In response to a wear request, a video stream including the wearable part is captured by a camera. The video stream is used as the background layer, the first image is used as the middle layer, and the virtual button is used as the top layer to generate and output a video stream of the first image of the wearable part wearing the virtual item. The first image is any image in the ring image group, which is a group of N images obtained by taking ring shots of the virtual item, where N is a positive integer greater than 1. In response to a sliding operation on the first image, the sliding distance and sliding direction corresponding to the sliding operation are obtained based on the sliding operation; The sliding distance is converted into a deflection angle according to a preset conversion factor, wherein the preset conversion factor is determined based on the number of images in the ring object image group, and the images in the ring object image group are obtained by shooting at a preset shooting angle interval; The first image has a first shooting angle, which is the angle at which the virtual object is photographed in a circular motion to obtain the first image. A second shooting angle is determined based on the deflection angle, the sliding direction, and the first shooting angle. A second image obtained from the circular object image group, photographed in a circular motion with the second shooting angle, is acquired. The first image is switched to the second image. The first image and the second image are images from the circular object image group obtained by photographing the virtual object in a circular motion. Different sliding operations correspond to different second images. Output a video stream of the second image showing the wearing part; The method further includes: In response to a scaling operation on the first image, the scaling degree of the first image is determined based on the scaling operation; According to the preset mapping relationship between scaling degree and sharpness, a third image with a sharpness corresponding to the scaling degree is loaded from the annular image group, wherein the annular image group includes the third image, and the third image is an image with the same shooting angle as the first image but with different sharpness; Output a video stream of the third image showing the wearing part.

2. The method according to claim 1, wherein, The zoom operation is performed using two fingers, and the zoom level is determined based on the change in distance between the two fingers.

3. The method according to claim 1 or 2, further comprising: In response to a drag operation on the first image, the output position of the first image is adjusted according to the drag operation.

4. A wearable device for virtual items, comprising: The first output unit is used to respond to a wearing request, based on a video stream captured by a camera including the wearing part, using the video stream as a background layer, the first image as an intermediate layer, and the virtual button as the top layer, to generate and output a video stream of the first image of the wearing part wearing the virtual item; wherein, the first image is any image in the ring object image group, and the ring object image group is an image group including N images obtained by taking ring object shots of the virtual item, where N is a positive integer greater than 1; A switching unit is configured to switch the first image to a second image in response to a sliding operation on the first image, wherein the first image and the second image are images in a group of circular images obtained by taking a circular image of the virtual object; The second output unit is used to output a video stream of the second image of the worn part; The switching unit includes: A subunit is used to acquire the sliding distance and sliding direction corresponding to the sliding operation; A switching subunit is configured to switch the first image to the second image based on the sliding distance and the sliding direction; The switching subunit includes: The conversion module is used to convert the sliding distance into a deflection angle according to a preset conversion coefficient, wherein the preset conversion coefficient is determined based on the number of images in the annular image group, and the images in the annular image group are obtained by shooting at a preset shooting angle interval. The acquisition module is used to acquire the second image from the annular image group based on the first image, the deflection angle, and the sliding direction; A switching module is used to switch the first image to the second image; Wherein, the first image has a first shooting angle, which is the angle at which the first image is obtained by taking a circumferential shot of the virtual object; the acquisition module includes: The determination submodule is used to determine the second shooting angle based on the deflection angle, the sliding direction, and the first shooting angle; The acquisition submodule is used to acquire a second image from the surrounding image group, obtained by taking a surrounding image of the virtual object from the second shooting angle; Also includes: A determining unit is configured to, in response to a scaling operation on the first image, determine the scaling degree of the first image based on the scaling operation; The loading unit is used to load a third image with a resolution corresponding to the scaling degree from the annular image group according to a preset mapping relationship between scaling degree and resolution. The annular image group includes the third image, which is an image with the same shooting angle as the first image but with different resolution. The third output unit is used to output a video stream of the third image being worn by the wearing part.

5. The apparatus according to claim 4, wherein, The zoom operation is performed using two fingers, and the zoom level is determined based on the change in distance between the two fingers.

6. The apparatus according to any one of claims 4-5, further comprising: An adjustment unit is configured to adjust the output position of the first image in response to a drag operation on the first image, based on the drag operation.

7. An electronic device, comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-3.

8. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-3.

9. A computer program product comprising a computer program that, when executed by a processor, implements the steps of the method according to any one of claims 1-3.

10. A smart terminal, comprising: Camera, used to capture images of the worn parts; The apparatus as described in any one of claims 4-6.