Card processing method and device, electronic equipment and storage medium

By obtaining target objects and card elements on electronic devices and generating dynamic background images, the problem of single card display style is solved, the diversification and playability of cards are achieved, and the user experience is improved.

CN119322579AActive Publication Date: 2025-01-17GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202310880054.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-17
Publication Date
2025-01-17
Estimated Expiration
2043-07-17

AI Technical Summary

Technical Problem

The display style of cards on electronic devices is single, lacking diversity, and affecting the user experience.

Method used

By moving the target object to the target card, obtaining the target information of the target object and the elements in the target card, and generating a background picture containing two elements, so that the card background picture can follow the changes of the target object, increasing the playability and diversity of the card sex.

Benefits of technology

It realizes diversification of card display, enhances user experience, and gives cards more interactiveness and visual appeal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119322579A_ABST
    Figure CN119322579A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a card processing method and device, electronic equipment and a storage medium. The method comprises the steps that in response to movement of a target object to a target card, target information of the target object is acquired, a background picture of the target card is set based on the target information and elements in the target card, and the background picture is generated based on picture information and the elements in the target card. According to the method, the background picture containing the two elements is generated through the card information of the target card and the target information moving into the target card, so that the background picture of the target card can change along with the target object moving into the target card, the target card is endowed with more playability, and the playability of the target card is improved. Diversification of target card display is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer technology, and specifically relates to a card processing method, device, electronic device and storage medium. Background Art

[0002] Cards enable users to intuitively and conveniently view relevant information or run a specific function under an application on an electronic device, and are widely used. When viewing relevant information or running a specific function under an application through a card, the display style of the card is relatively simple. Summary of the invention

[0003] In view of the above problems, the present application proposes a card processing method, device, electronic device and storage medium to improve the above problems.

[0004] In a first aspect, an embodiment of the present application provides a card processing method, the method comprising: in response to moving a target object to a target card, obtaining target information of the target object; based on the target information and elements in the target card, setting a background image of the target card, the background image being generated based on the target information and elements in the target card.

[0005] In second aspect, an embodiment of the present application provides a card processing device, which includes: an information acquisition unit, used to acquire target information of the target object in response to moving the target object to a target card; a setting unit, used to set a background image of the target card based on the target information and elements in the target card, and the background image is generated based on the target information and elements in the target card.

[0006] In a third aspect, an embodiment of the present application provides an electronic device, comprising one or more processors and a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the above-mentioned method.

[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored, wherein the above method is executed when the program code is run.

[0008] The embodiments of the present application provide a card processing method, device, electronic device and storage medium. In response to moving a target object to a target card, the target information of the target object is obtained, and based on the target information and the elements in the target card, a background image of the target card is set, and the background image is generated based on the image information and the elements in the target card. Through the above method, a background image containing two elements is generated through the card information of the target card and the target information moved to the target card, so that the background image of the target card can change with the target object moved to the target card, giving the target card more playability and realizing the diversification of the display of the target card. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0010] Figure 1 A flowchart of a card processing method proposed in one embodiment of the present application is shown;

[0011] Figure 2 A schematic diagram showing the display of a target card and a target object in one embodiment of the present application is shown;

[0012] Figure 3 A schematic diagram showing a display of a target object moving to a target card in an embodiment of the present application is shown;

[0013] Figure 4 A schematic diagram showing the display of a target card in an embodiment of the present application is shown;

[0014] Figure 5 A flowchart of a card processing method proposed in another embodiment of the present application is shown;

[0015] Figure 6 A flowchart of a card processing method proposed in another embodiment of the present application is shown;

[0016] Figure 7 A display schematic diagram of a target object in a suspended state in another embodiment of the present application is shown;

[0017] Figure 8 A flowchart of a card processing method proposed in another embodiment of the present application is shown;

[0018] Fig. 9 A flowchart of a card processing method proposed in another embodiment of the present application is shown;

[0019] Fig.10 A structural block diagram of a card processing device proposed in an embodiment of the present application is shown;

[0020] Fig.11 A structural block diagram of an electronic device for executing a card processing method according to an embodiment of the present application is shown;

[0021] Fig.12 A storage unit in an embodiment of the present application is shown for storing or carrying a program code for implementing a card processing method according to an embodiment of the present application. DETAILED DESCRIPTION

[0022] 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 ordinary technicians in this field without creative work are within the scope of protection of this application.

[0023] With the rapid development of the Internet, users can view various types of information provided by various applications through electronic devices. In order to facilitate users to view various types of information, a card-based information viewing method has emerged. Based on this method, users can set cards corresponding to different types of information, so that electronic devices can display a certain type of information in units of cards.

[0024] When a certain type of information is displayed in a card unit, the background image of the card is generally a default style background image with a relatively simple style, which leaves room for improvement in the user's viewing experience.

