Electronic device and method for prompting function settings thereof, and method for playing prompt files
By using outline information, basic images and background images in the terminal device to restore the display effect of fingerprint animation, the problem of large storage space occupancy in the prior art is solved, and the effect of saving storage space is achieved.
Patent Information
- Application Number
- CN202011140810.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-22
- Publication Date
- 2025-06-06
- Estimated Expiration
- 2040-10-22
AI Technical Summary
When the prior art provides tips for fingerprint entry function for terminal devices, it is necessary to store a large number of image frames, resulting in a large storage space occupancy.
By using the outline information, basic images and background images of the playback object, gradually restore the display effect of the playback object, reducing the number of image frames required to store.
It effectively saves storage space, and reduces the storage space occupied by fingerprint prompt files without reducing animation quality.
Smart Images

Figure CN114463471B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer animation technology, and in particular to an electronic device and a prompt method for function settings thereof, a prompt file playback method and a medium. Background Art
[0002] For some features in terminal devices, such as the fingerprint entry function in mobile phones and tablets, in order to enable users to quickly and correctly master these functions, it is necessary to play animations or videos to guide users to perform related operations. For example, when a user uses the fingerprint entry function to enter a fingerprint, an animation of the fingerprint gradually changing from incomplete to complete can be played when the user presses the screen and releases the finger, guiding the user to enter a complete fingerprint. However, the animation of the fingerprint gradually changing from incomplete to complete is composed of multiple frames of images, and storing these images will take up a large storage space of the terminal device. For example, in the process of a user entering a fingerprint, the animation guiding the user to enter a fingerprint generally requires 946 frames of images, and the size of each frame of the image is 35K, so the entire prompt file needs to occupy a total of about 33M of memory. Summary of the invention
[0003] Embodiments of the present application provide an electronic device and a method for prompting function settings thereof, a method for playing prompt files, and a medium.
[0004] In a first aspect, an embodiment of the present application provides a function setting prompt method, which is applied to an electronic device, and the method includes:
[0005] In response to a first operation by the user, the electronic device displays a first sequence of frame images of the prompt file;
[0006] In response to a second operation by the user, the electronic device displays a second sequence of frame images of the prompt file;
[0007] Among them, the prompt file includes at least the first part of the outline information and the second part of the outline information of the playback object, the second part of the outline information of the playback object generates the second sequence frame image, the first part of the outline information of the playback object generates the first sequence frame image, and the second sequence frame image contains the content of the first sequence frame image.
[0008] It can be understood that the electronic device can be a terminal device, and the second part of the contour information can be the contour information of the complete or relatively complete playback object in the basic image. The second sequence of frame images includes the complete or relatively complete playback object in the basic image. The second part of the contour information can be the contour information of part of the above-mentioned playback object. In this way, the contour information can be used to restore the display effect of all or part of the playback object, saving the memory space for storing the fingerprint prompt file in the electronic device that plays the fingerprint prompt file.
[0009] In a possible implementation of the first aspect above, the prompt file further includes first image information and second image information, the first image information includes the playback object and a background of the playback object; the second image information includes the background of the playback object.
[0010] It can be understood that the first image information can be basic image information including a complete playback object, and the second image information can be a blank background image without any other object image or background image information including the playback object or other images in the basic image. For example, if the background of the fingerprint is white, the background image can be pure white without any other object image, or it can be an image including a light-colored fingerprint. For example, a hollow area is set on the background image; the background image with the hollow area is overlaid on the basic image to obtain a non-basic image with a part of the fingerprint. In this way, the display effect of all or part of the playback object can be restored using only the contour information, the basic image and the background image of the playback object, saving the memory space for storing the fingerprint prompt file in the electronic device that plays the fingerprint prompt file.
[0011] In a possible implementation of the first aspect above, the playback object is a fingerprint.
[0012] It can be understood that when a user uses the fingerprint entry function to enter a fingerprint, an animation of the fingerprint changing from incomplete to complete can be played when the user presses the screen and releases the finger, guiding the user to enter a complete fingerprint. The animation of the fingerprint changing from incomplete to complete is composed of multiple frames of images. The embodiment of the present application can use the contour information of the playback object to restore the display effect of all or part of the playback object, saving space for storing fingerprint prompt files in the electronic device that plays the fingerprint prompt file.
[0013] In a possible implementation of the first aspect, the first image information includes a complete fingerprint having a first color, and the second image information further includes a complete fingerprint having a second color.
[0014] In a possible implementation of the first aspect, the second image information generates the first displayed sequence frame image, and the first image information generates the last displayed sequence frame image.
[0015] It can be understood that the first sequence frame image may be a background image showing a light-colored complete fingerprint, and the last sequence frame image may be a purple complete fingerprint.
[0016] In a possible implementation of the first aspect above, the contour information includes coordinate values of a contour of the first part or the second part of the playback object.
[0017] It can be understood that the coordinate value may be a pixel coordinate value, or an image coordinate value converted from a pixel coordinate value.
[0018] In a possible implementation of the first aspect above, a carrier of at least the first part of the outline information and the second part of the outline information of the playback object is a json file.
[0019] In a second aspect, an embodiment of the present application provides a method for playing a prompt file, which is applied to an electronic device, and the method includes:
[0020] The electronic device generates at least a first sequence of frame images and a second sequence of frame images in response to a user's operation of playing a prompt file;
[0021] The electronic device plays the first sequence of frame images and the second sequence of frame images according to a predetermined order;
[0022] Among them, the prompt file includes at least the first part of the outline information and the second part of the outline information of the playback object, the second part of the outline information of the playback object generates the second sequence frame image, the first part of the outline information of the playback object generates the first sequence frame image, and the second sequence frame image contains the content of the first sequence frame image.
[0023] In a possible implementation of the second aspect above, the prompt file further includes first image information and second image information, the first image information includes the playback object and a background of the playback object; the second image information includes the background of the playback object.
[0024] In a possible implementation of the second aspect, the playback object is a fingerprint.
[0025] In a possible implementation of the second aspect, the first image information includes a complete fingerprint having a first color, and the second image information further includes a complete fingerprint having a second color.
[0026] In a possible implementation of the second aspect, the second image information generates the first displayed sequence frame image, and the first image information generates the last displayed sequence frame image.
[0027] In a possible implementation of the second aspect above, the contour information includes coordinate values of a contour of the first part or the second part of the playback object.
[0028] In a possible implementation of the second aspect above, the prompt file further includes a playback duration of each of the first sequence of frame images and the second sequence of frame images.
[0029] It is understandable that the prompt file may also include the playback mode of each frame image in the animation, such as the playback duration.
[0030] In a possible implementation of the second aspect, when playing each of the first sequence of frame images and the second sequence of frame images, the images are played according to the corresponding playing time length of the images.
[0031] In a possible implementation of the second aspect above, the carrier of at least the first part of the outline information and the second part of the outline information of the playback object is a json file.
[0032] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0033] a memory for storing instructions to be executed by one or more processors of the electronic device, and
[0034] The processor is one of the processors of the electronic device, and is used to execute a prompt method for function setting, the method comprising:
[0035] In response to a first operation by the user, the electronic device displays a first sequence of frame images of the prompt file;
[0036] In response to a second operation by the user, the electronic device displays a second sequence of frame images of the prompt file;
[0037] Among them, the prompt file includes at least the first part of the outline information and the second part of the outline information of the playback object, the second part of the outline information of the playback object generates the second sequence frame image, the first part of the outline information of the playback object generates the first sequence frame image, and the second sequence frame image contains the content of the first sequence frame image.
[0038] In a possible implementation of the third aspect above, the prompt file further includes first image information and second image information, the first image information includes the playback object and the background of the playback object; the second image information includes the background of the playback object.
[0039] In a possible implementation of the third aspect, the playback object is a fingerprint.
[0040] In a possible implementation of the third aspect, the first image information includes a complete fingerprint having a first color, and the second image information further includes a complete fingerprint having a second color.
[0041] In a possible implementation of the third aspect, the second image information generates the first displayed sequence frame image, and the first image information generates the last displayed sequence frame image.
[0042] In a possible implementation of the third aspect above, the contour information includes coordinate values of a contour of the first part or the second part of the playback object.
[0043] In a possible implementation of the third aspect above, the carrier of at least the first part of the outline information and the second part of the outline information of the playback object is a json file.
[0044] In a fourth aspect, an embodiment of the present application provides an electronic device, including:
[0045] a memory for storing instructions to be executed by one or more processors of the electronic device, and
[0046] The processor is one of the processors of the electronic device, and is used to execute a method for playing a prompt file, the method comprising:
[0047] The electronic device generates at least a first sequence of frame images and a second sequence of frame images in response to a user's operation of playing a prompt file;
[0048] The electronic device plays the first sequence of frame images and the second sequence of frame images according to a predetermined order;
[0049] Among them, the prompt file includes at least the first part of the outline information and the second part of the outline information of the playback object, the second part of the outline information of the playback object generates the second sequence frame image, the first part of the outline information of the playback object generates the first sequence frame image, and the second sequence frame image contains the content of the first sequence frame image.
[0050] In a possible implementation of the fourth aspect above, the prompt file further includes first image information and second image information, the first image information includes the playback object and the background of the playback object; the second image information includes the background of the playback object.
[0051] In a possible implementation of the fourth aspect above, the playback object is a fingerprint.
[0052] In a possible implementation of the fourth aspect, the first image information includes a complete fingerprint having a first color, and the second image information further includes a complete fingerprint having a second color.
[0053] In a possible implementation of the fourth aspect, the second image information generates the first displayed sequence frame image, and the first image information generates the last displayed sequence frame image.
[0054] In a possible implementation of the fourth aspect above, the contour information includes coordinate values of a contour of the first part or the second part of the playback object.
[0055] In a possible implementation of the fourth aspect above, the prompt file further includes a playback duration of each of the first sequence of frame images and the second sequence of frame images.
[0056] In a possible implementation of the fourth aspect, when playing each of the first sequence of frame images and the second sequence of frame images, the images are played according to the corresponding playing time length of the images.
[0057] In a possible implementation of the fourth aspect above, the carrier of at least the first part of the outline information and the second part of the outline information of the playback object is a json file.
[0058] In a fifth aspect, an embodiment of the present application provides a readable medium, wherein the readable medium stores instructions, and when the instructions are executed on an electronic device, the machine executes the prompt method for function setting described in any one of the first aspects or
[0059] A method for producing a prompt file as described in any one of the second aspects. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1 According to an embodiment of the present application, a schematic diagram of a fingerprint image sequence is shown.
[0061] Figure 2 According to the embodiment of the present application, a Figure 1 Schematic diagram of the outline of the incomplete fingerprint playback object in image A5.
[0062] Figure 3 According to some embodiments of the present application, a schematic diagram of an application scenario of fingerprint prompt file production and playback is shown.
[0063] Figure 4A A schematic diagram of the operation interface for a user to play fingerprint animation on the mobile phone 100 is shown.
[0064] Figure 4B A schematic diagram of the operation interface for a user to play fingerprint animation on the mobile phone 100 is shown.
[0065] Figure 4C A schematic diagram of the operation interface for a user to play fingerprint animation on the mobile phone 100 is shown.
[0066] Figure 4D A schematic diagram of the operation interface for a user to play fingerprint animation on the mobile phone 100 is shown.
[0067] Figure 5 According to some embodiments of the present application, a process for making and playing a fingerprint prompt file is shown.
[0068] Figure 6According to some embodiments of the present application, a schematic flow chart of a method for producing a fingerprint prompt file is shown.
[0069] Figure 7 According to some embodiments of the present application, a method for implementing Figure 1 Schematic diagram of the playback process of the fingerprint image sequence A playback effect.
[0070] Figure 8 According to an embodiment of the present application, a schematic diagram of fingerprint image sequence playback using conventional technology and an embodiment of the present application is shown.
[0071] Fig. 9 According to some embodiments of the present application, a schematic structural diagram of a first electronic device is shown.
[0072] Fig.10 According to some embodiments of the present application, a software structure block diagram of a first electronic device is shown. DETAILED DESCRIPTION
[0073] The illustrative embodiments of the present application include, but are not limited to, a prompt method for setting a function of an electronic device and a prompt file playback method and medium.
[0074] To facilitate understanding, some terms used in the embodiments of the present application are first introduced.
[0075] The playback object refers to the object that the prompt file wants to present to the user. For example, for the fingerprint animation displayed to the user during the fingerprint collection process, the playback object is the fingerprint.
[0076] A basic image refers to an image that contains a complete or relatively complete playback object, for example, an image that contains a complete fingerprint. Figure 1 According to an embodiment of the present application, a schematic diagram of a fingerprint image sequence is shown. Figure 1 As shown in image A11 in image sequence A.
[0077] Background image refers to a blank background image without any other object images or a background image containing the playback object or other images in the base image. For example, if the background of the fingerprint is white, the background image can be pure white without any other object images, or it can include a light-colored fingerprint image, such as Figure 1 As shown in image sequence A1.
[0078] Fingerprint animation: When a user enters a fingerprint on an electronic device, the fingerprint animation shows the user the process of the fingerprint gradually filling in. During the playback of the fingerprint animation, the image sequence played is as follows: Figure 1 shown.
[0079] As mentioned above, when guiding users to operate some functions on electronic devices, relevant operation guides can be displayed to users in the form of playing animations. However, playing animations or storing prompt files will occupy the storage resources of electronic devices. To solve this problem, the present application proposes a method for producing prompt files. The prompt file produced by this method does not include all the image information data in the image sequence required for playing animations, that is, it does not include Figure 1 Instead, it only includes: image information containing a complete playback object (i.e., basic image information, such as image information including a complete fingerprint for fingerprint animation, such as Figure 1 As shown in the image A11 in the figure), image information containing the background of the complete playback object (ie, background image information, for example, for a fingerprint animation, background image information including a complete fingerprint with weakened color, such as Figure 1 The drive file includes the contour information of the incomplete play object in the image showing the incomplete play object in the image sequence. The drive file may also include the display mode of the display image (e.g., the display duration of the generated image containing the incomplete play object).
[0080] For example, Figure 2 Shows Figure 1 The outline of the incomplete fingerprint shown in the image A5. The outline information may be composed of edge coordinates of multiple incomplete playback objects, that is, only the regional outline information of the incomplete playback object is stored in the prompt file, instead of the entire image. This reduces the storage space occupied by the prompt file.
[0081] At the same time, during the playback of the prompt file, based on the contour information in the driver file, the basic image information and the background image information are used to gradually restore the image of the incomplete playback object defined by each contour information, that is, when playing the prompt file, the player Figure 1 For example, Figure 1 As shown, play Figure 1The fingerprints shown in the images A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, and A11 are gradually transformed from incomplete to complete. For example, during the playback of fingerprint animation, when an image including an incomplete playback object is to be played, the hollow area and non-hollow area of the background image can be set according to the contour information in the driver file, wherein the hollow area is used to expose part of the playback object, i.e., the incomplete playback object. Then, the background image information of the set hollow area is correspondingly superimposed with the basic image information to display the incomplete fingerprint playback object defined by the hollow area based on the contour information. In this way, compared with the technical solution of storing the image information of each frame of the image in the image sequence, the embodiment of the present application can at least save the memory occupied by other image information in the image sequence except the basic image information and the background image information.
[0082] The technical solution of the embodiment of the present application is further described in detail below through the accompanying drawings and embodiments. For the convenience of description, the following description is made by taking the prompt file as a fingerprint prompt file as an example.
[0083] Figure 3 According to some embodiments of the present application, a schematic diagram of an application scenario of fingerprint prompt file production and playback is shown.
[0084] like Figure 3 As shown, in this application scenario, the first electronic device 100 is used to play an animation to guide the user to enter fingerprints, and the second electronic device 200 is used to create a fingerprint prompt file played by the first electronic device 100.
[0085] Specifically, the second electronic device 200 can make the image sequence displayed when the fingerprint prompt file is played into a fingerprint prompt file including basic image information, background image information, contour information and driver files, and then send the animation installation package corresponding to the prepared fingerprint prompt file to the first electronic device 100. After the first electronic device 100 receives the installation package corresponding to the fingerprint prompt file sent by the second electronic device 200, the animation installation package corresponding to the fingerprint prompt file is loaded on the first electronic device 100. When the user uses the relevant function, the first electronic device 100 plays the fingerprint prompt file in the installation package to the user. In addition, it can be understood that the animation installation package can also be part of the setting program installation package of the first electronic device 100, but is not limited to this.
[0086] It can be understood that the first electronic device 100 applicable to the present application can be various devices with a fingerprint prompt file playback function, such as: mobile phones, computers, laptop computers, tablet computers, televisions, display devices, outdoor display screens, vehicle-mounted terminals, etc. The second electronic device 200 applicable to the present application can be various devices that can make fingerprint prompt files. For example, the second electronic device 200 can be a server, and the server can be a hardware server or implanted in a virtualized environment. For example, according to some embodiments of the present application, the server 200 can be a virtual machine executed on a hardware server including one or more other virtual machines, that is, a cloud server. The first electronic device 100 can communicate wirelessly with the server 200 through various wireless methods.
[0087] For the convenience of description, the following description will be made by taking the first electronic device 100 as a mobile phone 100 and the second electronic device 200 as a server 200 as an example.
[0088] Figures 4A to 4D FIG. 1 shows a schematic diagram of the operation interface change process when a user plays a fingerprint animation on a mobile phone 100. Figure 4A As shown, assuming that the user needs to enter the fingerprint on the mobile phone 100, the user needs to click the icon control "Settings". Then, as Figure 4B As shown, the mobile phone 100 enters the setting interface. The user clicks on the fingerprint management in the setting interface to enter the fingerprint management interface, such as Figure 4C As shown in the figure, the user clicks the icon control "Unlock Screen" in the fingerprint management interface to display the fingerprint entry interface. Figure 4D As shown, when the mobile phone 100 displays the fingerprint entry interface, the mobile phone 100 automatically plays the fingerprint prompt file. The fingerprint prompt file is used to play the process of the fingerprint changing from incomplete to complete, so as to instruct the user to enter the complete fingerprint information during the fingerprint entry process, thereby improving the user's experience of using the fingerprint entry function on the first device 100.
[0089] In other application scenarios, when the user uses the fingerprint entry function of the mobile phone 100, when the user performs a fingerprint pressing operation in the fingerprint collection area, the mobile phone 100 responds to the fingerprint pressing operation in the fingerprint collection area, that is, responds to the user's operation of playing the prompt file, and generates at least one frame of image in the prompt file. For example, when the user performs the fingerprint pressing operation for the first time, the mobile phone 100 collects less fingerprint information and displays an incomplete fingerprint. When the user performs the fingerprint pressing operation for the second time, the mobile phone 100 collects more fingerprint information than the previous time, and displays a more complete fingerprint image than the previous time, so as to prompt the user to continue to enter the fingerprint, so as to facilitate the mobile phone 100 to collect complete or relatively complete fingerprint information.
[0090] It can be understood that, as described above, the fingerprint prompt file played here includes basic image information, background image information, and a driving file based on contour information in the image sequence.
[0091] Figure 5 According to some embodiments of the present application, a process for making and playing a fingerprint prompt file is shown.
[0092] Specifically, Figure 5 As shown, the process of the server 200 making a fingerprint prompt file includes:
[0093] The fingerprint image sequence with gradually changing image content (such as Figure 1 As shown) is input into the encoding module in the server 200, and the encoding module can retain the basic image information (such as Figure 1 ) and background image information (as shown in image A11 in Figure 1 As shown in the image A1 in the figure, the contour information of the fingerprint in the non-basic images other than the basic image information and the background image information in the fingerprint image sequence is extracted, and a driver file is generated based on the contour information of the fingerprint in the non-basic image, and then a fingerprint prompt file containing the basic image information, the background image information and the driver file is generated.
[0094] The detailed process of the encoding module making fingerprint prompt files is as follows Figure 6 As shown, including:
[0095] Step 601: The encoding module in the server 200 obtains an image sequence.
[0096] The image sequence includes a base image and a non-base image, wherein the image information in the non-base image is part of the image information in the base image information.
[0097] It can be understood that the image sequence includes multiple frames of images, and according to the different image information of each frame of image, the multiple frames of image information are divided into basic image information and non-basic image information, wherein the basic image contains complete or relatively complete image information of the playback object, and the image information of the incomplete playback object in the non-basic image information is part of the image information of the playback object in the basic image. Figure 1 Image A11 in FIG. 1 is basic image information, including a complete fingerprint. Images A2 to A10 are non-basic images, including partial fingerprints, i.e., incomplete fingerprints.
[0098] Step 602: the encoding module in the server 200 determines the contour information of the playback object of each frame of the non-base image in the image sequence.
[0099] The contour information is determined based on the edge of the partial playback object in each frame of the non-basic image. The contour information is used to define the partial playback object displayed in the image generated in each frame of the animation; for example, the playback object displayed in each frame of the fingerprint animation can be Figure 1 The playback object of each frame image in the image sequence corresponds one to one, that is, the display effect of each frame image in the fingerprint animation can be Figure 1 The display effect of each frame in the image sequence is the same.
[0100] It can be understood that in an image sequence with gradually changing image information, there is at least part of the same image information between each frame. In order to save storage space, the image information containing the complete fingerprint can be used as the basic image information during the playback of the fingerprint prompt file, and the contour information of the partial playback object of each frame of the non-basic image can be extracted. The contour information is used to define the display content of each frame of the image during the playback of the fingerprint animation. Figure 2 As shown, image A5 includes fingerprint playback object B, and edge coordinate data is obtained by extracting the edge information of the fingerprint playback object B. The edge coordinate data is used to form edge contour C when the fingerprint animation is subsequently played to define the image information B within the edge contour C. Figure 1 The fingerprint images A2 to A11 in the image sequence A are respectively subjected to contour information extraction to obtain the edge image coordinate value of the fingerprint in each frame. That is, according to the original input image sequence, the range of the content change of each frame is taken out and described by a series of points. For example, Figure 1 As shown in the figure, the fingerprint playback object in image A2 is relatively small, and its range can be described by a curve composed of 10 coordinate points, with coordinate values of [{"x":294,"y":292},{"x":302,"y":293},
[0101] {"x":309,"y":298},{"x":309,"y":304},{"x":303,"y":306},
[0102] {"x":297,"y":304},{"x":293,"y":306},{"x":283,"y":308},
[0103] {"x":285,"y":300},{"x":290,"y":294}], x represents the numerical variable of the first coordinate axis in the image, the data after x represents the position of the coordinate axis in the first direction, the unit can be millimeter, but not limited to this. y represents the numerical variable of the second coordinate axis in the image, the data after y represents the position of the coordinate axis in the second direction, the unit can be millimeter, but not limited to this.
[0104] In some embodiments, the above series of coordinate values can be obtained by manual participation, for example, manually using a closed fingerprint contour marking line to circle the edge of the fingerprint playback object B, and then the server 200 samples this marking line to obtain multiple sets of coordinate values (x, y), and the sampling density is set according to the scene, for example, one point is taken every 0.5 mm. The details are as follows:
[0105] Draw an outline for the part of the playback object in the non-base image in the image sequence, and the color of the outline is a color that can be distinguished from the color of the playback object. For example, the color of the outline is different from the color of the playback object; the fingerprints of each part in the non-base image are purple, and the outline is blue.
[0106] The non-basic image with the outline marked is input into the server 200. The server 200 receives the non-basic image with the outline marked, scans the non-basic image with the outline marked, and extracts the outline information of some playback objects in the non-basic image. The specific scanning process is as follows:
[0107] Starting from the first row of pixels of the non-basic image with the outline marked, scan the pixels of the non-basic image with the outline marked row by row from left to right or from right to left. If the color of the pixel is the color of the outline, such as blue, record the current pixel coordinate value (x, y) and convert the current pixel coordinate value to the image coordinate value. The pixel coordinate value is the coordinate value in the pixel coordinate system, and the image coordinate value is the coordinate value in the image coordinate system. The conversion of pixel coordinate values to image coordinate values is a prior art and will not be repeated here. The edge image coordinate values of the acquired playback object constitute the contour information of the playback object.
[0108] After all the scans are completed, the coordinate value sampling of the contour lines of some playback objects in the non-basic image with the contour lines marked is completed, and the edge coordinate data can be output to a json file to create a driver file for playing animations.
[0109] In some other embodiments, if the color of the non-basic image is complex, a mature cutout algorithm in the industry can be used to identify the contour of the playback object. That is, the server 200 automatically uses a closed fingerprint contour line to obtain the edge image coordinate value of the partial fingerprint B1. The difference between this method and the manual participation method is that the closed fingerprint contour line is calculated by the contour detection algorithm, and this contour detection uses an existing algorithm. The details are as follows:
[0110] The server 200 performs contour marking on the playback objects of the non-basic images in the image sequence according to the contour detection algorithm.
[0111] The non-basic image with the outline marked is input into the server 200, and the server 200 receives the non-basic image with the outline marked, scans the non-basic image with the outline marked, and extracts the outline information of the playback object in the non-basic image. The specific scanning process is as follows:
[0112] Starting from the first row of pixels of the non-basic image with the outline marked, scan the pixels of the non-basic image with the outline marked row by row. If the color of the pixel is the color of the outline, such as blue, record the current pixel coordinate value (x, y) and convert the current pixel coordinate value into an image coordinate value. The collected edge image coordinate values of the playback object constitute the contour information of the playback object.
[0113] After all scanning is completed, the coordinate value sampling of the contour line of the non-basic image with the contour line marked is completed, and the edge coordinate data can be output to a json file to make a driver file for playing animation. In some embodiments, in order to reduce the workload of the mobile phone 100 in reading the edge coordinate data when playing the prompt file, and to meet the requirements of more accurately determining the playback object, after each line is completed, inter-line filtering is performed, and the pixel coordinate values of the rows that are very close are filtered out according to the preset step length, that is, it is determined whether the distance between the current image coordinate value and the previous image coordinate value exceeds the preset step length, and the points whose distance is less than the preset step length are deleted, thereby reducing the amount of edge coordinate data.
[0114] Step 603: the encoding module in the server 200 determines a fingerprint prompt file according to the contour information of the playback object of each frame of the determined non-basic image, the basic image and the background image.
[0115] Since the display content of each frame image in the fingerprint animation is different, the driver file in the fingerprint animation is edited based on the contour information. The fingerprint prompt file can be a fingerprint animation program file, which is used to guide the display content and display method (such as display duration) of each frame image in the fingerprint animation.
[0116] The fingerprint prompt file includes at least basic image information, background image information, and a driver file based on the outline information of a portion of the playback object in each frame of the non-basic image. Figure 1 The fingerprint images A2 to A10 in the image sequence A are respectively subjected to contour information extraction to obtain edge coordinate data of the fingerprint of each frame image. The encoding result based on the edge coordinate data of the basic image A11 and the fingerprint images A1 to A10 includes a fingerprint prompt file consisting of a basic image A11, a background image A11, and a driving file based on the contour information of the fingerprint of each frame image in the non-basic image information.
[0117] The driver file used to play the animation can be described in the form of a json file. The following is an example of a json format:
[0118]
[0119] [] is similar to [{"x":294,"y":292},{"x":302,"y":293},
[0120] {"x":309,"y":298},{"x":309,"y":304},{"x":303,"y":306},
[0121] {"x":297,"y":304},{"x":293,"y":306},{"x":283,"y":308},
[0122] {"x":285,"y":300},{"x":290,"y":294}], path1 represents the first frame image information (e.g. Figure 1 A2 in path1), the information after the colon represents the contour information of the second frame of image information (for example Figure 1 The edge coordinate data of image A2 in the json file is similar to the meaning of path1 from path2 to path10, so we will not repeat them here. At the end of the json file, it indicates the display effect properties of each frame of the generated image. For example, "frame_info":[{"duration":37}, which means that the playback duration of the first frame of the generated image is 37 milliseconds.
[0123] It can be understood that in some other embodiments, more effect attribute parameters of the animation playback program file can be expanded according to the business scenario used, for example, display in a gradual manner or in a flying manner, but not limited to this. The server 200 uses a frame of basic image information, a frame of background image information and a json file as source files to package into a fingerprint animation installation package (as an example of a fingerprint prompt file). In some other embodiments, the fingerprint animation installation package can be a setting application installation package. In this way, the fingerprint animation installation package can be reversely decoded during the fingerprint animation playback process to achieve the playback effect of the gradual change of the image information content. The fingerprint animation installation package can be an Android application package (Android application package, APK), which is an application package file format used by the Android operating system for distributing and installing mobile applications and middleware. If the code of an Android application wants to run on an Android device, it must first be compiled and then packaged into a file that can be recognized by the Android system before it can be run, and this file format that can be recognized and run by the Android system is "APK". An APK file contains compiled code files (.dex files), file resources (resources), native resource files (assets), certificates (certificates), and manifest files (manifest file).
[0124] After the encoding module in the server 200 prepares and packages the fingerprint prompt file, it obtains the fingerprint animation installation package, and then the fingerprint animation installation package can be implanted into the mobile phone 100. The mobile phone 100 obtains the fingerprint animation installation package from the server 200, decompresses the fingerprint animation installation package, and installs it into the mobile phone 100.
[0125] It can be understood that the server 200 and the mobile phone 100 can exchange data through a wired link connection or a wireless link connection to install the animation installation package into the first electronic device 100.
[0126] Continue to refer Figure 5 After installing the animation installation package, the mobile phone 100 can play the fingerprint prompt file when the user enters the fingerprint.
[0127] Specifically, the mobile phone 100 runs the driver file in the fingerprint prompt file through the decoding module, for example, the json file used for the animation playback of the fingerprint playback object. When playing the prompt file, it gradually restores the change process of the display part of the playback object defined by each contour information, for example, the process of an incomplete playback object becoming a complete playback object.
[0128] Specifically, the playback object is a fingerprint. Figure 7 According to some embodiments of the present application, a method for implementing Figure 1 Schematic diagram of the playback process of the fingerprint image sequence A playback effect. Figure 7 As shown, the method includes:
[0129] Step 701: The decoding module in the mobile phone 100 reads the basic image information and background image information in the fingerprint prompt file, where the basic image information includes the complete fingerprint.
[0130] That is, the basic image information and background image information in the fingerprint prompt file are decoded as the basic material for the subsequent fingerprint animation playback.
[0131] Step 702: The mobile phone 100 displays a background image and displays the duration read from the json file.
[0132] The mobile phone 100 displays a background image based on the read background image information.
[0133] Step 703: the decoding module in the mobile phone 100 reads the contour information of the fingerprint of the i-th frame in the json file for fingerprint animation playback in the fingerprint prompt file, where i is greater than or equal to 1. The contour information of the fingerprint includes the edge image coordinate value of the fingerprint in the non-basic image.
[0134] Step 704: the decoding module in the mobile phone 100 constructs a transparent area of the background image information according to the edge image coordinate values of the i-th frame fingerprint, superimposes the constructed background image information with the basic image information, and displays the part of the above complete fingerprint within the outline corresponding to the edge image coordinate values in the basic image information.
[0135] In some embodiments, the display of the playback object in the basic image information defined by the edge image coordinate value is achieved by layer overlay, specifically, including: setting the background image information as a transparent area, also called a hollow area, according to the contour information of the i-th frame, and the transparent area can display the playback object within the edge image coordinate value to present the playback object, such as a fingerprint, to the user.
[0136] For example, Figure 1 As shown, the image A11 is set as the base image and the image A1 including the light-colored fingerprint is set as the background image. The range of the middle hollow area is the display range within the closed-loop curve defined by the edge image coordinate values of the fingerprint. For example, according to the following edge image information coordinate values of the first frame fingerprint image information A2 and the outline of the display part of the fingerprint playback object defined by the curve fitting algorithm, the edge image information coordinate values of the first frame fingerprint image A1 are as follows: [{"x":294,"y":292},{"x":302,"y":293},
[0137] {"x":309,"y":298},{"x":309,"y":304},{"x":303,"y":306},
[0138] {"x":297,"y":304},{"x":293,"y":306},{"x":283,"y":308},
[0139] {"x":285,"y":300},{"x":290,"y":294}], x represents the numerical variable of the first coordinate axis of the first direction of the image, the data after x represents the position of the first coordinate axis, the unit can be milliseconds, but not limited to this. y represents the numerical variable of the second coordinate axis of the second direction of the image, the data after y represents the position of the first coordinate axis, the unit can be millimeter, but not limited to this.
[0140] In some embodiments, according to the principle of Bezier curve, data points and control points are reasonably set to convert the above coordinate values into the contour line of the playback object. The data points are used to determine the starting and ending positions of the contour line of the playback object, and the control points are used to determine the curvature of the contour line of the playback object.
[0141] The implementation process of step 703 is exemplarily described below.
[0142] 1) The mobile phone 100 draws the hollow area of the background image information. There is a ready-made interface on Android to realize the drawing of the hollow area of the background image information and the superposition of the image information. The pseudo code is as follows:
[0143] Bitmap layerB = new Bitmap(Corlor.GRAY); / / Create a bitmap object, gray
[0144] Canvas canvas = new Canvas(mask); / / Prepare the canvas on the bitmap
[0145] Paint paint = new Paint();
[0146] paint.setAlpha(); / / Set transparency
[0147] canvas.drawPath(path, paint); / / See point 1 for drawing the path, the properties of paint make the area transparent
[0148] 2) The mobile phone 100 loads basic image information.
[0149] Bitmap layerA = new Bitmap(); / / load layer A
[0150] 3) The mobile phone 100 superimposes the two layers of the background image information with the hollowed-out area drawn obtained in step 1) and the basic image information, and the result is result.
[0151] Bitmap result = new Bitmap(); / / result layer after synthesis
[0152] Canvas canvas = new Canvas(result); / / Canvas of composite layer
[0153] mCanvas.drawBitmap(layerA); / / Draw A to the canvas
[0154] mCanvas.drawBitmap(layerB); / / Overlay layer B
[0155] In addition, in some other embodiments, the display effect of fingerprint animation playback does not necessarily follow Figure 4A As shown, the partial fingerprint is gradually increased to the complete fingerprint, and can also be displayed in any playback order from A1 to A11.
[0156] Step 705: the decoding module of the mobile phone 100 reads the fingerprint display duration of the i-th frame from the frame_info field of the json file used for fingerprint animation playback, and sets the fingerprint display duration of the i-th frame.
[0157] That is, the attribute display effect of the first frame frame_info is read. Duration indicates the playback duration of the current frame image information, for example, 37 milliseconds, that is, 37 milliseconds are displayed. In some other embodiments, more effect attribute parameters of the animation playback program file can be expanded according to the business scenario used, for example, display in a gradual manner or in a flying manner, but it is not limited thereto.
[0158] Step 706: The decoding module of the mobile phone 100 determines whether i is less than 11. If so, it goes to the above step 702. If i is less than 11, it means that the fingerprint animation playback process still needs to continue, and the processing process of step 702 is looped until the entire fingerprint animation playback process is completed. If not, it goes to step 707;
[0159] Step 707: the mobile phone 100 displays the basic image and displays the duration read from the json file;
[0160] The mobile phone 100 displays the basic image based on the read basic image information.
[0161] When the fingerprint animation ends, the process ends.
[0162] In addition to being a fingerprint prompt file, the prompt file may also be a facial prompt file for guiding the user to input a complete face, and other prompt files for other application scenarios, but is not limited thereto.
[0163] Figure 8 According to an embodiment of the present application, a schematic diagram of fingerprint image sequence playback using conventional technology and an embodiment of the present application is shown.
[0164] like Figure 8 As shown on the left, in the conventional technology, 11 fingerprint image sequences are played in sequence to form a fingerprint prompt file effect. For example, 11 fingerprint image information in the fingerprint image sequence are played in sequence every 37 milliseconds to form a fingerprint prompt file. However, each frame of the fingerprint prompt file requires at least one fingerprint image information, and the fingerprint image information file has a large capacity, which occupies a large amount of storage space.
[0165] In the embodiment of the present application, Figure 8 As shown on the right, only one image information of the most complete fingerprint can be used, such as the basic image A11. The contour information of each frame of fingerprint image information in the non-basic image information (for example, fingerprint image A1 to image A10) is encoded. The encoded result includes the fingerprint prompt file composed of the basic image information, background image information and driver file (for example, json file). The above fingerprint prompt file is decoded to achieve the playback effect, and the same fingerprint prompt file effect as the fingerprint image sequence playback in the traditional technology is achieved, so as to reduce the space occupied by the fingerprint image information. For example, assuming that the fingerprint prompt file when the user enters the fingerprint, there is a fingerprint prompt file sequence for each press, and there is a fingerprint prompt file sequence when the finger is released. There are 86 fingerprint prompt file sequences for three forms of fingerprints (rear, screen, and under the screen). Each fingerprint prompt file sequence has 11 image information, a total of 946 image information, and occupies 33M of storage space. The ROM occupation of fingerprint prompt file resources is optimized to 15% of the original. Use Figure 8 The conventional technology shown on the left occupies the following memory space: image information, 86*11=946 sheets, size: 946*35=33,110K, i.e. 33M. Using the embodiment of the present application, the memory space occupied is: image information occupies memory: 86*35*2=6,020K, i.e. 6M, json file occupies memory: 86*25=2,150K, i.e. 2.15M, a total of 8.15M. The ROM occupancy is reduced to 8.15 / 33=24.7% of the original.
[0166] Fig. 9 A schematic structural diagram of the first electronic device 100 is shown.
[0167] The first electronic device 100 (such as the above-mentioned mobile phone 100) may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0168] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the first electronic device 100. In other embodiments of the present application, the first electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0169] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0170] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0171] A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system. In the embodiment of the present application, the processor 110 may store instructions for executing the prompt method of the function setting. For example, when the user performs a fingerprint pressing operation in the fingerprint collection area, the processor 110 responds to the fingerprint pressing operation in the fingerprint collection area, that is, responds to the user's operation of playing the prompt file, and generates at least one frame of fingerprint image in the prompt file to prompt the user to enter a complete fingerprint, so as to facilitate the processor 110 to collect complete or relatively complete fingerprint information from the fingerprint collector. Instructions for executing the playback of the prompt file may also be stored, for example: in response to the user's operation of playing the prompt file, the process of playing the fingerprint from incomplete to complete is played to instruct the user to enter the complete fingerprint information during the fingerprint recording process. Instructions for executing the production of prompt files can also be stored, for example, obtaining an image sequence required for producing a fingerprint prompt file, wherein the image sequence includes a base image, a background image, and multiple frames of non-base images, wherein the base image includes a purple complete fingerprint to be displayed in the prompt file, the background image includes a light-colored complete fingerprint, and the non-base image includes a portion of the purple complete fingerprint; obtaining contour information of the portion of the purple complete fingerprint of each non-base image in the image sequence, and generating a prompt file based on the fingerprint contour information of the portion of the purple complete fingerprint of the base image, the background image, and multiple frames of non-base images.
[0172] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the first electronic device 100. In other embodiments of the present application, the first electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0173] The wireless communication function of the first electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0174] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the first electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0175] The mobile communication module 150 can provide a solution for wireless communications including 2G / 3G / 4G / 5G applied to the first electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110. In the embodiment of the present application, the mobile phone 100 can receive a fingerprint prompt file sent by the server 200, for example, an animation installation package containing a fingerprint prompt file.
[0176] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., applied to the first electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of the signal, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2. In the embodiment of the present application, the mobile phone 100 can receive a fingerprint prompt file sent by the server 200, for example, an animation installation package containing a fingerprint prompt file.
[0177] The first electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information. In the embodiment of the present application, the mobile phone 100 can play a video, for example, a fingerprint prompt file, and an animation of the fingerprint gradually changing from an incomplete to a complete one.
[0178] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the first electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the first electronic device 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor. In the embodiment of the present application, the processor 110 may store instructions for executing the prompt method of the function setting. For example, when the user performs a fingerprint pressing operation in the fingerprint collection area, the processor 110 responds to the fingerprint pressing operation in the fingerprint collection area, that is, responds to the user's operation of playing the prompt file, and generates at least one frame of fingerprint image in the prompt file to prompt the user to enter a complete fingerprint, so as to facilitate the processor 110 to collect complete or relatively complete fingerprint information from the fingerprint collector. Instructions for executing the playback of the prompt file may also be stored, for example: in response to the user's operation of playing the prompt file, the process of playing the fingerprint from incomplete to complete is played to instruct the user to enter the complete fingerprint information during the fingerprint recording process. Instructions for executing the production of prompt files can also be stored, for example, obtaining an image sequence required for producing a fingerprint prompt file, wherein the image sequence includes a base image, a background image, and multiple frames of non-base images, wherein the base image includes a purple complete fingerprint to be displayed in the prompt file, the background image includes a light-colored complete fingerprint, and the non-base image includes a portion of the purple complete fingerprint; obtaining contour information of the portion of the purple complete fingerprint of each non-base image in the image sequence, and generating a prompt file based on the fingerprint contour information of the portion of the purple complete fingerprint of the base image, the background image, and multiple frames of non-base images.
[0179] The buttons 190 include a power button, a volume button, etc. The buttons 190 may be mechanical buttons or touch buttons.
[0180] The software system of the first electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention takes the Android system of the layered architecture as an example to exemplify the software structure of the first electronic device 100.
[0181] Fig.10 It is a software structure block diagram of the first electronic device 100 according to an embodiment of the present invention.
[0182] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
[0183] The application layer can include a series of application packages.
[0184] like Fig.10 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, and settings including prompt files.
[0185] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0186] like Fig.10 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0187] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0188] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0189] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. The display interface can be composed of one or more views.
[0190] The phone manager is used to provide a communication function of the first electronic device 100 .
[0191] The resource manager provides various resources for the application, such as localized strings, icons, images, layout files, video files, and so on.
[0192] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0193] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0194] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0195] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0196] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0197] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0198] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0199] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0200] A 2D graphics engine is a drawing engine for 2D drawings.
[0201] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0202] The various embodiments disclosed in the present application may be implemented in hardware, software, firmware, or a combination of these implementation methods. The embodiments of the present application may be implemented as a computer program or program code executed on a programmable system, the programmable system including at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device.
[0203] Program code can be applied to input instructions to perform the functions described in this application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.
[0204] Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.
[0205] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, instructions may be distributed over a network or through other computer-readable media. Therefore, machine-readable media may include any mechanism for storing or transmitting information in a machine (e.g., computer) readable form, including, but not limited to, floppy disks, optical disks, optical disks, read-only memories (CD-ROMs), magneto-optical disks, read-only memories (ROMs), random access memories (RAMs), erasable programmable read-only memories (EPROMs), electrically erasable programmable read-only memories (EEPROMs), magnetic or optical cards, flash memory, or a tangible machine-readable memory for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) using the Internet in electrical, optical, acoustic, or other forms of propagation signals. Therefore, machine-readable media include any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a machine (e.g., computer) readable form.
[0206] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a particular figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.
[0207] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation method of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed by the present application. In addition, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problems proposed by the present application, which does not mean that there are no other units / modules in the above-mentioned device embodiments.
[0208] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one" do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0209] Although the present application has been illustrated and described with reference to certain preferred embodiments thereof, it will be apparent to those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present application.
Claims
1. A function setting prompt method, applied to an electronic device, the method include: In response to a first operation by the user, the electronic device generates and displays a first sequence of frame images of the prompt file based on the basic image information, the background image information and the first portion of the outline information, where the first portion of the outline information is the outline information of the playback object in the first non-basic image information; In response to a second operation of the user, the electronic device generates and displays a second sequence of frame images of the prompt file based on the basic image information, the background image information and the second part of the outline information, where the second part of the outline information is the outline information of the playback object in the second non-basic image information; Wherein, the second sequence of frame images includes the content of the first sequence of frame images; The basic image information is image information containing a complete playback object, the background image information is image information containing a background of a complete playback object, and the first non-basic image information and the second non-basic image information are image information containing an incomplete playback object.
2. The method according to claim 1, It is characterized in that The prompt file further includes first image information and second image information, wherein the first image information includes the playback object and the background of the playback object; and the second image information includes the background of the playback object.
3. The method according to claim 2, It is characterized in that The playback object is a fingerprint.
4. The method according to claim 3, It is characterized in that The first image information includes a complete fingerprint in a first color, and the second image information also includes a complete fingerprint in a second color.
5. The method according to claim 2, It is characterized in that The second image information generates the first displayed sequence frame image, and the first image information generates the last displayed sequence frame image.
6. The method according to claim 1, It is characterized in that The contour information includes coordinate values of the contour of the first part or the second part of the playback object.
7. The method according to claim 1, It is characterized in that The carrier of at least the first part of the outline information and the second part of the outline information of the playback object is a json file.
8. A method for playing a prompt file, applied to an electronic device, the method include: The electronic device generates at least a first sequence of frame images and a second sequence of frame images in response to a user's operation of playing a prompt file; The electronic device plays the first sequence of frame images and the second sequence of frame images according to a predetermined order; The first sequence of frame images is generated based on basic image information, background image information and first part of contour information, and the first part of contour information is contour information of a playback object in the first non-basic image information; The second sequence of frame images is generated based on the basic image information, the background image information and the second part of the outline information, the second part of the outline information is the outline information of the playback object in the second non-basic image information, and the second sequence of frame images includes the content of the first sequence of frame images; The basic image information is image information containing a complete playback object, the background image information is image information containing a background of a complete playback object, and the first non-basic image information and the second non-basic image information are image information containing an incomplete playback object.
9. The method according to claim 8, It is characterized in that The prompt file further includes first image information and second image information, wherein the first image information includes the playback object and the background of the playback object; and the second image information includes the background of the playback object.
10. The method according to claim 9, It is characterized in that The playback object is a fingerprint.
11. The method according to claim 10, It is characterized in that The first image information includes a complete fingerprint in a first color, and the second image information also includes a complete fingerprint in a second color.
12. The method according to claim 9, It is characterized in that The second image information generates the first displayed sequence frame image, and the first image information generates the last displayed sequence frame image.
13. The method according to claim 8, It is characterized in that The outline information includes coordinate values of the outline of the first part or the second part of the playback object.
14. The method according to claim 8, It is characterized in that The prompt file also includes the playing time of each of the first sequence frame images and the second sequence frame images.
15. The method according to claim 14, It is characterized in that When playing each of the first sequence frame images and the second sequence frame images, the images are played according to the corresponding playing time lengths of the images.
16. The method according to claim 8, It is characterized in that The carrier of at least the first part of the outline information and the second part of the outline information of the playback object is a json file.
17. An electronic device, It is characterized in that include: a memory for storing instructions to be executed by one or more processors of the electronic device, and The processor is one of the processors of the electronic device, and is used to execute a prompt method for function setting, the method comprising: In response to a first operation by the user, the electronic device generates and displays a first sequence of frame images of the prompt file based on the basic image information, the background image information and the first portion of the outline information, where the first portion of the outline information is the outline information of the playback object in the first non-basic image information; In response to a second operation of the user, the electronic device generates and displays a second sequence of frame images of the prompt file based on the basic image information, the background image information and the second part of the outline information, wherein the second part of the outline information is the outline information of the playback object in the second non-basic image information; the basic image information is image information containing a complete playback object, the background image information is image information containing a background of a complete playback object, and the first non-basic image information and the second non-basic image information are image information containing an incomplete playback object; The second sequence of frame images contains the content of the first sequence of frame images.
18. The electronic device according to claim 17, It is characterized in that The prompt file further includes first image information and second image information, wherein the first image information includes the playback object and the background of the playback object; and the second image information includes the background of the playback object.
19. The electronic device according to claim 18, It is characterized in that The playback object is a fingerprint.
20. The electronic device according to claim 19, It is characterized in that The first image information includes a complete fingerprint in a first color, and the second image information also includes a complete fingerprint in a second color.
21. The electronic device according to claim 18, It is characterized in that The second image information generates the first displayed sequence frame image, and the first image information generates the last displayed sequence frame image.
22. The electronic device according to claim 17, It is characterized in that The contour information includes coordinate values of the contour of the first part or the second part of the playback object.
23. The electronic device according to claim 17, It is characterized in that The carrier of at least the first part of the outline information and the second part of the outline information of the playback object is a json file.
24. An electronic device, It is characterized in that include: a memory for storing instructions to be executed by one or more processors of the electronic device, and The processor is one of the processors of the electronic device, and is used to execute a method for playing a prompt file, the method comprising: The electronic device generates at least a first sequence of frame images and a second sequence of frame images in response to a user's operation of playing a prompt file; The electronic device plays the first sequence of frame images and the second sequence of frame images according to a predetermined order; The first sequence of frame images is generated based on basic image information, background image information and first part of contour information, and the first part of contour information is contour information of a playback object in the first non-basic image information; The second sequence frame images are generated based on basic image information, background image information and second part of contour information, the second part of contour information is the contour information of the playback object in the second non-basic image information, and the second sequence frame images contain the content of the first sequence frame images; the basic image information is image information containing a complete playback object, the background image information is image information containing a background of a complete playback object, and the first non-basic image information and the second non-basic image information are image information containing an incomplete playback object.
25. The electronic device according to claim 24, It is characterized in that The prompt file further includes first image information and second image information, wherein the first image information includes the playback object and the background of the playback object; and the second image information includes the background of the playback object.
26. The electronic device according to claim 25, It is characterized in that The playback object is a fingerprint.
27. The electronic device according to claim 26, It is characterized in that The first image information includes a complete fingerprint in a first color, and the second image information also includes a complete fingerprint in a second color.
28. The electronic device according to claim 25, It is characterized in that The second image information generates the first displayed sequence frame image, and the first image information generates the last displayed sequence frame image.
29. The electronic device according to claim 24, It is characterized in that The outline information includes coordinate values of the outline of the first part or the second part of the playback object.
30. The electronic device according to claim 24, It is characterized in that The prompt file also includes the playing time of each of the first sequence frame images and the second sequence frame images.
31. The electronic device according to claim 30, It is characterized in that When playing each of the first sequence frame images and the second sequence frame images, the images are played according to the corresponding playing time lengths of the images.
32. The electronic device according to claim 24, It is characterized in that The carrier of at least the first part of the outline information and the second part of the outline information of the playback object is a json file.
33. A readable medium, It is characterized in that The readable medium stores instructions, which, when executed on an electronic device, enable the machine to execute the method for prompting function settings according to any one of claims 1 to 7 or the method for playing a prompt file according to any one of claims 8 to 16.