CN117592098A - Image storage method and device - Google Patents

Image storage method and device Download PDF

Info

Publication number
CN117592098A
CN117592098A CN202311505212.0A CN202311505212A CN117592098A CN 117592098 A CN117592098 A CN 117592098A CN 202311505212 A CN202311505212 A CN 202311505212A CN 117592098 A CN117592098 A CN 117592098A
Authority
CN
China
Prior art keywords
image
sub
electronic device
input
present application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311505212.0A
Other languages
Chinese (zh)
Inventor
区美银
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202311505212.0A priority Critical patent/CN117592098A/en
Publication of CN117592098A publication Critical patent/CN117592098A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6272Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database by registering files or documents with a third party
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Bioethics (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The application discloses an image storage method and device, belongs to the technical field of image processing, and is applied to first electronic equipment, wherein the method comprises the following steps: receiving a first input to a first image, the first image including at least a first sub-image and a second sub-image; transmitting the first sub-image to the second electronic device in response to the first input; the first image stored in the first electronic device is replaced with the second sub-image.

Description

Image storage method and device
Technical Field
The application belongs to the technical field of image processing, and particularly relates to an image storage method and device.
Background
With the development of electronic technology, there are more and more images that can be stored in electronic devices.
However, if the electronic device is lost or the password of the electronic device is leaked, the image stored in the electronic device may be lost or leaked entirely. As such, how to improve the privacy and security of images stored in electronic devices is a challenge.
Disclosure of Invention
An object of the embodiments of the present application is to provide an image storage method and apparatus, which can improve the privacy and security of images stored in electronic devices.
In a first aspect, an embodiment of the present application provides an image storage method, which is applied to a first electronic device, and includes: receiving a first input to a first image, the first image including at least a first sub-image and a second sub-image; transmitting the first sub-image to the second electronic device in response to the first input; the first image stored in the first electronic device is replaced with the second sub-image.
In a second aspect, an embodiment of the present application provides an image storage device, including: the device comprises a receiving module, a sending module and a processing module. A receiving module for receiving a first input to a first image, the first image comprising at least a first sub-image and a second sub-image; a transmitting module for transmitting the first sub-image to the second electronic device in response to the first input received by the receiving module; and the processing module is used for replacing the first image stored in the first electronic device with the second sub-image.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executable by at least one processor to implement the method according to the first aspect.
In an embodiment of the application, a first electronic device receives a first input of a first image, the first image including at least a first sub-image and a second sub-image; transmitting the first sub-image to the second electronic device in response to the first input; the first image stored in the first electronic device is replaced with the second sub-image. By the scheme, as the first electronic device can send part of the sub-images in the image to other electronic devices, only the rest of the sub-images in the image are saved. Therefore, the method can avoid the integral leakage or loss of the image by means of distributing and storing the plurality of sub-images of the image to different electronic devices, and improves the privacy and safety of the image stored in the electronic devices.
Drawings
FIG. 1 is one of the flowcharts of an image storage method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of an interface in which an image provided in an embodiment of the present application includes two sub-images;
FIG. 3 is a second flowchart of an image storage method according to an embodiment of the present disclosure;
FIG. 4 is a third flowchart of an image storage method according to an embodiment of the present disclosure;
FIG. 5 (A) is a schematic diagram of an example of a display device identifier according to an embodiment of the present application;
FIG. 5 (B) is an example schematic diagram of transmitting a sub-image to device B according to an embodiment of the present application;
fig. 6 is an exemplary schematic diagram of an interface for displaying a second sub-image by a first electronic device according to an embodiment of the present application;
fig. 7 is an exemplary schematic diagram of an interface of a second electronic device displaying a first sub-image according to an embodiment of the present application;
FIG. 8 is a fourth flowchart of an image storage method according to an embodiment of the present disclosure;
FIG. 9 is an interface schematic of an alternative sub-image provided in an embodiment of the present application;
fig. 10 is a schematic structural diagram of an image storage device according to an embodiment of the present application;
fig. 11 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application;
Fig. 12 is a second schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
Technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application are within the scope of the protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or otherwise described herein, and that the objects identified by "first," "second," etc. are generally of a type and do not limit the number of objects, for example, the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The terms "at least one," "at least one," and the like in the description and in the claims of the present application mean that they encompass any one, any two, or a combination of two or more of the objects. For example, at least one of a, b, c (item) may represent: "a", "b", "c", "a and b", "a and c", "b and c" and "a, b and c", wherein a, b, c may be single or plural. Similarly, the term "at least two" means two or more, and the meaning of the expression is similar to the term "at least one".
The image storage method and device provided by the embodiment of the application are described in detail below by means of specific embodiments and application scenes thereof with reference to the accompanying drawings.
The image storage method and device provided by the embodiment of the application can be applied to a scene for storing images in electronic equipment.
In the process of using the electronic device by the user, various images can be obtained in various ways such as shooting, screen capturing, downloading from a network, and the like. Typically, the electronic device will edit and store these images locally.
However, storing the image locally on the electronic device may enable the user to edit the image only using the image editing function in the electronic device. Moreover, storing the image locally on the electronic device may also result in a lower privacy and security of the stored image. As such, how to improve the privacy and security of images stored in electronic devices is a challenge.
In the image storage method and device provided by the embodiment of the application, because the first electronic device can send part of the sub-images in the image to other electronic devices, only the rest of the sub-images in the image are stored. Therefore, the method can avoid the integral leakage or loss of the image by the way of distributing and storing the plurality of sub-images of the image to different electronic devices, and can edit the image through the image editing function of other electronic devices, thereby improving the flexibility of the electronic devices in processing the image and the privacy and the safety of the image stored in the electronic devices.
The execution subject of the image storage method provided in the embodiment of the present application may be an image storage device. The image storage means may be, for example, an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The image storage method provided in the embodiment of the present application will be exemplarily described below using an electronic device as an example.
An embodiment of the present application provides an image storage method, and fig. 1 shows a flowchart of the image storage method provided in the embodiment of the present application, where the method may be applied to a first electronic device. As shown in fig. 1, the image storage method provided in the embodiment of the present application may include the following steps 101 to 103.
Step 101, a first electronic device receives a first input for a first image.
The first image may include at least a first sub-image and a second sub-image.
In some embodiments of the present application, the first image may be one or more images in the first electronic device, and it may be understood that the images in the first electronic device may include an image captured by the first electronic device, an image obtained by capturing, by the first electronic device, content displayed by a screen, an image received by the first electronic device from another device, and an image downloaded by the first electronic device from a network.
In some embodiments of the present application, the first sub-image may be a partial image in the first image.
In some embodiments of the present application, the second sub-image may be a portion of the first image other than the first sub-image.
In a practical implementation, the first image may comprise a plurality of sub-images, each of which may be part of the first image.
The sub-image may, for example, comprise an image of one of the objects in the first image, or comprise an image of one of the objects in the first image and a background image surrounding the one object, or comprise only a part of the background image in the first image. The embodiments of the present application are not particularly limited.
In some embodiments of the present application, the first sub-image may be one or more sub-images of the plurality of sub-images, and the second sub-image may be one or more sub-images of the plurality of sub-images other than the first sub-image.
Illustratively, as shown in FIG. 2, assume that the first image is an image 20, the image 20 being an image of a girl playing football. Then, the first sub-image may be an image 21 of the image 20 containing "girl", and the second sub-image may be an image 22 of the image 20 containing "football".
It should be noted that the dashed lines shown in fig. 2 are only used to represent the areas where the first sub-image and the second sub-image are located in the first image, and are not visible to the user in practical implementations.
In some embodiments of the present application, the first input may be an input selecting a first sub-image from the first image. In other words, the first input may be a selection input of the first sub-image.
In some embodiments of the present application, the first input includes, but is not limited to: the touch input of the user to the first image through the touch device such as a finger or a stylus pen, or a voice command input by the user, or a specific gesture input by the user, or other feasibility inputs, specifically may be determined according to actual use requirements, and the embodiment of the application is not limited. The specific gesture in the embodiment of the present application may be any one of a single-click gesture, a sliding gesture, a dragging gesture, a pressure recognition gesture, a long-press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiment of the application may be single click input, double click input, or any number of click inputs, and may also be long press input or short press input.
The first input may be, for example, a click input of the first sub-image by the user.
The first input may also be a sliding input of the user on the first sub-image, for example.
In some embodiments of the present application, the first electronic device may segment the first image into a first sub-image and a second sub-image prior to receiving the first input of the user to the first image.
In some embodiments of the present application, as shown in fig. 3 in conjunction with fig. 1, the step 101 may include a step 101a described below.
Step 101a, a first electronic device receives a first input to a first object in a first image.
The first sub-image may include first image content corresponding to the first object in the first image.
In some embodiments of the present application, the first object may be one or more photographic objects in the first image.
Illustratively, taking the first image as a landscape photograph as an example, the first object may be a tree or a flower in the landscape photograph.
Illustratively, taking the first image as a person photograph as an example, the first object may be a person in the person photograph.
In some embodiments of the present application, the first input may be an input selecting a first object from a first image. In other words, the first input may be a selection input of the first object.
It will be appreciated that since the first sub-image comprises the first image content corresponding to the first object in the first image, the user's selection of the first object corresponds to the selection of the first sub-image.
Therefore, the user can select the sub-images in the image according to the objects contained in the image, so that the flexibility and accuracy of selecting the sub-images by the user can be improved.
Step 102, the first electronic device transmits a first sub-image to the second electronic device in response to the first input.
In some embodiments of the present application, the second electronic device may be an electronic device connected to the first electronic device.
The second electronic device may be an electronic device connected to the first electronic device by bluetooth, for example.
The second electronic device may also be an electronic device connected to the first electronic device via a wireless network, for example.
In some embodiments of the present application, the first electronic device may be connected to a plurality of electronic devices, and the second electronic device may be one of the plurality of electronic devices.
In some embodiments of the present application, the second electronic device may save the first sub-image sent by the user after receiving the first sub-image. That is, the second electronic device may save only the first sub-image of the first image.
In some embodiments of the present application, the first input may include a first sub-input and a second sub-input.
In some embodiments of the present application, as shown in fig. 4 in conjunction with fig. 1, the step 102 may include the following steps 102a and 102b.
Step 102a, the first electronic device displays at least one device identification in response to a first sub-input to the first image.
Wherein each of the at least one device identifier may be used to indicate an electronic device.
In some embodiments of the present application, the electronic device indicated by the device identifier may be an electronic device connected to the first electronic device.
In some embodiments of the present application, the device identification includes representative information or symbols that may represent the electronic device that it indicates.
The device identifier may be, for example, a device model or a type of the electronic device.
The device identifier may be, for example, a name of the electronic device;
the device identifier may also be an icon that may represent the electronic device, for example.
In some embodiments of the present application, the shape of the device identifier may be any possible shape, such as a circle, a rectangle, a triangle, a diamond, a ring, or a polygon, and may specifically be determined according to actual use requirements, which is not specifically limited in the embodiments of the present application.
In some embodiments of the present application, after receiving the first sub-input of the user, the first electronic device may display the at least one device identifier at any display position of the electronic device screen. The embodiments of the present application are not particularly limited.
For example, the device identifier may be displayed in a floating manner on the first image.
The device identifier may be displayed on the first image in a preset transparency mode.
For example, assuming that the preset transparency is denoted as T1, the value range of T1 may be 0% < T1<100%.
The device identifier may also be displayed on the first image with a high or low brightness, for example.
In some embodiments of the present application, the first sub-input may be used to trigger the electronic device to display at least one device identifier.
For example, the electronic device may receive a long press input from a user to a first sub-image in the first image, and display at least one device identification.
For example, the electronic device may receive a double-click input from a user on a first sub-image in the first image, displaying at least one device identification.
It will be appreciated that each of the at least one device identifier displayed by the first electronic device may indicate an electronic device that may receive the first sub-image, such that a user may select a second electronic device that may transmit the first sub-image by selection of the device identifier.
Step 102b, the first electronic device sends the first sub-image to a second electronic device indicated by the first device identification in response to a second sub-input to the first device identification in the at least one device identification.
In some embodiments of the present application, the first device identifier may be any device identifier of the at least one device identifier.
In some embodiments of the present application, the second sub-input may be used to select the first device identification from at least one device identification. In other words, the second sub-input may be a selection input of the first device identification.
For example, the first electronic device may receive a click input of the first device identification by the user and send the first sub-image to the second electronic device indicated by the first device identification.
For example, the first electronic device may receive a voice input "first device identification" of the user, and send the first sub-image to the second electronic device indicated by the first device identification.
In some embodiments of the present application, the first electronic device may display at least one device identifier through two implementations described below.
A first possible implementation:
the present embodiment manually selects a scenario of the first device identifier for the user:
In some embodiments of the present application, after receiving the first sub-input of the user, the first electronic device may display device identifiers of all electronic devices connected to the first electronic device, and the user may freely select an electronic device that wants to send the first sub-image.
It will be appreciated that in the case where the user manually selects the first device identification, the electronic device may display at least two device identifications for selection by the user after receiving the first sub-input by the user.
Illustratively, as shown in fig. 5 (a), it is assumed that the first image is an image 50 containing "girl", "football", "flower" and "puppy". When the user wants to store the image 50 in a distributed manner, the user can press the "doggie" in the image 50 for a long time, so that the first electronic device can display the device identifier 51 of the electronic device a, the device identifier 52 of the electronic device B, and the device identifier 53 of the electronic device C connected to the first electronic device, as shown in fig. 5 (B). The user may then click on the device identification 52 so that the first electronic device may send a sub-image containing a "doggie" to the electronic device B indicated by the device identification 52.
Another embodiment:
The embodiment recommends a scene of selecting a first device identifier by a user for the first electronic device:
in some embodiments of the present application, the first electronic device, after receiving the first sub-input of the user, may recommend a device identification of the appropriate electronic device to the user based on the stored image type and device parameters in the electronic device connected to the first electronic device.
In some embodiments of the present application, the image type may indicate a type of object in the image.
In some embodiments of the present application, the image types described above may include, but are not limited to: person images, animal images, scenery images, article images.
In some embodiments of the present application, the device parameters may indicate a memory size and an image processing capability of the electronic device.
Illustratively, as shown in fig. 5 (a), it is assumed that the first image is an image 50 containing "girl", "football", "flower" and "puppy". When the user wants to store the image 50 in a distributed manner, the user can press the "puppy" in the image 50 for a long time. Then, the first electronic device can determine the electronic device with more images for storing animals from a plurality of electronic devices connected with the first electronic device, and display the device identification of the electronic device. The user may click on the device identification of the electronic device so that the first electronic device may send a sub-image containing a "doggie" to the electronic device.
For example, assuming that the first image is a higher resolution image, after receiving the first sub-input of the user, the first electronic device may determine that the electronic device with the larger unoccupied memory space is the second electronic device, and display the device identifier of the electronic device. Thus, the user can click on the device identifier of the electronic device to trigger the first electronic device to send the first sub-image to the electronic device.
For example, after the first sub-input of the first sub-image with poor image quality by the user, the first electronic device may determine the electronic device with strong image processing capability as the second electronic device, and display the device identifier of the electronic device. Thus, the user can click on the device identifier of the electronic device to trigger the first electronic device to send the first sub-image to the electronic device.
It may be appreciated that in the case where the first electronic device recommends that the user select the first device identification, the electronic device may display only the first device identification determined by the first electronic device after receiving the first sub-input of the user.
It should be noted that, when the first electronic device is connected to other electronic devices, the first electronic device may acquire access rights of the other electronic devices to acquire the image types and the device parameters stored in the other electronic devices.
In some embodiments of the present application, the user may switch between the two embodiments for displaying the at least one device identifier in any possible manner. The embodiments of the present application are not particularly limited.
For example, after the first electronic device displays the at least one device identifier, the user may click on any display area except the device identifier, and switch the manner in which the first electronic device displays the at least one device identifier.
In this way, the user can freely select the device to send the first sub-image by displaying at least one device identifier, so that flexibility of selecting the stored electronic device when distributing and storing the image is improved.
In some embodiments of the present application, the step 102 may further include a step 102c described below.
Step 102c, the first electronic device sends the first sub-image and the image parameters of the first image to the second electronic device in response to the first input.
Wherein the image parameters may include at least one of: pixel, resolution, background color information, location information of the first sub-image in the first image.
In some embodiments of the present application, the pixels and resolution in the above image parameters may indicate the sharpness and color richness of the image.
In some embodiments of the present application, the background color information in the image parameter may include a color change trend of an image background in the first image.
Illustratively, the background color information of the first image may be: the first image is graded from blue to yellow from the upper left corner to the lower right corner.
In some embodiments of the present application, the position information of the first sub-image in the first image may be a display position of the first sub-image in the first image.
In some embodiments of the present application, the first electronic device may obtain the position information of the first sub-image in the first image by constructing a coordinate system in the first image.
For example, the first electronic device may construct a coordinate system of the first image with a lower left corner of the first image as an origin, extending leftwards from the origin as an x-axis, and upwards from the origin as a y-axis, thereby obtaining coordinates of the first sub-image to obtain position information of the first sub-image in the first image.
In some embodiments of the present application, after the first electronic device sends the first sub-image and the image parameters of the first image to the second electronic device, the second electronic device may store the image parameters of the first image corresponding to the first sub-image, so that when the first sub-image and the second sub-image are synthesized later, the first sub-image and the second sub-image may be synthesized according to positions of the first sub-image and the second sub-image and the synthesized image may also be kept to be transitionally natural.
In this way, the first electronic device can send the sub-images in the image and the image parameters of the image to the second electronic device. Therefore, when the sub-images are synthesized, the first image can be restored according to the image parameters of the images, so that the synthesized images have natural transition and good image effect,
step 103, the first electronic device replaces the first image stored in the first electronic device with the second sub-image.
In some embodiments of the present application, the first electronic device may send the first sub-image selected by the user to the second electronic device after receiving the first input of the user, so that the second electronic device may save only the first sub-image in the first image after receiving the first sub-image. And the first electronic device may save only the sub-images, i.e. the second sub-images, of the first image other than the first sub-image. Therefore, the first images can be distributed and stored in the first electronic equipment and the second electronic equipment, and the privacy and the safety of image storage are improved.
Illustratively, as shown in fig. 5 (a), it is assumed that the first image is an image 50 containing "girl", "football", "flower" and "puppy". If the user feels that the image 50 is important and needs to secure a portion of the image content in the image 50, the user may choose to store the image in a distributed manner. The user may press the "puppy" in the image 50 for a long time, the first electronic device sends a sub-image containing the "puppy" to the second electronic device and replaces the image 50 with the image 51, which image 51 contains only "girl", "football" and "flower", as shown in fig. 6. Meanwhile, after receiving the sub-image including the "puppy" sent by the first electronic device, the second electronic device may save the sub-image, as shown in fig. 7, where the sub-image saved by the second electronic device includes only the "puppy", and the display position of the "puppy" is consistent with the display position of the "puppy" in the image 50.
It will be appreciated that if the user wants to view the complete first image, the second sub-image needs to be sent to the second electronic device, or the first sub-image needs to be sent to the first electronic device, and the first sub-image and the second sub-image are combined to view the complete first image.
In some embodiments of the present application, the display form of the second sub-image stored in the first electronic device may be an irregular shape of the first sub-image after the first sub-image is cut out for the first image, or may be a regular shape of a display area where the first sub-image is located filled by a blank area. The embodiments of the present application are not particularly limited.
In some embodiments of the present application, when the first electronic device displays the second sub-image, the display form of the second sub-image may be an irregular shape of the first sub-image after the first sub-image is cut out for the first image, or may be a regular shape of a display area where the first sub-image is located filled by the blank area. The embodiments of the present application are not particularly limited.
According to the image storage method, as the first electronic device can send part of the sub-images in the image to other electronic devices, only the rest sub-images in the image are stored. Therefore, the method can avoid the integral leakage or loss of the image by means of distributing and storing the plurality of sub-images of the image to different electronic devices, and improves the privacy and safety of the image stored in the electronic devices.
In some embodiments of the present application, after the step 101, the image storage method provided in the embodiments of the present application may further include a step 104 described below.
Step 104, the first electronic device adds a first identifier on the first sub-image and the second sub-image.
Wherein the first identifier may indicate a first image.
In some embodiments of the present application, the first electronic device may add the same first identifier to the first sub-image and the second sub-image, so that the electronic device that synthesizes the first sub-image and the second sub-image may recognize that the two sub-images are both from the first image, thereby recovering the first image more accurately.
In some embodiments of the present application, the first identifier may include information for representing the first image.
Illustratively, the first image is taken as an image taken by the first electronic device. The first identifier may be a timestamp of when the first image was captured by the first electronic device.
It will be appreciated that the first identifier corresponds to an image unique code (identity document, id) of the first image, by means of which the electronic device can identify the source of the sub-image.
Therefore, the electronic equipment can identify the source of the sub-image through the first identifier, so that the first image can be restored more accurately.
In some embodiments of the present application, as shown in fig. 8 in conjunction with fig. 1, after the step 102, the image storage method provided in the embodiments of the present application may further include the following steps 105 to 107.
Step 105, the first electronic device obtains a third sub-image from the second electronic device.
The third sub-image may include the first sub-image or the edited first sub-image.
In some embodiments of the present application, the first sub-image after editing may be understood as: and the second electronic equipment performs image processing on the first sub-image to obtain a sub-image.
For example, the second electronic device may change the sharpness decrease or increase of the first sub-image to obtain the edited first sub-image.
The second electronic device may beautify the face in the first sub-image to obtain the edited first sub-image.
In some embodiments of the present application, the first electronic device may directly actively acquire the third image from the second electronic device, or may receive the third image sent by the second electronic device. The embodiments of the present application are not particularly limited.
For example, when the user wants to restore the first image, the third sub-image in the second electronic device may be pressed for a long time, and the second electronic device may display the hint information "whether to send to the first electronic device to restore the original", "yes", and "no". If the user selects no, the second electronic device may discard the transmission of the third sub-image; if the user selects "yes", the second electronic device may send the third sub-image to the first electronic device.
And 106, the first electronic device combines the third sub-image and the second sub-image to obtain a second image.
Step 107, the first electronic device displays the second image.
In some embodiments of the present application, where the third sub-image includes the first sub-image, the second image may be the same as the first image; in the case that the third sub-image includes the edited first sub-image, the second image may be different from the first image.
In some embodiments of the present application, after determining, by the first identifier, that the third sub-image and the second sub-image are sub-images from the same image, the first electronic device combines the third sub-image and the second sub-image according to the pixel, the resolution, the background color information, and the position information of the sub-image in the image, so as to obtain and display the second image.
For example, the first electronic device may stitch the third sub-image and the second sub-image to obtain the second image.
It should be noted that, the first electronic device may also send the second sub-image or the edited second sub-image to the second electronic device, so that the second electronic device may combine the first sub-image and the second sub-image, or combine the first sub-image and the edited second sub-image to obtain and display the second image.
Therefore, as a plurality of sub-images of the image can be synthesized, the display of the original image can be restored, so that the user can review the complete image again, and the flexibility of image storage and review is improved.
In some embodiments of the present application, after the step 102, the image storage method provided in the embodiments of the present application may further include the following steps 108 and 109.
Step 108, the first electronic device receives a second input from the user for the second sub-image.
Step 109, the first electronic device obtains a fourth sub-image from the second electronic device in response to the second input and replaces the second sub-image with the fourth sub-image.
Wherein the fourth sub-image is related to the second sub-image.
In some embodiments of the present application, the first electronic device has access rights to the second electronic device.
In some embodiments of the present application, the fourth sub-image may be a sub-image stored in the second electronic device and related to the first sub-image.
In some embodiments of the present application, the above "the fourth sub-image is related to the first sub-image" may be understood as: the fourth sub-image has the same image type or image scene as the first sub-image.
For example, assuming that the image type of the first sub-image is a person, the fourth sub-image acquired by the first electronic device from the second electronic device is also a person.
For example, assuming that the image scene of the first sub-image is seaside, the image scene of the fourth sub-image acquired by the first electronic device from the second electronic device is also seaside.
In some embodiments of the present application, after the first electronic device acquires the fourth sub-image from the second electronic device, the second sub-image may be replaced with the fourth sub-image, so that when the display of the first image is restored, a second image with a more diverse image display effect may be obtained.
For example, as shown in fig. 9, assuming that the second sub-image is a sub-image 91 including "flowers", if the user is not satisfied with the sub-image 91, the user may press the sub-image 91 for a long time, and the first electronic device may acquire and display sub-image a and sub-image b having the same image type or image scene as the sub-image 91 from the second electronic device. The user may then select a sub-image acquired by the first electronic device, which may replace sub-image 91 with the user selected sub-image.
For a detailed description of the first electronic device having access to the second electronic device, reference may be made to the description related to step 102b above. To avoid repetition, no further description is provided here.
Therefore, the sub-images of the image can be replaced, so that the display effect of the image can be improved, and the flexibility of storing and viewing the image by the electronic equipment is improved.
The above method embodiments, or various possible implementation manners in the method embodiments, may be executed separately, or may be executed in any two or more combinations, which may be specifically determined according to actual use requirements, and this embodiment of the application is not limited.
The image storage method provided in the embodiment of the present application is exemplarily described below with specific examples. The image storage method may include steps 201 to 204 described below.
Step 201, a first electronic device receives a first input of a first image.
The first image may include a first sub-image and a second sub-image.
Step 202, the first electronic device transmits a first sub-image to the second electronic device in response to the first input.
Step 203, the second electronic device receives and stores the first sub-image.
Step 204, the first electronic device replaces the first image stored in the first electronic device with the second sub-image.
Step 205, the second electronic device sends the third sub-image to the first electronic device.
Wherein the third sub-image includes the first sub-image or the edited first sub-image.
Step 206, the first electronic device receives the third sub-image, and combines the third sub-image and the second sub-image to obtain and display the second image.
In this way, since the first electronic device can send part of the sub-images in the image to other electronic devices, only the remaining sub-images in the image are saved. Therefore, the method can avoid the integral leakage or loss of the image by means of distributing and storing the plurality of sub-images of the image to different electronic devices, and improves the privacy and safety of the image stored in the electronic devices.
According to the image storage method provided by the embodiment of the application, the execution subject can be an image storage device. In the embodiment of the present application, an image storage device is described by taking an example in which the image storage device executes an image storage method.
Fig. 10 shows a schematic diagram of one possible configuration of an image storage device involved in an embodiment of the present application. As shown in fig. 10, the image storage device 100 may include: a receiving module 101, a transmitting module 102 and a processing module 103.
Wherein, the receiving module 101 is configured to receive a first input to a first image, where the first image includes at least a first sub-image and a second sub-image; a transmitting module 102, configured to transmit the first sub-image to the second electronic device in response to the first input received by the receiving module 101; and the processing module 103 is used for replacing the first image stored in the first electronic device with the second sub-image.
In a possible implementation manner, the receiving module 101 is specifically configured to receive a first input to a first object in a first image;
the first sub-image comprises first image content corresponding to a first object in the first image.
In one possible implementation, the first input includes a first sub-input and a second sub-input;
the device further comprises: a display module;
the display module is configured to display at least one device identifier in response to the first sub-input of the first image received by the receiving module 101, where each device identifier is used to indicate an electronic device;
the sending module 102 is specifically configured to send, in response to the second sub-input of the first device identifier in the at least one device identifier received by the receiving module 101, the first sub-image to the second electronic device indicated by the first device identifier.
In one possible implementation manner, the sending module 102 is specifically configured to send, in response to the first input, the first sub-image and the image parameter of the first image to the second electronic device;
wherein the image parameters include at least one of: pixel, resolution, background color information, location information of the first sub-image in the first image.
In a possible implementation manner, the processing module 103 is further configured to, after the sending module 102 sends the first sub-image to the second electronic device in response to the first input, obtain a third sub-image from the second electronic device, where the third sub-image includes the first sub-image or the edited first sub-image; and, the third sub-image and the second sub-image received by the receiving module 101 are combined to obtain a second image;
the display module is configured to display the second image obtained by the processing module 103.
In a possible implementation manner, the receiving module 101 is further configured to receive, after the sending module 102 sends the first sub-image to the second electronic device in response to the first input, a second input of the user to the second sub-image;
the processing module 103 is further configured to obtain a third sub-image from the second electronic device in response to the second input received by the receiving module 101, and replace the first sub-image with the third sub-image, where the third sub-image is related to the first sub-image;
The first electronic device has access rights to the second electronic device.
The embodiment of the application provides an image storage device, which can send partial sub-images in an image to other electronic devices by a first electronic device and only store the rest sub-images in the image. Therefore, the method can avoid the integral leakage or loss of the image by means of distributing and storing the plurality of sub-images of the image to different electronic devices, and improves the privacy and safety of the image stored in the electronic devices.
The image storage device in the embodiment of the application may be an electronic device, or may be a component in an electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the electronic device may be a mobile phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, mobile internet appliance (Mobile Internet Device, MID), augmented reality (augmented reality, AR)/Virtual Reality (VR) device, robot, wearable device, ultra-mobile personal computer, UMPC, netbook or personal digital assistant (personal digital assistant, PDA), etc., but may also be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The image storage 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 embodiments of the present application.
The image storage device provided in the embodiment of the present application can implement each process implemented by the embodiment of the image storage method, so as to achieve the same technical effects, and in order to avoid repetition, a detailed description is omitted here.
Optionally, as shown in fig. 11, the embodiment of the present application further provides an electronic device 1100, including a processor 1101 and a memory 1102, where the memory 1102 stores a program or an instruction that can be executed on the processor 1101, and the program or the instruction implements each step of the embodiment of the image storage method when executed by the processor 1101, and the steps achieve the same technical effects, so that repetition is avoided, and no further description is given here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 12 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1200 includes, but is not limited to: radio frequency unit 1201, network module 1202, audio output unit 1203, input unit 1204, sensor 1205, display unit 1206, user input unit 1207, interface unit 1208, memory 1209, and processor 1210.
Those skilled in the art will appreciate that the electronic device 1200 may also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 1210 by a power management system, such as to perform functions such as managing charging, discharging, and power consumption by the power management system. The electronic device structure shown in fig. 12 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than illustrated, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
Wherein the user input unit 1207 is configured to receive a first input of a first image, and the first image includes at least a first sub-image and a second sub-image; a radio frequency unit 1201 for transmitting the first sub-image to the second electronic device in response to the first input received by the user input unit 1207; the processor 1210 is configured to replace a first image stored in the first electronic device with a second sub-image.
In one possible implementation, the user input unit 1207 is specifically configured to receive a first input to a first object in a first image;
the first sub-image comprises first image content corresponding to a first object in the first image.
In one possible implementation, the first input includes a first sub-input and a second sub-input;
the display unit 1206 is configured to display at least one device identifier in response to the first sub-input of the first image received by the user input unit 1207, where each device identifier is used to indicate an electronic device;
the radio frequency unit 1201 is specifically configured to send, in response to the second sub-input of the first device identifier of the at least one device identifier received by the user input unit 1207, the first sub-image to the second electronic device indicated by the first device identifier.
In one possible implementation manner, the radio frequency unit 1201 is specifically configured to send the first sub-image and the image parameter of the first image to the second electronic device in response to the first input;
wherein the image parameters include at least one of: pixel, resolution, background color information, location information of the first sub-image in the first image.
In a possible implementation manner, the processor 1210 is further configured to obtain, after the radio frequency unit 1201 sends the first sub-image to the second electronic device in response to the first input, a third sub-image from the second electronic device, where the third sub-image includes the first sub-image or the edited first sub-image; and, for combining the third sub-image and the second sub-image received by the user input unit 1207 to obtain a second image;
The display unit 1206 is configured to display the second image obtained by the processor 1210.
In a possible implementation manner, the user input unit 1207 is further configured to receive, after the radio frequency unit 1201 sends the first sub-image to the second electronic device in response to the first input, a second input of the user to the second sub-image;
the processor 1210 is further configured to obtain a third sub-image from the second electronic device in response to the second input received by the user input unit 1207, and replace the first sub-image with the third sub-image, where the third sub-image is related to the first sub-image;
the first electronic device has access rights to the second electronic device.
The embodiment of the application provides an electronic device, wherein the first electronic device can send part of sub-images in an image to other electronic devices, and only the rest of sub-images in the image are saved. Therefore, the method can avoid the integral leakage or loss of the image by means of distributing and storing the plurality of sub-images of the image to different electronic devices, and improves the privacy and safety of the image stored in the electronic devices.
It should be understood that in the embodiment of the present application, the input unit 1204 may include a graphics processor (Graphics Processing Unit, GPU) 12041 and a microphone 12042, and the graphics processor 12041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1206 may include a display panel 12061, and the display panel 12061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1207 includes at least one of a touch panel 12071 and other input devices 12072. The touch panel 12071 is also called a touch screen. The touch panel 12071 may include two parts, a touch detection device and a touch controller. Other input devices 12072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
Memory 1209 may be used to store software programs as well as various data. The memory 1209 may mainly include a first memory area storing programs or instructions and a second memory area storing data, wherein the first memory area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 1209 may include volatile memory or nonvolatile memory, or the memory 1209 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). Memory 1209 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 1210 may include one or more processing units; optionally, processor 1210 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, and the like, and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into processor 1210.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored, and when the program or the instruction is executed by a processor, the processes of the embodiment of the image storage method are implemented, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage medium such as computer readable memory ROM, random access memory RAM, magnetic or optical disk, etc.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running a program or instructions, implementing each process of the above image storage method embodiment, and achieving the same technical effect, so as to avoid repetition, and no redundant description is provided herein.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
The embodiments of the present application provide a computer program product stored in a storage medium, where the program product is executed by at least one processor to implement the respective processes of the embodiments of the image storage method described above, and achieve the same technical effects, and are not repeated herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (12)