[0025] Therefore, the inventors proposed the card processing method, device, electronic device and storage medium in the present application. In response to moving the target object to the target card, the target information of the target object is obtained, and based on the target information and the elements in the target card, the background image of the target card is set, and the background image is generated based on the image information and the elements in the target card. Through the above method, a background image containing two elements is generated through the card information of the target card and the target information moved to the target card, so that the background image of the target card can change with the target object moved to the target card, giving the target card more playability and realizing the diversification of the display of the target card.

[0026] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0027] See also Figure 1 , a card processing method provided in an embodiment of the present application is applied to an electronic device, the method comprising:

[0028] Step S110: in response to moving the target object to the target card, acquiring target information of the target object.

[0029] In the embodiment of the present application, the target object is an object used to generate a background image in combination with the elements displayed in the target card, and the target object can be a picture, text or video, which is not specifically limited here. The target card is a card used to set the background image, and the target card can be any card displayed on the desktop or negative one screen of the electronic device, which is not specifically limited here.

[0030] Among them, a card is a form of information presented by an electronic device to a user, which may include pictures, texts, links, controls and other information related to the same topic, such as weather cards, stock cards and news cards.

[0031] As a method, a card can be the entrance to the application (application, APP) corresponding to the card. The user can operate the card to open the application corresponding to the card, so that the electronic device presents the interface of the application corresponding to the card to the user, so that the user can view more detailed information on the interface. Furthermore, after opening the application corresponding to the card, the user can also perform corresponding operations on the interface of the application to meet their own needs. For example, the application corresponding to the weather card is weather. The user can open the application weather by operating the weather card, so that the electronic device presents the weather interface to the user. The user can set the information displayed on the weather card, or view the weather conditions of a certain city, etc., by operating the weather interface to meet their own needs.

[0032] As another way, the card can also be the entrance to one or more services provided by the application corresponding to the card. The user can open the services provided by the application corresponding to the card by operating the card, so that the electronic device presents the service interface of the application corresponding to the card to the user.

[0033] Among them, the application can be a native application or a third-party application in the electronic device, which is not specifically limited here. Among them, the native application refers to an application that is pre-installed in the electronic device, which is an application that comes with the electronic device. When the electronic device is turned on for the first time, the desktop of the electronic device will present the icon of the native application. Third-party applications are different from native applications. Third-party applications refer to applications produced by a third party and need to be installed by the user on the electronic device. Optionally, the electronic device can be any one of a mobile phone, a tablet computer, a desktop, a laptop, a notebook computer, an ultra-mobile personal computer (Ultra-mobile Personal Computer, UMPC), a handheld computer, a netbook, a personal digital assistant (Personal Digital Assistant, PDA), a wearable electronic device, a smart watch and other devices, which is not specifically limited here.

[0034] Furthermore, in the embodiment of the present application, the card can be displayed on the desktop or negative one screen of the electronic device, which is not specifically limited here. Among them, the negative one screen refers to sliding the screen to the right on the main screen of the electronic device until sliding to the user interface of the leftmost split screen. The negative one screen can be used to place some quick service functions and notification messages, such as global search, quick entry to a certain page of the application (payment code, WeChat, etc.), instant information and reminders (express information, expenditure information, commuting conditions, taxi travel information, schedule information, etc.) and attention to dynamics (football stands, basketball stands, stock information, etc.).

[0035] Multiple cards may be included in the desktop or the negative one screen. The cards included in the desktop are different from the cards included in the negative one screen. The difference here may be at least one of different card types, different card displayed contents, different card corresponding applications, different cards corresponding services, etc.

[0036] In the embodiment of the present application, the card can be generated in a variety of ways.

[0037] As one of the ways, in response to a first operation acting on an application icon of a target application, a card corresponding to the target application is generated. Wherein, the target application is an application acted on by the first operation, and the first operation can be at least one of a two-finger press operation, a long press operation, a click operation or a sliding operation, which is not specifically limited here. Specifically, for each application installed in an electronic device, an application icon corresponding to the application can be displayed on the screen of the electronic device, so the screen of the electronic device includes multiple application icons corresponding to multiple applications. When a first operation acting on a target application icon among multiple application icons is detected, a card corresponding to the target application icon is generated in response to the first operation. Wherein, the first operation can be one of a two-finger press operation, a click operation, a sliding operation or a long press operation. Wherein, the two-finger press operation and the long press operation can be operations that trigger card conversion for all application icons, the click operation can be operations that trigger card conversion for one application icon, and the sliding operation can be operations that trigger card conversion for at least one application icon, which are not specifically limited here.

[0038] As another method, a corresponding card may be generated based on the current display scene and the scene data corresponding to the current display scene. When generating a corresponding card based on the current display scene and the scene data corresponding to the current display scene, cards corresponding to different display scenes may be generated based on preset display rules.

[0039] In the embodiment of the present application, different scene data correspond to different display rules. After the scene data is acquired, the corresponding display rule can be determined based on the acquired scene data, and then the card corresponding to the current display scene can be generated based on the corresponding display rule. The display rule refers to the card display rule.

