Application push method, device, equipment, and computer-readable storage medium

By obtaining the application package name on the smart device and generating a fingerprint identification code, the problem of inaccurate application push on the smart device is solved, and higher application push accuracy is achieved.

CN112348627BActive Publication Date: 2025-09-09SHENZHEN TCL NEW-TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011135387.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-21
Publication Date
2025-09-09
Estimated Expiration
2040-10-21

AI Technical Summary

Technical Problem

When pushing applications, existing smart devices are unable to accurately push relevant content based on user needs, resulting in low application push accuracy.

Method used

By obtaining the application package name of the current application and determining whether it exists in the application store, a screenshot of the display interface is taken to generate screenshot data, and a fingerprint identification code is generated based on the screenshot data, which is sent to the cloud to obtain the corresponding target application and pushed to the display interface.

Benefits of technology

Improves the accuracy of application push, enabling the cloud to accurately find application information of the same type based on the fingerprint identification code and push it to the display interface of the current application.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112348627B_ABST
    Figure CN112348627B_ABST
Patent Text Reader

Abstract

The present invention discloses an application push method, apparatus, device, and computer-readable storage medium. The method obtains the application package name of the current application. If the application package name exists in an application store, the method takes a screenshot of the current display interface to generate screenshot data. A fingerprint identification code is generated based on the screenshot data, and the fingerprint identification code is sent to the cloud, so that the cloud can obtain the corresponding target application according to the fingerprint identification code and push it to the current display interface. After determining that the current application is an application in the application store based on the application package name of the current application, the present invention takes a screenshot of the current display interface, generates a fingerprint identification code based on the screenshot data generated by the screenshot, and sends it to the cloud. This allows the cloud to accurately search for application information of the same type based on the fingerprint identification code and push it to the display interface of the current application, effectively improving the accuracy of application push.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of screen display control technology, and in particular to an application push method, device, equipment, and computer-readable storage medium. Background Art

[0002] With the improvement of living standards and the rapid development of network technology, people can now install various applications, such as game apps, audio and video apps, and shopping apps, on smart devices such as smart TVs, smartphones, and tablets to fully enjoy the benefits of modern life.

[0003] To better cater to users' interests and hobbies, installed apps often push other content related to the current app to users using the app in the form of pop-ups or messages. However, current smart devices cannot accurately push content based on user needs when using installed apps. This prevents users from timely obtaining information related to the content they are browsing, resulting in low accuracy in app push notifications. Summary of the Invention

[0004] The main purpose of the present invention is to provide an application push method, device, equipment and computer-readable storage medium, aiming to solve the technical problem of low accuracy of current application push.

[0005] To achieve the above objectives, an embodiment of the present invention provides an application push method, the application push method comprising:

[0006] Obtain the application package name of the current application. If the application package name exists in the app store, take a screenshot of the current display interface and generate screenshot data.

[0007] A fingerprint identification code is generated based on the screenshot data, and the fingerprint identification code is sent to the cloud, so that the cloud can obtain the corresponding target application according to the fingerprint identification code and push it to the current display interface.

[0008] Preferably, the step of generating a fingerprint identification code based on the screenshot data includes:

[0009] Inputting the screenshot data into a random encryption program;

[0010] Processing the screenshot data according to the perceptual hash algorithm of the random encryption program to calculate an image hash value;

[0011] The image hash value is determined as a fingerprint identification code of the screenshot data.

[0012] Preferably, the step of processing the screenshot data according to the perceptual hash algorithm of the random encryption program to calculate the image hash value includes:

[0013] scaling the screenshot data according to the perceptual hash algorithm of the random encryption program, and performing grayscale processing on the scaled screenshot data to obtain grayscale image information;

[0014] Performing discrete cosine transform on the grayscale image information, and determining target matrix data from the matrix data after the cosine transform;

[0015] Calculate an image hash value based on the target matrix data.

[0016] Preferably, the step of calculating the image hash value according to the target matrix data includes:

[0017] Calculating the average value of the target matrix data to obtain matrix mean data;

[0018] Performing a hash operation on the matrix mean data to obtain hash matrix data;

[0019] The hash matrix data is converted into hash image data, and the hash image data is combined to obtain an image hash value.

[0020] Preferably, if the application package name exists in the application store, taking a screenshot of the current display interface and generating screenshot data include:

