CN113449129A - Picture storage method, picture storage device and storage medium - Google Patents

Picture storage method, picture storage device and storage medium Download PDF

Info

Publication number
CN113449129A
CN113449129A CN202010217933.1A CN202010217933A CN113449129A CN 113449129 A CN113449129 A CN 113449129A CN 202010217933 A CN202010217933 A CN 202010217933A CN 113449129 A CN113449129 A CN 113449129A
Authority
CN
China
Prior art keywords
picture
pixel
pixel data
data
storage device
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
CN202010217933.1A
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202010217933.1A priority Critical patent/CN113449129A/en
Publication of CN113449129A publication Critical patent/CN113449129A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/53Querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The present disclosure relates to a picture storage method, a picture storage apparatus, and a storage medium, the picture storage method including: when picture storage is carried out, pixel data of the picture are obtained; and saving the pixel data of the picture to store the picture. According to the technical scheme, when the picture is stored, the picture is split into the pixels, the pixel data of the picture is stored, the storage mode of the picture is changed, and the occupation of the storage space of the equipment is reduced.

Description

Picture storage method, picture storage device and storage medium
Technical Field
The present disclosure relates to the field of image processing, and in particular, to a picture storage method, a picture storage apparatus, and a storage medium.
Background
With the development of scientific technology and the improvement of the living standard of people, the terminal industry is rapidly developed, the functions of the terminal are more and more perfect, and the configuration of the terminal is higher and higher. Due to the fact that the mobile terminal is convenient to use, more and more users like to use the mobile terminal to take pictures and record the wonderful life anytime and anywhere.
The shooting performance of the terminal is continuously improved, and the pixels of the photos are higher and higher, for example, a 4800-thousand-pixel shooting lens, that is, a picture taken by using the terminal device, has 4800 thousand pixels. The terminal storage space occupied by the large-pixel picture is also larger and larger. Due to the fact that the storage space of the terminal is limited, along with the fact that more and more pictures exist, the occupied storage space of the stored pictures affects the use performance of the terminal, limitation is brought to the use of the terminal by a user, and user experience is affected.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a picture storage method, a picture storage apparatus, and a storage medium.
According to an aspect of the embodiments of the present disclosure, there is provided a picture storage method, including: when picture storage is carried out, pixel data of the picture are obtained; and saving the pixel data of the picture to store the picture.
In one embodiment, saving pixel data for a picture comprises: the pixel data of the picture is saved in a pixel bank.
In one embodiment, storing pixel data for a picture in a pixel bank comprises: and storing the pixel data in a pixel library corresponding to the shooting time and/or the shooting place according to the shooting time and/or the shooting place of the picture.
In one embodiment, the pixel data includes pixel values and pixel coordinates of the pixel points; storing pixel data of a picture in a pixel bank, comprising: querying a current pixel value in a pixel library; when the pixel value of the pixel point is not inquired in the pixel library, the pixel value and the pixel coordinate are stored in the pixel library; when the pixel value of the pixel point is inquired in the pixel base, the pixel coordinate of the pixel point is increased in the pixel data corresponding to the inquired pixel value.
In an embodiment, the pixel coordinates have picture identifiers, and the picture identifiers are used for distinguishing different pictures, and the picture storage method further includes: in response to the detection of the operation of viewing the picture, reading pixel data of the picture according to the picture identification; and displaying the picture according to the pixel data in the running memory.
In an embodiment, the picture storage method further includes: in response to detecting an end to view the picture, clearing pixel data of the rendered picture in the running memory.
In an embodiment, the pixel coordinates have picture identifiers, and the picture identifiers are used for distinguishing different pictures, and the picture storage method further includes: and in response to the detection of the operation of deleting the picture, deleting the pixel coordinates corresponding to the picture in the pixel data according to the picture identification.
In an embodiment, the picture storage method further includes: after the pixel coordinates corresponding to the picture are deleted from the pixel data, inquiring pixel values corresponding to the pixel coordinates from the pixel data; and deleting the pixel data corresponding to the pixel value when the pixel value corresponding to the pixel coordinate has no other pixel coordinate.
According to still another aspect of the embodiments of the present disclosure, there is provided a picture storage device including: the acquisition module is used for acquiring pixel data of the picture when the picture is stored; and the storage module is used for storing the pixel data of the picture so as to store the picture.
In an embodiment, when saving the pixel data of the picture, the storage module is configured to: the pixel data of the picture is saved in a pixel bank.
In one embodiment, when storing pixel data of a picture in a pixel bank, the storage module is configured to: and storing the pixel data in a pixel library corresponding to the shooting time and/or the shooting place according to the shooting time and/or the shooting place of the picture.
In one embodiment, the pixel data includes pixel values and pixel coordinates of the pixel points; when storing the pixel data of the picture in the pixel library, the storage module is configured to: querying a current pixel value in a pixel library; when the pixel value of the pixel point is not inquired in the pixel library, the pixel value and the pixel coordinate are stored in the pixel library; when the pixel value of the pixel point is inquired in the pixel base, the pixel coordinate of the pixel point is increased in the pixel data corresponding to the inquired pixel value.
In one embodiment, the pixel coordinates have picture identifiers, the picture identifiers are used for distinguishing different pictures, and the picture storage device further comprises: the reading module is used for responding to the detected operation of checking the picture and reading the pixel data of the picture according to the picture identification; and the presentation module is used for presenting the picture according to the pixel data in the running memory.
In one embodiment, the picture storage device further includes: and the clearing module is used for responding to the detection of finishing the operation of viewing the picture and clearing the pixel data of the picture in the running memory.
In one embodiment, the pixel coordinates have picture identifiers, the picture identifiers are used for distinguishing different pictures, and the picture storage device further comprises: and the deleting module is used for responding to the detected operation of deleting the picture and deleting the pixel coordinates corresponding to the picture in the pixel data according to the picture identification.
In one embodiment, the picture storage device further includes: the query module is used for querying a pixel value corresponding to the pixel coordinate in the pixel data after the pixel coordinate corresponding to the picture is deleted from the pixel data; and the deleting module is further used for deleting the pixel data corresponding to the pixel value when the pixel value corresponding to the pixel coordinate does not have the corresponding pixel coordinate.
According to still another aspect of the embodiments of the present disclosure, there is provided a picture storage device including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: the picture storage method of any one of the preceding claims is performed.
According to yet another aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the picture storage method of one of the above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: according to the embodiment of the disclosure, when the picture is stored, the picture is split into the pixels, the pixel data of the picture is stored, the storage mode of the picture is changed, and the occupation of the storage space of the device is reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flowchart illustrating a picture storing method according to an exemplary embodiment of the present disclosure.
Fig. 2 is a flowchart illustrating a picture storing method according to still another exemplary embodiment of the present disclosure.
Fig. 3 is a flowchart illustrating a picture storing method according to still another exemplary embodiment of the present disclosure.
Fig. 4 is a flowchart illustrating a picture storing method according to still another exemplary embodiment of the present disclosure.
Fig. 5 is a block diagram illustrating a picture storage device according to an exemplary embodiment of the present disclosure.
Fig. 6 is a block diagram illustrating a picture storage device according to still another exemplary embodiment of the present disclosure.
Fig. 7 is a block diagram illustrating a picture storage device according to still another exemplary embodiment of the present disclosure.
Fig. 8 is a block diagram illustrating a picture storage device according to still another exemplary embodiment of the present disclosure.
Fig. 9 is a block diagram illustrating a picture storage device according to still another exemplary embodiment of the present disclosure.
FIG. 10 is a block diagram illustrating an apparatus in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a picture storing method according to an exemplary embodiment of the present disclosure, where the picture storing method provided in the embodiment of the present disclosure may be applied to an intelligent terminal such as a smart phone, a smart tablet, a wearable device, a personal palm assistant, and a personal computer, and the present disclosure does not limit a specific type of an electronic device. For convenience of description, the present disclosure will be described below by taking an example in which the picture storage method is applied to an intelligent terminal.
As shown in fig. 1, the picture storing method includes the following steps.
In step S101, pixel data of a picture is acquired when picture storage is performed.
The pictures in the disclosure can be obtained by shooting by the intelligent terminal or by downloading through network acquisition, and when the pictures are stored, the pictures are stored in the local storage space of the terminal, so that the user can conveniently perform subsequent editing and use. It will be appreciated that when picture pixels are large, the space required for picture storage is correspondingly large.
A pixel, i.e. the smallest unit in a picture represented by a numerical sequence, is the smallest element that is inseparable in a single picture. In a picture, the clear position and assigned color value of a pixel determine the effect that the picture exhibits. When the picture is stored, the picture to be stored is divided into pixels relative to the whole storage of a single picture, and the picture is stored by taking the pixels as units by acquiring the pixel data of the picture. It is to be understood that, in order to reduce the picture storage space, the storage may not be repeated for pixels having the same color value. For example, the colors of the background regions in the picture are the same, i.e. the color values of the background regions are the same. Only one color value may be saved for a pixel that appears repeatedly.
In step S102, pixel data of the picture is saved to store the picture.
When the picture is stored, the picture is divided into pixels, and the corresponding picture is stored by storing pixel data.
According to the method provided by the disclosure, when the picture is stored, the picture is split into the pixels, the pixel data of the picture is stored, the storage mode of the picture is changed, and the occupation of the storage space of the equipment is reduced.
In one embodiment, the pixel data for a picture is saved in a pixel bank.
One or more pixel banks may be created, and the pixel data of the picture may be stored in the pixel banks. The pixel library can be stored in a local storage space of the terminal, and can also be uploaded to a server and stored in a cloud space, so that the occupation of the storage space is further saved.
In one embodiment, the pixel data is stored in a pixel bank corresponding to the time and/or place of capture based on the time and/or place of capture of the picture.
The pixel library may be created according to the shooting time and/or shooting location of the picture. The method comprises the steps of establishing a corresponding pixel library according to shooting time and/or shooting places, storing pixel data of pictures shot at the same shooting time and/or shooting places in the pixel library corresponding to the shooting time and/or shooting places, wherein the pictures shot at the same shooting time and/or shooting places can comprise more same or similar pixels, the same pixels are not repeatedly stored, the storage space is saved, and the speed of reading and/or presenting the pictures when the pictures are subsequently read can be improved.
Fig. 2 is a flowchart illustrating a picture storing method according to another exemplary embodiment of the present disclosure. The pixel data includes a pixel value and a pixel coordinate, and the pixel value may be an RGB value including a color of the pixel point, or an RGB and transparency value of the pixel point. And the pixel coordinates are used for representing the position of the pixel in the picture. The pixel coordinates may be determined by a coordinate system, which may be a picture coordinate system, a camera coordinate system, a world coordinate system, etc. The method comprises the steps of obtaining pixel data of a picture, namely obtaining a pixel value and a pixel coordinate of each pixel point of the picture, and displaying the picture according to the pixel value and the pixel coordinate when the picture is browsed.
As shown in fig. 2, the step of storing the pixel data of the picture in the pixel bank includes the following steps.
In step S201, the current pixel value is looked up in the pixel bank.
When the picture is stored, the picture is divided into pixels, and the corresponding picture is stored by storing pixel data. In order to save storage space, pixels with the same pixel value in different pictures or in the same picture are stored in the pixel library only once, namely, are not stored repeatedly. It will be appreciated that for pixel data in a pixel bank, the same pixel value may correspond to one pixel coordinate or to a plurality of pixel coordinates. The current pixel value is looked up in the pixel bank, and it is determined whether a pixel having the same value as the current pixel already exists in the pixel bank. For the pixels with the same pixel value, when two pieces of pixel data with the same pixel value are stored, only the different pixel coordinates representing the positions of the pixels in the picture need to be stored.
In an embodiment of the present disclosure, when storing a picture, a code is assigned to pixel data to distinguish different pixel data. When the picture is stored again, the distributed codes are analyzed, the current pixel values are inquired in the pixel library, and the pixel values in the pixel data of the distributed codes are compared.
In step S202, when the pixel value of the pixel point is not found in the pixel library, the pixel value and the pixel coordinate are stored in the pixel library.
When the pixel value is not inquired in the pixel library, the pixel value does not exist in the pixel library, and the pixel data, namely the pixel value and the pixel coordinate of the pixel point are stored in the pixel library so as to be convenient for subsequent pixel data reading and use.
In step S203, when the pixel value of the pixel point is found in the pixel library, the pixel coordinate of the pixel point is added to the pixel data corresponding to the found pixel value.
When the pixel value is inquired in the pixel base, the pixel value is indicated to exist in the pixel base, at this time, only the pixel coordinate used for representing the pixel position in the pixel data needs to be stored in the pixel base, namely the pixel coordinate of the pixel point is added in the pixel data corresponding to the inquired pixel value.
Fig. 3 is a flowchart illustrating a picture storing method according to another exemplary embodiment of the present disclosure. The pixel coordinates have picture identifiers, which are used to distinguish different pictures, as shown in fig. 3, the picture storage method includes the following steps.
In step S301, pixel data of a picture is acquired when picture storage is performed.
When the pictures are stored, picture identifiers are distributed to the pictures so as to distinguish pixel coordinates of different pictures according to the picture identifiers.
In step S302, the pixel data of the picture is saved to store the picture.
In step S303, in response to detecting an operation to view a picture, pixel data of the picture is read according to the picture identification.
In one embodiment, the pictures are saved in the gallery in the form of preview pictures, and the preview pictures of the pictures are stored in low pixels, so that the occupation of storage space is reduced.
And when a user clicks a preview of the picture in the gallery to view the picture, determining the picture according to the picture identification, and reading pixel data corresponding to the picture. For example, the pixel values and the pixel coordinates of all pixels corresponding to the picture may be acquired in a pixel library to present the picture, so that the user is ensured to view the picture with high-quality pixels, and the user experience is improved.
In step S304, a picture is presented according to the pixel data in the running memory.
The operating Memory of the terminal is a space for storing or temporarily storing a program when the terminal operates, and can temporarily store data for exchanging cache data with the CPU, and generally refers to a Random Access Memory (RAM).
When a user clicks the picture to check the picture, the picture is presented in the running memory according to the pixel value and the pixel coordinate of the picture, and the occupation of the picture on the storage space of the terminal can be avoided.
Fig. 4 is a flowchart illustrating a picture storing method according to another exemplary embodiment of the present disclosure. As shown in fig. 4, the picture storing method includes the following steps.
In step S401, pixel data of a picture is acquired at the time of picture storage.
In step S402, pixel data of a picture is saved to store the picture.
In step S403, in response to detection of an operation to view a picture, pixel data of the picture is read.
In step S404, a picture is displayed according to the pixel data in the running memory.
In step S405, in response to detecting that the operation of viewing the picture is ended, the pixel data of the presentation picture is cleared in the running memory.
And when the user clicks the picture to check the picture, displaying the picture according to the pixel value and the pixel coordinate of the picture in the running memory. When the user finishes the reading of the current picture and does not edit or save the current picture to the local album before closing the read picture, pixel data of the picture is cleared in the running memory, and the picture is still saved in the gallery in the form of a preview.
In the process of opening, reading and quitting reading after reading, the storage space of the terminal is not occupied, the space occupation of the running memory is emptied, and the influence on the performance of the terminal caused by the fact that the running memory is occupied and the storage space is large when the large-pixel picture is read is avoided.
In an embodiment, the pixel coordinates have picture identifiers, and the picture identifiers are used for distinguishing different pictures, and the picture storage method further includes: and in response to the detection of the operation of deleting the picture, deleting the pixel coordinates corresponding to the picture in the pixel data according to the picture identification.
The same pixel value may correspond to one pixel coordinate or to a plurality of pixel coordinates in the pixel data in the pixel library. When a user performs a picture deletion operation, the pixel value of the picture may belong to other undeleted pictures, and the pixel data of the picture is deleted, which may cause data loss of other pictures. When the picture is deleted, the pixel coordinate corresponding to the picture is deleted in the pixel data according to the picture identification, so that the occupation of the storage space can be reduced, and the influence on other pictures sharing the pixel value with the picture can be avoided.
In an embodiment, the picture storage method further includes, after deleting the pixel coordinate corresponding to the picture in the pixel data, querying a pixel value corresponding to the pixel coordinate in the pixel data, and deleting the pixel data corresponding to the pixel value when the pixel value corresponding to the pixel coordinate does not have the corresponding pixel coordinate.
When a user deletes a picture, the pixel coordinate corresponding to the picture is deleted from the pixel data, and the pixel data can also be inquired about whether other corresponding pixel coordinates exist, that is, whether the pixel coordinate is shared with other pictures.
And when the pixel value corresponding to the pixel coordinate does not have the corresponding pixel coordinate, namely the pixel value is not shared with other pictures, deleting the pixel data corresponding to the pixel value in the pixel library.
In an embodiment of the present disclosure, when a user clicks a picture to perform a picture viewing operation, a pixel value and a pixel coordinate of the picture are obtained, the picture is presented in an operating memory according to the pixel value and the pixel coordinate of the picture, and when the user performs a sending operation on the picture in a process of viewing the picture, the picture is sent according to the pixel value and the pixel coordinate of the picture. The quality of the original pixels of the picture is guaranteed.
In an embodiment of the present disclosure, when a user clicks a picture to perform a picture viewing operation, a pixel value and a pixel coordinate of the picture are obtained, the picture is presented according to the pixel value and the pixel coordinate of the picture in an operating memory, the picture is edited in a process of the user viewing, and the edited picture is stored according to pixel data of the picture when the edited picture is stored.
Fig. 5 is a block diagram illustrating a picture storage device according to an exemplary embodiment of the present disclosure. Referring to fig. 5, the picture storage device 500 includes: an acquisition module 510 and a storage module 520.
An obtaining module 510, configured to obtain pixel data of a picture when the picture is stored.
The storage module 520 is configured to store pixel data of a picture to store the picture.
In one embodiment, when saving the pixel data of the picture, the storage module 520 is configured to: the pixel data of the picture is saved in a pixel bank.
In one embodiment, when storing the pixel data of the picture in the pixel bank, the storage module 520 is configured to: and storing the pixel data in a pixel library corresponding to the shooting time and/or the shooting place according to the shooting time and/or the shooting place of the picture.
In one embodiment, the pixel data includes pixel values and pixel coordinates of the pixel points; when storing the pixel data of the picture in the pixel bank, the storage module 520 is configured to: querying a current pixel value in a pixel library; when the pixel value of the pixel point is not inquired in the pixel library, the pixel value and the pixel coordinate are stored in the pixel library; when the pixel value of the pixel point is inquired in the pixel base, the pixel coordinate of the pixel point is increased in the pixel data corresponding to the inquired pixel value.
Fig. 6 is a block diagram illustrating a picture storage device according to an exemplary embodiment of the present disclosure. The pixel coordinates have picture identifiers, which are used to distinguish different pictures, and referring to fig. 6, the picture storage apparatus 500 further includes: a reading module 530 and a rendering module 540.
And a reading module 530, configured to, in response to detecting an operation of viewing the picture, read pixel data of the picture according to the picture identifier.
And a presentation module 540, configured to present a picture according to the pixel data in the operating memory.
Fig. 7 is a block diagram illustrating a picture storage device according to an exemplary embodiment of the present disclosure. Referring to fig. 7, the picture storage device 500 further includes: the module 550 is cleared.
And a clearing module 550, configured to clear the pixel data of the rendered picture in the running memory in response to detecting that the operation of viewing the picture is finished.
Fig. 8 is a block diagram illustrating a picture storage device according to an exemplary embodiment of the present disclosure. The pixel coordinates have picture identifiers, which are used to distinguish different pictures, and referring to fig. 8, the picture storage device 500 further includes: and a delete module 560.
And the deleting module 560 is configured to, in response to detecting the operation of deleting the picture, delete the pixel coordinates corresponding to the picture in the pixel data according to the picture identifier.
Fig. 9 is a block diagram illustrating a picture storage device according to an exemplary embodiment of the present disclosure. Referring to fig. 9, the picture storage device 500 further includes: a query module 570.
The query module 570 is configured to query the pixel data for a pixel value corresponding to the pixel coordinate after deleting the pixel coordinate corresponding to the picture from the pixel data.
The deleting module 560 is further configured to delete the pixel data corresponding to the pixel value when the pixel value corresponding to the pixel coordinate does not have the corresponding pixel coordinate.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
FIG. 10 is a block diagram illustrating an apparatus in accordance with an example embodiment. For example, the picture storage control apparatus 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 10, the picture storage control apparatus 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an interface to input/output (I/O) 612, a sensor component 614, and a communication component 616.
The processing component 602 generally controls the overall operation of the picture storage device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
Memory 604 is configured to store various types of data to support operations at picture store 600. Examples of such data include instructions for any application or method operating on picture store 600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 604 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power component 606 provides power to the various components of the picture storage device 600. Power components 606 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for picture store 600.
The multimedia component 608 includes a screen that provides an output interface between the picture storage device 600 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or slide action, but also monitor the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front facing camera and/or a rear facing camera. When the picture storage device 600 is in an operation mode, such as a photographing mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 610 is configured to output and/or input audio signals. For example, the audio component 610 includes a Microphone (MIC) configured to receive an external audio signal when the picture storage device 600 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes an elevator kill for outputting an audio signal.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 614 includes one or more sensors for providing various aspects of status assessment for the picture store 600. For example, sensor component 614 may detect an open/closed state of picture storage device 600, the relative positioning of components, such as a display and keypad of picture storage device 600, sensor component 614 may also detect a change in position of picture storage device 600 or a component of picture storage device 600, the presence or absence of user contact with picture storage device 600, orientation or acceleration/deceleration of picture storage device 600, and a change in temperature of picture storage device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
Communication component 616 is configured to facilitate communication between picture storage 600 and other devices in a wired or wireless manner. The picture storage device 600 may access a wireless network based on a communication standard, such as WiFi, 2G or 6G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the picture storage device 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as memory 604 comprising instructions, executable by processor 620 of picture storage device 600 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (18)