[0040] Each card has a different display scene. For example, the sports card uses different display states under different user motion states. When walking, the silhouette of the walking person and the color indication of the motion intensity are displayed in combination; when running, the silhouette of the running person and the corresponding color indication of the running motion intensity are displayed in combination. For another example, when the display card is a ticket card, the channel information of the ticket purchase is displayed before the ticket purchase, and the content information of the purchased ticket is displayed after the ticket purchase is completed. Therefore, it is necessary to confirm what type of card mode is used for display by collecting scene data. The scene data is the data information that can confirm the current display mode. For example, by detecting the vibration amplitude of the mobile phone, determine the user's motion state; by collecting the capacity of the memory space, determine the memory occupancy rate; by sending acquisition information to the server, collect updated information content, etc.

[0041] Different cards have different card functions, so each card has its corresponding card display rules. The card display rules include the generation rules of the card's own graphic style and color, and also include the display rules for the card display data. For example, when the card is used to display the user's exercise status, different card colors are used to represent the user's current exercise intensity according to the length of the exercise time. The data displayed on the card also includes the mapped user's exercise items. When the user is walking, a walking person silhouette icon is displayed; when the user is running, a running person silhouette icon is displayed, etc. The main purpose of the different display rules of the card is to display the data that the card needs to display in a striking way, so as to facilitate user identification. Therefore, in this embodiment, the differentiated display that is conducive to user identification can be used in cards that implement different functions, rather than being limited to the above-mentioned embodiments.

[0042] After a card is generated in the above manner, when information is displayed through the card, in order to make the display of the card more beautiful, a background image may be set for the card.

[0043] When setting a background image for a card, the background image can be automatically generated by moving the target object to the target card and combining the target information of the target object with the elements in the target card.

[0044] In the embodiment of the present application, the target information of the target object can be understood as the key information of the extracted target object. Wherein, when the target object can be different types of objects, the target information corresponding to the target object can be different. For example, when the target object is a picture, the target information of the target object can be the elements included in the picture (for example, if the picture is an animal image, then the target information can be the animal in the picture); when the target object is a text, the target information of the target object can be the keywords of the text; when the target object is a video, the target information of the target object can be the information included in the key frame image of the video, etc., which is not specifically limited here.

[0045] Optionally, when the target object is an object of a different type, the target object can be obtained from different places. For example, when the target object is a picture, the target object can be obtained from an album or gallery of the electronic device; when the target object is text, the target object can be obtained from a notepad or web page of the electronic device; when the target object is a video, the target object can be obtained from a video player of the electronic device, etc.

[0046] Furthermore, when obtaining target information of a target object, the target information of the target object can be obtained through a pre-trained information extraction model. Specifically, when the target object is moved to the target card, the target object is input into the pre-trained information extraction model to obtain the target information of the target object output by the information extraction model.

[0047] Optionally, in an embodiment of the present application, moving the target object to the target card can be understood as moving the target object into the target card, or moving the target object to overlap at least a portion of the target card, or moving the target object to within a preset distance range of the target card, etc. The preset distance range can be understood as a distance range from the border of the target card. Exemplarily, the preset distance range can be set to a range of 5 mm from the border of the target card, that is, when the target object is moved to 5 mm from the border of the target card, it can be regarded as moving the target object to the target card.

[0048] In the embodiment of the present application, the target object can be moved to the target card in a variety of ways.

[0049] As one of the methods, you can move the target object to the target card by dragging it.

[0050] When the target object is moved to the target card by dragging, the target object can be directly clicked to make the target object in a suspended state, and then the user can directly drag the target object to the target card.

[0051] As another method, the target object can be moved to the target card by double-clicking or multi-clicking.

[0052] When moving the target object to the target card by double-clicking or multi-clicking, the target object can be selected by double-clicking or multi-clicking first, so that the target object is in a suspended state, and then double-clicking or multi-clicking the target card, so that the target object can be automatically moved to the target card. When multi-clicking the target object and the target card so that the target object is automatically moved to the target card, the number of clicks of the multi-click operation can be customized by the user. For example, Figure 2 As shown, in Figure 2 The target object 101 and the target card 102 are included. When the target object needs to be moved to the target card, the target object 101 can be double-clicked or multiple-clicked to make the target object 101 in a suspended state, and then the target card 102 can be double-clicked or multiple-clicked to make the target object 101 automatically move to the target card 102. The schematic diagram of the target object 101 automatically moving to the target card 102 can be shown as follows Figure 3 shown.

[0053] As another method, the target object can be moved to the target card by long pressing.

[0054] When moving the target object to the target card by long pressing, the target object can be selected by long pressing first, so that the target object is in a suspended state, and then the target card can be long pressed, so that the target object can be automatically moved to the target card. Figure 2 As shown, when the target object needs to be moved to the target card, the target object 101 can be long pressed to make the target object 101 in a suspended state, and then the target card 102 can be long pressed to make the target object 101 automatically move to the target card 102.