1. An image storage method, applied to a first electronic device, comprising:
receiving a first input to a first image, the first image comprising at least a first sub-image and a second sub-image;
transmitting the first sub-image to a second electronic device in response to the first input;
and replacing the first image stored in the first electronic device with the second sub-image.
2. The method of claim 1, wherein the receiving a first input to the first image comprises:
receiving a first input to a first object in the first image;
the first sub-image comprises first image content corresponding to the first object in the first image.
3. The method of claim 1, wherein the first input comprises a first sub-input and a second sub-input;
the transmitting the first sub-image to a second electronic device in response to the first input, comprising:
displaying at least one device identification in response to the first sub-input to the first image, each device identification for indicating one electronic device;
and in response to a second sub-input to a first device identity of the at least one device identity, transmitting the first sub-image to the second electronic device indicated by the first device identity.
4. A method according to any one of claims 1 to 3, wherein said transmitting said first sub-image to a second electronic device in response to said first input comprises:
transmitting the first sub-image and image parameters of the first image to a second electronic device in response to the first input;
wherein the image parameters include at least one of: pixel, resolution, background color information, location information of the first sub-image in the first image.
5. The method of claim 1, wherein after the transmitting the first sub-image to a second electronic device in response to the first input, the method further comprises:
acquiring a third sub-image from the second electronic device, wherein the third sub-image comprises the first sub-image or the edited first sub-image;
combining the third sub-image and the second sub-image to obtain a second image;
and displaying the second image.
6. The method of claim 1, wherein after the transmitting the first sub-image to a second electronic device in response to the first input, the method further comprises:
Receiving a second input from a user to the second sub-image;
in response to the second input, acquiring a fourth sub-image from the second electronic device and replacing the second sub-image with the fourth sub-image, the fourth sub-image being related to the second sub-image;
the first electronic device has access rights to the second electronic device.
7. An image storage device, the device comprising: the device comprises a receiving module, a sending module and a processing module;
the receiving module is used for receiving a first input of a first image, and the first image at least comprises a first sub-image and a second sub-image;
the sending module is used for responding to the first input received by the receiving module and sending the first sub-image to the second electronic equipment;
the processing module is configured to replace the first image stored in the first electronic device with the second sub-image.
8. The apparatus according to claim 7, wherein the receiving module is in particular configured to receive a first input for a first object in the first image;
the first sub-image comprises first image content corresponding to the first object in the first image.
9. The apparatus of claim 7, wherein the first input comprises a first sub-input and a second sub-input;
the apparatus further comprises: a display module;
the display module is used for responding to the first sub-input of the first image received by the receiving module and displaying at least one device identifier, and each device identifier is used for indicating one electronic device;
the sending module is specifically configured to send the first sub-image to the second electronic device indicated by the first device identifier, in response to the second sub-input of the first device identifier received by the receiving module.
10. The apparatus according to any one of claims 7 to 9, wherein the transmitting module is configured to transmit the first sub-image and the image parameters of the first image to a second electronic device in response to the first input;
wherein the image parameters include at least one of: pixel, resolution, background color information, location information of the first sub-image in the first image.
11. The apparatus of claim 7, wherein the apparatus further comprises: a display module;
The processing module is further configured to acquire a third sub-image from the second electronic device after the sending module sends the first sub-image to the second electronic device in response to the first input, where the third sub-image includes the first sub-image or the edited first sub-image;
the processing module is further configured to combine the third sub-image and the second sub-image received by the receiving module to obtain a second image;
the display module is used for displaying the second image obtained by the processing module.
12. The apparatus of claim 7, wherein the receiving module is further configured to receive a second input from a user to the second sub-image after the sending module sends the first sub-image to a second electronic device in response to the first input;
the processing module is further configured to obtain a third sub-image from the second electronic device in response to the second input received by the receiving module, and replace the first sub-image with the third sub-image, where the third sub-image is related to the first sub-image;
the first electronic device has access rights to the second electronic device.
CN202311505212.0A 2023-11-10 2023-11-10 Image storage method and device Pending CN117592098A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311505212.0A CN117592098A (en) 2023-11-10 2023-11-10 Image storage method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311505212.0A CN117592098A (en) 2023-11-10 2023-11-10 Image storage method and device

