CN110875976A - Method and equipment for storing photo information - Google Patents
Method and equipment for storing photo information Download PDFInfo
- Publication number
- CN110875976A CN110875976A CN201810997042.5A CN201810997042A CN110875976A CN 110875976 A CN110875976 A CN 110875976A CN 201810997042 A CN201810997042 A CN 201810997042A CN 110875976 A CN110875976 A CN 110875976A
- Authority
- CN
- China
- Prior art keywords
- photo
- sensor
- information
- sensor information
- picture
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
- H04M1/72439—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Telephone Function (AREA)
- Studio Devices (AREA)
Abstract
The invention relates to the technical field of terminal equipment, in particular to a method and equipment for storing photo information, which are used for solving the problem that the difficulty is increased in the later photo processing due to the limitation of comparison of the currently stored photo information. The method of the invention comprises the following steps: the terminal equipment takes a picture through the camera; the terminal equipment determines the sensor information of the equipment sensor acquired when the picture is shot; and the terminal equipment adds the sensor information to the photo information corresponding to the photo. According to the invention, the acquired sensor information is added into the photo information corresponding to the photo, so that the content of the photo information is expanded, the limitation of the photo information is reduced, and the sensor information is convenient to view and call at a later stage.
Description
Technical Field
The invention relates to the technical field of terminal equipment, in particular to a method and equipment for storing photo information.
Background
With the rapid development of mobile communication equipment, the functions of the mobile communication equipment are not only communication, but also remarkable progress is made in the field of photographing, and the times of photographing by using a mobile phone in daily life are more and more frequent.
Some mobile communication devices with camera functions have the problem that the precision of distance measurement is affected by the shake caused by the environment or the operation of the mobile communication devices in the photographing process, so that the photographing quality is affected, the photographed picture is blurred, and image processing needs to be performed at the later stage. The current photo information only includes image data and Exif (Exchangeable image file) information, such as manufacturer, model, aperture, exposure time, shutter, light sensitivity, white balance, altitude, longitude, latitude, timestamp, etc., for image processing of photos, a common method is to download corresponding photo processing software, after the shooting is completed, a user selects photos to be processed by the software, for example, the user selects deblurring processing for unclear photos, and the user needs to select each photo, which is very inconvenient; in addition, this method processes the photograph based on the image data in the photograph information, and the processing procedure is complicated.
In summary, the currently stored photo information is limited, so that the difficulty in processing the photos at the later stage is increased.
Disclosure of Invention
The invention provides a method and equipment for storing photo information, which are used for solving the problem that the difficulty is increased in the later photo processing due to the limitation of the currently stored photo information.
In a first aspect, a method for storing photo information provided in an embodiment of the present invention includes:
the terminal equipment takes a picture through the camera; the terminal equipment determines the sensor information of the equipment sensor acquired when the picture is shot; and the terminal equipment adds the sensor information to the photo information corresponding to the photo.
According to the method, the terminal equipment collects the sensor information in real time in the process of taking the photo, and adds the collected sensor information into the photo information corresponding to the photo, so that the content of the photo information is expanded, the limitation of the photo information is reduced, and meanwhile, the sensor information is convenient to view and call in the later period.
In a possible implementation manner, before the terminal device adds the sensor information to the photo information corresponding to the photo, the method further includes:
and the terminal equipment determines that the sensor information of at least one equipment sensor changes in the process of taking the picture.
According to the method, the terminal equipment determines whether the sensor information changes, and the time and the value are limited, because the sensor information sometimes changes when the terminal equipment does not shoot, and one equipment has a plurality of equipment sensors, so that the method is more accurate.
In a possible implementation manner, the adding, by the terminal device, the sensor information to the photo information corresponding to the photo specifically includes:
and the terminal equipment adds the changed sensor information to the photo information corresponding to the photo.
According to the method, the terminal equipment adds the changed sensor information to the photo information, and when the sensor information is not changed, the sensor information does not need to be added, so that the space can be saved, if the photo information needs to be processed at the later stage, only the sensor information needs to be judged whether to exist in the photo information, the photo containing the sensor information is processed, and the photo without the sensor information does not need to be processed.
In a possible implementation manner, the adding, by the terminal device, the sensor information to the photo information corresponding to the photo specifically includes:
and the terminal equipment adds the sensor information into an extension field of the photo information corresponding to the photo.
According to the method, the sensor information is stored in the original photo information file in a mode of adding the extension field, so that the sensor information can be stored in real time, and meanwhile, the sensor information and other photo information are stored in the same file, and later-stage searching is facilitated.
In a possible implementation manner, the adding, by the terminal device, the sensor information to the photo information corresponding to the photo specifically includes:
and the terminal equipment adds the sensor information to the photo information corresponding to the photo through a callback function.
According to the method, the terminal equipment acquires the changed sensor information through the callback function, and the Exif interface is directly called in the callback function, the Exif interface can write the sensor information into the correct position in the photo information corresponding to the photo, and the method for directly adding the sensor information through the callback function is quicker and more accurate, does not need to calculate the offset, and does not need to realize the writing interface by self.
In a second aspect, an embodiment of the present invention further provides an apparatus for storing photo information, where the apparatus includes: a processor, a memory and a camera, wherein the memory stores program code that, when executed by the processor, causes the apparatus to perform the following:
taking a picture through a camera; determining sensor information of an equipment sensor acquired when the picture is taken; and adding the sensor information to the photo information corresponding to the photo.
In one possible implementation, the processor is further configured to:
and after determining that the sensor information of at least one equipment sensor changes in the process of taking the picture, adding the sensor information to the picture information corresponding to the picture.
In one possible implementation, the processor is specifically configured to:
and adding the changed sensor information to the photo information corresponding to the photo.
In one possible implementation, the processor is specifically configured to:
and adding the sensor information into an extension field of photo information corresponding to the photo.
In one possible implementation, the processor is specifically configured to:
and adding the sensor information to the photo information corresponding to the photo through a callback function.
In a third aspect, the present application also provides a computer storage medium having a computer program stored thereon, which when executed by a processor, performs the steps of the method of the first aspect.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic diagram of a method for storing photo information according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a coordinate axis of an apparatus sensor according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of photo information according to an embodiment of the present invention;
fig. 4A is a schematic diagram illustrating a manner of adding an extension field according to an embodiment of the present invention;
fig. 4B is a schematic diagram illustrating another manner of adding an extension field according to an embodiment of the present invention;
FIG. 5 is a flowchart of a method for post-processing photo information according to an embodiment of the present invention;
fig. 6 is a schematic diagram of an apparatus for storing photo information according to an embodiment of the present invention;
fig. 7 is a schematic diagram of another apparatus for storing photo information according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Some of the words that appear in the text are explained below:
1. the "terminal device" referred to in the embodiments of the present invention refers to a computer device that can be used in a mobile environment, that is, a mobile phone, a tablet, and the like.
2. The "listener" referred to in the embodiments of the present invention refers to a listening function, i.e., a registrar listener, which is used to monitor changes of the device sensor and perform corresponding operations.
3. In the embodiment of the present application, the term "and/or" describes an association relationship of associated objects, and means that there may be three relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
4. The callback function referred by the embodiment of the invention is a function called by a function pointer and used for acquiring the sensor information.
5. Embodiments of the present invention are directed to a "sensor manager" for managing device sensors and creating a wide variety of device sensors.
6. The sensor precision refers to the sampling frequency of the equipment sensor, is the reciprocal of response time, and one of important technical indexes of the equipment sensor reflects the response speed of the equipment sensor to signals, and the larger the numerical value is, the faster the response speed is.
The embodiments of the present invention will be described in further detail with reference to the drawings attached hereto.
As shown in fig. 1, an embodiment of the present invention provides a method for storing photo information, which specifically includes the following steps:
and 102, the terminal equipment adds the sensor information to the photo information corresponding to the photo.
Through the scheme, the photo is shot through the camera according to the terminal equipment, the sensor information of the equipment sensor is collected in real time in the shooting process, the collected sensor information is added into the photo information corresponding to the photo, the content of the photo information is increased, the limitation of the photo information is reduced, and meanwhile the sensor information can be conveniently checked and called in the later stage.
The device sensors include, but are not limited to, some or all of the following sensors:
the sensor comprises a gyroscope sensor, an acceleration sensor, a magnetic resistance sensor, a direction sensor, a pressure sensor, a temperature sensor and a light sensor.
In practice, there are many ways for the terminal device to determine the sensor information of the device sensor when taking the picture, and one way is listed below:
first, a sensor manager is created.
The terminal equipment establishes a sensor manager through a sensorMange interface, obtains all sensor lists from the sensor manager, and can determine the types of equipment sensors arranged in the equipment, wherein specific codes are as follows:
SensorMange sm=(SensorManager).getSystemService(SENSOR_SERVICE)。
and secondly, registering a monitor for the specific equipment sensor.
The listener, i.e., the listening function, registers the listening function to monitor the device sensor for changes in sensor information.
In the embodiment of the invention, many device sensors, such as a gyroscope sensor, an acceleration sensor, a magnetoresistive sensor and the like, are involved in the process of taking a picture, and two schemes are provided when a monitor is registered for the device sensor.
Registration scheme 1, a snoop function is registered for each device sensor.
After the list of device sensors is acquired by the sensor manager, the device sensors used in the shooting process are determined, and a listener is registered for each device sensor to be used.
According to the scheme, the device sensors arranged for different devices are different, and the registration process is too complicated under the condition.
Registration scheme 2, only one snoop function is registered.
When registering a monitoring function, a parameter is predefined for judging the type of the equipment sensor, if other types of equipment sensor monitors need to be registered, the type of the equipment sensor is changed by directly changing the parameter value, and the registration of other equipment sensor monitors is realized.
Type _ origin registration listener is for example a magnetoresistive sensor, i.e.:
sm,registerListener(this,sm.getDefaultSensor(Sensor.TYPE_ORIENTATION),SensorManager.SENSOR_DELAY_FASTEST)。
the first parameter is used for judging the type of the sensor, and when the GYROSCOPE sensor monitor is registered, the sensor attribute of the first parameter value is changed into sensor.
sm,registerListener(this,sm.getDefaultSensor(Sensor.TYPE_GYROSCOPE),SensorManager.SENSOR_DELAY_FASTEST)。
And thirdly, acquiring sensor information through a callback function.
The three equipment sensors are provided with x, y and z axes, and sensor information, namely specific data of the coordinate axes, is acquired through a callback function.
As shown in FIG. 2, the acceleration sensor returns acceleration data for three axes x, y, and z, which contains the effect of gravity in m/s ^ 2. The mobile phone is horizontally placed on a desktop, the x axis is defaulted to 0, the y axis is defaulted to 0, and the z axis is defaulted to 9.81. The cell phone was placed on the desktop with the z-axis at-9.81. If the data of the acceleration sensor is changed from (0.3, 0.2, 8.7) to (1.2, 1.3, 9.5) due to hand shake in the process of taking a picture by using the mobile phone, the acceleration data in the process of taking the picture is acquired through the OnSensorChanged callback function.
In the embodiment of the present invention, the listener needs to perform a task of monitoring sensor information during shooting, but the listener does not need to monitor the sensor information any more after shooting is completed, and optionally, the registered device sensor listener may be logged out after the sensor information is acquired through a callback function, so that power consumption of the device may be reduced.
In implementation, after the sensor information is acquired through the callback function, the terminal device determines that the sensor information of at least one device sensor changes in the process of taking the picture, and adds the changed sensor information to the picture information corresponding to the picture.
Optionally, if the device sensor includes an acceleration sensor and/or a gyroscope sensor, since the acceleration sensor and the gyroscope sensor are both multi-axis sensors, after the sensor information is obtained through the callback function, the deviation may be calculated according to the change of the axis vector, and the degree of deviation of the axis vector is added to the photo information corresponding to the photo.
Taking an acceleration sensor as an example, x is 0.62, y is 2.15, z is 9.78 before photographing, sensor information when photographing is 2.25, y is 4.86, z is 8.50, and the deviation degree of the axis vector of the acceleration z axis is (9.78-8.50)/9.78-13% when looking at the z axis alone.
According to the method, the deviation value of the axial vector is directly added to the photo information corresponding to the photo, and the change of the sensor information in the photographing process is more intuitively reflected. In the shooting process, sensor information of the equipment sensors is not changed sometimes, for example, a stable bracket is used for fixing equipment, in this case, the shooting quality of the picture is high, and the picture does not need to be processed in the later period, so that the embodiment of the invention adds the changed sensor information to the picture information corresponding to the picture after the terminal determines that the sensor information of at least one equipment sensor is changed in the shooting process of the picture.
Optionally, after the sensor information is obtained through the callback function, there are many ways in which the terminal device adds the sensor information to the photo information corresponding to the photo, and the following are listed as some:
the adding mode is one, and the adding mode is directly added through a callback function.
After the terminal equipment acquires the sensor information through the callback function, the terminal equipment directly calls an exif interface in the callback function to write the sensor information into a correct position.
According to the method, the terminal equipment can directly call the exif interface after acquiring the sensor information, and the exif is a good interface, so that the sensor information acquired by the callback function can be automatically written to a correct position only by transmitting the sensor information.
And adding the second mode through other functions.
And after the terminal equipment acquires the sensor information through the callback function, storing the acquired sensor information, and then adding the sensor information to the photo information corresponding to the photo through other functions.
For example, after acquiring sensor information through a callback function in the process of taking a picture, the exif interface is called to add the sensor information to an image file data stream (writeExif) in a format when the onPictureTaken processes raw image data.
According to the method, the sensor information needs to be stored through the callback function, the exif interface is called in other functions of the main thread to write the sensor information to the correct position, and the offset needs to be calculated when the other functions in the main thread are added, so that the exif interface writing is realized.
In implementation, after the terminal device obtains the sensor information through the callback function, the sensor information needs to be saved, where there are many ways to save the sensor information, and the following list is some.
The first storage mode is as follows: added to a separate file.
After the terminal equipment acquires the sensor information through the callback function, the sensor information and other photo information are respectively stored in different files, and at this time, no extension field needs to be newly added, but the sensor information is separately stored, which is not beneficial to searching of post-processing.
And (2) a second storage mode: and adding the extension field of the photo information corresponding to the photo.
As shown in fig. 3, a common storage format when taking a photo is JEPG (Joint Photographic expert group, JEPG is an image format specified by Joint Photographic expert group), where photo information includes file header information and image data, and after a terminal device acquires sensor information through a callback function, the sensor information is added to an extension field of the photo information corresponding to the photo.
There are many ways to extend the field, and the following lists several ways:
in the extension mode 1, an extension field is added after the header information Exif.
As shown in fig. 4A, after the sensor information is acquired through the callback function, the Exifinterface interface is directly called in the callback function to add the sensor information to the extension field after the file header information.
The extension method 2 is to directly extend header information Exif and add several sets of IFDs (Image File Directory).
As shown in fig. 4B, after the sensor information is acquired by the callback function, the exif interface is called directly in the callback function to add the sensor information to the IFD extension field in the file header information.
It should be noted that the extension manner of the newly added extension field listed in the embodiment of the present invention is only an example, and any extension manner of the newly added extension field is applicable to the present invention.
In implementation, after the sensor information in the shooting process is stored in real time, the sensor information can be used for algorithm parameter adjustment in later image processing.
For example, when a photo is taken, sensor information of equipment in the shooting process is recorded together, and information such as angles, displacements, external light intensity and the like in the imaging process is recorded by using sensor information such as a gyroscope sensor, an acceleration sensor and the like of the mobile equipment, and then a newly added extension field is recorded. During the post-image processing, the shake degree during the photo taking can be judged according to the information such as the angle, the displacement and the like, and the deblurring processing can be carried out on the photo according to the shake degree.
Taking the example of deblurring a photo according to sensor information of the photo, as shown in fig. 5, the related flow operations include:
step 500: the terminal equipment determines that a new photo is added into the gallery;
step 501: the terminal equipment judges whether the photo information corresponding to the photo contains a sensor field, if so, the step 502 is executed, otherwise, the process is ended;
step 502: the terminal equipment analyzes the sensor field to obtain sensor information;
step 503: the terminal equipment judges whether the jitter degree is larger than a threshold value according to the sensor information, if so, the step 504 is executed, otherwise, the process is ended;
step 504: the photo is deblurred and the processing flag is saved to the extension field.
As shown in fig. 6, an embodiment of the present invention provides an apparatus for storing photo information, where the apparatus includes: a processor 600 and a memory 601, wherein the memory 601 stores program codes, and when one or more computer programs stored in the memory 601 are executed by the processor 600, the terminal device is caused to execute the following processes:
taking a picture through a camera; determining sensor information of an equipment sensor acquired when the picture is taken; and adding the sensor information to the photo information corresponding to the photo.
Optionally, the processor 600 is configured to:
and determining that the sensor information of at least one device sensor changes in the process of taking the picture before adding the sensor information to the picture information corresponding to the picture.
Optionally, the processor 600 is further configured to:
and adding the changed sensor information to the photo information corresponding to the photo.
Optionally, the processor 600 is further configured to:
and adding the sensor information into an extension field of photo information corresponding to the photo.
Optionally, the processor 600 is further configured to:
and adding the sensor information to the photo information corresponding to the photo through a callback function.
Based on the same concept, as shown in fig. 7, an embodiment of the present invention provides an apparatus for storing photo information, where a terminal device 700 includes: power supply 710, processor 720, memory 730, input unit 740, display unit 750, camera 760, and the like. Those skilled in the art will appreciate that the configuration of the terminal shown in fig. 7 is not intended to be limiting, and that the terminal provided by the embodiments of the present application may include more or less components than those shown, or some components may be combined, or a different arrangement of components may be provided.
The following describes the various components of the terminal 700 in detail with reference to fig. 7:
the memory 730 may be used to store software programs and modules. The processor 720 executes various functional applications and data processing of the terminal 700 by executing software programs and modules stored in the memory 730.
Alternatively, the memory 730 may mainly include a program storage area and a data storage area. The storage program area can store an operating system, various application programs (such as communication application), a face recognition module and the like; the storage data area may store data (such as various multimedia files like pictures, video files, etc., and face information templates) created according to the use of the terminal, etc.
Further, the memory 730 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 740 may be used to receive numeric or character information input by a user and generate key signal inputs related to user settings and function control of the terminal 700.
Optionally, the input unit 740 may include a touch panel 741 and other input terminals 742.
The touch panel 741, also referred to as a touch screen, may collect touch operations performed by a user on or near the touch panel 741 (for example, operations performed by the user on or near the touch panel 741 using any suitable object or accessory such as a finger or a stylus), and drive a corresponding connection device according to a preset program. Alternatively, the touch panel 741 may include two parts, namely, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 720, and can receive and execute commands sent by the processor 720. In addition, the touch panel 741 can be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave.
Optionally, the other input terminals 742 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 750 may be used to display information input by a user or information provided to the user and various menus of the terminal 700. The display unit 750 is a display system of the terminal 700, and is used for presenting an interface to implement human-computer interaction.
The display unit 750 may include a display panel 751. Alternatively, the Display panel 751 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-emitting diode (OLED), or the like.
Further, the touch panel 741 may cover the display panel 751, and when the touch panel 741 detects a touch operation on or near the touch panel 741, the touch panel transmits the touch operation to the processor 720 to determine a type of the touch event, and then the processor 720 provides a corresponding visual output on the display panel 751 according to the type of the touch event.
Although in fig. 7, the touch panel 741 and the display panel 751 are two separate components to implement the input and output functions of the terminal 700, in some embodiments, the touch panel 741 and the display panel 751 can be integrated to implement the input and output functions of the terminal 700.
The processor 720 is a control center of the terminal 700, connects various components using various interfaces and lines, and performs various functions of the terminal 700 and processes data by operating or executing software programs and/or modules stored in the memory 730 and calling data stored in the memory 730, thereby implementing various services based on the terminal.
Optionally, the processor 720 may include one or more processing units. Optionally, the processor 720 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, and the like, and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 720.
The camera 760 is configured to implement a shooting function of the terminal 700, and shoot a picture or a video. The camera 760 may also be used to implement a scanning function of the terminal 700, and scan a scanned object (two-dimensional code/barcode).
The terminal 700 also includes a power supply 710, such as a battery, for powering the various components. Optionally, the power supply 710 may be logically connected to the processor 720 through a power management system, so as to implement functions of managing charging, discharging, power consumption, and the like through the power management system.
Although not shown, the terminal 700 may further include at least one sensor, an audio circuit, and the like, which will not be described herein.
Wherein the memory 730 may store the same program code as the memory 501, which when executed by the processor 720, causes the processor 720 to implement all functions of the processor 500.
The embodiment of the present invention further provides a computer-readable non-volatile storage medium, which includes a program code, and when the program code runs on a computing terminal device, the program code is configured to enable the computing terminal device to execute the steps of the method for unlocking according to the embodiment of the present invention.
The present application is described above with reference to block diagrams and/or flowchart illustrations of methods, apparatus (systems) and/or computer program products according to embodiments of the application. It will be understood that one block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, and/or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer and/or other programmable data processing apparatus, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks.
Accordingly, the subject application may also be embodied in hardware and/or in software (including firmware, resident software, micro-code, etc.). Furthermore, the present application may take the form of a computer program product on a computer-usable or computer-readable storage medium having computer-usable or computer-readable program code embodied in the medium for use by or in connection with an instruction execution system. In the context of this application, a computer-usable or computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (10)
1. A method for storing photo information, the method comprising:
the terminal equipment takes a picture through the camera;
the terminal equipment determines the sensor information of the equipment sensor acquired when the picture is shot;
and the terminal equipment adds the sensor information to the photo information corresponding to the photo.
2. The method of claim 1, wherein the terminal device adds the sensor information to the photo information corresponding to the photo before, further comprising:
and the terminal equipment determines that the sensor information of at least one equipment sensor changes in the process of taking the picture.
3. The method of claim 2, wherein the adding, by the terminal device, the sensor information to the photo information corresponding to the photo specifically comprises:
and the terminal equipment adds the changed sensor information to the photo information corresponding to the photo.
4. The method of claim 1, wherein the adding, by the terminal device, the sensor information to the photo information corresponding to the photo specifically comprises:
and the terminal equipment adds the sensor information into an extension field of the photo information corresponding to the photo.
5. The method according to any one of claims 1 to 4, wherein the adding, by the terminal device, the sensor information to the photo information corresponding to the photo specifically includes:
and the terminal equipment adds the sensor information to the photo information corresponding to the photo through a callback function.
6. An apparatus for storing photo information, the apparatus comprising: a processor, a memory and a camera, wherein the memory stores program code that, when executed by the processor, causes the apparatus to perform the following:
taking a picture through a camera;
determining sensor information of an equipment sensor acquired when the picture is taken;
and adding the sensor information to the photo information corresponding to the photo.
7. The device of claim 6, wherein the processor is further to:
and after determining that the sensor information of at least one equipment sensor changes in the process of taking the picture, adding the sensor information to the picture information corresponding to the picture.
8. The device of claim 7, wherein the processor is specifically configured to:
and adding the changed sensor information to the photo information corresponding to the photo.
9. The device of claim 6, wherein the processor is specifically configured to:
and adding the sensor information into an extension field of photo information corresponding to the photo.
10. The apparatus of any of claims 6 to 9, wherein the processor is specifically configured to:
and adding the sensor information to the photo information corresponding to the photo through a callback function.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810997042.5A CN110875976A (en) | 2018-08-29 | 2018-08-29 | Method and equipment for storing photo information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810997042.5A CN110875976A (en) | 2018-08-29 | 2018-08-29 | Method and equipment for storing photo information |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110875976A true CN110875976A (en) | 2020-03-10 |
Family
ID=69714675
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810997042.5A Pending CN110875976A (en) | 2018-08-29 | 2018-08-29 | Method and equipment for storing photo information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110875976A (en) |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101123687A (en) * | 2006-08-11 | 2008-02-13 | 奥林巴斯映像株式会社 | Image taking apparatus and control method therefor |
US20090009613A1 (en) * | 2007-07-02 | 2009-01-08 | Asustek Computer Inc. | Method for processing images and electronic device using the same |
CN101800834A (en) * | 2010-04-13 | 2010-08-11 | 美新半导体(无锡)有限公司 | Device and method for compensating exchangeable image file information of digital image |
CN103051836A (en) * | 2012-12-14 | 2013-04-17 | 中兴通讯股份有限公司 | Anti-shake photographing method and anti-shake photographing device for mobile terminal |
CN103402056A (en) * | 2013-07-31 | 2013-11-20 | 北京阳光加信科技有限公司 | Compensation processing method and system applied to image capture device |
CN106303198A (en) * | 2015-05-29 | 2017-01-04 | 小米科技有限责任公司 | Photographing information acquisition methods and device |
CN107040722A (en) * | 2017-04-27 | 2017-08-11 | 维沃移动通信有限公司 | A kind of image pickup method and mobile terminal |
CN107566713A (en) * | 2016-06-30 | 2018-01-09 | 深圳市福云明网络科技有限公司 | Camera is improved regularly to take pictures in user walks the photographic method and device of quality |
CN107770446A (en) * | 2017-10-31 | 2018-03-06 | 广东欧珀移动通信有限公司 | Image processing method, device, computer-readable recording medium and electronic equipment |
CN107809590A (en) * | 2017-11-08 | 2018-03-16 | 青岛海信移动通信技术股份有限公司 | A kind of photographic method and device |
CN108270964A (en) * | 2017-12-24 | 2018-07-10 | 湛江正信科技服务有限公司 | Method, apparatus, mobile terminal and the storage medium for stabilization of taking pictures |
-
2018
- 2018-08-29 CN CN201810997042.5A patent/CN110875976A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101123687A (en) * | 2006-08-11 | 2008-02-13 | 奥林巴斯映像株式会社 | Image taking apparatus and control method therefor |
US20090009613A1 (en) * | 2007-07-02 | 2009-01-08 | Asustek Computer Inc. | Method for processing images and electronic device using the same |
CN101800834A (en) * | 2010-04-13 | 2010-08-11 | 美新半导体(无锡)有限公司 | Device and method for compensating exchangeable image file information of digital image |
CN103051836A (en) * | 2012-12-14 | 2013-04-17 | 中兴通讯股份有限公司 | Anti-shake photographing method and anti-shake photographing device for mobile terminal |
CN103402056A (en) * | 2013-07-31 | 2013-11-20 | 北京阳光加信科技有限公司 | Compensation processing method and system applied to image capture device |
CN106303198A (en) * | 2015-05-29 | 2017-01-04 | 小米科技有限责任公司 | Photographing information acquisition methods and device |
CN107566713A (en) * | 2016-06-30 | 2018-01-09 | 深圳市福云明网络科技有限公司 | Camera is improved regularly to take pictures in user walks the photographic method and device of quality |
CN107040722A (en) * | 2017-04-27 | 2017-08-11 | 维沃移动通信有限公司 | A kind of image pickup method and mobile terminal |
CN107770446A (en) * | 2017-10-31 | 2018-03-06 | 广东欧珀移动通信有限公司 | Image processing method, device, computer-readable recording medium and electronic equipment |
CN107809590A (en) * | 2017-11-08 | 2018-03-16 | 青岛海信移动通信技术股份有限公司 | A kind of photographic method and device |
CN108270964A (en) * | 2017-12-24 | 2018-07-10 | 湛江正信科技服务有限公司 | Method, apparatus, mobile terminal and the storage medium for stabilization of taking pictures |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108737739B (en) | Preview picture acquisition method, preview picture acquisition device and electronic equipment | |
JP2021518087A (en) | Image correction methods, image correction devices, and electronic devices | |
CN111090687B (en) | Data processing method, device and system and computer readable storage medium | |
CN110059686B (en) | Character recognition method, device, equipment and readable storage medium | |
CN108322663B (en) | Photographing method, device, terminal and storage medium | |
CN113473074B (en) | Detection method, electronic equipment, detection equipment and storage medium | |
CN111897525A (en) | Big data processing method and system | |
CN111752817A (en) | Method, device and equipment for determining page loading duration and storage medium | |
WO2022156598A1 (en) | Bluetooth connection method and apparatus, and electronic device | |
CN110990341A (en) | Method, device, electronic equipment and medium for clearing data | |
CN109684123B (en) | Problem resource positioning method, device, terminal and storage medium | |
CN111259441B (en) | Device control method, device, storage medium and electronic device | |
CN110765182B (en) | Data statistical method and device, electronic equipment and storage medium | |
CN109302563B (en) | Anti-shake processing method and device, storage medium and mobile terminal | |
CN108345657B (en) | Picture screening method and mobile terminal | |
JP7413546B2 (en) | Photography method and electronic equipment | |
WO2018219304A1 (en) | Picture processing method and apparatus, computer readable storage medium, and electronic device | |
EP4027252A1 (en) | Picture search method and device | |
WO2023179440A1 (en) | Shooting apparatus control method and apparatus, shooting apparatus and electronic device | |
CN114168369A (en) | Log display method, device, equipment and storage medium | |
CN112181915A (en) | Method, device, terminal and storage medium for executing service | |
CN110875976A (en) | Method and equipment for storing photo information | |
CN112597417B (en) | Page updating method and device, electronic equipment and storage medium | |
CN111766918B (en) | Folding screen posture detection method and device, electronic equipment and computer readable storage medium | |
CN116244299A (en) | Method, device, electronic equipment and medium for determining service data path |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200310 |