Card processing method and device, electronic equipment and storage medium

By obtaining information about the target object and card elements in the card processing method and generating dynamic background images, the problem of monotonous card background images is solved, and the diversity and playability of card display are realized.

CN119322579BActive Publication Date: 2025-11-04GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The background images on the cards are monotonous and lack variety, which negatively impacts the user experience.

Method used

In response to the target object moving to the target card, the target information of the target object is obtained, and a background image is generated based on the target information and the elements in the target card.

Benefits of technology

By using the card information of the target card and the target information that has been moved into the target card, a background image containing two elements is generated, so that the background image of the target card can change with the target object, increasing the playability and diversity of the card.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119322579B_ABST
    Figure CN119322579B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a card processing method and device, electronic equipment and a storage medium. The method comprises: in response to moving a target object to a target card, obtaining target information of the target object, setting a background picture of the target card based on the target information and elements in the target card, the background picture being generated based on the picture information and the elements in the target card. Through the above method, the background picture containing two elements is generated through the card information of the target card and the target information moved into the target card, so that the background picture of the target card can change with the target object moved into the target card, giving the target card more playability and realizing the diversification of the display of the target card.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the technical field of computer, and particularly relates to a card processing method and device, electronic equipment and storage medium. BACKGROUND

[0002] Cards can enable users to intuitively and conveniently view relevant information or run specific functions under a certain application on an electronic device, and are widely used. When viewing relevant information or running specific functions under a certain application through a card, the style of the card displayed is relatively single. SUMMARY

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

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

[0005] In a second aspect, an embodiment of the present application provides a card processing device, which comprises: an information acquisition unit configured to acquire target information of a target object in response to moving the target object to a target card; and a setting unit configured to set a background picture of the target card based on the target information and elements in the target card, the background picture being generated based on the target information and the 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 method described above.

[0007] In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, wherein the computer readable storage medium stores program codes, and the program codes perform the method described above when running.

[0008] The embodiment of the present application provides a card processing method and device, electronic equipment and a storage medium. In response to moving 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 the picture information and the elements in the target card. Through the above method, the background picture 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 picture of the target card can change along with the target object moved to the target card, more playability is given to the target card, and the diversification of the target card display is realized. BRIEF DESCRIPTION OF DRAWINGS

[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0010] Figure 1 A flow chart of a card processing method according to an embodiment of the present application is shown;

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

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

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

[0014] Figure 5 A flow chart of a card processing method according to another embodiment of the present application is shown;

[0015] Figure 6 A flow chart of a card processing method according to still another embodiment of the present application is shown;

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

[0017] Figure 8 A flow chart of a card processing method according to still another embodiment of the present application is shown;

[0018] Figure 9 A flow chart of a card processing method according to still another embodiment of the present application is shown;

[0019] Figure 10 a structural block diagram of a card processing device according to an embodiment of the present application is shown;

[0020] Figure 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 in the embodiment of the present application;

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

[0022] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present 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 the electronic device can display a certain type of information in units of cards.

[0024] When displaying a certain type of information in units of cards, the background picture of the card is generally a default style background picture, and the style is relatively single, which needs to be improved in the user's visual perception.

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

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

[0027] Please refer to Figure 1 The card processing method provided by the embodiments of the present application is applied to an electronic device, and the method comprises:

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

[0029] In the embodiments of the present application, the target object is an object used to generate a background picture in combination with an element displayed in the target card, and the target object can be a picture, text or video, which is not limited herein. The target card is a card used for background picture setting, and the target card can be any card displayed in the desktop or the minus one screen of the electronic device, which is not limited herein.

[0030] The card is a form of information presented by the electronic device to the user, and can include information such as pictures, text, links, controls and the like about the same theme. For example, weather cards, stock cards and news cards and the like.