Publications (1)

Publication Number Publication Date
CN117592098A true CN117592098A (en) 2024-02-23

Family

ID=89909119

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311505212.0A Pending CN117592098A (en) 2023-11-10 2023-11-10 Image storage method and device

Country Status (1)

Country Link
CN (1) CN117592098A (en)

Similar Documents

Publication Publication Date Title
KR20220028000A (en) 3D object camera customization system
CN111612873B (en) GIF picture generation method and device and electronic equipment
CN112073767B (en) Display equipment
CN112422817B (en) Image processing method and device
CN113596555B (en) Video playing method and device and electronic equipment
CN113379865B (en) Drawing method and system of target object
CN112449110B (en) Image processing method and device and electronic equipment
CN108038916B (en) Augmented reality display method
CN113794795A (en) Information sharing method and device, electronic equipment and readable storage medium
CN107705275B (en) Photographing method and mobile terminal
CN111885298B (en) Image processing method and device
CN116225289A (en) Dynamic information management method and device and electronic equipment
CN115967854A (en) Photographing method and device and electronic equipment
CN112764632B (en) Image sharing method and device and electronic equipment
CN112367487B (en) Video recording method and electronic equipment
CN112328155B (en) Input device control method and device and electronic device
CN117592098A (en) Image storage method and device
CN112184535B (en) Image anti-counterfeiting method, device and equipment
CN114390205A (en) Shooting method and device and electronic equipment
CN113986080A (en) Multimedia file editing method and device and electronic equipment
CN118689577A (en) Display method and device of screen locking wallpaper
CN112492206B (en) Image processing method and device and electronic equipment
CN117729415A (en) Image processing method, device, electronic equipment and medium
CN117082056A (en) File sharing method and electronic equipment
CN117274057A (en) Image stitching method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination