Image display method, device and electronic equipment

By parsing target data packets to display non-private images and receiving user input to display associated private images, the problem of cumbersome operations for viewing ordinary and private images in electronic devices is solved, achieving more efficient image viewing and privacy protection.

CN113485611BActive Publication Date: 2024-10-18VIVO MOBILE COMM HANGZHOU CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110704105.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-24
Publication Date
2024-10-18
Estimated Expiration
2041-06-24

AI Technical Summary

Technical Problem

It is cumbersome for users to view ordinary images and private images through electronic devices, requiring them to switch galleries and enter passwords multiple times.

Method used

Provide an image display method that displays non-private images by parsing target data packets, and receives user input to directly display the private images associated with them without switching the gallery multiple times.

Benefits of technology

It simplifies the operation for users to view non-private images and private images through electronic devices, and improves operating efficiency and confidentiality of private images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113485611B_ABST
    Figure CN113485611B_ABST
Patent Text Reader

Abstract

The present application discloses an image display method, device and electronic device, which belongs to the field of communication technology and can solve the problem that the operation of users viewing ordinary images and private images through electronic devices is relatively cumbersome. The method includes: displaying a first non-private image, which is obtained by parsing a target data packet, and the target data packet includes a first non-private image; receiving a first input from a user for the first non-private image; in response to the first input, displaying a first private image, which is obtained after parsing the target data packet, and the target data packet also includes M private images, and the first private image is a private image among the M private images, where M is a positive integer. This solution is applied to the scenario where the user views images in the gallery.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of image processing, and specifically relates to an image display method, device and electronic equipment. Background Art

[0002] With the development of communication technology, as the security and privacy of electronic devices are becoming more and more important, users can trigger electronic devices to store photos of themselves, friends, etc. with privacy requirements (referred to as privacy images) and ordinary photos (i.e., non-privacy images) in different galleries.

[0003] Typically, when an image with privacy requirements is stored in a gallery, first, the user can trigger the electronic device to select the image through an input; and then trigger the electronic device to store the image in an encrypted gallery or encrypted folder through another input.

[0004] Based on the above method, when a user browses ordinary images in a gallery through an electronic device, if the user wants to view an encrypted image, the user cannot view the desired image in the current gallery. Therefore, the user needs to input to trigger the electronic device to switch from the currently displayed gallery to the encrypted folder, and then enter the password of the encrypted folder in the electronic device to trigger the electronic device to display the image saved in the encrypted folder. This makes the operation of users viewing ordinary images and private images through electronic devices more cumbersome. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide an image display method, device and electronic device, which can solve the problem that the operation of users viewing ordinary images and private images through electronic devices is relatively cumbersome.

[0006] In order to solve the above technical problems, this application is implemented as follows:

[0007] In a first aspect, an embodiment of the present application provides an image display method, the method comprising: displaying a first non-private image, the first non-private image being obtained by parsing a target data packet, the target data packet including the first non-private image; receiving a first input from a user regarding the first non-private image; and in response to the first input, displaying a first private image, the first private image being obtained by parsing the target data packet, the target data packet also including M private images, the first private image being a private image among the M private images, where M is a positive integer.

[0008] In a second aspect, an embodiment of the present application provides an image display device, which includes: a display module and a receiving module. The display module is used to display a first non-private image, which is obtained by parsing a target data packet, and the target data packet includes the first non-private image. The receiving module is used to receive a first input of a user for the first non-private image. The display module is used to display a first private image in response to the first input received by the receiving module, which is obtained by parsing the target data packet, and the target data packet also includes M private images, and the first private image is a private image among the M private images, where M is a positive integer.

[0009] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method in the first aspect described above.

[0010] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method in the first aspect are implemented.

[0011] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method in the first aspect above.

[0012] In an embodiment of the present application, a first non-private image can be displayed, the first non-private image is obtained by parsing a target data packet, and the target data packet includes a first non-private image; a first input of a user to the first non-private image is received; in response to the first input, a first privacy image is displayed, the first privacy image is obtained after parsing the target data packet, and the target data packet also includes M privacy images, the first privacy image is a privacy image among the M privacy images, and M is a positive integer. The image display method provided in the embodiment of the present application can be applied to a scene in which a user views an image through an electronic device. Through this scheme, after displaying a non-private image obtained by parsing the target data packet, if the user wants to view the non-private image, the user can input the image, thereby triggering the electronic device to parse the target data packet and directly display a privacy image associated with the image. Compared with the prior art, there is no need for the user to trigger the electronic device to exit the currently displayed gallery multiple times and switch from the gallery to a gallery or folder including a privacy image. In this way, through the image display method provided in the embodiment of the present application, the operation of viewing non-private images and privacy images by the user through the electronic device can be simplified. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 A schematic diagram of an image display method provided in an embodiment of the present application;

[0014] Figure 2 One of the schematic diagrams of an image display interface provided in an embodiment of the present application;

[0015] Figure 3 A second schematic diagram of an image display interface provided in an embodiment of the present application;

[0016] Figure 4 A third schematic diagram of an image display interface provided in an embodiment of the present application;

[0017] Figure 5 A fourth schematic diagram of an image display interface provided in an embodiment of the present application;

[0018] Figure 6 A schematic diagram of the structure of an image display device provided in an embodiment of the present application;

[0019] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0020] Figure 8 A hardware schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0021] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0022] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here. In addition, the "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated with each other are in an "or" relationship.