[0031] As a way, the card can be an entrance of an application (APP) corresponding to the card, and the user can open the application corresponding to the card by operating the card, so that the electronic device presents an interface of the application corresponding to the card to the user, so that the user can view more detailed information on the interface. Further, the user can also perform corresponding operations on the interface of the application after opening the application corresponding to the card 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 interface of the weather to the user. The user can set the information displayed on the weather card or view the weather of a city by operating the interface of the weather, to meet their own needs.

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

[0033] The application can be a native application or a third-party application in the electronic device, which is not limited herein. The native application refers to an application pre-installed in the electronic device, which is a native application of the electronic device. When the electronic device is started for the first time, the desktop of the electronic device presents an icon of the native application. The third-party application is different from the native application. The third-party application refers to an application produced by a third party and installed in the electronic device by a user. Optionally, the electronic device can be any one of a mobile phone, a tablet computer, a desktop computer, a laptop computer, a notebook computer, an ultra-mobile personal computer (UMPC), a handheld computer, a netbook, a personal digital assistant (PDA), a wearable electronic device, a smart watch, and the like, which is not limited herein.

[0034] Further, in the embodiment of the present application, the card can be displayed on the desktop or the minus one screen of the electronic device, which is not limited herein. The minus one screen refers to a user interface obtained by sliding the main screen of the electronic device to the right until the leftmost split screen. The minus one screen can be used to place some shortcut service functions and notification messages, such as global search, shortcut entry of a page of an application (payment code, WeChat, etc.), instant information and reminders (express information, expense information, commuting road conditions, taxi travel information, schedule information, etc.), and attention dynamics (soccer stand, basketball stand, stock information, etc.).

[0035] The desktop or the minus one screen can include multiple cards. The cards included in the desktop and the cards included in the minus one screen are different. Here, the difference can be at least one of a difference in type of the cards, a difference in content displayed by the cards, a difference in application corresponding to the cards, and a difference in service corresponding to the cards.

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

[0037] As one of the ways, in response to a first operation on an application icon of a target application, a card corresponding to the target application is generated. The target application is the application on which the first operation is performed, and the first operation can be at least one of a double-tap operation, a long-press operation, a click operation, or a sliding operation, which is not limited herein. Specifically, for each application installed in the electronic device, an application icon corresponding to the application can be displayed on the screen of the electronic device. Therefore, the screen of the electronic device includes a plurality of application icons corresponding to a plurality of applications. When a first operation on a target application icon in the plurality of application icons is detected, a card corresponding to the target application icon is generated in response to the first operation. The first operation can be one of a double-tap operation, a click operation, a sliding operation, or a long-press operation. The double-tap operation and the long-press operation can be operations that trigger card conversion for all application icons, the click operation can be an operation that triggers card conversion for one application icon, and the sliding operation can be an operation that triggers card conversion for at least one application icon, which is not limited herein.

[0038] As another way, a card can be generated based on a current display scenario and scenario data corresponding to the current display scenario. When the card is generated based on the current display scenario and the scenario data corresponding to the current display scenario, a card corresponding to different display scenarios can be generated based on a preset display rule.

[0039] In the embodiments of the present application, different scenario data corresponds to different display rules. After the scenario data is obtained, the corresponding display rule can be determined based on the obtained scenario data, and then a card corresponding to the current display scenario can be generated based on the corresponding display rule. The display rule refers to a card display rule.

[0040] Each card has a different display scenario. For example, a sports card displays a different display state under different user sports states. When walking, a walking figure silhouette and a sports intensity color scheme are combined and displayed. When running, a running figure silhouette and a corresponding running sports intensity color scheme are combined and displayed. For another example, when a card is a ticket card, channel information for purchasing tickets is displayed before purchasing tickets, and content information of purchased tickets is displayed after purchasing tickets. Therefore, it is necessary to determine which type of card mode to display by collecting scenario data. The scenario data is data information that can confirm the current display mode, such as determining the user's sports state by detecting the amplitude of the phone vibration, determining the internal memory space capacity, collecting updated information content by sending information to the server, and the like.