[0021] The standard application package names of all applications in the application store are obtained, and if any standard application package name among the standard application package names matches the application package name, it is determined that the application package name exists in the application store.

[0022] Preferably, if the application package name exists in the application store, taking a screenshot of the current display interface and generating screenshot data include:

[0023] Obtaining screenshot parameters, taking a screenshot of the current display interface according to the screenshot parameters, and generating initial screenshot data;

[0024] An initial format of the initial screenshot data is identified, and if the initial format is the preset format, format conversion is performed on the initial screenshot data to generate screenshot data.

[0025] Preferably, the step of sending the fingerprint identification code to the cloud includes:

[0026] Transcoding the fingerprint identification code to obtain a transcoded fingerprint identification code;

[0027] The transcoded fingerprint identification code is sent to the cloud through the preset transmission channel.

[0028] To achieve the above-mentioned purpose, the present application further provides an application push device, which includes:

[0029] A screenshot module is used to obtain the application package name of the current application. If the application package name exists in the application store, a screenshot of the current display interface is taken to generate screenshot data;

[0030] The generation module is used to generate a fingerprint identification code based on the screenshot data and send the fingerprint identification code to the cloud, so that the cloud can obtain the corresponding target application according to the fingerprint identification code and push it to the current display interface.

[0031] Furthermore, to achieve the above-mentioned purpose, the present application also provides an application push device, which includes a memory, a processor, and an application push program stored in the memory and runnable on the processor, and when the application push program is executed by the processor, the steps of the above-mentioned application push method are implemented.

[0032] Furthermore, to achieve the above-mentioned purpose, the present application also provides a computer-readable storage medium, on which an application push program is stored, and when the application push program is executed by a processor, the steps of the above-mentioned application push method are implemented.

[0033] Embodiments of the present invention provide an application push method, apparatus, device, and computer-readable storage medium. The method obtains the application package name of the current application. If the application package name exists in an application store, the method takes a screenshot of the current display interface to generate screenshot data. A fingerprint identification code is generated based on the screenshot data, and the fingerprint identification code is sent to the cloud, so that the cloud can obtain the corresponding target application based on the fingerprint identification code and push it to the current display interface. After determining that the current application is an application in the application store based on the application package name of the current application, the present invention takes a screenshot of the current display interface, generates a fingerprint identification code based on the screenshot data generated by the screenshot, and sends it to the cloud. This allows the cloud to accurately search for application information of the same type based on the fingerprint identification code and push it to the display interface of the current application, effectively improving the accuracy of application push. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 This is a schematic diagram of the structure of the hardware operating environment involved in the implementation scheme of the application push method of the present invention;

[0035] Figure 2 This is a flow chart of a first embodiment of the push method of the present invention;

[0036] Figure 3 This is a functional module diagram of a preferred embodiment of the push device applied in the present invention.

[0037] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings and in conjunction with the embodiments. DETAILED DESCRIPTION

[0038] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0039] Embodiments of the present invention provide an application push method, apparatus, device, and computer-readable storage medium. The method obtains the application package name of the current application. If the application package name exists in an application store, the method takes a screenshot of the current display interface to generate screenshot data. A fingerprint identification code is generated based on the screenshot data, and the fingerprint identification code is sent to the cloud, so that the cloud can obtain the corresponding target application based on the fingerprint identification code and push it to the current display interface. After determining that the current application is an application in the application store based on the application package name of the current application, the present invention takes a screenshot of the current display interface, generates a fingerprint identification code based on the screenshot data generated by the screenshot, and sends it to the cloud. This allows the cloud to accurately search for application information of the same type based on the fingerprint identification code and push it to the display interface of the current application, effectively improving the accuracy of application push.

[0040] like Figure 1 As shown, Figure 1 It is a schematic diagram of the structure of an application push device in a hardware operating environment involved in an embodiment of the present invention.

[0041] In the subsequent description, suffixes such as "module," "component," or "unit" used to represent elements are only used to facilitate the description of the present invention and have no specific meaning. Therefore, "module," "component," or "unit" can be used interchangeably.

[0042] The application push device in the embodiment of the present invention may be a PC, or a portable terminal device such as a tablet computer or a portable computer.

[0043] like Figure 1As shown, the application push device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001.