[0055] In the above-mentioned method of moving the target object to the target card, the specific position of the target card to which the target object is moved can be determined by the action position of the operation acting on the target card. For example, in the above-mentioned method of moving the target object to the target card by double-clicking, if the action position of the double-click operation acting on the target card is the middle position of the target card, then it can be determined that when the target object is moved to the target card, the target object will be moved to the middle position of the target card; alternatively, it can be pre-set to always move the target object to a preset position of the target card.

[0056] In an embodiment of the present application, in response to moving the target object to the target card, when obtaining the target information of the target object, the timing of obtaining the target information of the target object can be when the target object is just moved to the target card, or within a preset time after the target object is moved to the target card, and no specific limitation is made here.

[0057] Step S120: Based on the target information and the elements in the target card, a background image of the target card is set, wherein the background image is generated based on the target information and the elements in the target card.

[0058] In the embodiment of the present application, the elements in the target card can be understood as the elements in the acquired target card used to generate the background image of the target card. The elements in the target card are different types of information carried in the target card. For example, the elements in the target card can include: pictures, text, videos, buttons, coupons, music, payment information, registration forms, social media streams or shares, reward information, links, and any combination of the above elements.

[0059] As a method, after obtaining the target information of the target object, you can start to obtain the elements in the target card. When obtaining the elements in the target card, you can directly obtain the elements at the specified position in the target card, or you can input the target card into a pre-trained information extraction model to obtain the elements in the target card output by the information extraction model.

[0060] After obtaining the target information of the target object and the elements in the target card, the target information of the target object and the elements in the target card can be fused by calling the AIGC (Artificial Intelligence Generated Content) model's ability to generate images from text, or calling the AIGC model's ability to generate images from images, or calling the AIGC model's ability to generate images from images + text, to generate a new picture including the target information and the elements in the target card. That is, the generated background picture is associated with the target information and the elements in the target card. Exemplarily, the target information of the target object obtained is a picture containing the Great Wall, and the element of the target card obtained is the text "snowing", then the generated background picture can be the Great Wall on a snowy day. For another example, the target object obtained is a picture containing sunflowers, and the element of the target card obtained is the text "sunny day", then the generated background picture can be a sunflower on a sunny day on the grass.

[0061] Optionally, in the embodiment of the present application, the background images of multiple target cards can be set through the same target object. In the case of multiple target cards, the multiple target cards can be target cards in the same category, or the multiple target cards can also be multiple target cards selected by the user, which is not specifically limited here. The categories of target cards can be divided according to the type of application to which they belong.

[0062] When there are multiple target cards, when setting the background image of the target card based on the elements and target information in the target card, for each target card, the elements in the target card obtained may be different, and thus the background image corresponding to each target card is different.

[0063] As a method, when there are multiple target cards, when generating background images of target cards based on target information and elements in target cards, different elements in different target cards can be used to generate background images corresponding to each target card. For example, the target cards include card A, card B, and card C. When obtaining elements in each target card, element A can be obtained for card A, element B can be obtained for card B, and element C can be obtained for card C. Element A, element B, and element C are three different elements. When generating background images corresponding to each target card, a background image can be generated for card A based on target information and element A, a background image can be generated for card B based on target information and element B, and a background image can be generated for card C based on target information and element C.

[0064] When the background image of each target card is generated by different elements in different target cards, which elements to obtain from the target card can be determined according to the priority of each target card object. Specifically, the higher the priority of the target card, the more elements can be obtained from the target card, and vice versa, the lower the priority of the target card, the fewer elements can be obtained from the target card. Among them, the priority of the target card can be determined according to the type of the target card, and the priority of each type of card can be preset; or, the priority of the target card can also be determined by the application corresponding to the target card; or, the priority of the target card can also be determined by the frequency of use of the target card within a preset time period. Of course, the priority of the target card can also be determined by other methods.

[0065] After generating a background image corresponding to the target card, the background image is set as the background image of the target card. When setting the generated background image as the background image of the target card, the size of the background image can be cropped to be the same as the size of the target card. For example, Figure 4 As shown, in Figure 4 In the example, a target object 101 is included, and the target object 101 is a picture containing sunflowers. The element of the obtained target card 102 is the text "sunny day", and the generated background picture is a picture of sunflowers on a sunny day. After the background picture is set as the background picture of the target card, the target card 102 can be Figure 4 shown.

[0066] The present application provides a card processing method, in response to moving a target object to a target card, obtaining target information of the target object, and setting a background image of the target card based on the target information and elements in the target card, wherein the background image is generated based on the image information and elements in the target card. Through the above method, a background image containing two elements is generated through the card information of the target card and the target information moved to the target card, so that the background image of the target card can change with the target object moved to the target card, giving the target card more playability and realizing the diversification of the display of the target card.

[0067] See also Figure 5 , a card processing method provided in an embodiment of the present application is applied to an electronic device, the method comprising:

[0068] Step S210: In response to moving the target object to the target card, acquiring target information of the target object.