[0023] In the embodiments of the present application, the words "exemplarily" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of the present application should not be interpreted as having advantages over other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.

[0024] The embodiment of the present application provides an image display method, device and electronic device, which can display a first non-private image, the first non-private image is obtained by parsing a target data packet, and the target data packet includes the first non-private image; receive a first input of the user to the first non-private image; in response to the first input, display a first privacy image, the first privacy image is obtained after parsing the target data packet, and the target data packet also includes M privacy images, the first privacy image is a privacy image among the M privacy images, and M is a positive integer. The image display method provided by the embodiment of the present application can be applied to a scene in which a user views an image through an electronic device. Through this scheme, after displaying a non-private image obtained by parsing the target data packet, if the user wants to view the non-private image, the user can input the image, thereby triggering the electronic device to parse the target data packet and directly display a privacy image associated with the image. Compared with the prior art, there is no need for the user to trigger the electronic device to exit the currently displayed gallery multiple times and switch from the gallery to the gallery or folder including the privacy image. In this way, through the image display method provided by the embodiment of the present application, the operation of the user viewing non-private images and privacy images through the electronic device can be simplified.

[0025] The image display method, device and electronic device provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0026] like Figure 1 As shown, an embodiment of the present application provides an image display method, which includes the following steps 101 to 103. The method can be applied to an image display method or an electronic device.

[0027] Step 101: An image display device displays a first non-private image.

[0028] The first non-private image is obtained by parsing a target data packet, and the target data packet includes the first non-private image.

[0029] Optionally, in an embodiment of the present application, the target data packet may be a data packet stored locally by the electronic device; or, a data packet sent by other devices and received by the electronic device; or, a data packet downloaded online by the electronic device.

[0030] Optionally, the first non-privacy image may be a static image or a dynamic image. In addition, the image in the embodiment of the present application may also be referred to as a picture.

[0031] Optionally, the first non-private image may include a first identifier, and the first identifier is used to indicate that the first non-private image is associated with M private images, where M is a positive integer. In this way, the user can know that the image 1 is associated with a private image through the first identifier.

[0032] Optionally, after the above step 101, the image display method provided in the embodiment of the present application may further include: the image display device receives a user input; in response to the input, the target function is turned on, and a first mark is displayed on the first non-privacy image associated with M privacy images. The target function is used to display the privacy image. In this way, the following steps 102 and 103 in the embodiment of the present application can be executed to view the privacy image.

[0033] Step 102: The image display device receives a first input of a user for a first non-private image.

[0034] Optionally, the first input may be a touch input, voice input or gesture input of the user to the first non-privacy image. For example, the touch input is a click input of the user on the first non-privacy image. Of course, the first input may also be a physical key input or other possible input, which is not limited in the embodiments of the present application.

[0035] Exemplarily, the first mark may be a symbol, a number, a graphic or other possible marks. For example, the first mark is a "closed-lock" watermark mark.

[0036] Step 103: The image display device displays a first private image in response to the first input.

[0037] The first private image is obtained after parsing the target data packet, the target data packet also includes M private images, the first private image is a private image among the M private images, and M is a positive integer.

[0038] Optionally, in the embodiment of the present application, the M private images may be encrypted private images or unencrypted private images, which may be determined according to actual conditions and are not limited in the embodiment of the present application.

[0039] Optionally, the target data packet may consist of image data of a first non-private image, encrypted image information of M private images and M separators, wherein a separator is used to separate image information of two adjacent images, and the image information of the M private images is image source file data or address information.

[0040] Specifically, in one possible scenario, when the image information of the M privacy images is image source file data, the first privacy image is obtained by parsing the image data between the first delimiter and the second delimiter in the M second identifiers. In another possible scenario, when the image information of the M privacy images is address information, the address information between the first delimiter and the second delimiter in the M second identifiers is first obtained, and then the encrypted image data is obtained from the address information, and then the image data is parsed to obtain the first privacy image.

[0041] Optionally, the separator may be a special character, a special symbol or other symbol that can be used to separate images. For example, the separator is a hash code.

[0042] Optionally, after the above step 103, the image display method provided in the embodiment of the present application may further include: the image display device displays a second mark on the first private image, and the second mark is used to prompt the user that the first private image is a private image. In this way, the user can view the required private image.

[0043] For example, the image display device is a mobile phone. Figure 2 As shown in (a) of FIG. 1 , an image 1 (i.e., a first non-private image) is displayed on the screen of the mobile phone, and the image includes an identifier 01 (i.e., a first identifier). Since the image 1 as a non-private image includes the identifier 01, the user can know that the image 1 is associated with a private image, so if the user wants to view the private image, the user can choose to click on the image 1. After the mobile phone receives the user's click input, the mobile phone can respond to the click input and Figure 2 As shown in (b) in FIG. 1 , image 2 (ie, the first private image) is displayed.

[0044] Furthermore, if Figure 2 As shown in (c) in FIG. 1 , the image 2 displayed on the mobile phone may further include a mark 02 (ie, a second mark), so that the user can know that the image 2 is a private image through the mark 02 .

[0045] Optionally, when M is greater than 1, when the image display device displays the first privacy image obtained after parsing the target data packet in response to the first input, the image display device may display thumbnails of other privacy images except the first privacy image among the M privacy images in the bottom area of ​​the screen. Further, the image display device displays the thumbnails of other privacy images in a target manner. For example, the thumbnails of other privacy images are displayed in a semi-transparent manner.