[0041] Different cards have different card functions, and thus each card has its corresponding card display rule. The card display rule includes the generation rule of the card itself graphic style and color, and also includes the display rule of the card display data. For example, when the card is used to display the user's motion state, different card colors are used to represent the user's current motion intensity according to the length of the motion time. The card display data also includes the mapped user motion item. When the user is in a walking state, a walking figure silhouette icon is displayed. When the user is in a running state, a running figure silhouette icon is displayed. The main purpose of the different display rules of the card is to display the data that needs to be displayed on the card in a conspicuous way, so as to achieve the purpose of facilitating the user to recognize. Therefore, in the embodiment, the differentiated display beneficial to the user to recognize can be used in the card with different functions, and is not limited to the above-mentioned embodiment.

[0042] When the card is generated in the above manner, in order to make the card display more beautiful, a background picture can be set for the card when the information is displayed by the card.

[0043] When the background picture is set for the card, the background picture can be automatically generated by moving the target object to the target card and combining the target information of the target object and 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. 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, the target information can be the animal in the picture). When the target object is text, the target information of the target object can be the keyword 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, and the like, which is not limited here.

[0045] Optionally, when the target object is different types of objects, 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 the photo album or gallery of the electronic device. When the target object is text, the target object can be obtained from the notepad or webpage of the electronic device. When the target object is a video, the target object can be obtained from the video player of the electronic device, and the like.

[0046] Further, when the target information of the target object is acquired, the target information of the target object can be acquired by using the 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, and the target information of the target object output by the information extraction model is acquired.

[0047] Optionally, in the 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 at least partially overlap with the target card, or moving the target object to a preset distance range of the target card. The preset distance range can be understood as a distance range from the boundary of the target card. For example, the preset distance range can be set as a range of 5 mm from the boundary of the target card, that is, when the target object is moved to a position 5 mm away from the boundary 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 various ways.

[0049] As one of the ways, the target object can be moved to the target card by dragging.