[0069] Step S220: Acquire the target element displayed in the target card.

[0070] In the embodiment of the present application, the target element may be a pre-set element that needs to be obtained for generating a background image. After obtaining the target information of the target object, the target element displayed in the target image is obtained; of course, the target element displayed in the target card may also be obtained when the target object is moved to the target card, that is, step S210 and step S220 may be performed simultaneously.

[0071] Step S230: Generate a target image based on the target element and the target information.

[0072] In an embodiment of the present application, when generating a target image based on target elements and target information, the ability of the AIGC big model to generate images from texts can be called, or the ability of the AIGC big model to generate images from images can be called, or the ability of the AIGC big model to generate images from images + texts can be called to fuse the target information of the target object and the elements in the target card to generate a new image including the target information and the elements in the target card.

[0073] Among them, when generating the target image, the specific ability of the AIGC big model to be called is mainly determined by the type of the target object and the type of the target element. For example, if the target object is a picture and the target element is text, then the ability of the AIGC big model to generate pictures from pictures + texts needs to be called; if the target object is text and the target element is text, then the ability of the AIGC big model to generate pictures from texts needs to be called; if the target object is a picture and the target element is a picture, then the ability of the AIGC big model to generate pictures from pictures needs to be called. Among them, the AIGC big model is a method of generating content based on artificial intelligence technology, which has a wide range of applications in the field of image generation. Image generation refers to the generation of new images through computer algorithms and models. These images may be completely fictional, artistic creations, or modified and enhanced based on existing images. AIGC is both a content classification method and a content production method, and a collection of technologies for automatic content generation. AIGC stands for AI-Generated Content, which refers to a production method based on artificial intelligence to find patterns through existing data and automatically generate content.

[0074] Furthermore, corresponding calling interfaces can be set for several capabilities of the AIGC large model. After the type of the target object and the type of the target element are determined, the corresponding capabilities of the AIGC large model can be called by calling the corresponding calling interfaces to generate a background image based on the target information and the target element.

[0075] Step S240: setting the target image as the background image of the target card.

[0076] After the target image is generated in the above manner, the target image can be set as the background image of the target card. Of course, the target image can also be set as the background image of other cards.

[0077] As a method, when setting the target image as the background image of other cards, the target image can be set as the background image of the card associated with the target card. The card associated with the target card refers to other cards containing the target element.

[0078] After the target image is generated, the card associated with the target card can be obtained, and then the target image can be set as the background image of the target card and the card associated with the target card with one click.

[0079] As another way, when setting a target image as a background image of another card, the target image can be set as a background image of a card belonging to the same application as the target card.

[0080] Optionally, when setting the target image as the background image of other cards, the target image can also be set as the background image of a card having the same priority as the target card.

[0081] The present application provides a card processing method, which first responds to moving a target object to a target card, obtains target information of the target object, obtains target elements displayed in the target card, and then generates a target image based on the target element and the target information, and sets the target image as the background image of the target card. Through the above method, a background image containing two elements is generated through the card information of the target card and the target information moved to the target card, so that the background image of the target card can change with the target object moved to the target card, giving the target card more playability and realizing the diversification of the display of the target card.

[0082] See also Figure 6 , a card processing method provided in an embodiment of the present application is applied to an electronic device, the method comprising:

[0083] Step S310: In response to moving the target object to the target card, acquiring target information of the target object.

[0084] Step S320: Acquire the moving trajectory of the target object.

[0085] In the embodiment of the present application, the moving trajectory of the target object refers to the trajectory of the target object moving to the target card.

[0086] Among them, multiple moving trajectories that can move the target object to the target card can be pre-set, and different positions for obtaining elements displayed in the target card can be set for different moving trajectories. After the target object is moved to the target card, the moving trajectory of the target object can be obtained, and then the element at the specified position corresponding to the moving trajectory can be obtained, wherein different moving trajectories correspond to different specified positions.

[0087] Exemplarily, the moving trajectory of the target object can be set to at least one of a trajectory moving from the lower left corner of the screen of the electronic device to the target card, a trajectory moving from the middle position of the bottom edge of the screen of the electronic device to the target card, and a trajectory moving from the lower right corner of the screen of the electronic device to the target card; and a corresponding designated position is set for each of the above three moving trajectories, for example, the designated position set for the trajectory moving from the lower left corner of the screen of the electronic device to the target card is the upper left corner position of the target card; the designated position set for the trajectory moving from the middle position of the bottom edge of the screen of the electronic device to the target card is the middle position of the target card; the designated position set for the trajectory moving from the lower right corner of the screen of the electronic device to the target card is the lower right corner position of the target card, etc.; and then after obtaining the moving trajectory of the target object, the corresponding designated position can be determined. For example, if it is determined that the trajectory of the target object is a trajectory moving from the lower left corner of the screen of the electronic device to the target card, then the corresponding designated position can be determined as the upper left corner position of the target card.