[0046] For example, in combination with the above embodiments Figure 2 (a) to Figure 2When M=3, the first non-private image is associated with three private images, and the three private images include image 2, image 3, and image 5 respectively. Figure 2 As shown in (d) in FIG. 1 , the mobile phone displays the thumbnails of image 3 and image 5 in a semi-transparent manner in the bottom area of ​​the gallery. In this way, when the user slides the bottom area, it can trigger the switching of the currently displayed image 2 to other private images.

[0047] It should be noted that, when the above target function is not enabled, the first mark is not displayed on the first non-privacy image associated with M privacy images. In this way, the user cannot know whether there is a privacy image. Further, it is possible to determine whether the target data packet includes a separator, and parse the data according to the specific situation. The specific description can be as described in the above embodiment, and the embodiment of the present application will not be repeated.

[0048] Optionally, before the above step 101, the image display method provided by the embodiment of the present application may further include: the image display device determines whether the target data packet includes a separator. If the target data packet includes a separator, the above steps 101 to 103 are executed, that is, the image data of the first non-private image in the target data packet is first read, and then the image data of the M private images are read and parsed in sequence; if the target data packet does not include a separator, the target data packet is directly parsed in its entirety, that is, the first non-private image is kept displayed.

[0049] Optionally, the first non-private image may further include M prompt information, each prompt information being used to indicate one of the M private images. Accordingly, the above step 102 may be specifically implemented through the following step 102A, and the above step 103 may be specifically implemented through the following step 103A.

[0050] Step 102A: The image display device receives a first input from a user regarding first prompt information in a first non-private image.

[0051] Each prompt information may include at least one of the following: description information of the image content, the image of the first preset area, the image type, and the image name.

[0052] For example, take M=1 and the first private image is an ID card image. When the prompt information is the description information of the image content, the prompt information may be "the brief identity information included in the ID card image"; when the prompt information is the image of the first preset area, the prompt information may be "the image of the first preset area in the ID card image"; when the prompt information is the image type, the prompt information may be "the person type"; when the prompt information is the image name, the prompt information may be "ID card".

[0053] Step 103A: In response to the first input, the image display device obtains first image data corresponding to the first prompt information from the target data packet, and displays a first private image.

[0054] The first private image is obtained after parsing the first image data. The image information of the M private images also includes the image number of each private image, and each private image is associated with the image number of the private image and the prompt information.

[0055] Optionally, the first image data is image data of a first private image.

[0056] Specifically, “each private image is associated with an image number of the private image and prompt information” specifically means that each private image corresponds to an image number, and the image number corresponds to one prompt information among the M prompt information.

[0057] Exemplarily, take M=3 and the image display device as a mobile phone. Assume that the first non-private image includes 3 prompt information, and the 3 private images associated with the first non-private image are image 1, image 2 and image 3. Among them, the image number of image 1 is number 1, the image number of image 2 is number 2, and the image number of image 3 is number 3. Number 1 corresponds to prompt information 1 among the 3 prompt information, number 2 corresponds to prompt information 2 among the 3 prompt information, and number 3 corresponds to prompt information 3 among the 3 prompt information. If the user wants to view image 2, the user can click on prompt information 2 (i.e., the first prompt information) among the 3 prompt information. After the mobile phone receives the click input, it can obtain the first image data corresponding to the prompt information 2 from the target data packet in response to the click input, and display the image 2 obtained after parsing the first image data.

[0058] It is understandable that, in the case where the first non-private image also includes M prompt information for indicating a private image, the user can trigger the acquisition of image data corresponding to the one prompt information from the target data packet and display the image obtained after parsing the image data by inputting one of the M prompt information. In this way, on the one hand, since the user can trigger the parsing of the data image in the target data packet in a targeted manner according to his own wishes, thereby switching from the first non-private image to the private image he wants to view, the user's independent choice is satisfied; on the other hand, since there is no need to parse the image data of other private images in the target data packet, the resources of the electronic device are saved.

[0059] The embodiment of the present application provides an image display method. After displaying a non-private image obtained after parsing a target data packet, if a user wants to view the non-private image, the user can input the image, thereby triggering the electronic device to parse the target data packet and directly display a private image associated with the image. Compared with the prior art, the user does not need to trigger the electronic device to exit the currently displayed gallery and switch from the gallery to a gallery or folder including private images multiple times. In this way, the image display method provided by the embodiment of the present application can simplify the operation of users viewing non-private images and private images through electronic devices.

[0060] Optionally, before the above step 101, the image display method provided by the present application further includes the following steps 104 to 108.

[0061] Step 104: The image display device receives a second input of the M private images from the user.

[0062] The second input is used to set the M privacy images as images to be encrypted.

[0063] Optionally, in the embodiment of the present application, the M privacy images may be images in the same album, or images in different albums.

[0064] Optionally, the second input may be a touch input, voice input or gesture input of the user to the M privacy images. For example, the touch input is a click input of the user on the M privacy images. Of course, the second input may also be a physical key input or other possible input, which is not limited in the embodiment of the present application.

[0065] Step 105: The image display device displays a target prompt message in response to the second input.

[0066] The target prompt message is used to prompt the user to select a non-private image associated with the M private images.

[0067] Specifically, in one possible implementation, the image display device displays the target prompt message in an overlay manner in response to the second input; in another possible implementation, the image display device displays the target prompt message in a floating manner in response to the second input.