1. A picture storage method, characterized in that the picture storage method comprises:
when picture storage is carried out, pixel data of the picture are obtained;
and saving the pixel data of the picture to store the picture.
2. The picture storage method according to claim 1, wherein saving the pixel data of the picture comprises:
saving pixel data of the picture in a pixel bank.
3. The picture storage method according to claim 2, wherein storing the pixel data of the picture in a pixel bank comprises:
and storing the pixel data in a pixel library corresponding to the shooting time and/or the shooting place according to the shooting time and/or the shooting place of the picture.
4. The picture storage method according to claim 2 or 3, wherein the pixel data includes pixel values and pixel coordinates of pixel points;
saving pixel data of the picture in a pixel bank, comprising:
querying the pixel bank for a current pixel value;
when the pixel value of the pixel point is not inquired in the pixel library, storing the pixel value and the pixel coordinate in the pixel library;
when the pixel value of the pixel point is inquired in the pixel base, the pixel coordinate of the pixel point is added in the pixel data corresponding to the inquired pixel value.
5. The picture storage method according to claim 4, wherein the pixel coordinates have picture identifiers for distinguishing different pictures, the picture storage method further comprising:
in response to the detection of the operation of viewing the picture, reading the pixel data of the picture according to the picture identification;
and in the operation memory, presenting the picture according to the pixel data.
6. The picture storage method according to claim 5, further comprising:
in response to detecting that the operation of viewing the picture is finished, clearing the pixel data presenting the picture in the running memory.
7. The picture storage method according to claim 4, wherein the pixel coordinates have picture identifiers for distinguishing different pictures, the picture storage method further comprising:
and in response to the detection of the operation of deleting the picture, deleting the pixel coordinates corresponding to the picture in the pixel data according to the picture identification.
8. The picture storage method according to claim 7, further comprising:
after the pixel coordinates corresponding to the picture are deleted from the pixel data, inquiring pixel values corresponding to the pixel coordinates from the pixel data;
and deleting the pixel data corresponding to the pixel value when the pixel value corresponding to the pixel coordinate has no other pixel coordinate.
9. A picture storage device, comprising:
the acquisition module is used for acquiring pixel data of the picture when the picture is stored;
and the storage module is used for storing the pixel data of the picture so as to store the picture.
10. The picture storage device of claim 9, wherein when saving the pixel data of the picture, the storage module is configured to:
saving pixel data of the picture in a pixel bank.
11. The picture storage device according to claim 10, wherein, when storing the pixel data of the picture in the pixel bank, the storage module is configured to:
and storing the pixel data in a pixel library corresponding to the shooting time and/or the shooting place according to the shooting time and/or the shooting place of the picture.
12. The picture storage device according to claim 10 or 11, wherein the pixel data includes pixel values and pixel coordinates of pixel points;
when storing the pixel data of the picture in the pixel library, the storage module is configured to:
querying the pixel bank for a current pixel value;
when the pixel value of the pixel point is not inquired in the pixel library, storing the pixel value and the pixel coordinate in the pixel library;
when the pixel value of the pixel point is inquired in the pixel base, the pixel coordinate of the pixel point is added in the pixel data corresponding to the inquired pixel value.
13. The picture storage device according to claim 9, wherein the pixel coordinates have picture identifiers for distinguishing different pictures, the picture storage device further comprising:
the reading module is used for responding to the detected operation of viewing the picture and reading the pixel data of the picture according to the picture identification;
and the presentation module is used for presenting the picture according to the pixel data in the running memory.
14. The picture storage device according to claim 13, further comprising:
and the clearing module is used for responding to the detection of finishing the operation of viewing the picture and clearing the pixel data presenting the picture in the running memory.
15. The picture storage device according to claim 12, wherein the pixel coordinates have picture identifiers for distinguishing different pictures, the picture storage device further comprising:
and the deleting module is used for responding to the detected operation of deleting the picture and deleting the pixel coordinate corresponding to the picture in the pixel data according to the picture identification.
16. The picture storage device according to claim 15, further comprising:
the query module is used for querying a pixel value corresponding to the pixel coordinate in the pixel data after the pixel coordinate corresponding to the picture is deleted from the pixel data;
the deleting module is further configured to delete the pixel data corresponding to the pixel value when the pixel value corresponding to the pixel coordinate does not have a corresponding pixel coordinate.
17. A picture storage device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: the picture storage method according to any one of claims 1 to 8 is performed.
18. A non-transitory computer-readable storage medium having instructions therein, which when executed by a processor of a mobile terminal, enable the mobile terminal to perform the picture storage method of any one of claims 1 to 8.
CN202010217933.1A 2020-03-25 2020-03-25 Picture storage method, picture storage device and storage medium Pending CN113449129A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010217933.1A CN113449129A (en) 2020-03-25 2020-03-25 Picture storage method, picture storage device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010217933.1A CN113449129A (en) 2020-03-25 2020-03-25 Picture storage method, picture storage device and storage medium