[0088] In an embodiment of the present application, the moving trajectory of the target object can be determined based on the position of the target object when it is in a suspended state. It can be set by default that when the target object is in a suspended state, it can be at any position on the bottom edge of the screen of the electronic device; or, the position displayed in the interface containing the target card when the target object is in a suspended state can be pre-set. For example, Figure 7 As shown, the bottom edge position of the screen of the electronic device is Figure 7 The area included in the dotted frame 301 is as follows: When the target object is in a suspended state, the target object will be in Figure 7 In the area included in the dotted frame 301, Figure 7 302 in the figure refers to the target object in the suspended state. When the target object is suspended and displayed at the bottom edge of the screen of the electronic device, only at least a part of the display area of ​​the target object may be displayed.

[0089] When setting the position of the target object when it is in a suspended state, you can set the position of the target object when it is in a suspended state according to the type of the target object. Different types of target objects can be displayed in a suspended state at different positions of the interface containing the target card. For example, when the target object is a picture, the target object can be displayed in a suspended state at the bottom middle position of the interface containing the target card; when the target object is text, the target object can be displayed in a suspended state at the middle position of the interface containing the target card; when the target object is a video, the target object can be displayed in a suspended state at the lower right corner of the interface containing the target card, etc.

[0090] After the position of the target object in the suspended state is set in the above manner, the moving track of the target object can be determined according to the position of the target object in the suspended state. That is, the moving track of the target object can be determined according to the moving starting point of the target object.

[0091] Step S330: Determine a designated position corresponding to the movement trajectory from the target card.

[0092] In the embodiment of the present application, the specified position is the position where the target element to be obtained is displayed in the target card.

[0093] As a method, a correspondence between a designated position and a moving trajectory may be preset. After the moving trajectory of the target object is determined, the designated position corresponding to the moving trajectory of the target object may be determined according to the preset correspondence between the designated position and the moving trajectory.

[0094] Among them, when setting the correspondence between the designated position and the moving trajectory, the number of designated positions can be set according to the priority of the target card. The higher the priority of the target card, the more corresponding designated positions there are. Conversely, the lower the priority of the target card, the fewer corresponding designated positions there are.

[0095] Step S340: taking the element displayed at the designated position as the target element.

[0096] In an embodiment of the present application, after the designated position corresponding to the moving track of the target object is determined, the element displayed at the designated position is obtained from the target card.

[0097] As one approach, a preset number of elements are obtained from the designated position; and the preset number of elements are used as the target elements.

[0098] A designated position may include multiple elements. When the designated position is determined, all elements displayed at the designated position may be used as target elements, or only some of the elements may be used as target elements. The specific limit is not set here. Some elements may be determined according to a preset number.

[0099] Step S350: Generate a target image based on the target element and the target information.

[0100] Step S360: setting the target image as the background image of the target card.

[0101] The present application provides a card processing method, which first responds to moving a target object to a target card, obtains target information of the target object, obtains the moving track of the target object, and then determines a designated position corresponding to the moving track from the target card, takes the element displayed at the designated position as the target element, and then generates a target image based on the target element and the target information, and then sets the target image as the background image of the target card. Through the above method, the display style of the card can be enriched and the diversification of the card display can be achieved.

[0102] See also Figure 8 , a card processing method provided in an embodiment of the present application is applied to an electronic device, the method comprising:

[0103] Step S410: In response to moving the target object to the target card, acquiring target information of the target object.

[0104] As one method, the target object is a picture. When the target object is a picture, the picture can be a page that can be moved from a gallery, a web page, an email, an APP page, etc. That is, the target object can be a chat screenshot, an email screenshot, a web page screenshot, or a picture, etc. The picture can include images and text, or only images, or only text, etc., and no specific limitation is made here.

[0105] Step S420: Acquire the picture style of the picture.

[0106] In an embodiment of the present application, when the target object is a picture, the corresponding designated position can be determined according to the picture style of the picture.

[0107] Among them, the picture style may include realistic style, cartoon style or stick figure style, etc. The amount of information included in pictures of different picture styles is different. A realistic picture may include a lot of detailed information, while the information details contained in cartoon style or stick figure style pictures are less detailed information than those contained in realistic style pictures. Therefore, the number of elements obtained from the target card can be determined according to the picture style of the picture. The number of elements obtained from the target card corresponding to pictures with different picture styles may be different. For pictures of realistic style, cartoon style and stick figure style, the more detailed information a picture contains, the fewer elements can be obtained from the target card.

[0108] As a method, after acquiring the target object, the style identifier of the target object may be acquired to determine the image style of the target object, wherein the style identifier is a preset identifier used to identify different image styles.

[0109] Step S430: Determine a designated position corresponding to the picture style from the target card.

[0110] In an embodiment of the present application, a correspondence between a designated position and a picture style may be pre-set. When the picture style of the picture is determined, the designated position corresponding to the picture style may be determined based on the pre-set correspondence between the designated position and the picture style.

[0111] Step S440: taking the element displayed at the designated position as the target element.