[0068] Step 106: The image display device receives a third input from the user regarding the first non-private image.

[0069] Optionally, the third input may be a touch input, voice input or gesture input of the user to the first non-privacy image. For example, the touch input is a click input of the user on the first non-privacy image. Of course, the third input may also be a physical key input or other possible input, which is not limited in the embodiment of the present application.

[0070] Step 107: The image display device encrypts the M private images using the first key in response to the third input.

[0071] The first key is determined according to N pixels in the first non-private image, and the N pixels are pixels in a second preset area of ​​the first non-private image.

[0072] Specifically, in the embodiment of the present application, the user selects an area in the first non-privacy image through the third input, that is, the area is the second preset area. Afterwards, the image display device extracts N (for example, N=8) pixels (or N pixel information) at the head and tail of the second preset area in response to the third input, and uses the N pixels (or N pixel information) as the first key, and records the coordinates of the second preset area at the same time.

[0073] Furthermore, in the embodiment of the present application, the image display device may also arrange and combine N pixels, and use the arranged and combined N pixels as a first key, thereby encrypting M private images with the first key.

[0074] It should be noted that in the embodiment of the present application, the electronic device divides the image into very fine points or grids, each of which can be called a pixel. The electronic device can represent the entire image through the position, color, brightness and other information of these pixel points. That is, the N pixel points in the above embodiment can be represented by the brightness values ​​of the N pixel points. For example, N = 8, the values ​​of the three colors r (red), g (green) and b (blue) of 8 pixel points. For a detailed description of the pixel points, please refer to the relevant technology, and the embodiment of the present application will not be repeated.

[0075] Step 108: The image display device establishes an association relationship between the first non-private image and the M private images.

[0076] Among them, the M private images after the association relationship is established are invisible.

[0077] It should be noted that “establishing an association relationship between the first non-private image and the M private images” means: packaging the image source file data of the M private images with the image data of the first non-private image.

[0078] Exemplarily, take the case where the image display device is a mobile phone and the second identifier is a hash code. As shown below, Table 1 is a non-private image, Table 2 is a non-private image before encryption, Table 3 is an encrypted non-private image, Table 4 is a hash-coded delimiter, and Table 5 is a packaged non-private image, a private image, and a second identifier. Specifically, a delimiter is added to the end of the image information of a non-private image. The delimiter can use the first 10 bytes of data of the non-private image to generate a hash code, such as 0A1B3C4D5E6F. Then, the image data of the encrypted private image is written after the delimiter. Furthermore, when multiple encrypted private images are stored continuously, delimiters continue to be added after the previous private image, and the image data of the next encrypted private image is stored after the second delimiter, and so on.

[0079] Table 1

[0080] 01 02 21 34 56 11 23 14 32 36 21 37 38 …

[0081] Table 2

[0082] 07 04 26 34 65 11 57 14 32 36 21 37 38 …

[0083] Table 3

[0084] 33 01 00 55 4D 89 DD 2D 96 45 21 C2 1F …

[0085] Table 4

[0086] 0A 1B 3C 4D 5E 6F 79 88 61 23

[0087] Table 5

[0088] 01 02 21 34 56 11 23 14 32 36 21 37 38 … 0A 1B 3C 4D 5E 6F 79 88 61 23 33 01 00 55 4D 89 DD 2D 96 45 21 C2 1F …

[0089] Optionally, “the M private images after the association relationship is established are invisible” may specifically include the following possible implementation methods:

[0090] (1) After the above step 108, the image display method provided in the embodiment of the present application may further include: the image display device deletes the source files of the M privacy images.

[0091] (2) The image display device cancels the visibility permission of the M private images in the album.

[0092] (3) The image display device adds mosaics to the M privacy images.

[0093] It should be noted that the above description of making the M private images invisible after the association relationship is established is only a few possible situations in the embodiments of the present application. Of course, making the M private images invisible after the association relationship is established may also include other possible implementation methods, which are not limited in the embodiments of the present application.

[0094] For example, the image display device is a mobile phone. Figure 3 As shown in (a) of FIG. 1 , a gallery 1 is displayed on the screen of the mobile phone, and the gallery 1 includes image 1, image 2, ..., and image 5. If the user wants to set image 2, image 3, and image 5 as images to be encrypted, the user can choose to click on image 2, image 3, and image 5. After the mobile phone receives the user's click input, the mobile phone can respond to the click input and Figure 3 As shown in (a) of FIG. 1 , a prompt message 03 “Select a non-private image for association” is displayed. Figure 3 As shown in (b) of FIG. 1 , the user slides his finger on the image 1 displayed on the mobile phone along the track 04. After the mobile phone receives the sliding input, the mobile phone can respond to the sliding input and extract 8 pixels of the second preset area corresponding to the track 04 as the first key, encrypt the image 2, image 3 and image 5 (i.e., the private image) by using the first key, and establish the association relationship between the image 1 and the private image.

[0095] Furthermore, if Figure 3 As shown in (c) , the mobile phone displays gallery 1, which includes image 1 and image 4, and superimposes a display mark 01 (ie, a first mark) on image 1, so that the user can know that image 1 is associated with a private image.