[0044] Those skilled in the art will understand that Figure 1 The application push device structure shown in the figure does not constitute a limitation on the application push device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0045] like Figure 1 As shown, the memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and an application push program.

[0046] exist Figure 1 In the device shown, the network interface 1004 is mainly used to connect to the backend server and communicate data with the backend server; the user interface 1003 is mainly used to connect to the client (user end) and communicate data with the client; and the processor 1001 can be used to call the application push program stored in the memory 1005 and perform the following operations:

[0047] Obtain the application package name of the current application. If the application package name exists in the app store, take a screenshot of the current display interface and generate screenshot data.

[0048] A fingerprint identification code is generated based on the screenshot data, and the fingerprint identification code is sent to the cloud, so that the cloud can obtain the corresponding target application according to the fingerprint identification code and push it to the current display interface.

[0049] Furthermore, the step of generating a fingerprint identification code based on the screenshot data includes:

[0050] Inputting the screenshot data into a random encryption program;

[0051] Processing the screenshot data according to the perceptual hash algorithm of the random encryption program to calculate an image hash value;

[0052] The image hash value is determined as a fingerprint identification code of the screenshot data.

[0053] Furthermore, the step of processing the screenshot data according to the perceptual hash algorithm of the random encryption program to calculate the image hash value includes:

[0054] scaling the screenshot data according to the perceptual hash algorithm of the random encryption program, and performing grayscale processing on the scaled screenshot data to obtain grayscale image information;

[0055] Performing discrete cosine transform on the grayscale image information, and determining target matrix data from the matrix data after the cosine transform;

[0056] Calculate an image hash value based on the target matrix data.

[0057] Furthermore, the step of calculating the image hash value according to the target matrix data includes:

[0058] Calculating the average value of the target matrix data to obtain matrix mean data;

[0059] Performing a hash operation on the matrix mean data to obtain hash matrix data;

[0060] The hash matrix data is converted into hash image data, and the hash image data is combined to obtain an image hash value.

[0061] Furthermore, if the application package name exists in the application store, before taking a screenshot of the current display interface and generating the screenshot data, the processor 1001 may be configured to call the application push program stored in the memory 1005 and perform the following operations:

[0062] The standard application package names of all applications in the application store are obtained, and if any standard application package name among the standard application package names matches the application package name, it is determined that the application package name exists in the application store.

[0063] Furthermore, if the application package name exists in the application store, the step of taking a screenshot of the current display interface and generating screenshot data includes:

[0064] Obtaining screenshot parameters, taking a screenshot of the current display interface according to the screenshot parameters, and generating initial screenshot data;

[0065] An initial format of the initial screenshot data is identified, and if the initial format is the preset format, format conversion is performed on the initial screenshot data to generate screenshot data.

[0066] Furthermore, the step of sending the fingerprint identification code to the cloud includes:

[0067] Transcoding the fingerprint identification code to obtain a transcoded fingerprint identification code;

[0068] The transcoded fingerprint identification code is sent to the cloud through the preset transmission channel.

[0069] To better understand the above technical solutions, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. Instead, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0070] In order to better understand the above technical solution, the above technical solution will be described in detail below with reference to the accompanying drawings and specific implementation methods.

[0071] Reference Figure 2 The first embodiment of the present invention provides a flowchart of an application push method. In this embodiment, the application push method includes the following steps:

[0072] Step S10, obtaining the application package name of the current application, and if the application package name exists in the application store, taking a screenshot of the current display interface to generate screenshot data;

[0073] In this embodiment, the application push method is applied to an application push system. The application push system belongs to a smart home. A smart home uses a residential platform and integrates home-related facilities using integrated wiring technology, network communication technology, security technology, automatic control technology, audio and video technology, etc., to build an efficient management system for residential facilities and family schedules. With the improvement of living standards, users frequently install various applications on smart devices such as smartphones and tablets. Users' preferences for application selection are constantly changing. If the characteristics of applications installed by users on smart devices can be more quickly understood, more relevant applications can be quickly recommended to users. However, a key technical problem lies in how to enable the cloud to quickly identify the type and name of applications in smart devices. Therefore, the present invention proposes a method for identifying the name and type of applications in smart devices and generating a fingerprint identification code based on the application type and name. This method enables the application push system to push other applications of the same type as the application currently being viewed by the user when the user is using the application, effectively improving the accuracy of application push. It is understood that the application push system can be set up in the smart device to generate fingerprint identification codes and push applications in a timely manner.