[0112] Similarly, after the corresponding designated position is determined based on the picture style, all elements displayed at the designated position may be used as target elements, or only some of the elements may be used as target elements, which is not specifically limited here.

[0113] Step S450: Generate a target image based on the target element and the target information.

[0114] Step S460: setting the target image as the background image of the target card.

[0115] The present application provides a card processing method, in response to moving a target object to a target card, obtaining target information of the target object, obtaining the picture style of the picture, and then determining a designated position corresponding to the picture style from the target card, taking the element displayed at the designated position as the target element, and then generating a target picture based on the target element and the target information, and setting the target picture as the background picture of the target card. Through the above method, the display style of the card can be enriched and the diversification of the card display can be achieved.

[0116] See also Fig. 9 , a card processing method provided in an embodiment of the present application is applied to an electronic device, the method comprising:

[0117] Step S510: in response to moving the target object to the target card, displaying the target object in the target card, and displaying the target object in the target card in a proportionally reduced size.

[0118] In the embodiment of the present application, when the target object is moved to the target card, the target object can be displayed in the target card.

[0119] When displaying the target object in the target card, the target card and the target object may be displayed in a stacked manner, with the target object displayed on the upper layer of the target card. At the same time, when displaying the target object in the target card, if the size of the target object is larger than the size of the target card, the target object may be displayed in the target card in a proportionally reduced manner, so that the target object can be completely contained in the target card.

[0120] When displaying the target object in proportional reduction, the target object can be gradually reduced in proportion during the process of moving the target object to the target card. When the target object is moved to the target card, the size of the target object is just reduced in proportion to a preset size. The preset size is a pre-set size of the target object when the target object can be fully displayed in the target card.

[0121] If the size of the target object is smaller than or equal to the size of the target card, there is no need to scale down the target object for display.

[0122] Step S520: Acquire target information of the target object.

[0123] Step S530: Generate a background image based on the target information and the elements in the target card, and the size of the background image is the same as the size of the target card.

[0124] In an embodiment of the present application, when a background image is generated based on target information and elements in a target card, the size of the generated background image can be the same as the size of the target card, so that the generated background image can be fully displayed in the target card.

[0125] Step S540: Displaying the background image in the target card.

[0126] In an embodiment of the present application, the background image can be displayed in the target card when it is detected that the target object is released; or the background image can be displayed in the target card within a preset time after it is detected that the target object is moved to the target card; or, the background image can be displayed in the target card after it is detected that the target object is moved to the target card.

[0127] Step S550: Switch the picture style of the background picture.

[0128] In an embodiment of the present application, after the background image is displayed in the target card, the picture style of the currently displayed background image can be switched through a setting operation. For example, if the picture style of the currently displayed background image is a realistic style, the picture style of the background image can be switched to an anime style.

[0129] Furthermore, if after the background image is displayed in the target card, it is detected that a new target object has been moved to the target card, a new background image can be generated based on the target information of the new target object and the elements in the target card, so that the background image currently displayed on the target card can be switched to the new background image.

[0130] The present application provides a card processing method, in response to moving a target object to a target card, displaying the target object in the target card, wherein the target object is displayed in a proportionally reduced manner in the target card, and then obtaining the target information of the target object, generating a background image based on the target information and the elements in the target card, the size of the background image being the same as the size of the target card, and then displaying the background image in the target card, and switching the image style of the background image. Through the above method, the display style of the card can be enriched and the diversification of the card display can be achieved.

[0131] See also Fig.10 , an embodiment of the present application provides a card processing device 600, the device 600 comprising:

[0132] The information acquisition unit 610 is used to acquire target information of the target object in response to moving the target object to the target card.

[0133] As a method, the information acquisition unit 610 is specifically used to respond to moving the target object to the target card, display the target object in the target card, and display the target object in the target card in a proportional reduction; and obtain the target information of the target object.

[0134] The setting unit 620 is used to set a background image of the target card based on the target information and the elements in the target card, where the background image is generated based on the target information and the elements in the target card.

[0135] As a method, the setting unit 620 is specifically used to obtain the target element displayed in the target card; generate a target image based on the target element and the target information; and set the target image as the background image of the target card.

[0136] As one of the ways, the setting unit 620 is further used to obtain the moving trajectory of the target object; determine the designated position corresponding to the moving trajectory from the target card; and use the element displayed at the designated position as the target element.

[0137] The setting unit 620 is used to obtain a preset number of elements from the specified position; and use the preset number of elements as the target elements.

[0138] As another method, the setting unit 620 is also used to obtain the picture style of the picture; determine the designated position corresponding to the picture style from the target card; and use the element displayed at the designated position as the target element.

[0139] As another way, the setting unit 620 is specifically used to generate a background image based on the target information and the elements in the target card, the size of the background image is the same as the size of the target card; and display the background image in the target card.

[0140] Optionally, the setting unit 620 is further configured to switch the picture style of the background picture.