[0096] In the image display method provided by the embodiment of the present application, when at least one private image is stored in the album, the user can first trigger the electronic device to display a prompt message by selecting an input of the at least one private image; and then trigger the electronic device to encrypt the at least one private image with a key by another input of a non-private image, and establish an association relationship between the non-private image and the at least one private image. In this way, on the one hand, since the M private images after the establishment of the association relationship are invisible, other users can be prevented from viewing the private images in the gallery; on the other hand, since the private images are associated with the non-private images, the user can quickly view the private images through the non-private gallery; on the other hand, since the M private images are encrypted, other parsers are prevented from parsing the private images, thereby improving the confidentiality of the private images.

[0097] Optionally, when the image information of the M private images is address information, after the above step 107 and before step 108, the image display method provided in the embodiment of the present application may further include the following step 109. Accordingly, the above step 108 may be specifically implemented by the following step 108A.

[0098] Step 109: The image display device moves the encrypted M private images to a target gallery.

[0099] Optionally, in an embodiment of the present application, the electronic device may include at least one gallery, and the target gallery is a gallery in the at least one gallery that is different from the storage space where the M private images were before being moved. Furthermore, the target gallery may also be a gallery with a hidden function or a gallery without a hidden function (i.e., a normal gallery).

[0100] Optionally, after the above step 109, the image display method provided in the embodiment of the present application may further include: the image display device records and stores address information of the M private images after the movement.

[0101] Step 108A: The image display device establishes an association relationship between the first non-private image and the address information of the M moved private images.

[0102] In combination with the above embodiments, Figure 3 As an example of the related description, after using the first key to encrypt image 2, image 3 and image 5 (i.e., private image), the image display device moves the encrypted image 2, image 3 and image 5 to the hidden library (i.e., the target library). Afterwards, the image display device associates image 1 with the address information of image 2, image 3 and image 5 moved to the hidden library.

[0103] It should be noted that “associating the first non-private image with the address information of the M private images after the move” means: packaging the address information of the M private images after the move with the image information of the first non-private image. Specifically, a separator is first added after the image data of the first non-private image, and then the address information of the M private images after the move is written after the separator, so that the address information of the M private images after the move is packaged with the image data of the first non-private image.

[0104] The image display method provided in the embodiment of the present application, after the encrypted M private images are moved to the target gallery, greatly reduces the size of the non-private image associated with the private image by associating the address information of the first non-private image and the M private images after the move, thereby saving storage space.

[0105] Optionally, after the above step 102, the image display method provided in the embodiment of the present application may further include the following steps 110 and 111. That is, the above step 103 may be specifically implemented through the following steps 110 to 112.

[0106] Step 110: The image display device obtains an input position of the first input on the first non-privacy image in response to the first input.

[0107] Step 111: When the input position is located in the second preset area, decrypt M private images using N pixels.

[0108] It is understandable that the image display device may first obtain the coordinates of the input position of the first input on the first non-privacy image; when the coordinates of the input position belong to the coordinate range of the second preset area, the image display device may frame the second preset area according to the input position, and extract N pixels of the second preset area; and decrypt the M privacy images through the N pixels. Of course, the N pixels used for decryption and the N pixels used for encryption belong to the same position of the pixels in the second preset area.

[0109] Step 112: The image display device displays a first private image.

[0110] Optionally, after step 111 and before step 112, the image display method provided in the embodiment of the present application may further include: the image display device parses a target data packet, wherein the target data packet is composed of image data of the first non-private image, image information of M private images, and M separators.

[0111] It is understandable that in the embodiment of the present application, the image display device can sequentially read the image data between two adjacent delimiters in the target data packet and parse the image data. For the specific parsing of the image data, reference can be made to the relevant technology, which will not be described in detail in the embodiment of the present application.

[0112] In the image display method provided by the embodiment of the present application, the image display device can obtain the input position of the first input on the first non-private image, and when the input position is located in the second preset area, the M private images are decrypted using N pixels, and the first private image obtained after parsing the target data packet is displayed, thereby preventing non-local users from viewing the private image by triggering the first non-private image without knowing the encryption key of the private image. In this way, the security of the private image is improved.

[0113] Optionally, assuming that before the M encrypted private images are moved, the M private images are stored in the first gallery; the encrypted M private images are moved to the target gallery. For displaying the first private image, the following possible implementations may be included:

[0114] (1) Parse the target data packet and store the M privacy images obtained after the parsing in the cache space. At this time, the first image library does not include the M privacy images. In this way, since the first non-private image is associated with the M privacy images, the first non-private image can be updated to the first privacy image included in the cache space.

[0115] (2) After the above step 111, the image display method provided in the embodiment of the present application may further include: the image display device unpacks the target data packet, and restores the M private images obtained after unpacking to the first gallery. In this way, since the first non-private image is associated with the M private images, the first non-private image can be updated to the first private image included in the first gallery.

[0116] (3) When the encrypted M private images are moved to the target gallery, the image display device obtains a target data packet from the target gallery and unpacks the target data packet. Further, the unpacked M private images are restored from the target gallery to the first gallery. In this way, since the first non-private image is associated with the M private images, the first non-private image can be switched to be displayed as the first private image included in the first gallery.

[0117] (4) The image display device jumps from the first gallery to the target gallery, and displays the first private image obtained by parsing the target data packet stored in the target gallery. In this way, the first non-private image can be directly switched to the first private image among the M private images without the user having to trigger the image display device to switch galleries through multiple inputs.

[0118] Optionally, after the above step 103, the image display method provided in the embodiment of the present application may further include the following steps 113 and 114; or, include the following steps 113 and 115. That is, either step 114 or step 115 is performed.

[0119] Step 113: The image display device receives a fourth input from the user regarding the first private image.