Publications (1)

Publication Number Publication Date
CN113449129A true CN113449129A (en) 2021-09-28

Family

ID=77806983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010217933.1A Pending CN113449129A (en) 2020-03-25 2020-03-25 Picture storage method, picture storage device and storage medium

Country Status (1)

Country Link
CN (1) CN113449129A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102831242A (en) * 2012-09-10 2012-12-19 东莞宇龙通信科技有限公司 Method and device for searching picture information
CN105354248A (en) * 2015-10-19 2016-02-24 南通大学 Gray based distributed image bottom-layer feature identification method and system
CN107885880A (en) * 2017-11-30 2018-04-06 惠州市德赛西威汽车电子股份有限公司 A kind of storage method of LOGO pictures
CN109271538A (en) * 2018-08-20 2019-01-25 深圳和而泰智能控制股份有限公司 A kind of picture storage method and relevant device
WO2019205986A1 (en) * 2018-04-25 2019-10-31 杭州海康威视数字技术股份有限公司 Image storage method and apparatus, and electronic device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102831242A (en) * 2012-09-10 2012-12-19 东莞宇龙通信科技有限公司 Method and device for searching picture information
CN105354248A (en) * 2015-10-19 2016-02-24 南通大学 Gray based distributed image bottom-layer feature identification method and system
CN107885880A (en) * 2017-11-30 2018-04-06 惠州市德赛西威汽车电子股份有限公司 A kind of storage method of LOGO pictures
WO2019205986A1 (en) * 2018-04-25 2019-10-31 杭州海康威视数字技术股份有限公司 Image storage method and apparatus, and electronic device and storage medium
CN109271538A (en) * 2018-08-20 2019-01-25 深圳和而泰智能控制股份有限公司 A kind of picture storage method and relevant device

