Object encryption method and device, electronic equipment and storage medium
By combining a main control chip and an independent display chip, copyright protection for images or videos is achieved. The target object is generated through image processing and encryption, and decryption is performed before display, which solves the problem of watermarks being easily removed and achieves effective copyright protection.
Patent Information
- Application Number
- CN202211651718.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-21
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2042-12-21
AI Technical Summary
In the current technology, electronic devices cannot effectively protect the copyright of images or videos, and watermarks are easily removed, resulting in the inability to effectively protect copyright.
It employs a combination of a main control chip and an independent display chip. The main control chip stores the original content, while the independent display chip performs image processing and encryption to generate the encrypted target object, and then performs decryption processing before display.
The system adds a step to display encrypted images or videos, thereby effectively protecting the copyright of images or videos created through derivative works and preventing unauthorized use.
Smart Images

Figure CN115982670B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of image processing technology, specifically relating to an object encryption method, device, electronic device, and storage medium. Background Technology
[0002] When users need to protect the copyright of images or videos on their electronic devices, they can use their electronic devices to perform copyright protection processing on the images or videos. For example, users can add watermarks to the image or video content to indicate the source of the image or video, the ownership of the copyright, and other information, thereby reducing the risk of the images or videos being stolen and misused without copyright permission, and achieving the purpose of protecting the copyright of the images or videos.
[0003] However, in the above methods, after an electronic device adds a watermark to the image or video content, other users can easily remove the watermark from the image or video content using the electronic device and use the image or video without copyright permission. Thus, the existing technology cannot effectively protect the copyright of images or videos. Summary of the Invention
[0004] The purpose of this application is to provide an object encryption method, apparatus, electronic device, and storage medium that can solve the problem that electronic devices in the prior art cannot effectively protect the copyright of images or videos.
[0005] In a first aspect, embodiments of this application provide an object encryption method applied to an object encryption device. The object encryption device includes a main control chip and an independent display chip, which are connected in hardware structure. The object encryption method includes: storing the original content of a first object, which is an image or video, through the main control chip; performing image processing on the first object through the independent display chip to obtain a second object; and encrypting a target image region through the independent display chip to obtain a target object, where the target image region is the image region of the second object that has undergone image processing.
[0006] Secondly, embodiments of this application provide an object encryption device, which includes a storage module and a processing module. The storage module stores the original content of a first object, which is an image or video. The processing module performs image processing on the first object to obtain a second object; and encrypts a target image region to obtain a target object, where the target image region is the image region of the second object that has undergone image processing.
[0007] Thirdly, embodiments of this application provide an object encryption device, which includes a main control chip and a separate display chip. The main control chip stores the original content of a first object, which is an image or video. The separate display chip performs image processing on the first object to obtain a second object; and encrypts a target image region to obtain a target object, where the target image region is the image region in the second object that has undergone image processing. The main control chip and the separate display chip are connected in hardware structure.
[0008] Fourthly, embodiments of this application provide an electronic device including a processor and a memory, the memory storing programs or instructions executable on the processor, the programs or instructions, when executed by the processor, implementing the steps of the method described in the first aspect.
[0009] Fifthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.
[0010] In a sixth aspect, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.
[0011] In a seventh aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.
[0012] In this embodiment, an object encryption device with a main control chip and an independent display chip can store the original content of a first object through the main control chip and perform image processing on the first object through the independent display chip to obtain a second object. This allows the object encryption device to encrypt the target image area through the independent display chip to obtain the target object. In this solution, the object encryption device processes the first object to obtain the second object through the independent display chip and then encrypts the second object. When the object encryption device needs to display the second object, it needs to perform decryption processing corresponding to the encryption processing, increasing the steps required for the object encryption device to display the second object. This effectively protects the copyright of images or videos created through secondary creation. Attached Figure Description
[0013] Figure 1 This is one of the flowcharts of an object encryption method provided in the embodiments of this application;
[0014] Figure 2 This is a second flowchart of an object encryption method provided in an embodiment of this application;
[0015] Figure 3 This is a schematic diagram illustrating an example of obtaining a second object through processing a first object, as provided in an embodiment of this application.
[0016] Figure 4 This is one of the schematic diagrams illustrating an example of a user selecting a region to be encrypted from a second object, as provided in this application embodiment;
[0017] Figure 5 This is the third flowchart of an object encryption method provided in the embodiments of this application;
[0018] Figure 6 This is a second schematic diagram illustrating an example of a user selecting a region to be encrypted from a second object, as provided in this application embodiment.
[0019] Figure 7 This is a schematic diagram illustrating an example of displaying target pixels in a target image region according to an embodiment of this application;
[0020] Figure 8 This is a flowchart of an object encryption and decryption method provided in an embodiment of this application;
[0021] Figure 9 This is an example diagram illustrating an image after a user-inputted key information is successfully matched with the encryption key information of a second object, as provided in an embodiment of this application.
[0022] Figure 10 This is an example diagram illustrating an image after a user-inputted key information fails to match the encryption key information of a second object, as provided in an embodiment of this application.
[0023] Figure 11 This is a schematic diagram of the structure of an object encryption device provided in an embodiment of this application;
[0024] Figure 12 This is one of the hardware structure diagrams of an electronic device provided in the embodiments of this application;
[0025] Figure 13 This is a second schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;
[0026] Figure 14 This is the third schematic diagram of the hardware structure of an electronic device provided in the embodiments of this application. Detailed Implementation
[0027] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0028] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0029] The object encryption method provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.
[0030] If users need to protect the copyright of images or videos stored on their electronic devices, they can add watermarks to the images or videos to indicate their copyright information, thus reducing the risk of unauthorized use. However, watermarks in images or videos can be easily removed, making it difficult for electronic devices to effectively protect copyright.
[0031] This application provides an object encryption method and an object encryption device with a main control chip and an independent display chip. The main control chip stores the original content of a first object, and the independent display chip performs image processing on the first object to obtain a second object. The object encryption device then encrypts the target image area using the independent display chip to obtain the target object. In this solution, the object encryption device processes the first object to obtain the second object using the independent display chip and encrypts the second object. When the object encryption device needs to display the second object, it needs to perform decryption processing corresponding to the encryption process, increasing the steps required for the object encryption device to display the second object. This effectively protects the copyright of images or videos created through secondary creation.
[0032] It should be noted that the object encryption device described in this application embodiment can be an electronic device, a functional module or entity within an electronic device, or a standalone device. The object encryption device includes a main control chip, a separate display chip, and a display unit. The main control chip and the separate display chip are connected in hardware structure, and the display unit is connected to the main control chip in hardware structure via a Mobile Industry Processor Interface (MIPI).
[0033] The main control chip includes a graphics processor for storing the original image or video (e.g., the first object); an independent display chip can process the original image or video to obtain a secondary creation image or video (e.g., the second object), and perform encryption processing to obtain an encrypted secondary creation image or video (e.g., the target object); and a display unit is used to display the image or video.
[0034] This application provides an object encryption method. Figure 1 A flowchart of an object encryption method provided in an embodiment of this application is shown. Figure 1 As shown, the object encryption method provided in this application embodiment may include the following steps 201 to 203.
[0035] Step 201: The object encryption device stores the original content of the first object through the main control chip.
[0036] In this embodiment of the application, the first object is an image or video.
[0037] Optionally, in this embodiment of the application, the original content of the first object may include at least one of the following: the image content of the first object, the screen size of the first object, and the storage time of the first object.
[0038] Step 202: The object encryption device performs image processing on the first object through an independent display chip to obtain the second object.
[0039] In this embodiment of the application, the above image processing includes at least one of the following methods: adding special effects, adding subtitles, and adjusting the display parameters of the image.
[0040] Optionally, in the embodiments of this application, the processing method for adding special effects includes at least one of the following: adding animation effects and adding screen filters.
[0041] Optionally, in the embodiments of this application, the method of adding subtitles includes at least one of the following: adding Chinese subtitles, adding subtitles with Chinese and English subtitles.
[0042] Optionally, in this embodiment of the application, adjusting the image display parameters includes at least one of the following: adjusting the color parameters of the image display, adjusting the sharpness parameters of the image display, and adjusting the size parameters of the image display.
[0043] Optionally, in the embodiments of this application, step 202 above can be specifically implemented by step 202a below.
[0044] Step 202a: The object encryption device performs image fusion processing on the target layer and the first object through an independent display chip to obtain the second object.
[0045] In this embodiment of the application, the target layer corresponds to the target image processing effect, and the target image area is the image area in the second object that incorporates the target layer.
[0046] It can be understood that the object encryption device overlays the target layer on the basis of the first object and performs a fusion process, so that the object encryption device obtains the second object based on the original content of the first object and the content on the target layer.
[0047] In this embodiment of the application, the object confidentiality device performs fusion processing on the first object and the target layer to perform image processing on the first object, thereby enabling the object encryption device to encrypt the target image area, which improves the diversity and flexibility of image processing of the object confidentiality device.
[0048] Step 203: The object encryption device encrypts the target image area through an independent display chip to obtain the target object.
[0049] In this embodiment of the application, the target image region is the image region in the second object that has undergone image processing.
[0050] In this embodiment, the target object is a second object obtained by encrypting the target graphic region. It can be understood that after encrypting the target image region, the object encryption device forms a new object, namely the target object, based on the second object.
[0051] Optionally, in the embodiments of this application, the encryption processing of the target image region described above includes, but is not limited to, any of the following: adjusting the position of the pixels in the target image region, adjusting the pixel value of the pixels in the target image region, or adjusting the display format of the target image region.
[0052] Optionally, in this embodiment of the application, the encryption processing of the target image region described above can be performed on a portion or all of the region of the second object. It can be understood that if the second object is an image, the object encryption device can encrypt a portion or all of the region of the second object; if the second object is a video, the object encryption device can encrypt a video segment, multiple video segments, or the entire video.
[0053] Optionally, in one implementation of this application embodiment, the first object is an image, combined with... Figure 1 ,like Figure 2 As shown, step 203 can be implemented through steps 301 to 303 as described below.
[0054] Step 301: The object encryption device displays the second object through an independent display chip.
[0055] In this embodiment of the application, the storage format of the second object is the same as that of the first object; that is, if the first object is in image format, then the second object is in image format.
[0056] Optionally, in the embodiments of this application, step 301 above can be specifically implemented by steps 301a to 301c below.
[0057] Step 301a: The object encryption device sends a first display signal to the main control chip through an independent display chip.
[0058] In this embodiment of the application, the first display signal is used to indicate the image content in the second object that has undergone image processing.
[0059] In this embodiment of the application, the object encryption device performs image processing on the first object through an independent display chip to obtain the second object. If the object encryption device needs to display the second object, it needs to send a first display signal to the main control chip through the independent display chip. Thus, the main control chip can forward the first display signal to the display unit through MIPI to display the image content of the second object that has undergone image processing.
[0060] It should be noted that in the object encryption device described in the embodiments of this application, the independent display chip and the main control chip are connected in hardware structure, and the display unit is connected to the main control chip in hardware structure through MIPI.
[0061] Step 301b: The object encryption device sends a second display signal to the display unit through the main control chip.
[0062] In this embodiment of the application, the second display signal is used to indicate the image content of the second object.
[0063] Optionally, in this embodiment of the application, the second display signal includes the content of the first display signal.
[0064] In this embodiment of the application, after the object encryption device receives the first display signal...
[0065] Step 301c: The object encryption device displays the second object through the display unit.
[0066] In this embodiment of the application, after the object encryption device receives the second display signal sent by the main control chip, the second object is displayed through the display unit.
[0067] For example, taking a mobile phone as the object encryption device and an image as the first object, this will be illustrated. Figure 3 As shown in (a), the mobile phone displays an image editing interface 10, which displays a first object 11, such as... Figure 3 As shown in (b), the user processes the first object 11 displayed in the image editing interface 10 using a mobile phone (i.e., adds an icon 12), causing the phone to display the second object 13 in the image editing interface 10. It should be noted that... Figure 3 The dashed boxes in (b) are only for the purpose of illustrating the first object 11, the image identifier 12 and the second object 13. In actual implementation, these dashed boxes may not be displayed in the image editing interface 10.
[0068] Step 302: The object encryption device receives the user's first input.
[0069] In this embodiment of the application, the first input is a box selection input for the target image region in the second object.
[0070] Optionally, in this embodiment of the application, the first input can be a selection input made by the user by sliding or dragging on the second object displayed by the object encryption device, so as to trigger the object encryption device to obtain the size of the area input by the user and mark the area selected by the user.
[0071] Step 303: In response to the first input, the object encryption device marks the target image region in the second object and encrypts the target image region to obtain the target object.
[0072] Optionally, in the embodiments of this application, the object encryption device may mark the target image region in the second object in a manner that includes at least one of the following: adding a solid frame to the target image region or changing the color of the target image region.
[0073] For example, combined Figure 3 (b) in the example Figure 4As shown, in the image editing interface 10, the user selects the image identifier 12 by selecting it in a box. The mobile phone then displays the selection box according to the user's input and marks the area corresponding to the image identifier 12 as the target image area.
[0074] In this embodiment of the application, when the first object is an image, the user can select an area on the second object displayed by the object encryption device, so that the object encryption device marks the area selected by the user as the target image area, thereby improving the flexibility of selecting the target image area and thus improving the diversity of the object processing effect of the object encryption device; the object encryption device can encrypt the target image area, so that the target image area is encrypted and protected, thereby effectively protecting the copyright of the image after secondary creation.
[0075] Optionally, in another implementation of this application embodiment, the first object mentioned above is a video, combined with... Figure 1 ,like Figure 5 As shown, step 203 above can be implemented through step 304 below.
[0076] Step 304: The object encryption device uses an independent display chip to encrypt the target image region in at least one target video frame to obtain the target object.
[0077] In this embodiment of the application, the at least one target video frame is determined by any one of the following: a sensitive video frame in the second object, or a video segment selected by the user in the second object.
[0078] It should be noted that sensitive video frames can be understood as: video frames involving user privacy information, such as video frames including the user's face; or video frames containing key information, that is, video frames that match preset key information, such as password information.
[0079] Optionally, in this embodiment of the application, when encrypting at least one target video frame, the object encryption device may select different regions in each video frame of at least one video frame to determine the regions that need to be encrypted.
[0080] For example, taking a video as the first object, such as... Figure 6 As shown in (a), the mobile phone displays video frame 15 in the video editing interface 14. The user selects and inputs data, triggering the mobile phone to mark the image identifier 16 in video frame 15 for encryption. Figure 6 As shown in (b), the phone displays video frame 17 in the video editing interface. The user selects and inputs data, triggering the phone to mark the image identifier 18 in video frame 17 for encryption. It should be noted that... Figure 6The dashed boxes are only for illustrating video frames 15 and 17. In actual implementation, these dashed boxes may not be displayed in the video editing interface 14.
[0081] In this embodiment of the application, when the first object is a video, the object encryption device encrypts the target image region in at least one target video frame, so that the target video frame in the first object is encrypted and protected, thereby effectively protecting the copyright of the video after secondary creation.
[0082] Optionally, in the embodiments of this application, step 203 above can be implemented by step 203a below.
[0083] Step 203a: The object encryption device uses an independent display chip to perform an inversion transformation on the pixel value of each pixel in the target image area in at least one pixel channel, so as to encrypt the target image area and obtain the target object.
[0084] In this embodiment of the application, the above-mentioned at least one pixel channel is a red pixel channel (R), a green pixel channel (G), and a blue pixel channel (B).
[0085] Optionally, in this embodiment of the application, the "object encryption device performs inversion transformation on the pixel value of each pixel point in at least one pixel channel in the target image area through an independent display chip" in step 203a above can be specifically implemented through the following step 203a1.
[0086] Step 203a1: If the pixel value of the target pixel in the target pixel channel is within the target preset range, the object encryption device transforms the pixel value of the target pixel in the target pixel channel into the target pixel value through an independent display chip.
[0087] In this embodiment of the application, the target pixel value is the difference between the maximum critical value of the target preset range and the pixel value of the target pixel in the target pixel channel.
[0088] In this embodiment, the target pixel is any pixel in the target image region, and the target pixel channel is any pixel channel among at least one pixel channel. It can be understood that the object encryption device can determine the pixel value range of each pixel in the target image region for each pixel channel, and then determine whether to transform the pixel value of the pixel based on that pixel value range.
[0089] Optionally, in this embodiment of the application, if the pixel value of the target pixel in the target pixel channel is not within the target preset range, the object encryption device will keep the pixel value of the target pixel in the target pixel channel unchanged.
[0090] Optionally, in this embodiment of the application, the above-mentioned target preset range can be 128≤x≤255, and the maximum critical value of the target preset range is 255.
[0091] It should be noted that when the pixel value of the target pixel in the target pixel channel is greater than or equal to 128, the object encryption device obtains the difference between the maximum threshold value 255 of the target preset range and the pixel value x of the target pixel in the target pixel channel. That is, the object encryption device obtains the value of 255-x as the target pixel value. When the pixel value of the target pixel in the target pixel channel is less than 128, the object encryption device keeps the pixel value of the target pixel in the target pixel channel unchanged.
[0092] For example, such as Figure 7 As shown, the image resolution of the target image region is M×N, and the mobile phone can obtain the pixel values of M×N pixels in the target image region. When the pixel value of any pixel A in the target image region is (11, 127, 200), then the target pixel value corresponding to the pixel value of pixel A is (11, 127, 55).
[0093] In this embodiment of the application, after the object encryption device marks the target image region, the object encryption device obtains the image resolution of the target image region and determines the number of pixels in the target image region. Therefore, the object encryption device can obtain at least one pixel value of each pixel in the target image region. By changing part of the pixel value of the target pixel in the target pixel channel, the object encryption device can more accurately encrypt the target image region and improve the accuracy of the object encryption device's encryption processing.
[0094] This application provides an object encryption method and an object encryption device with a main control chip and an independent display chip. The main control chip stores the original content of a first object, and the independent display chip performs image processing on the first object to obtain a second object. The object encryption device then encrypts the target image area using the independent display chip to obtain the target object. In this solution, the object encryption device processes the first object to obtain the second object using the independent display chip and encrypts the second object. When the object encryption device needs to display the second object, it needs to perform decryption processing corresponding to the encryption process, increasing the steps required for the object encryption device to display the second object. This effectively protects the copyright of images or videos created through secondary creation.
[0095] Optionally, in this embodiment of the application, after step 203 above, the object encryption method provided in this embodiment of the application further includes steps 401 to 404 below.
[0096] Step 401: If the key information input by the user is detected to match the encryption key information of the second object, the object encryption device decodes the target object through an independent display chip.
[0097] In this embodiment, the user can pre-set the encryption encoding and decoding switch of the independent display chip, i.e., the encryption key information of the second object. So when other users need to view the second object, they need to input the key information and match it with the encryption key information of the second object.
[0098] Optionally, in this embodiment of the application, the encryption key information may include at least one of the following: numeric password, alphabetic password, and graphic password.
[0099] It is understandable that when the key information entered by the user matches the encryption key of the second object, that is, when the password entered by the user is correct, the object encryption device decodes the target object to display the successfully decoded target object, that is, the second object.
[0100] Step 402: The object encryption device sends a third display signal to the main control chip through an independent display chip.
[0101] In this embodiment of the application, the third display signal is used to indicate the image content of the decoded target object.
[0102] Step 403: The object encryption device sends a third display signal to the display unit through the main control chip.
[0103] Step 404: The object encryption device displays the decoded target object through the display unit.
[0104] In this embodiment, the decoded target object is the second object. It can be understood that after the display unit receives the third display signal sent by the main control chip, i.e., after the object encryption device decodes the target object, the object encryption device displays the first object and the second object.
[0105] Optionally, in the embodiments of this application, such as Figure 8 As shown in (a), when the first object is an image, the object encryption device generates an original signal after saving the original image portion of the image through the main control chip, and generates an encryption signal after creating and saving the post-processing portion of the image through an independent display chip. When the key information input by the user matches the encryption key information of the second object, the object encryption device sends the original signal and the decoding signal to the display unit through MIPI to display the image. Figure 8 As shown in (b), when the first object is a video, the specific processes of the object encryption method and decryption method of the object encryption device are similar to those when the first object is an image, and will not be described in detail here.
[0106] Optionally, in this embodiment of the application, the above decoding process can be the object encryption device performing the encryption process provided in step 203a1 in reverse, that is, the object encryption device obtains the target pixel value in the target pixel point, and obtains the difference between the maximum threshold value of the target preset range and the target pixel value, that is, obtains the original pixel value of the target pixel point.
[0107] For example, combined Figure 2 (b) in the example Figure 9 As shown, if the key information entered by the user matches the encryption key information of the second object, the mobile phone can display the second object 13 in the image display interface 19.
[0108] In this embodiment, the object encryption device displays different objects based on the matching of the key information input by the user with the encryption key information of the second object. That is, when the key information matches, the object encryption device displays the encrypted image or video, thereby reducing the risk of the encrypted image or video being leaked when the key information does not match.
[0109] Optionally, in this embodiment of the application, after step 203 above, the object encryption method provided in this embodiment of the application further includes the following steps 501 to 503.
[0110] Step 501: If the key information entered by the user does not match the encryption key information of the second object, the object encryption device sends a fourth display signal to the main control chip through the independent display chip.
[0111] In this embodiment of the application, the fourth display signal is used to indicate the image content in the second object other than the target image area.
[0112] It is understandable that if the key information entered by the user does not match the encryption key information of the second object, that is, if the password entered by the user is incorrect, the object encryption device will not display the image content corresponding to the target image area, thereby protecting the copyright of the target image area.
[0113] In this embodiment, the image objects other than the target image region in the second object can be understood as those whose image content corresponding to the target image region is not displayed, based on the second object. For example, a mosaic is displayed in the target image region, or the image content of the corresponding first object is displayed in the target image region.
[0114] Step 502: The object encryption device sends a fifth display signal to the display unit through the main control chip.
[0115] In this embodiment of the application, the fifth display signal is used to indicate the original content of the first object and the image content of the second object excluding the target image area.
[0116] It should be noted that the target image region is the image region in the second object that has undergone image processing. Therefore, the image content in the second object other than the target image region can be the image region in the second object that has not undergone image processing.
[0117] Step 503: The object encryption device displays the third object through the display unit.
[0118] In this embodiment of the application, the third object includes at least one of the following: the first object, and the object in the second object other than the target image region.
[0119] Optionally, in this embodiment of the application, when the third object is an object outside the target image area of the second object, the object encryption device may display a blank image in the area corresponding to the target image area, or add mosaic to the image content of the target image area, so that the user cannot view the image content of the second object corresponding to the target image area.
[0120] For example, combined Figure 2 (b) in the example Figure 10 As shown, if the key information entered by the user does not match the encryption key information of the second object, the mobile phone cannot display the target image area (i.e., icon 12) in the second object 13 in the image display interface 19, and thus displays the first object 11 in the image display interface 19.
[0121] In this embodiment, the object encryption device displays different objects based on the matching of the key information input by the user with the encryption key information of the second object. That is, when the key information does not match, the object encryption device does not display the encrypted image or video, thereby reducing the risk of the encrypted image or video being leaked.
[0122] It should be noted that the object encryption method provided in this application can be executed by an object encryption device, an electronic device, or a functional module or entity within an electronic device. This application uses an electronic device executing the object encryption method as an example to illustrate the object encryption device provided in this application.
[0123] Figure 11 A schematic diagram of a possible structure of the object encryption device involved in an embodiment of this application is shown. For example... Figure 11 As shown, the object encryption device 70 may include a storage module 71 and a processing module 72.
[0124] The storage module 71 is used to store the original content of the first object, which is an image or video.
[0125] The processing module 72 is used to perform image processing on the first object to obtain the second object; and to perform encryption processing on the target image area to obtain the target object, wherein the target image area is the image area of the second object that has undergone image processing; wherein the main control chip and the independent display chip are connected in hardware structure.
[0126] This application provides an object encryption device. The object encryption device processes a first object to obtain a second object through an independent display chip and encrypts the second object. When the object encryption device needs to display the second object, it needs to perform decryption processing corresponding to the encryption processing, thereby increasing the steps required for the object encryption device to display the second object. This can effectively protect the copyright of images or videos after secondary creation.
[0127] In one possible implementation, the processing module 72 is specifically used to perform image fusion processing on the target layer and the first object to obtain a second object, wherein the target layer corresponds to the target image processing effect; wherein the target image region is the image region of the second object that has been fused with the target layer.
[0128] In one possible implementation, the first object is an image. The processing module 72 is specifically configured to display the second object; receive a first input from the user, which is a selection of a target image region within the second object; and, in response to the first input, mark the target image region within the second object and encrypt the target image region to obtain the target object.
[0129] In one possible implementation, the object encryption device 70 provided in this application embodiment further includes a sending module and a display module. The sending module is used to send a first display signal to the main control chip, the first display signal indicating the image content of the second object that has undergone image processing; and to send a second display signal to the display unit, the second display signal indicating the image content of the second object. The display module is used to display the second object.
[0130] In one possible implementation, the first object is a video. The processing module 72 is specifically configured to encrypt a target image region in at least one target video frame to obtain a target object, wherein the at least one target video frame is determined by any one of the following: a sensitive video frame in a second object, or a video segment selected by the user in the second object.
[0131] In one possible implementation, the processing module 72 is specifically used to perform an inversion transformation on the pixel value of each pixel in at least one pixel channel in the target image region to encrypt the target image region and obtain the target object.
[0132] In one possible implementation, the processing module 72 is specifically used to transform the pixel value of the target pixel in the target pixel channel into a target pixel value if the pixel value of the target pixel in the target pixel channel is within a target preset range. The target pixel value is the difference between the maximum threshold value of the target preset range and the pixel value of the target pixel in the target pixel channel. The target pixel is any pixel in the target image region, and the target pixel channel is any pixel channel in at least one pixel channel.
[0133] In one possible implementation, the object encryption device 70 provided in this application embodiment further includes a sending module and a display module. The processing module 72 is further configured to, after encrypting the target image area to obtain the target object, decode the target object if it detects that the key information input by the user matches the encryption key information of the second object. The sending module is configured to send a third display signal to the main control chip, the third display signal indicating the image content of the decoded target object; and to send a third display signal to the display unit. The display module is configured to display the decoded target object.
[0134] In one possible implementation, the sending module is further configured to, upon detecting a mismatch between the user-input key information and the encryption key information of the second object, send a fourth display signal to the main control chip, the fourth display signal indicating the image content of the second object excluding the target image area; and send a fifth display signal to the display unit, the fifth display signal indicating the original content of the first object and the image content of the second object excluding the target image area. The display module is also configured to display a third object, which includes at least one of the following: the first object, and objects in the second object excluding the target image area.
[0135] The object encryption device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television set (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the specific implementation.
[0136] The object encryption device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit it.
[0137] The object encryption device provided in this application embodiment can implement all the processes implemented in the above method embodiments, and will not be described again here to avoid repetition.
[0138] Optionally, such as Figure 12 As shown, this application embodiment also provides an electronic device 80, including a processor 81 and a memory 82. The memory 82 stores a program or instructions that can run on the processor 81. When the program or instructions are executed by the processor 81, they implement the various steps of the above-described object encryption method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0139] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0140] Figure 13 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of this application. The electronic device 90 includes, but is not limited to: a main control chip 91, an independent display chip 92, and a display unit 93.
[0141] The main control chip 91 is used to store the original content of the first object, which is an image or video. The independent display chip 92 is used to perform image processing on the first object to obtain a second object; and to encrypt the target image area to obtain a target object, which is the image area of the second object that has undergone image processing.
[0142] This application provides an object encryption device. The object encryption device processes a first object to obtain a second object through an independent display chip and encrypts the second object. When the object encryption device needs to display the second object, it needs to perform decryption processing corresponding to the encryption processing, thereby increasing the steps required for the object encryption device to display the second object. This can effectively protect the copyright of images or videos after secondary creation.
[0143] Optionally, the independent display chip 92 is specifically used to perform image fusion processing on the target layer and the first object to obtain the second object, wherein the target layer corresponds to the target image processing effect; wherein the aforementioned target image area is the image area in the second object that has been fused with the target layer.
[0144] Optionally, the first object is an image. The independent display chip 92 is specifically used to display the second object; and to receive a first input from the user, which is a selection of a target image region within the second object; and in response to the first input, to mark the target image region within the second object and to encrypt the target image region to obtain the target object.
[0145] Optionally, the independent display chip 92 is specifically used to send a first display signal to the main control chip 91, the first display signal being used to indicate the image content of the second object that has undergone image processing. The main control chip 91 is specifically used to send a second display signal to the display unit 93, the second display signal being used to indicate the image content of the second object. The display unit 93 is used to display the second object.
[0146] Optionally, the first object is a video. The independent display chip 92 is specifically used to encrypt a target image region in at least one target video frame to obtain a target object, wherein the at least one target video frame is determined by any one of the following: a sensitive video frame in a second object, or a video segment selected by the user in the second object.
[0147] Optionally, the independent display chip 92 is specifically used to perform an inversion transformation on the pixel value of each pixel point in at least one pixel channel in the target image area to encrypt the target image area and obtain the target object.
[0148] Optionally, the independent display chip 92 is specifically used to transform the pixel value of the target pixel in the target pixel channel into a target pixel value if the pixel value of the target pixel in the target pixel channel is within a target preset range. The target pixel value is the difference between the maximum threshold value of the target preset range and the pixel value of the target pixel in the target pixel channel. Herein, the target pixel is any pixel in the target image region, and the target pixel channel is any pixel channel in at least one pixel channel.
[0149] Optionally, the independent display chip 92 is further configured to, after encrypting the target image area to obtain the target object, decode the target object if the user-input key information matches the encryption key information of the second object; and send a third display signal to the main control chip 91, which indicates the image content of the decoded target object. The main control chip 91 is further configured to send the third display signal to the display unit 93. The display unit 93 is configured to display the decoded target object.
[0150] Optionally, the independent display chip 92 is further configured to send a fourth display signal to the main control chip 91 when it detects that the key information input by the user does not match the encryption key information of the second object. This fourth display signal indicates the image content of the second object excluding the target image area. The main control chip 91 is further configured to send a fifth display signal to the display unit 93, indicating the original content of the first object and the image content of the second object excluding the target image area. The display unit 93 is further configured to display a third object, which includes at least one of the following: the first object and objects in the second object excluding the target image area.
[0151] Figure 14 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0152] The electronic device 100 includes, but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
[0153] Those skilled in the art will understand that the electronic device 100 may also include a power supply (such as a battery) for supplying power to various components. The power supply can be logically connected to the main control chip through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 14 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0154] The memory 109 is used to store the original content of a first object, which is an image or video. The processor 110 is used to perform image processing on the first object to obtain a second object; and to encrypt a target image region to obtain a target object, wherein the target image region is the image region of the second object that has undergone image processing.
[0155] This application provides an object encryption device. The object encryption device processes a first object to obtain a second object through an independent display chip and encrypts the second object. When the object encryption device needs to display the second object, it needs to perform decryption processing corresponding to the encryption processing, thereby increasing the steps required for the object encryption device to display the second object. This can effectively protect the copyright of images or videos after secondary creation.
[0156] Optionally, the processor 110 is specifically used to perform image fusion processing on the target layer and the first object to obtain the second object, wherein the target layer corresponds to the target image processing effect; wherein the aforementioned target image region is the image region in the second object that has been fused with the target layer.
[0157] Optionally, the first object is an image. The user input unit 107 is specifically configured to display the second object and receive a first input from the user, which is a selection of a target image region within the second object. The processor 110 is specifically configured to, in response to the first input, mark the target image region within the second object and encrypt the target image region to obtain the target object.
[0158] Optionally, the radio frequency unit 101 is specifically used to send a first display signal to the main control chip, the first display signal being used to indicate the image content of the second object that has undergone image processing; and to send a second display signal to the display unit, the second display signal being used to indicate the image content of the second object. The display unit 106 is specifically used to display the second object.
[0159] Optionally, the first object is a video. The processor 110 is specifically configured to encrypt a target image region in at least one target video frame to obtain a target object, wherein the at least one target video frame is determined by any one of the following: a sensitive video frame in a second object, or a video segment selected by the user in the second object.
[0160] Optionally, the processor 110 is specifically configured to perform an inversion transformation on the pixel value of each pixel point in at least one pixel channel in the target image region to encrypt the target image region and obtain the target object.
[0161] Optionally, the processor 110 is specifically configured to, if the pixel value of the target pixel in the target pixel channel is within a target preset range, transform the pixel value of the target pixel in the target pixel channel into a target pixel value, wherein the target pixel value is the difference between the maximum threshold value of the target preset range and the pixel value of the target pixel in the target pixel channel; wherein the target pixel is any pixel in the target image region, and the target pixel channel is any pixel channel in at least one pixel channel.
[0162] Optionally, the processor 110 is further configured to, after encrypting the target image area to obtain the target object, decode the target object if it detects that the key information input by the user matches the encryption key information of the second object. The radio frequency unit 101 is further configured to send a third display signal to the main control chip, the third display signal indicating the image content of the decoded target object; and to send a third display signal to the display unit. The display unit 106 is further configured to display the decoded target object.
[0163] Optionally, the radio frequency unit 101 is further configured to, upon detecting a mismatch between the user-input key information and the encryption key information of the second object, send a fourth display signal to the main control chip, the fourth display signal indicating the image content of the second object excluding the target image area; and send a fifth display signal to the display unit, the fifth display signal indicating the original content of the first object and the image content of the second object excluding the target image area. The display unit 106 is further configured to display a third object, the third object including at least one of the following: the first object, and objects in the second object excluding the target image area.
[0164] The electronic device provided in this application embodiment can implement the various processes implemented in the above method embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.
[0165] The beneficial effects of the various implementation methods in this embodiment can be found in the beneficial effects of the corresponding implementation methods in the above method embodiments. To avoid repetition, they will not be repeated here.
[0166] It should be understood that, in this embodiment, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here.
[0167] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 109 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 109 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.
[0168] Processor 110 may include one or more processing units; optionally, processor 110 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 110.
[0169] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0170] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0171] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above method embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.
[0172] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0173] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above method embodiments and achieve the same technical effects. To avoid repetition, it will not be described again here.
[0174] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0175] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0176] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. An object encryption method, characterized in that, An object encryption device, comprising a main control chip and an independent display chip, wherein the main control chip and the independent display chip are connected in hardware structure, the method comprising: The main control chip stores the original content of the first object, which is an image or video. The independent display chip is used to perform image fusion processing on the target layer and the first object to obtain the second object, and the target layer corresponds to the target image processing effect. The target image region is encrypted using the independent display chip to obtain the target object, wherein the target image region is the image region of the second object that incorporates the target layer; If the key information input by the user is detected to match the encryption key information of the second object, the target object is decoded by the independent display chip. The decoded target object is displayed through the display unit; or, If the key information entered by the user does not match the encryption key information of the second object, the first object is displayed through the display unit.
2. The method according to claim 1, characterized in that, The first object is an image; The target image area is encrypted using the independent display chip to obtain the target object, including: The second object is displayed via the independent display chip; Receive a first input from the user, wherein the first input is a selection of the target image region within the second object; In response to the first input, the target image region is marked in the second object, and the target image region is encrypted to obtain the target object.
3. The method according to claim 2, characterized in that, The object encryption device also includes a display unit; The display of the second object via the independent display chip includes: The independent display chip sends a first display signal to the main control chip, the first display signal being used to indicate the image content in the second object that has undergone image processing; The main control chip sends a second display signal to the display unit, the second display signal being used to indicate the image content of the second object; The second object is displayed through the display unit.
4. The method according to claim 1, characterized in that, The first object is a video; The step of encrypting the target image area using the independent display chip to obtain the target object includes: The target image region in at least one target video frame is encrypted using the independent display chip to obtain the target object. The at least one target video frame is determined by any one of the following: a sensitive video frame in the second object, or a video segment selected by the user in the second object.
5. The method according to claim 1, characterized in that, The step of encrypting the target image area using the independent display chip to obtain the target object includes: The independent display chip is used to invert the pixel value of each pixel in at least one pixel channel in the target image region to encrypt the target image region and obtain the target object.
6. The method according to claim 5, characterized in that, The step of performing an inversion transformation on the pixel value of each pixel in at least one pixel channel in the target image region through the independent display chip includes: If the pixel value of the target pixel in the target pixel channel is within the target preset range, then the independent display chip transforms the pixel value of the target pixel in the target pixel channel into a target pixel value, where the target pixel value is the difference between the maximum threshold value of the target preset range and the pixel value of the target pixel in the target pixel channel. Wherein, the target pixel is any pixel in the target image region, and the target pixel channel is any pixel channel among the at least one pixel channel.
7. The method according to claim 1, characterized in that, Before displaying the decoded target object via the display unit, the method further includes: The independent display chip sends a third display signal to the main control chip, the third display signal being used to indicate the decoded image content of the target object; The main control chip sends the third display signal to the display unit.
8. The method according to claim 7, characterized in that, The method further includes: If the key information input by the user does not match the encryption key information of the second object, a fourth display signal is sent to the main control chip through the independent display chip. The fourth display signal is used to indicate the image content in the second object other than the target image area. The main control chip sends a fifth display signal to the display unit, the fifth display signal being used to indicate the original content of the first object and the image content of the second object excluding the target image area; The display unit displays a third object, which includes at least one of the following: the first object, or an object in the second object other than the target image region.
9. An object encryption device, the object encryption device comprising a main control chip and an independent display chip, wherein the main control chip and the independent display chip are connected in hardware structure; The main control chip is used to store the original content of the first object, which is an image or video. The independent display chip is used to perform image fusion processing on the target layer and the first object to obtain the second object, and the target layer corresponds to the target image processing effect. The target image region is then encrypted to obtain the target object, wherein the target image region is the image region of the second object that incorporates the target layer; The processing module is used to decode the target object through the independent display chip when it detects that the key information input by the user matches the encryption key information of the second object; The display module is used to display the decoded target object; or, The display module is used to display the first object when it detects that the key information input by the user does not match the encryption key information of the second object.
10. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the object encryption method as described in any one of claims 1 to 8.
11. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the object encryption method as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Image processing method, mobile terminal and computer readable storage medium
CN107770443A
Picture processing method, storage medium and computer terminal
CN114996663A