[0120] Optionally, the fourth input is a touch input, voice input or gesture input of the user to the first privacy image. For example, the touch input is a sliding input of the user to the first privacy image. Of course, the fourth input can also be an input to a physical key or other possible input, which is not limited in the embodiment of the present application.

[0121] Optionally, after the above step 113, the image display method provided in the embodiment of the present application may further include: determining whether the first input satisfies a preset condition, which may include a first preset condition or a second preset condition. If the first input satisfies the first preset condition, the following step 114 is executed; or, if the first input satisfies the second preset condition, the following step 115 is executed; or, if the first input satisfies neither the first preset condition nor the second preset condition, the electronic device continues to display the first private image.

[0122] Step 114 : In response to the fourth input, the image display device updates the first private image to a second private image among the M private images if the fourth input satisfies a first preset condition, where M is greater than 1.

[0123] Optionally, the first preset condition may include any one of the following: the fourth input is an input of a first control on the first privacy image, the first control being used to switch display from one privacy image to another privacy image; the fourth input is an input of a third preset area on the first privacy image; the fourth input is an input of the first preset type.

[0124] For example, the image display device is a mobile phone. Figure 4 As shown in (a) of FIG. 1 , image 2 (i.e., the first private image) is displayed on the screen of the mobile phone. If the user wants to view another private image, the user can choose to long press image 2. After the mobile phone receives the long press input of the user, the mobile phone can respond to the long press input, and since the long press input meets the first preset condition, as shown in FIG. Figure 4 As shown in (b) in the figure, image 2 is updated to image 3 (ie, the second private image) with the display effect of the transition animation.

[0125] It should be noted that, when the first private image is displayed, the user can trigger the image display device to switch to another private image by inputting. In this way, by analogy, each time the user triggers, the image display device can switch to the next private image associated with the non-private image until the last private image among the M private images is displayed. Afterwards, the user can trigger the image display device to switch to the first non-private image by inputting again, so that the private images can continue to be displayed in a loop.

[0126] Step 115 : In response to the fourth input, the image display device updates the first private image to a second non-private image when the fourth input satisfies a second preset condition.

[0127] Optionally, the second preset condition may include any one of the following: the fourth input is an input of a second control on the first privacy image, the second control being used to switch display from a privacy image to a non-privacy image; the fourth input is an input of a fourth preset area on the first privacy image; the fourth input is an input of the second preset type.

[0128] For example, the image display device is a mobile phone. Figure 5As shown in (a) of FIG. 1 , the screen of the mobile phone displays image 2 (i.e., the first private image). If the user wants to view other non-private images, the user can slide a finger on the image 2. After the mobile phone receives the sliding input of the user, the mobile phone can respond to the sliding input, and since the long press input meets the second preset condition, as shown in FIG. Figure 5 As shown in (b) in the figure, image 2 is updated to image 4 (ie, the second non-private image) with the display effect of the transition animation.

[0129] It should be noted that the above descriptions of the first preset condition and the second preset condition are only several possible implementations. Of course, the first preset condition and the second preset condition may also include other possible situations, which are not limited in the embodiments of the present application.

[0130] In the image display method provided by the embodiment of the present application, when the image display device displays a first private image, the electronic device can determine the user's input to the first private image, and when the input meets a first preset condition, the first private image can be updated to another private image, or when the input meets a second preset condition, the first private image can be updated to another non-private image. In this way, the private image and the non-private image can be flexibly switched, making it more convenient for the user to view the image.

[0131] It should be noted that the image display method provided in the embodiment of the present application can be executed by an image display device (for example, the image display device is an electronic device, or an external device of the electronic device), or a control module in the image display device for executing the image display method. In the embodiment of the present application, the image display device provided in the embodiment of the present application is described by taking the image display device executing the image display method as an example.

[0132] like Figure 6 As shown, an embodiment of the present application provides an image display device 200, which may include a display module 201 and a receiving module 202. The display module 201 may be used to display a first non-private image, which is obtained by parsing a target data packet, and the target data packet includes the first non-private image. The receiving module 202 may be used to receive a first input of a user for the first non-private image. The display module 201 may also be used to display a first private image in response to the first input received by the receiving module 202, which is obtained by parsing the target data packet, and the target data packet also includes M private images, and the first private image is a private image among the M private images, where M is a positive integer.

[0133] Optionally, the first non-private image may include a first identifier, where the first identifier is used to indicate that the first non-private image is associated with M private images, where M is a positive integer.

[0134] Optionally, the target data packet may consist of image data of a first non-private image, encrypted image information of M private images and M separators, wherein a separator is used to separate image information of two adjacent images, and the image information of the M private images is image source file data or address information.

[0135] Optionally, the first non-private image also includes M prompt information, each prompt information is used to indicate a private image among the M private images. The receiving module 202 is specifically used to receive a first input from a user for the first prompt information in the first non-private image. The display module 201 is specifically used to obtain, in response to the first input received by the receiving module 202, the first image data corresponding to the first prompt information from the target data packet, and display the first private image, which is obtained after parsing the first image data. Each prompt information includes at least one of the following: description information of the image content, an image of the first preset area, an image type, and an image name; the image information of the M private images also includes the image number of each private image, and each private image is associated with the image number and prompt information of the private image.