[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 floating state, and then the user can directly drag the target object to the target card.

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

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

[0053] As a further manner, the target object can be moved to the target card by long pressing.

[0054] In the manner of moving the target object to the target card by long pressing, the target object can be first selected by long pressing, so that the target object is in a floating state, and then the target card is long pressed, so that the target object can be automatically moved to the target card. For example, as shown in Figure 2 When it is needed to move the target object to the target card, the target object 101 can be long pressed, so that the target object 101 is in a floating state, and then the target card 102 is long pressed, so that the target object 101 can be automatically moved to the target card 102.

[0055] In the above manners of moving the target object to the target card, which position of the target card the target object is moved to can be determined by the action position of the operation acting on the target card. For example, in the above manner of moving the target object to the target card by double clicking, if the action position of the double clicking 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; or, the target object can be always moved to a preset position of the target card.

[0056] In the embodiments of the present application, in response to moving the target object to the target card, the target information of the target object can be acquired 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, which is not limited herein.

[0057] Step S120: setting a background picture of the target card based on the target information and elements in the target card, the background picture being generated based on the target information and the elements in the target card.

[0058] In the embodiments of the present application, the elements in the target card can be understood as the elements in the target card used to generate the background picture 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, texts, videos, buttons, coupons, music, payment information, registration forms, social media streams or sharing, reward information, links, and any combination of the above elements.

[0059] As a manner, after the target information of the target object is acquired, the elements in the target card can be acquired. In the acquisition of the elements in the target card, the elements in the target card at the specified position can be directly acquired, or the target card can be input into the pre-trained information extraction model to acquire the elements in the target card output by the information extraction model.

[0060] After the target information of the target object and the elements in the target card are acquired, the target information of the target object and the elements in the target card can be fused by calling the text-to-image capability of the AIGC (Artificial Intelligence Generated Content) large model, or calling the image-to-image capability of the AIGC large model, or calling the image + text-to-image capability of the AIGC large model, 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. For example, the target information of the target object acquired is a picture containing the Great Wall, and the elements of the target card acquired are the text "snow", and then the generated background picture can be the Great Wall in the snow. For another example, the target object acquired is a picture containing sunflowers, and the elements of the target card acquired are the text "sunny day", and then the generated background picture can be sunflowers on the grassland in a sunny day.

[0061] Optionally, in the embodiment of the present application, the background pictures 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 limited here. The category of the target card can be divided according to the type of the application program to which it belongs.

[0062] In the case of multiple target cards, when the background pictures of the target cards are set based on the elements in the target cards and the target information, the elements in the target cards acquired can be different for each target card, and then the background pictures corresponding to each target card are not the same.

[0063] As a manner, in the case that the target cards are multiple, when generating the background picture of the target card based on the target information and the elements in the target card, the background picture corresponding to each target card can be generated by different elements in different target cards. For example, the target cards include card A, card B and card C, when the elements in each target card are obtained, 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 the background picture corresponding to each target card, the background picture can be generated according to the target information and element A for card A, the background picture can be generated according to the target information and element B for card B, and the background picture can be generated according to the target information and element C for card C.

[0064] When the background picture of each target card is generated by different elements in different target cards, which elements are obtained 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. 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 pre-set; or the priority of the target card can also be determined by the application program 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 in a predetermined time period, of course, the priority of the target card can also be determined by other manners.

[0065] After generating the background picture corresponding to the target card, the background picture is set as the background picture of the target card. When the generated background picture is set as the background picture of the target card, the size of the background picture can be cropped to be the same as the size of the target card. For example, as shown in FIG. 10A, the target object 101 is a picture containing a sunflower, the element of the target card 102 obtained is the word "sunny day", and the generated background picture is a sunflower picture on a sunny meadow. After setting the background picture as the background picture of the target card, the target card 102 can be as shown in FIG. 10B. Figure 4 Figure 4 Figure 4

[0066] ​​​The card processing method provided in the application, in response to moving a target object to a target card, obtains target information of the target object, sets a background picture of the target card based on the target information and elements in the target card, and the background picture is generated based on the picture information and the elements in the target card. Through the above method, the background picture containing two elements is generated through the card information of the target card and the target information moved into the target card, so that the background picture of the target card can change along with the target object moved into the target card, giving the target card more playability and realizing the diversification of the display of the target card.

[0067] Please refer to Figure 5 The card processing method provided in the embodiment of the application is applied to an electronic device, and the method comprises the following steps:

[0068] Step S210: in response to moving a target object to a target card, obtaining target information of the target object.

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

[0070] In the embodiment of the application, the target element can be a pre-set element that needs to be obtained and used to generate a background picture. When the target information of the target object is obtained, the target element displayed in the target picture is obtained; of course, the target element displayed in the target card can also be obtained when the target object is moved to the target card, that is, step S210 and step S220 can be executed simultaneously.

[0071] Step S230: generating a target picture based on the target element and the target information.

[0072] In the embodiment of the application, when the target picture is generated based on the target element and the target information, the text-to-image capability of the AIGC large model can be called, or the image-to-image capability of the AIGC large model can be called, or the image+text-to-image capability of the AIGC large model can be called, and the target information of the target object and the elements in the target card are fused to generate a new picture containing the target information and the elements in the target card.

[0073] Wherein, when generating the target picture, which kind of capability of the AIGC large model is specifically called mainly depends on 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 capability of generating a picture from a picture and text of the AIGC large model needs to be called; if the target object is text and the target element is text, then the capability of generating a picture from text of the AIGC large model needs to be called; if the target object is a picture and the target element is a picture, then the capability of generating a picture from a picture of the AIGC large model needs to be called. Wherein, the AIGC large model is a method of generating content based on artificial intelligence technology, which has wide application in the field of image generation. Image generation refers to generating new images through computer algorithms and models, which may be completely fictional, artistic creation, or modification and enhancement based on existing images. AIGC is not only a content classification method, but also 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 of generating content based on artificial intelligence by finding rules from existing data.

[0074] Further, the corresponding calling interface can be set for several capabilities of the AIGC large model, and when the type of the target object and the type of the target element are determined, the corresponding capability of the AIGC large model can be called through the corresponding calling interface to generate the background picture based on the target information and the target element.

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

[0076] After generating the target picture through the above-mentioned manner, the target picture can be set as the background picture of the target card, and of course, the target picture can also be set as the background picture of other cards.

[0077] As a way, when the target picture is set as the background picture of other cards, the target picture can be set as the background picture of the card associated with the target card. Wherein, the card associated with the target card refers to other cards containing the target element.

[0078] After generating the target picture, the card associated with the target card can be obtained, and then the target picture can be set as the background picture of the target card and the card associated with the target card by one key.

[0079] As another way, when the target picture is set as the background picture of other cards, the target picture can be set as the background picture of the card belonging to the same application program as the target card.

[0080] Optionally, when the target picture is set as the background picture of the other card, the target picture can also be set as the background picture of the card with the same priority as the target card.

[0081] The card processing method provided in the application first acquires target information of a target object, acquires a target element displayed in a target card in response to the target object being moved to the target card, and then generates a target picture based on the target element and the target information, and sets the target picture as a background picture of the target card. Through the above method, the background picture containing two kinds of elements is generated through the card information of the target card and the target information moved to the target card, so that the background picture of the target card can change along with the target object moved to the target card, and more playability is given to the target card, and the diversification of the display of the target card is realized.

[0082] Please refer to Figure 6 The card processing method provided in the embodiments of the application is applied to an electronic device, and the method comprises the following steps.

[0083] Step S310: In response to the target object being moved to the target card, target information of the target object is acquired.

[0084] Step S320: A moving track of the target object is acquired.

[0085] In the embodiments of the application, the moving track of the target object refers to the track of the target object moved to the target card.

[0086] Among them, a plurality of moving tracks of the target object moved to the target card can be set in advance, and different positions of the element displayed in the target card are set for different moving tracks, and then after the target object is moved to the target card, the moving track of the target object is acquired, and then the element in the specified position corresponding to the moving track is acquired, wherein the specified positions corresponding to different moving tracks are different.

[0087] For example, the movement trajectory of the target object can be set to at least one of the following: a trajectory from the lower left corner of the electronic device screen to the target card, a trajectory from the middle of the bottom edge of the electronic device screen to the target card, and a trajectory from the lower right corner of the electronic device screen to the target card. A corresponding designated position is set for each of the three movement trajectories. For example, the designated position for the trajectory from the lower left corner of the electronic device screen to the target card is the upper left corner of the target card; the designated position for the trajectory from the middle of the bottom edge of the electronic device screen to the target card is the middle of the target card; and the designated position for the trajectory from the lower right corner of the electronic device screen to the target card is the lower right corner of the target card. After obtaining the movement trajectory of the target object, the corresponding designated position can be determined. For example, if the trajectory of the target object is determined to be a trajectory from the lower left corner of the electronic device screen to the target card, then the corresponding designated position can be determined to be the upper left corner of the target card.

[0088] In this embodiment, the movement trajectory of the target object can be determined based on its position when it is in a floating state. Specifically, it can be defaulted to be located anywhere at the bottom edge of the electronic device's screen when the target object is in a floating state; alternatively, the position where the target object is displayed in the interface containing the target card when it is in a floating state can be pre-set. For example, as shown... Figure 7 As shown, the bottom edge of the screen of the electronic device is located at... Figure 7 The area enclosed by the dashed box 301 is where the target object will be when it is in a floating state. Figure 7 The area enclosed by the dashed box 301, Figure 7 The 302 designation refers to a target object that is in a floating state. When a target object is displayed hovering at the bottom edge of an electronic device's screen, only at least a portion of the target object's display area may be shown.

[0089] When setting the position of a target object while it is hovering, you can adjust the position based on the type of the target object. Different types of target objects can be displayed in different positions on the interface containing the target card. For example, when the target object is an image, it can be displayed at the bottom center of the interface containing the target card; when the target object is text, it can be displayed in the center of the interface containing the target card; when the target object is a video, it can be displayed in the bottom right corner of the interface containing the target card, and so on.

[0090] After the position of the target object in the floating 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 floating 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: determining a specified position corresponding to the moving track 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 kind of mode, the corresponding relationship between specified position and moving track can be set in advance, when the moving track of the target object is determined, the specified position corresponding to the moving track of the target object can be determined according to the corresponding relationship between specified position and moving track set in advance.

[0094] Wherein, when the corresponding relationship between specified position and moving track is set, the number of specified positions can be set according to the priority of the target card, the higher the priority of the target card, the more the number of corresponding specified positions, on the contrary, the lower the priority of the target card, the less the number of corresponding specified positions.

[0095] Step S340: the element displayed at the specified position is the target element.

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

[0097] As a kind of mode, a preset number of elements are obtained from the specified position, and the preset number of elements are taken as the target element.

[0098] Wherein, one specified position can include a plurality of elements, when the specified position is determined, all elements displayed at the specified position can be taken as the target element, or only part of the elements can be taken as the target element, which is not limited here. Part of the elements can be determined according to the preset number.

[0099] Step S350: generating a target picture based on the target element and the target information.

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

[0101] The card processing method provided in the application first acquires target information of a target object, acquires a moving track of the target object, and then determines a specified position corresponding to the moving track from a target card, displays an element at the specified position as a target element, generates a target picture based on the target element and the target information, and sets the target picture as a background picture of the target card. Through the above method, the display style of the card can be enriched, and the diversification of card display can be realized.

[0102] Please refer to Figure 8 The card processing method provided in the embodiment of the application is applied to an electronic device, and the method comprises the following steps.

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

[0104] As a kind of mode, the target object is a picture. When the target object is a picture, the picture can be supported to move out from the gallery, webpage, email, APP page and so on. That is, the target object can be one of chat screenshot, email screenshot, webpage screenshot or picture, and the picture can include image and text, or only include image or only include text, which is not limited here.

[0105] Step S420: The picture style of the picture is acquired.

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

[0107] The picture style can include realistic style, animation style or sketch style, and the quantity of information included in different picture styles is different. The realistic style picture can include a lot of detail information, while the animation style or sketch style picture contains less detail information than the realistic style picture. Therefore, the quantity of elements acquired from the target card can be determined according to the picture style of the picture. The quantity of elements acquired from the target card corresponding to different picture styles can be different. For the realistic style, animation style and sketch style pictures, the more detail information contained in the picture, the less quantity of elements acquired from the target card.

[0108] As a kind of mode, after the target object is acquired, the style identifier of the target object can be acquired to determine the picture style of the target object. The style identifier is pre-set and used to identify different picture styles.

[0109] Step S430: A specified position corresponding to the picture style is determined from the target card.

[0110] In the embodiment of the present application, a correspondence between a specified position and a picture style can be pre-set. When the picture style of a picture is determined, the specified position corresponding to the picture style of the picture can be determined according to the pre-set correspondence between the specified position and the picture style.

[0111] Step S440: displaying the element at the specified position as the target element.

[0112] Similarly, after the corresponding specified position is determined based on the picture style, all elements displayed at the specified position can be taken as the target element, or only part of the elements can be taken as the target element, which is not limited here.

[0113] Step S450: generating a target picture based on the target element and the target information.

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

[0115] The card processing method provided in the present application, in response to moving a target object to a target card, acquires target information of the target object, acquires a picture style of a picture, then determines a specified position corresponding to the picture style from the target card, displays an element at the specified position as a target element, generates a target picture based on the target element and the target information, and sets 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 card display can be realized.

[0116] Please refer to Figure 9 The card processing method provided in the embodiment of the present application is applied to an electronic device, and the method comprises:

[0117] Step S510: in response to moving a target object to a target card, displaying the target object in the target card, and the target object is displayed in the target card in a proportional reduction manner.

[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 the target object is displayed in the target card, the target card and the target object can be displayed in a layering manner, and the target object is displayed on the upper layer of the target card. Meanwhile, when the target object is displayed in the target card, if the size of the target object is greater than the size of the target card, the target object can be displayed in the target card in a proportional reduction manner, so that the target object can be completely contained in the target card.

[0120] In the process of moving the target object to the target card, the target object can be gradually scaled down to the preset size when the target object is moved to the target card.

[0121] If the size of the target object is smaller than or equal to the size of the target card, the target object does not need to be scaled down.

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

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

[0124] In the embodiments of the present application, when the background picture is generated based on the target information and the elements in the target card, the size of the generated background picture can be the same as the size of the target card, so that the generated background picture can be completely displayed in the target card.

[0125] Step S540: Display the background picture in the target card.

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

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

[0128] In the embodiments of the present application, after the background picture is displayed in the target card, the picture style of the currently displayed background picture can be switched by setting operation, for example, if the picture style of the currently displayed background picture is realistic style, the picture style of the background picture can be switched to animation style.

[0129] Further, if it is detected that a new target object is moved to the target card after the background picture is displayed in the target card, a new background picture can be generated according to the target information of the new target object and the elements in the target card, so that the currently displayed background picture in the target card can be switched to the new background picture.

[0130] The card processing method provided in the application, in response to moving a target object to a target card, displays the target object in the target card, wherein the target object is displayed in the target card in a proportional reduction manner, then target information of the target object is acquired, a background picture is generated based on the target information and elements in the target card, the size of the background picture is the same as the size of the target card, then the background picture is displayed in the target card, and the picture style of the background picture is switched. Through the above method, the display style of the card can be enriched, and the diversification of card display is realized.

[0131] Please refer to Figure 10 The card processing device 600 provided in the embodiments of the application, the device 600 comprises:

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

[0133] As a kind of way, information acquisition unit 610 is specifically configured to display the target object in the target card in response to moving the target object to the target card, and the target object is displayed in the target card in a proportional reduction manner;Acquire the target information of the target object.

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

[0135] As a kind of way, setting unit 620 is specifically configured to acquire target elements displayed in the target card;Generate target picture based on the target elements and the target information;The target picture is set as the background picture of the target card.

[0136] As one of the ways, the setting unit 620 is further configured to acquire the moving track of the target object;From the target card, determine the specified position corresponding to the moving track;The element displayed at the specified position is used as the target element.

[0137] Wherein, the setting unit 620 is configured to acquire a preset number of elements from the specified position;The preset number of elements are used as the target element.

[0138] As another way, the setting unit 620 is further configured to acquire the picture style of the picture;From the target card, determine the specified position corresponding to the picture style;The element displayed at the specified position is used as the target element.

[0139] As another way, the setting unit 620 is specifically configured to generate a background picture based on the target information and the elements in the target card, the size of the background picture being the same as the size of the target card; and display the background picture 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 embodiments in the present application correspond to the foregoing method embodiments, and the specific principles of the device embodiments can be referred to the content in the foregoing method embodiments, which will not be described here.

[0142] The following will be described in combination with Figure 11 An electronic device provided by the present application will be described.

[0143] Please refer to Figure 11 Based on the card processing method and device, the present application further provides another electronic device 800 which can execute the foregoing 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 which are coupled with each other. The memory 804 stores programs which can execute the content in the foregoing embodiments, and the processor 802 can execute the programs stored in the memory 804.

[0144] The processor 802 can include one or more processing cores. The processor 802 connects various parts in the electronic device 800 by various interfaces and lines, executes various functions of the electronic device 800 and processes data 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 realized in at least one of the hardware forms of digital signal processing (DSP), field-programmable gate array (FPGA) and programmable logic array (PLA). The processor 802 can be integrated with a combination of one or more of central processing unit (CPU), graphics processing unit (GPU) and modem. The CPU is mainly used to process operating systems, user interfaces and application programs; the GPU is used to render and draw display content; and the modem is used to process wireless communication. It can be understood that the foregoing modem can also not be integrated into the processor 802, but realized by a separate communication chip.

[0145] The memory 804 can include a Random Access Memory (RAM) and can also include a Read-Only Memory (ROM). The memory 804 can be used to store instructions, programs, codes, code sets, or instruction sets. The memory 804 can include a program storage area and a data storage area, where the program storage area can store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing each of the methods described below, etc. The data storage area can also store data created by the electronic device 800 in use (such as a phonebook, audio / video data, chat log data, etc.).

[0146] The network module 806 is configured to receive and send electromagnetic waves, and to convert the electromagnetic waves and electrical signals to each other, so as to communicate with a communication network or other devices, for example, to communicate with an electronic device. The network module 806 can include various existing circuit elements for performing these functions, for example, an antenna, a radio frequency transceiver, a digital signal processor, an encryption / decryption chip, a Subscriber Identity Module (SIM) card, a memory, etc. The network module 806 can communicate with various networks such as the Internet, an intranet, a wireless network, or other devices through the wireless network. The wireless network can include a cellular telephone network, a wireless local area network or metropolitan area network. For example, the network module 806 can interact with a base station to exchange information.

[0147] Reference is made to Figure 12 which shows a structural block diagram of a computer readable storage medium provided by the embodiments of the present application. The computer readable storage medium 900 stores program codes therein, and the program codes can be invoked by a processor to execute the methods described in the above method embodiments.

[0148] The computer readable storage medium 900 can be an electronic storage such as a flash memory, an EEPROM (Electrically Erasable Programmable Read-Only Memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer readable storage medium 900 includes a non-transitory computer readable medium. The computer readable storage medium 900 has a storage space for program codes 910 to execute any of the above methods. These program codes can be read from or written to one or more computer program products. The program codes 910 can be compressed in an appropriate form, for example.

[0149] The application provides a card processing method and device, electronic equipment and storage medium. In response to moving 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 the picture information and the elements in the target card. Through the above method, the background picture 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 picture of the target card can change along with the target object moved to the target card, more playability is given to the target card, and the diversification of the target card display is realized.

[0150] The embodiments of the application are described above in combination with the drawings, but the application is not limited to the specific embodiments described above, and the specific embodiments described above are only illustrative but not restrictive. Those skilled in the art can make many forms under the inspiration of the application without departing from the purpose of the application and the scope protected by the claims, which all belong to the protection of the application.

Claims

1. A card processing method, characterized in that, The method includes: In response to moving the target object to the target card, the target information of the target object is obtained; 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: Retrieve the target element displayed in the target card; Generate a target image based on the target elements and the target information; Set the target image as the background image of the target card.

3. The method according to claim 2, characterized in that, The step of obtaining the target element displayed in the target card includes: Obtain the movement trajectory of the target object; From the target card, determine the specified location corresponding to the movement trajectory; The element displayed at the specified location is taken as the target element.

4. The method according to claim 3, characterized in that, The step of using the element displayed at the specified position as the target element includes: Obtain a preset number of elements from the specified location; The preset number of elements are used as the target elements.

5. The method according to claim 2, characterized in that, The target object is an image, and obtaining the target element displayed in the target card includes: Obtain the image style of the image; From the target card, determine the specified position corresponding to the image style; The element displayed at the specified location is taken as the target element.

6. The method according to claim 1, characterized in that, The step of responding to moving the target object to the target card and obtaining the target information of the target object includes: In response to moving a target object to a target card, the target object is displayed in the target card, and the target object is displayed in a proportionally scaled-down manner in the target card; Obtain the 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, the size of the background image being 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 process further includes: The image style of the background image can be switched.

9. A card processing device, characterized in that, The device includes: An information acquisition unit is used to acquire target information of the target object in response to moving the target object to the target card. A setting unit is configured 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, It includes one or more processors; one or more programs are stored in memory and configured to be executed by the one or more processors according to any one of claims 1-8.

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

Citation Information

Patent Citations

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

    CN110866138A

  • Preview cover generation method and electronic device

    WO2022028241A1