[0074] Furthermore, the system identifies the current application running in the smart device. Specifically, the system calls the application thread running in the foreground, obtains the application information of the current application through the application thread, and identifies the application package name in the application information, wherein the package name (Package name) is the unique identifier of the application, that is, the package name is unique, one package name represents one application, and two applications are not allowed to use the same package name. Furthermore, the system compares the application package name of the current application with all standard application package names in the application store to determine whether the application package name exists in the application store. After determining that the application package name exists in the application store, it determines that the current application exists in the application store and takes a screenshot of the current display interface. Furthermore, if it is determined that the current application exists in the application store, the system obtains the screenshot parameters pre-set by the user or the system according to the screenshot requirements, and takes a screenshot of the current display interface of the current application in the smart terminal according to the obtained screenshot parameters to obtain initial screenshot data representing the screenshot image. Furthermore, the system compares the initial format of the initial screenshot data with a preset format. If the initial format is the same as the preset format, the system performs format conversion on the initial screenshot data to generate screenshot data representing the final screenshot.

[0075] Step S30: Generate a fingerprint identification code based on the screenshot data, and send the fingerprint identification code to the cloud, so that the cloud can obtain the corresponding target application according to the fingerprint identification code and push it to the current display interface.

[0076] Furthermore, after generating the screenshot data, the system inputs the image information in the screenshot data into a random encryption program, processes the image information through the random encryption program, and obtains a fingerprint identification code based on the processed image hash value, wherein the random encryption program is used to generate a fingerprint identification code based on the image information in the screenshot data. Furthermore, the system sends the fingerprint identification code to the cloud, so that the cloud can obtain the type and name of the current application based on the fingerprint identification code, search for a target application with the same name and type as the current application from the application store or application database, and push the application information of the target application to the current display interface. The user can click or touch the application information to jump to the application introduction page of the target application. If the user is interested in the target application, the target application can be downloaded and used.

[0077] Furthermore, the step of sending the fingerprint identification code to the cloud includes:

[0078] Step S34, transcoding the fingerprint identification code to obtain a transcoded fingerprint identification code;

[0079] In step S35 , the transcoded fingerprint identification code is sent to the cloud via a preset transmission channel.

[0080] Furthermore, in order to smoothly send the generated fingerprint identification code to the cloud without being maliciously intercepted by them, the system also needs to transcode the generated fingerprint identification code. Specifically, the system interacts with the cloud and agrees on encoding and decoding rules with the cloud. After completing the agreement on the encoding and decoding rules, the generated fingerprint identification code is transcoded according to the encoding and decoding rules to obtain the transcoded fingerprint identification code. Furthermore, the system sends the transcoded fingerprint identification code to the cloud through a preset transmission channel, so that the cloud can decode the transcoded fingerprint identification code according to the agreed encoding and decoding rules, and parse the decoded fingerprint identification code to obtain the corresponding current application type and name, and search the application store or application database for the target application with the same name and type as the current application, and push the application information of the target application to the current display interface. The user can click or touch the application information to jump to the application introduction page of the target application. If the user is interested in the target application, the target application can be downloaded and used.

[0081] This embodiment provides an application push method, apparatus, device, and computer-readable storage medium, which obtains the application package name of the current application. If the application package name exists in the application store, the current display interface is captured to generate screenshot data; a fingerprint identification code is generated based on the screenshot data, and the fingerprint identification code is sent to the cloud, so that the cloud can obtain the corresponding target application based on the fingerprint identification code and push it to the current display interface. After determining that the current application is an application in the application store based on the application package name of the current application, the present invention captures the current display interface, generates a fingerprint identification code based on the screenshot data generated by the screenshot, and sends it to the cloud, so that the cloud can accurately search for application information of the same type based on the fingerprint identification code and push it to the display interface of the current application, effectively improving the accuracy of application push.

[0082] Furthermore, based on the first embodiment of the application push method of the present invention, a second embodiment of the application push method of the present invention is proposed. In the second embodiment, the step of generating a fingerprint identification code based on the screenshot data includes:

[0083] Step S31, inputting the screenshot data into a random encryption program;