[0136] Optionally, the image display device may further include a processing module 203. The receiving module 202 may further receive a second input from a user on the M privacy images, and the second input is used to set the M privacy images as images to be encrypted. The display module 201 may further be used to display a target prompt message in response to the second input received by the receiving module 202, and the target prompt message is used to prompt the user to select a non-private image associated with the M privacy images. The receiving module 202 may further be used to receive a third input from a user on the first non-private image. The processing module 203 may be used to encrypt the M privacy images by a first key in response to the third input received by the receiving module 202; and establish an association relationship between the first non-private image and the M privacy images. The first key is determined based on N pixels in the first non-private image, and the N pixels are pixels in the second preset of the first non-private image; the M privacy images after the association relationship is established are invisible.

[0137] Optionally, the image information of the M private images is address information. The processing module 203 can also be used to move the encrypted M private images to the second gallery. The processing module 203 can be specifically used to establish an association relationship between the first non-private image and the address information of the M private images after the move.

[0138] Optionally, the image display device further includes an acquisition module 204. The acquisition module 204 is configured to acquire an input position of the first input on the first non-privacy image. The processing module 203 may also decrypt the M privacy images using N pixels when the input position acquired by the acquisition module 204 is located in the second preset area.

[0139] Optionally, the receiving module 202 may also be used to receive a fourth input from a user regarding the first privacy image after the display module 201 displays the first privacy image. The display module 201 may also be used to update the first privacy image to a second privacy image among the M privacy images, M being greater than 1, in response to the fourth input received by the receiving module 202, if the fourth input satisfies a first preset condition; or, in response to the fourth input received by the receiving module 202, if the fourth input satisfies a second preset condition, update the first privacy image to a second non-privacy image.

[0140] An embodiment of the present application provides an image display device. After displaying a non-private image obtained after parsing a target data packet, if a user wants to view the non-private image, the user can input the image, thereby triggering the electronic device to parse the target data packet and directly display a private image associated with the image. Compared with the prior art, the user does not need to trigger the electronic device multiple times to exit the currently displayed gallery and switch from the gallery to a gallery or folder including private images. In this way, the image display device provided by the embodiment of the present application can simplify the operation of the user viewing non-private images and private images through the electronic device.

[0141] The image display device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0142] The image display device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0143] The image display device provided in the embodiment of the present application can achieve Figures 1 to 5 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0144] Alternatively, if Figure 7 As shown, an embodiment of the present application also provides an electronic device 300, including a processor 301, a memory 302, and a program or instruction stored in the memory 302 and executable on the processor 301. When the program or instruction is executed by the processor 301, each process of the above-mentioned image display method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0145] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

[0146] Figure 8 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0147] The electronic device 400 includes but is not limited to components such as a radio frequency unit 401 , a network module 402 , an audio output unit 403 , an input unit 404 , a sensor 405 , a display unit 406 , a user input unit 407 , an interface unit 408 , a memory 409 , and a processor 410 .

[0148] Those skilled in the art will appreciate that the electronic device 400 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 410 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 8 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0149] The display unit 406 can be used to display a first non-private image, which is obtained by parsing a target data packet, and the target data packet includes the first non-private image. The user input unit 407 can be used to receive a first input from a user for the first non-private image. The display unit 406 can also be used to display a first private image in response to the first input received by the user input unit 407, and the first private image is obtained after parsing the target data packet, and the target data packet also includes M private images. The first private image is a private image among the M private images, and M is a positive integer.

[0150] Optionally, the first non-private image also includes M prompt information, each prompt information is used to indicate a private image in the M private images. The user input unit 407 is specifically used to receive a first input from a user to the first prompt information in the first non-private image. The display unit 406 is specifically used to obtain the first image data corresponding to the first prompt information from the target data packet in response to the first input received by the user input unit 407, and display the first private image, which is obtained after parsing the first image data. Each prompt information includes at least one of the following: description information of the image content, an image of the first preset area, an image type, and an image name; the image information of the M private images also includes the image number of each private image, and each private image is associated with the image number and prompt information of the private image.

[0151] Optionally, the user input unit 407 can also receive a second input from the user for the M privacy images, and the second input is used to set the M privacy images as images to be encrypted. The display unit 406 can also be used to display a target prompt message in response to the second input received by the user input unit 407, and the target prompt message is used to prompt the user to select a non-private image associated with the M privacy images. The user input unit 407 can also be used to receive a third input from the user for the first non-private image. The processor 410 can be used to encrypt the M privacy images by a first key in response to the third input received by the user input unit 407; and establish an association relationship between the first non-private image and the M privacy images. The first key is determined based on N pixels in the first non-private image, and the N pixels are pixels in the second preset of the first non-private image; the M privacy images after the association relationship is established are invisible.

[0152] Optionally, the image information of the M private images is address information. The processor 410 may also be configured to move the encrypted M private images to a second image library, and establish an association relationship between the first non-private image and the address information of the M private images after the move.

[0153] Optionally, the processor 410 is configured to obtain an input position of the first input on the first non-privacy image; and when the input position is located in the second preset area, decrypt the M privacy images using N pixels.

[0154] Optionally, the user input unit 407 may also be used to receive a fourth input from the user regarding the first privacy image after the display unit 406 displays the first privacy image. The display unit 406 may also be used to update the first privacy image to a second privacy image among the M privacy images, M being greater than 1, in response to the fourth input received by the user input unit 407, if the fourth input satisfies a first preset condition; or, update the first privacy image to a second non-privacy image, in response to the fourth input received by the user input unit 407, if the fourth input satisfies a second preset condition.

[0155] An embodiment of the present application provides an electronic device. After displaying a non-privacy image obtained after parsing a target data packet, if a user wants to view the non-privacy image, the user can input the image, thereby triggering the electronic device to parse the target data packet and directly display a privacy image associated with the image. Compared with the prior art, the user does not need to trigger the electronic device multiple times to exit the currently displayed gallery and switch from the gallery to a gallery or folder including the privacy image. In this way, the electronic device provided by the embodiment of the present application can simplify the operation of the user viewing the non-privacy image and the privacy image through the electronic device.

[0156] It should be understood that in the embodiment of the present application, the input unit 404 may include a graphics processing unit (GPU) 4041 and a microphone 4042, and the graphics processor 4041 processes the image data of the static image or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 407 includes a touch panel 4071 and other input devices 4072. The touch panel 4071 is also called a touch screen. The touch panel 4071 may include two parts: a touch detection device and a touch controller. Other input devices 4072 may include but are not limited to a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 409 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 410 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, the user interface, and the application program, etc., and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 410.

[0157] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned image display method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0158] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0159] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned image display method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0160] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0161] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes 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 "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0162] 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 a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods in each embodiment of the present application.

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

Claims

1. An image display method, characterized in that: The method comprises: receiving a second input of the M private images from a user, where the second input is used to set the M private images as images to be encrypted; In response to the second input, displaying a target prompt message, wherein the target prompt message is used to prompt a user to select a non-private image associated with the M private images; receiving a third input of the user regarding the first non-private image; In response to the third input, the M private images are encrypted by using a first key; an association relationship is established between the first non-private image and the M private images; wherein the first key is determined according to N pixels in the first non-private image, and the N pixels are pixels in a second preset area of ​​the first non-private image; and the M private images after the association relationship is established are invisible; displaying the first non-private image, where the first non-private image is obtained by parsing a target data packet, and the target data packet includes the first non-private image; receiving a first input of the first non-private image by a user; In response to the first input, acquiring an input position of the first input on the first non-privacy image; When the input position is located in the second preset area, decrypting the M private images through the N pixels; A first private image is displayed, where the first private image is obtained after parsing the target data packet, the target data packet also includes the M private images, the first private image is a private image among the M private images, and M is a positive integer.

2. The method according to claim 1, characterized in that: The first non-private image includes a first identifier, where the first identifier is used to indicate that the first non-private image is associated with M private images.

3. The method according to claim 1, characterized in that The target data packet is composed of the image data of the first non-private image, the encrypted image information of M private images and M separators, wherein one separator is used to separate the image information of two adjacent images, and the image information of the M private images is the image source file data or address information; The image information between every two adjacent separators corresponds to a privacy image.

4. The method according to claim 1, characterized in that: The first non-private image further includes M prompt information, each prompt information is used to indicate a private image among the M private images; The receiving a first input of the first non-private image by a user includes: receiving a first input from a user regarding first prompt information in the first non-private image; In response to the first input, displaying a first privacy image comprises: In response to the first input, first image data corresponding to the first prompt information is acquired from the target data packet, and the first private image is displayed, where the first private image is obtained after parsing the first image data; Among them, each prompt information includes at least one of the following: description information of the image content, the image of the first preset area, the image type, and the image name; the image information of the M privacy images also includes the image number of each privacy image, and each privacy image is associated with the image number and prompt information of the privacy image.

5. The method according to claim 1, characterized in that After displaying the first privacy image, the method further includes: receiving a fourth input from a user regarding the first privacy image; In response to the fourth input, if the fourth input satisfies a first preset condition, updating the first private image to a second private image among the M private images, where M is greater than 1; Alternatively, when the fourth input satisfies a second preset condition, the first private image is updated to a second non-private image.

6. An image display device, characterized in that: The image display device comprises a display module, a receiving module, a processing module and an acquisition module; The receiving module is used to receive a second input of the M private images from a user, where the second input is used to set the M private images as images to be encrypted; The display module is configured to display a target prompt message in response to the second input received by the receiving module, wherein the target prompt message is configured to prompt a user to select a non-private image associated with the M private images; The receiving module is further configured to receive a third input from a user regarding the first non-private image; The processing module is configured to, in response to the third input received by the receiving module, encrypt the M private images by using a first key; and establish an association relationship between the first non-private image and the M private images; wherein the first key is determined according to N pixels in the first non-private image, and the N pixels are pixels in a second preset area of ​​the first non-private image; and the M private images after the association relationship is established are invisible; The display module is further used to display the first non-private image, where the first non-private image is obtained by parsing a target data packet, and the target data packet includes the first non-private image; The receiving module is further configured to receive a first input of the first non-private image by a user; The acquisition module is configured to acquire an input position of the first input on the first non-privacy image in response to the first input received by the receiving module; The processing module is further configured to decrypt the M private images using the N pixels when the input position is located in the second preset area; The display module is further used to display a first privacy image, where the first privacy image is obtained after parsing the target data packet, the target data packet also includes the M privacy images, the first privacy image is a privacy image among the M privacy images, and M is a positive integer.

7. The device according to claim 6, characterized in that The target data packet is composed of the image data of the first non-private image, the encrypted image information of M private images and M separators, wherein one separator is used to separate the image information of two adjacent images, and the image information of the M private images is the image source file data or address information; The image information between every two adjacent separators corresponds to a privacy image.

8. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the image display method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method, device and electronic device for improving safety of privacy pictures

    CN105760778A