[0141] It should be noted that the device embodiment in the present application corresponds to the aforementioned method embodiment. The specific principles in the device embodiment can be found in the contents of the aforementioned method embodiment and will not be repeated here.

[0142] The following will be combined Fig.11 An electronic device provided by the present application is described.

[0143] See also Fig.11 Based on the above-mentioned card processing method and device, the embodiment of the present application also provides another electronic device 800 that can execute the above-mentioned card processing method. The electronic device 800 includes one or more (only one is shown in the figure) processors 802, a memory 804 and a network module 806 that are coupled to each other. Among them, the memory 804 stores a program that can execute the content of the above-mentioned embodiment, and the processor 802 can execute the program stored in the memory 804.

[0144] Among them, the processor 802 may include one or more processing cores. The processor 802 uses various interfaces and lines to connect various parts of the entire electronic device 800, and executes various functions and processes data of the electronic device 800 by running or executing instructions, programs, code sets or instruction sets stored in the memory 804, and calling data stored in the memory 804. Optionally, the processor 802 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 802 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 802, but may be implemented separately through a communication chip.

[0145] The memory 804 may include a random access memory (RAM) or a read-only memory (ROM). The memory 804 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 804 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the terminal 800 during use.

[0146] The network module 806 is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices, such as communicating with electronic devices. The network module 806 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, user identity modules (SIM) cards, memories, etc. The network module 806 may communicate with various networks such as the Internet, corporate intranets, wireless networks, or communicate with other devices via wireless networks. The above-mentioned wireless networks may include cellular telephone networks, wireless local area networks, or metropolitan area networks. For example, the network module 806 may exchange information with a base station.

[0147] Please refer to Fig.12 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable storage medium 900 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.

[0148] The computer-readable storage medium 900 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium 900 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 900 has storage space for program code 910 that performs any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 910 can be compressed, for example, in an appropriate form.

[0149] The present application provides a card processing method, device, electronic device and storage medium, which, in response to moving a target object to a target card, obtains target information of the target object, and sets a background image of the target card based on the target information and elements in the target card, wherein the background image is generated based on the image information and elements in the target card. Through the above method, a background image containing two elements is generated through the card information of the target card and the target information moved to the target card, so that the background image of the target card can change with the target object moved to the target card, giving the target card more playability and realizing the diversification of the display of the target card.

[0150] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A card processing method, characterized in that: The method comprises: In response to moving the target object to the target card, acquiring target information of the target object; Based on the target information and the elements in the target card, a background image of the target card is set, and the background image is generated based on the target information and the elements in the target card.

2. The method according to claim 1, characterized in that The step of setting the background image of the target card based on the target information and the elements in the target card includes: Obtaining the target element displayed in the target card; Based on the target element and the target information, generate a target image; The target image is set as the background image of the target card.

3. The method according to claim 2, characterized in that The obtaining of the target element displayed in the target card includes: Obtaining a moving trajectory of the target object; Determining a designated location corresponding to the movement trajectory from the target card; The element displayed at the designated position is used as the target element.

4. The method according to claim 3, characterized in that The taking the element displayed at the designated position as the target element comprises: Get a preset number of elements from the specified position; The preset number of elements is used as the target elements.

5. The method according to claim 2, characterized in that: The target object is a picture, and obtaining the target element displayed in the target card includes: Get the picture style of the picture; Determining, from the target card, a designated position corresponding to the picture style; The element displayed at the designated position is used as the target element.

6. The method according to claim 1, characterized in that In response to moving the target object to the target card, acquiring target information of the target object includes: In response to moving the target object to the target card, displaying the target object in the target card, and displaying the target object in the target card in a proportionally reduced size; Obtain target information of the target object.

7. The method according to claim 1, characterized in that The step of setting the background image of the target card based on the target information and the elements in the target card includes: Based on the target information and the elements in the target card, a background image is generated, wherein the size of the background image is the same as the size of the target card; The background image is displayed in the target card.

8. The method according to claim 1, characterized in that After setting the background image of the target card based on the target information and the elements in the target card, the method further includes: Switch the picture style of the background picture.

9. A card processing device, characterized in that: The device comprises: an information acquisition unit, configured to acquire target information of the target object in response to moving the target object to the target card; A setting unit is used to set a background image of the target card based on the target information and the elements in the target card, wherein the background image is generated based on the target information and the elements in the target card.

10. An electronic device, characterized in that: The method comprises one or more processors; one or more programs are stored in the memory and configured to execute the method according to any one of claims 1 to 8 by the one or more processors.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program code, wherein when the program code is executed by a processor, the method according to any one of claims 1 to 8 is executed.

Citation Information

Patent Citations

  • Photo acquiring method and device

    CN104243819A

  • Virtual object operation method and electronic equipment

    CN108196771A

  • Method and device for dynamically displaying icon according to background image

    CN110140106A

  • Background generation method and system, computer system and computer readable storage medium

    CN110866138A

  • Wallpaper display control method and device and electronic equipment

    CN111857511A