[0084] Step S32, processing the screenshot data according to the perceptual hash algorithm of the random encryption program to calculate an image hash value;

[0085] Step S33: Determine the image hash value as the fingerprint identification code of the screenshot data.

[0086] Furthermore, a fingerprint unique identification module is provided in the system, and the fingerprint unique identification module is used to generate the screenshot data into a fingerprint identification code through an internally set random encryption program, and a perceptual hash algorithm is provided in the random encryption program. Furthermore, the system extracts image information such as the length information, width information, width and height of the image frame in the screenshot data, and inputs the image information and the generated screenshot data into the random encryption program of the fingerprint unique identification module. The screenshot data is processed through the perceptual hash algorithm of the random encryption program and the image information to calculate the image hash value. Furthermore, after the image hash value is calculated through the random encryption program of the fingerprint unique identification module, the system determines the image hash value as the fingerprint identification code generated by the screenshot data captured from the current application. The fingerprint identification code can be used to uniquely identify the current application, and the current application type and name can be obtained through the fingerprint identification code, and the target application with the same or similar type and name as the current application can be searched.

[0087] Furthermore, the step of processing the screenshot data according to the perceptual hash algorithm of the random encryption program to calculate the image hash value includes:

[0088] Step S321, scaling the screenshot data according to the perceptual hash algorithm of the random encryption program, and performing grayscale processing on the scaled screenshot data to obtain grayscale image information;

[0089] Step S322, performing discrete cosine transform on the grayscale image information, and determining target matrix data from the matrix data after the cosine transform;

[0090] Step S323: Calculate the image hash value according to the target matrix data.

[0091] Furthermore, the system calls the random encryption program in the fingerprint unique identification module and scales the screenshot data using the perceptual hash algorithm set in the random encryption program, combined with the input image information. Specifically, because it is necessary to filter out the high-frequency and detailed content of the screenshot image while retaining the structural brightness and darkness, the system scales the screenshot data based on image information such as the length and width of the image frame, as well as the width and height of the image. In this embodiment, the screenshot data can be reduced to an 8x8 size, resulting in 64 pixels, to reduce image deviations caused by different sizes and proportions. Furthermore, to facilitate further processing of the scaled screenshot data, the system also needs to simplify the colors of the scaled screenshot data. Specifically, the scaled screenshot data is grayscaled using a binarization algorithm to obtain binary grayscale image information. For example, the scaled screenshot data is converted to 64 levels of grayscale, meaning that all pixels in the screenshot data have a total of 64 colors. Furthermore, the system performs a discrete cosine transform on the grayscale image information. The discrete cosine transform decomposes the image into frequency clusters and trapezoidal shapes. Although JPEG uses an 8*8 discrete cosine transform, a 32*32 discrete cosine transform is used in this embodiment to achieve better results. Furthermore, after completing the discrete cosine transform to obtain a 32*32 matrix, since the 8*8 matrix in the upper left corner of the matrix presents the lowest frequency in the grayscale image information, the 8*8 matrix in the upper left corner of the matrix is ​​determined as the target matrix data. Furthermore, the system calculates the hash value of the grayscale image based on the target matrix data.

[0092] Furthermore, the step of calculating the image hash value according to the target matrix data includes:

[0093] Step S3231, performing average calculation on the target matrix data to obtain matrix mean data;

[0094] Step S3232, performing a hash operation on the matrix mean data to obtain hash matrix data;

[0095] Step S3233: convert the hash matrix data into hash image data, and combine the hash image data to obtain an image hash value.

[0096] Furthermore, the system first calculates the average value of the target matrix data. Specifically, it calculates the average value of the 64 values ​​in the target matrix data to obtain matrix mean data. Furthermore, the system performs a hash operation based on the matrix mean data representing the 8*8 discrete cosine transform matrix, assigning hash values ​​of 0 or 1 to each of the 64 average values. Average values ​​greater than or equal to the discrete cosine transform mean are set to "1," and average values ​​less than the discrete cosine transform mean are set to "0." After completing the hash operation, hash matrix data is formed. It can be understood that as long as the overall structure of the screenshot image remains unchanged, the resulting value of the hash operation remains unchanged. Therefore, this embodiment can avoid the effects of gamma correction or color histogram adjustments. Furthermore, to facilitate cloud-based recognition and parsing, the system also converts the character-based hash matrix data into long integer hash image data. Furthermore, the system combines the hash images in a specific order to obtain an image hash value representing the fingerprint identification code. The order is not limited in this embodiment.