Similar Documents

Publication Publication Date Title
CN107544809B (en) Method and device for displaying page
US20170032219A1 (en) Methods and devices for picture processing
CN107423386B (en) Method and device for generating electronic card
CN113259226B (en) Information synchronization method and device, electronic equipment and storage medium
CN106504295B (en) Method and device for rendering picture
CN104850643B (en) Picture comparison method and device
CN107729098B (en) User interface display method and device
CN107402767B (en) Method and device for displaying push message
US11600300B2 (en) Method and device for generating dynamic image
CN111368329A (en) Message display method and device, electronic equipment and storage medium
CN107239490B (en) Method and device for naming face image and computer readable storage medium
CN106528197B (en) Shooting method and device
CN106155696B (en) Method and device for deleting information
CN105653623B (en) Picture collection method and device
CN114186154A (en) Page processing method and device, electronic equipment and storage medium
CN110941670B (en) Mark state detection method, device, equipment and storage medium
CN113449129A (en) Picture storage method, picture storage device and storage medium
CN109389547B (en) Image display method and device
CN107682623B (en) Photographing method and device
CN113761275A (en) Video preview moving picture generation method, device and equipment and readable storage medium
CN111724398A (en) Image display method and device
CN106897876B (en) Terminal payment processing method and device
CN109710146B (en) Document display method and device
CN111241097B (en) Method for processing object, device for processing object and storage medium
CN111782110A (en) Screen capturing method and device, electronic equipment and storage medium

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