[0097] This embodiment processes the screenshot data through the perceptual hash algorithm in the random encryption program, generates an image hash value and determines the image hash value as the fingerprint identification code of the screenshot data, so as to facilitate sending the fingerprint identification code to the cloud, so that the cloud can accurately search for application information of the same type based on the fingerprint identification code and push it to the display interface of the current application, effectively improving the accuracy of application push.

[0098] Furthermore, based on the first embodiment of the application push method of the present invention, a third embodiment of the application push method of the present invention is proposed. In the third embodiment, if the application package name exists in the application store, taking a screenshot of the current display interface and generating the screenshot data include:

[0099] Step S11, obtaining the standard application package names of all applications in the application store, and if any of the standard application package names matches the application package name, determining that the application package name exists in the application store.

[0100] Furthermore, the system calls the background service to obtain the standard application package names of all applications from the application store package name library, compares the application package name of the current application with each standard application package name, and determines whether any standard application package name matches the application package name, wherein the application store contains multiple applications that meet the installation standards, and each application has a unique corresponding standard application package name. Specifically, the system uses a character matching algorithm to compare the character information in the application package name with the character information of each standard application package name for consistency. The character matching algorithm includes a variety of algorithms such as the BF (Brute Force) algorithm, the RK (Rabin Karp) algorithm, the BM (Boyer Moore) algorithm, and the Sunday algorithm. The specific algorithm of the character matching algorithm is not limited in this embodiment. Furthermore, if the character information in the application package name is compared with the character information of each standard application package name for consistency through a character matching algorithm, and it is determined that the payment information of any standard application package name in each standard application package name completely matches the payment information of the application package name, the system determines that the application package name of the current application exists in the application store, indicating that the current application can be found in the application store and is a legally installed application. Generating a fingerprint identification code based on the current application and pushing the corresponding application will not cause adverse effects.

[0101] On the contrary, if the character information in the application package name is compared with the character information of each standard application package name for consistency through a character matching algorithm, and it is determined that the payment information of each standard application package name does not match the payment information of the application package name, the system determines that the current application does not exist in the application store and is suspected of being illegally installed or the information has been tampered with. Generating a fingerprint identification code based on the current application and pushing the corresponding application may cause adverse effects.

[0102] This embodiment compares the application package name of the current application with the standard application package names to determine whether any of the standard application package names matches the application package name. This can determine whether the current application is legally installed to ensure the security of the system and avoid pushing information with adverse effects to users.

[0103] Furthermore, based on the first embodiment of the application push method of the present invention, a fourth embodiment of the application push method of the present invention is proposed. In the fourth embodiment, if the application package name exists in the application store, taking a screenshot of the current display interface and generating screenshot data includes:

[0104] Step S21, obtaining screenshot parameters, taking a screenshot of the current display interface according to the screenshot parameters, and generating initial screenshot data;

[0105] Step S22 , identifying the initial format of the initial screenshot data, and if the initial format is the preset format, performing format conversion on the initial screenshot data to generate screenshot data.

[0106] Understandably, since the display screen sizes of different smart devices, such as smartphones and tablets, vary, the screenshot parameters used when taking screenshots of different smart devices are also different. Furthermore, if it is determined that the application package name exists in the app store, the system obtains the display information of the current smart device and uses the display information as the screenshot parameters of the current smart device, where the display information includes at least resolution information and the length and width of the display screen. Furthermore, the system takes a screenshot of the current display interface representing the application page currently being used by the user according to the screenshot parameters, and after completing the screenshot, generates initial screenshot data representing the screenshot image. Furthermore, the system reads the initial format of the initial screenshot data, identifies the initial format, and compares the initial format with a preset format to determine whether the initial format is the same as the preset format. In this embodiment, the preset format is the YUV format. YUV is a color encoding system primarily used in video and graphics processing pipelines. Compared to the RGB color space, the YUV format facilitates data encoding and transmission, reduces bandwidth usage, and reduces the probability of information errors. Furthermore, if the initial format is determined to be the same as the preset format after comparison, it means that the initial format of the initial screenshot data meets the preset format. Since the initial screenshot data in the preset format cannot be recognized by the random encryption program, that is, the preset format does not meet the conditions for generating a fingerprint identification code from the initial screenshot data, it is necessary to perform format conversion on the initial screenshot data to convert the initial screenshot data into data in the target format. Furthermore, the system performs format conversion on the initial screenshot data. Specifically, it identifies the target format, obtains the conversion relationship between the preset format and the target format, and converts the initial screenshot data according to the conversion relationship between the preset format and the target format to generate screenshot data representing data that can be recognized by the random encryption program. In this embodiment, the preset format is the YUV format, and the target format is the JPEG (Joint Photographic Experts Group) format.

[0107] In this embodiment, when the current application exists in the application store, a screenshot of the current display interface is taken according to the screenshot data, and when the initial format of the initial screenshot data is a preset format, the screenshot data is generated. Since the initial format is the preset format, it is convenient to encode and transmit the data, reduce bandwidth usage and reduce the probability of information errors, and convert the initial screenshot data into screenshot data of the target format, so as to facilitate the generation of a fingerprint identification code based on the screenshot data.

[0108] Furthermore, the present application also provides an application push device.

[0109] Reference Figure 3 , Figure 3 This is a functional module diagram of the first embodiment of the push device used in this application.

[0110] The application push device includes:

[0111] The screenshot module 10 is used to obtain the application package name of the current application, and if the application package name exists in the application store, take a screenshot of the current display interface to generate screenshot data;

[0112] The generating module 20 is configured to generate a fingerprint identification code based on the screenshot data, and send the fingerprint identification code to the cloud, so that the cloud can obtain a corresponding target application according to the fingerprint identification code and push it to the current display interface.

[0113] Furthermore, the screenshot module 10 includes:

[0114] The acquisition unit is used to acquire the standard application package names of all applications in the application store, and if any standard application package name among the standard application package names matches the application package name, it is determined that the application package name exists in the application store.

[0115] Furthermore, the screenshot module 10 further includes:

[0116] A screenshot unit, configured to obtain screenshot parameters, take a screenshot of the current display interface according to the screenshot parameters, and generate initial screenshot data;

[0117] The identification unit is configured to identify an initial format of the initial screenshot data, and if the initial format is the preset format, perform format conversion on the initial screenshot data to generate screenshot data.

[0118] Furthermore, the generating module 20 includes:

[0119] An input unit, configured to input the screenshot data into a random encryption program;

[0120] a first computing unit, configured to process the screenshot data according to the perceptual hash algorithm of the random encryption program to calculate an image hash value;

[0121] A determining unit is configured to determine the image hash value as a fingerprint identification code of the screenshot data.

[0122] Furthermore, the generating module 20 further includes:

[0123] a scaling unit, configured to scale the screenshot data according to the perceptual hash algorithm of the random encryption program, and perform grayscale processing on the scaled screenshot data to obtain grayscale image information;

[0124] a transform unit, configured to perform discrete cosine transform on the grayscale image information and determine target matrix data from the matrix data after the cosine transform;

[0125] The second calculation unit is used to calculate the image hash value according to the target matrix data.

[0126] Furthermore, the generating module 20 further includes:

[0127] A third calculation unit is used to calculate the average value of the target matrix data to obtain matrix mean data;

[0128] an operation unit, configured to perform a hash operation on the matrix mean data to obtain hash matrix data;

[0129] The conversion unit is configured to convert the hash matrix data into hash image data, and combine the hash image data to obtain an image hash value.

[0130] Furthermore, the generating module 20 further includes:

[0131] a transcoding unit, configured to transcode the fingerprint identification code to obtain a transcoded fingerprint identification code;

[0132] The sending unit is used to send the transcoded fingerprint identification code to the cloud through a preset transmission channel.

[0133] In addition, the present invention also provides a computer-readable storage medium, which is preferably a computer-readable storage medium, on which an application push program is stored. When the application push program is executed by a processor, the steps of each embodiment of the above-mentioned application push method are implemented.

[0134] In the embodiments of the application push device and computer-readable storage medium of the present invention, all technical features of the above-mentioned application push method embodiments are included, and the description and explanation content are basically the same as those of the above-mentioned application push method embodiments, and will not be repeated here.

[0135] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.

[0136] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.

[0137] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a computer-readable storage medium (such as ROM / RAM, disk, CD), and includes a number of instructions for enabling a terminal device (which can be a fixed terminal, such as an IoT smart device, including smart air conditioners, smart lights, smart power supplies, smart routers and other smart homes; it can also be a mobile terminal, including smart phones, wearable networked AR / VR devices, smart speakers, self-driving cars and many other networked devices) to execute the methods described in the various embodiments of the present invention.

[0138] The above are only preferred embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention description and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. An application push method, applied to an application push system, characterized in that: The application push method includes: Get the application package name of the current application and the standard application package name of all applications in the App Store; If the payment information in any of the standard application package names matches the payment information of the application package name, it is determined that the application package name exists in the application store, and a screenshot of the current display interface is taken to generate screenshot data; Inputting the screenshot data into a random encryption program; scaling the screenshot data according to the perceptual hash algorithm of the random encryption program, and performing grayscale processing on the scaled screenshot data to obtain grayscale image information; Performing discrete cosine transform on the grayscale image information, and determining target matrix data from the matrix data after the cosine transform; Calculating an image hash value according to the target matrix data; Determining the image hash value as the fingerprint identification code of the screenshot data; Send the fingerprint identification code to the cloud, so that the cloud can obtain the corresponding target application according to the fingerprint identification code and push it to the current display interface; The step of taking a screenshot of the current display interface and generating screenshot data includes: Obtaining screenshot parameters, taking a screenshot of the current display interface according to the screenshot parameters, and generating initial screenshot data; Identify the initial format of the initial screenshot data, and if the initial format is a preset format, perform format conversion on the initial screenshot data, converting the initial screenshot data into a target format to generate screenshot data; wherein the preset format is a YUV format, and the target format is a JPEG format.

2. The application push method according to claim 1, wherein: The step of calculating the image hash value according to the target matrix data includes: Calculating the average value of the target matrix data to obtain matrix mean data; Performing a hash operation on the matrix mean data to obtain hash matrix data; The hash matrix data is converted into hash image data, and the hash image data is combined to obtain an image hash value.

3. The application push method according to claim 1, wherein: The step of sending the fingerprint identification code to the cloud includes: Transcoding the fingerprint identification code to obtain a transcoded fingerprint identification code; The transcoded fingerprint identification code is sent to the cloud through the preset transmission channel.

4. An application push device, characterized in that: The application push device includes: The acquisition module is used to obtain the application package name of the current application and the standard application package names of all applications in the app store; a screenshot module, configured to determine that the application package name exists in the application store if the payment information in any of the standard application package names matches the payment information of the application package name, and to take a screenshot of the current display interface to generate screenshot data; The screenshot module includes a screenshot unit and a conversion unit; The screenshot unit is used to obtain screenshot parameters, take a screenshot of the current display interface according to the screenshot parameters, and generate initial screenshot data; The conversion unit is used to identify the initial format of the initial screenshot data, and if the initial format is a preset format, perform format conversion on the initial screenshot data, converting the initial screenshot data into a target format to generate screenshot data; wherein the preset format is a YUV format and the target format is a JPEG format; An input module, used for inputting the screenshot data into a random encryption program; a preprocessing module, configured to scale the screenshot data according to the perceptual hash algorithm of the random encryption program, and perform grayscale processing on the scaled screenshot data to obtain grayscale image information; a transform module, configured to perform discrete cosine transform on the grayscale image information and determine target matrix data from the matrix data after the cosine transform; A calculation module, configured to calculate an image hash value based on the target matrix data; a determination module, configured to determine the image hash value as a fingerprint identification code of the screenshot data; The generation module is used to generate a fingerprint identification code based on the screenshot data and send the fingerprint identification code to the cloud, so that the cloud can obtain the corresponding target application according to the fingerprint identification code and push it to the current display interface.

5. An application push device, characterized in that: The application push device includes a memory, a processor, and an application push program stored in the memory and executable on the processor. When the application push program is executed by the processor, the steps of the application push method according to any one of claims 1 to 3 are implemented.

6. A computer-readable storage medium, characterized in that The computer-readable storage medium stores an application push program, which, when executed by a processor, implements the steps of the application push method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Application search method and system, application search client and user terminal

    CN105956185A

  • Advertisement monitoring method and device

    CN108965950A