WO2013182081A1 - 确定可拍摄张数的方法及摄像装置 - Google Patents

确定可拍摄张数的方法及摄像装置 Download PDF

Info

Publication number
WO2013182081A1
WO2013182081A1 PCT/CN2013/076983 CN2013076983W WO2013182081A1 WO 2013182081 A1 WO2013182081 A1 WO 2013182081A1 CN 2013076983 W CN2013076983 W CN 2013076983W WO 2013182081 A1 WO2013182081 A1 WO 2013182081A1
Authority
WO
WIPO (PCT)
Prior art keywords
shooting mode
current shooting
photos
taken
photo
Prior art date
Application number
PCT/CN2013/076983
Other languages
English (en)
French (fr)
Inventor
李铁
林荣秋
陈国栋
Original Assignee
华为终端有限公司
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 华为终端有限公司 filed Critical 华为终端有限公司
Priority to EP13800507.9A priority Critical patent/EP2713604A4/en
Publication of WO2013182081A1 publication Critical patent/WO2013182081A1/zh
Priority to US14/142,264 priority patent/US9191564B2/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/765Interface circuits between an apparatus for recording and another apparatus
    • H04N5/77Interface circuits between an apparatus for recording and another apparatus between a recording apparatus and a television camera
    • H04N5/772Interface circuits between an apparatus for recording and another apparatus between a recording apparatus and a television camera the recording apparatus and the television camera being placed in the same enclosure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/667Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/21Intermediate information storage
    • H04N1/2104Intermediate information storage for one or a few pictures
    • H04N1/2112Intermediate information storage for one or a few pictures using still video cameras
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/21Intermediate information storage
    • H04N1/2104Intermediate information storage for one or a few pictures
    • H04N1/2112Intermediate information storage for one or a few pictures using still video cameras
    • H04N1/2116Picture signal recording combined with imagewise recording, e.g. photographic recording
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N2101/00Still video cameras
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N2201/00Indexing scheme relating to scanning, transmission or reproduction of documents or the like, and to details thereof
    • H04N2201/21Intermediate information storage
    • H04N2201/212Selecting different recording or reproducing modes, e.g. high or low resolution, field or frame
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N2201/00Indexing scheme relating to scanning, transmission or reproduction of documents or the like, and to details thereof
    • H04N2201/21Intermediate information storage
    • H04N2201/214Checking or indicating the storage space

Definitions

  • the present invention relates to image technology, and more particularly to a method and an image pickup apparatus for determining the number of photographable sheets.
  • BACKGROUND OF THE INVENTION Displaying the number of photographable sheets is a technique that is often used in an image pickup apparatus, that is, how many photographs can be taken to a user at the time of photographing.
  • the size P of the space required for each photo is different in different shooting modes. Therefore, how to obtain the size P of the space required for each photo in different shooting modes becomes a problem in determining the number of shots that can be taken at present.
  • the size p of the space required for each photo is estimated in advance according to the image parameters set in each shooting mode, and then the shooting mode and the shooting are taken.
  • the present invention provides a method and an image pickup apparatus for determining the number of photographable sheets for improving the accuracy of the determined number of photographable sheets.
  • a method for determining the number of shots that can be taken includes:
  • the average size of the photos before the current shooting mode is the storage space occupied by the photos taken before the current shooting mode and the current shooting according to the current shooting mode. The number of shots taken before the photo was taken in the mode;
  • the number of photos that can be taken before the current shooting in the current shooting mode is determined.
  • Another aspect provides a photographing apparatus, including:
  • a mode determining module configured to determine a current shooting mode
  • the acquisition module is configured to obtain an average value of the photos before the current photographing mode, wherein the average photo size before the photographing in the current shooting mode is occupied according to the photograph taken before the photographing in the current shooting mode.
  • the storage space is calculated from the number of shots taken before the photo was taken in the current shooting mode;
  • the number-of-sheet determination module is configured to determine the number of photos that can be taken before the current photographing in the current shooting mode according to the current available storage space and the average value of the photos before the photographing in the current shooting mode.
  • the method for determining the number of shots that can be taken on the one hand determining the current shooting mode, obtaining the average value of the photo size in the current shooting mode after determining the current shooting mode, and then determining the recordable according to the current available storage space and the average value of the photo size.
  • the method provided by the present invention uses the storage space occupied by the photograph taken in the current shooting mode and the average of the photo size calculated by the number of photographs taken in the current shooting mode, instead of using pre-estimation and preset
  • the size of the space required for each photo determine the number of photos that can be taken, improve the accuracy of the number of photos that can be taken.
  • the camera is provided, the current shooting mode is determined, and the current shooting mode is determined. After that, get the average of the photo size in the current shooting mode, and then according to the current
  • the storage space and the photo size average determine the number of shots that can be taken.
  • the average photo size is calculated based on the storage space occupied by the photographed photos in the current shooting mode and the number of photographs taken in the current shooting mode.
  • the photographing device provided by the present invention is used by Instead of using the size of the space required for each photo estimated and preset in advance, the storage space occupied by the captured photo in the current shooting mode and the number of shots taken in the current shooting mode are determined in real time. The number of sheets that can be taken is increased, and the accuracy of the number of sheets of the photographs that can be taken is improved.
  • BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. The drawings are some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any inventive labor.
  • FIG. 1 is a flowchart of a method for determining the number of shots that can be taken according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for determining a number of recordable shots according to another embodiment of the present invention
  • FIG. 3 is a flowchart of a method for determining the number of shots that can be taken according to another embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a photographing apparatus according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a photographing apparatus according to another embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of a photographing apparatus according to another embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for determining the number of possible shots according to an embodiment of the present invention. As shown in FIG. 1, the method in this embodiment includes:
  • Step 101 Determine a current shooting mode.
  • the execution subject of the embodiment may be a photographing device, and the photographing device may be any device having a photographing function, such as a digital camera, a video camera, a mobile phone having a photographing function, or the like.
  • the shooting mode As the shooting function of the camera becomes more and more powerful, the shooting mode is more and more, the user is shooting The quality requirements of the photos are also getting higher and higher.
  • the quality of a photo is determined by a variety of factors, such as resolution, compression ratio, effect, and so on.
  • factors affecting the quality of the photo constitutes different shooting modes.
  • factors affecting photo quality including resolution, compression ratio, and effect, 4 ⁇ have m resolutions, n compression ratios, and k effects. These factors superimpose each other to form m*n*p shooting modes.
  • each shooting mode corresponds to a combination of resolution, compression ratio and effect.
  • the current shooting mode When the user takes a picture with the camera, it is necessary to select the currently used shooting mode (referred to as the current shooting mode). Among them, the user can select the current shooting mode by manual operation. Or, the user does not select the shooting mode, which means that the shooting mode currently saved by the camera is used as the current shooting mode. The camera can determine the current shooting mode.
  • Step 102 Obtain an average value of a photo size before the current photographing in the current shooting mode, where the average photo size is based on the storage space occupied by the photograph taken before the photographing in the current shooting mode and before the photographing in the current shooting mode. The number of shots taken has been calculated.
  • the photographing device After determining the current shooting mode, acquires the average of the photo size before the current photographing in the current shooting mode, so as to determine the number of photographs that can be taken before the photographing.
  • the average size of the photos before the current photo in the current shooting mode indicates the average storage space required for each photo before the current shooting mode.
  • the average value of the photo size before the current photographing in each shooting mode may be determined by the photographing device according to the storage space occupied by the photographed photograph before the photographing in the photographing mode, and before the photographing in the photographing mode.
  • the number of shots taken is calculated.
  • the photographing device can use the storage space occupied by the photographed photos before the photographing in the photographing mode, divided by the number of photographs taken before the photographing in the photographing mode, and obtain the photographs before the photographing in the photographing mode.
  • Average size For the average size of the photos before the current shooting in the current shooting mode, the storage space occupied by the shooting photos before the current shooting in the current shooting mode can be divided by the shooting photos taken before the current shooting mode in the current shooting mode. The number of sheets obtained.
  • the average size of the photos before the photo taking in each shooting mode and the storage space occupied by the photographed photos before the photographing in each shooting mode and the number of photographs taken before the photographing in each shooting mode Therefore, the average photo size in different shooting modes may not be the same.
  • the average size of the photos before the photo taking in each shooting mode changes with the number of shots of the photographed photos, which can reflect in real time the space required for each photo before the photographing in the shooting mode. The average value, therefore, the photo taken before the photo was taken in this shooting mode
  • the storage space used and the average of the size of the photos taken before the photo taken in this shooting mode determine the number of photos that can be taken before the photo is taken in this shooting mode, which is helpful to improve the determination. The accuracy of the number of sheets that can be taken.
  • the average value of the photos before the current photographing in the current shooting mode can be pre-calculated and stored by the photographing device. Then, the photographing device obtains an average value of the photos before the current photographing mode, and specifically obtains an average value of the photographs before the photographing in the current photographing mode stored in advance in the storage space.
  • the average value of the photo size in the current shooting mode may be the storage space occupied by the photographing device according to the photograph taken before the photographing in the current shooting mode, and the photograph taken before the photographing in the current shooting mode. The number is calculated in real time.
  • Step 103 Determine the number of photos that can be taken before the photo is taken in the current shooting mode according to the current available storage space and the average value of the photos before the current photographing mode.
  • the photographing device can determine the average value of the photos before the photographing according to the currently available storage space and the acquired current shooting mode, and determine that the photograph is before the photographing.
  • the photographing device can know the size of the storage space currently available to itself.
  • the camera can access its storage space through its internal interface to obtain the size of the available storage space.
  • the photographing device can record the usage of its storage space, and obtain available storage space according to the usage of the recorded storage space and the total capacity of the storage space.
  • each shooting mode shares the storage space of the camera.
  • the photographing device determines the number of photographs that can be taken before the photograph is taken in the current photographing mode, and can be displayed to the user so that the user can know how many photographs can be taken.
  • the photographing apparatus determines the current photographing mode, and after determining the current photographing mode, obtains an average value of the photograph size before the photographing in the current photographing mode, and then determines the average value of the currently available storage space and the acquired photograph size.
  • the number of shots that can be taken before the photo is taken, solves the problem of determining the number of shots that can be taken.
  • the present embodiment uses the storage space occupied by the photograph taken before the photographing in the current photographing mode and the photograph size average calculated by the number of photographs taken before the photographing in the current photographing mode, instead of Use each of the pre-estimated and preset photos
  • the size of the photo the average size of the photo will change with the number of shots taken, and can reflect the size of the space required for each photo before the photo in the current shooting mode, so that the photo can be determined.
  • the number of sheets is closer to reality, and the accuracy of the number of sheets of photographs that can be taken is improved.
  • the average size of the photos calculated by the storage space occupied by the photograph taken before the photographing in the current shooting mode and the number of photographs taken before the photographing in the current shooting mode are used.
  • some practical factors such as the hardware and performance of a similar camera are taken into consideration, and will vary depending on the number of shots of the photograph taken, and the shooting mode is set in the prior art.
  • the image parameters are estimated to be more accurate than the values estimated, improving the accuracy of the determined number of shots that can be taken.
  • FIG. 2 is a flowchart of a method for determining the number of shots that can be taken according to another embodiment of the present invention. This embodiment can be implemented based on the embodiment shown in Fig. 1. As shown in FIG. 2, the method in this embodiment further includes after step 103:
  • Step 104 After performing the photographing in the current shooting mode, according to the storage space occupied by the photograph taken after the photographing and the number of photographs taken after the photographing, the average value of the photographs before the photographing is updated, and obtained The average size of the photos before the next photo taken in the current shooting mode.
  • the photographing device can display the determined number of sheets to the user, so that the user can take a photo.
  • the present embodiment is not limited to the order in which the photographing apparatus determines the processing procedure of the number of photographable photographs before the photographing in the current photographing mode and the photographing operation in the current photographing mode.
  • the processing by the photographing apparatus to determine the number of photographs that can be taken before the photographing in the current photographing mode and the photographing of the photographing in the current photographing mode can be simultaneously performed.
  • the photographing device can determine the number of photographs that can be taken before the photographing in the current photographing mode, and then perform the photographing operation in the current photographing mode.
  • the preferred effect is that the number of photos that can be taken before the photo is taken in the current shooting mode can be seen at the same time as or before the current shooting mode is performed in the current shooting mode. .
  • the storage space occupied by the photographed photos after the photographing in the current shooting mode can be acquired, and the photographing has been taken after the photographing in the current shooting mode.
  • the number of photos may take only one photo, or multiple photos may be taken in succession. If you take only one photo at a time, the camera can Add 1 to the number of photos taken before the photo is taken in the current shooting mode to get the number of taken photos after the current shooting in the current shooting mode, and store the photos taken before the current shooting mode.
  • the space is added to the storage space occupied by the photos taken in this photo in the current shooting mode, and the storage space occupied by the photographs taken after the current photographing in the current shooting mode is obtained.
  • the shooting device can add the number of shots taken before the current photographing mode to the number of shots taken in the current shooting mode.
  • the storage space occupied by the photos taken before the photo is added to the storage space occupied by the X photos taken in the current shooting mode, and the captured photos are taken after the current shooting mode is taken. Storage space.
  • the photographing device can acquire the storage space occupied by the photograph taken by the photographing. Also, the number of shots of the photograph taken before the current photographing in the current shooting mode is stored on the photographing device.
  • step 104 The photographing device updates the average value of the photograph size in the current photographing mode according to formula (1).
  • Vad ( Vas*num+Vac ) I ( num+1 ) ( 1 )
  • Vad represents the average value of the photo size corresponding to the k+1th photo in the current shooting mode
  • Vas represents the average value of the photo size before the kth photo in the current shooting mode
  • Vac represents the kth photo in the current shooting mode.
  • the storage space occupied by the captured photos, num indicates the number of photos taken before the kth photo in the current shooting mode.
  • (Vas*num+Vac) indicates the storage space occupied by the photograph taken before the k+1th photograph in the current shooting mode, that is, the storage space occupied by the photograph taken after the kth photograph in the current shooting mode;
  • Num+1 indicates the number of shots taken before the k+1th shot in the current shooting mode, that is, the number of shots taken after the kth shot in the current shooting mode.
  • the photo is taken with the kth photo, and the k+1th photo shows the next photo of the photo.
  • the photographing device needs to save two parameters of the number of photographs taken before the k+1th photograph in the current photographing mode and the average photograph size corresponding to the k+1th photograph.
  • Vas in formula (1) is the initial value of the preset photo size, and num is 0, then the calculated Vad is actually the kth time in the current shooting mode.
  • the photographing device can be based on the stored current shooting mode.
  • the number of photos taken before the photo was taken and the average size of the photos before the photo was taken in the current shooting mode and the storage space occupied by the photos taken in this photo, and the current shooting mode was calculated after the photo was taken.
  • the storage space occupied by the photographs is simple to calculate, easy to implement, and requires less stored parameter information, which is conducive to saving storage space.
  • the average value of the photos before the current photographing in the current shooting mode is updated, and the average value of the photographs before the next photographing of the photographing is obtained, so that Determine the number of photos that can be taken before the next photo taken in this shooting mode, so that the average size of the photos before each photographing in the shooting mode changes in real time as the number of photographs taken increases. It is beneficial to improve the accuracy of the number of sheets that can be taken before each photo taken.
  • the method in this embodiment actually counts the average value of the storage space occupied by the photos taken in the current shooting mode, and then determines the number of photos that can be taken according to the statistical average value and the currently available storage space, The amount of space required for each photo to be preset for each shooting mode solves the problem of the size of the space required to preset each photo for each shooting mode.
  • step 102: obtaining an average value of the photo size before the current photographing in the current shooting mode may include:
  • Step 1021 Acquire a first index value corresponding to the current shooting mode according to the current shooting mode.
  • each shooting mode uniquely corresponds to one index value.
  • its corresponding index value is the first index value.
  • the first index value corresponding to the current shooting mode may be generated according to the current shooting mode.
  • the implementation manner of the first index value generated by the imaging device according to the current shooting mode may be various, for example, one or more of the resolution, the compression ratio, the effect, and the like in the current shooting mode may be used according to a certain generation algorithm. , generates a unique index value.
  • the photographing device may directly obtain a pre-stored first index value corresponding to the current shooting mode after the current shooting mode is determined.
  • Step 1022 Determine whether the first index value exists in the first correspondence relationship table; when the determination result is yes, that is, if the existence is yes, step 1023 is performed; when the determination result is no, that is, if it does not exist, step 1024 is performed.
  • a first correspondence table is established on the photographing device.
  • the first correspondence table is configured to store a correspondence between the first index value and an average value of the photos before the current photographing in the current shooting mode. More specifically, the first correspondence table is configured to store a correspondence between the first index value and the average value of the photo size before the current photographing in the current photographing mode in a case where the current photographing mode has been used.
  • the fact that the current shooting mode has been used means that the shooting mode has been used. Take a photo operation.
  • the first correspondence table stores a correspondence between the first index value and the average value of the photo size before the current photographing in the current shooting mode in the form of a key value pair.
  • the key value (key) in the key-value pair represents the first index value
  • the value (Value) in the key-value pair represents the corresponding photo size average.
  • the capturing device After acquiring the first index value corresponding to the current shooting mode, the capturing device performs a search in the first correspondence table according to the first index value, and determines whether the first index value exists in the first correspondence table. If the judgment result is present, it indicates that the current shooting mode has been used for the shooting operation; if the judgment result is non-existent, it indicates that the current shooting mode has not been used before, which is the first time to take the picture using the current shooting mode.
  • Step 1023 Obtain an average value of the photos corresponding to the first index value from the first correspondence table.
  • the photographing device obtains, from the first correspondence table, an average value of the photos corresponding to the first index value, that is, the current shooting mode. The average size of the photos before taking the photo.
  • Step 1024 Acquire an initial value of the preset photo size as an average value of the photos before the current photographing in the current shooting mode, and store the first index value and the preset photo size initial value in the first correspondence table.
  • the photographing device acquires the preset photo size initial value as the current photographing mode before the photographing. Average photo size.
  • the initial value of the preset photo size may be an empirical value.
  • the same preset photo size initial value can be used for all shooting modes, so that only the initial value of the photo size can be preset once, which is advantageous for reducing the initial value of the preset photo size and improving the efficiency.
  • the average size of the photos calculated by the photographed photos taken before the photographing in the current shooting mode and the number of photographs taken before the photographing in the current shooting mode are used instead of the current one.
  • the size of the space required for each photo in the shooting mode is preset in the shooting device, so that the size of the space required for each photo in each shooting mode can be preset, and only the initial photo size needs to be preset.
  • a partial shooting mode may be used to share a preset photo size initial value, which may require preset multiple photo size initial values (the number is smaller than the total number of shooting modes).
  • the photographing device further adds the first index value and the preset photo size initial value to the first correspondence table, so as to ensure that the corresponding photo size average can be obtained when the current photographing mode is used for photographing. value. This operation is equivalent to initializing the average picture size before the first shot in the current shooting mode.
  • the user can perform the photographing operation in the current shooting mode using the photographing device. For example, the user can perform this shot by pressing the capture button or by clicking the shooting option or by tapping the touch screen.
  • Step 1022a Calculate an average value of the photos before the current photographing in the current shooting mode according to the formula (2).
  • V k- corpse V k-2 *n k-2 +a ) /n k- i ( 2 )
  • the photographing apparatus of the present embodiment can record and store the number of photographs taken before each photographing in the current photographing mode by using a counter or the like.
  • the number of photos taken before each photographing may be stored in the first correspondence table, but is not limited thereto.
  • the previous photo taken of the photo can be recorded as the k-1th photo.
  • Step 1022b Update the first correspondence table according to the average value of the photos before the current photographing in the acquired current shooting mode.
  • the operation of updating the first correspondence table is actually replacing the first correspondence table with V k
  • the above steps 1022a and 1022b can specifically perform the current shooting in the current shooting mode. After the previous photographing is performed, the steps 1022a and 1022b actually describe the average size of the photograph before the previous photograph taken according to the current photographing mode and the photograph taken by the photograph taken by the previous photograph of the photograph. The storage space, etc., the average of the photo size before the previous photo taken in the current shooting mode is updated to obtain the average value of the photo size before the current photographing in the current shooting mode.
  • FIG. 3 is a flowchart of a method for determining the number of shots that can be taken according to another embodiment of the present invention. As shown in FIG. 3, the method in this embodiment includes:
  • Step 301 Determine the current shooting mode.
  • step 101 For the description of step 101, refer to the description of step 101, and details are not described herein again.
  • Step 302 Acquire a second index value corresponding to the current shooting mode according to the current shooting mode.
  • each shooting mode uniquely corresponds to one index value.
  • the index value corresponding to the current shooting mode is the second index value.
  • the second index value corresponding to the current shooting mode may be generated according to the current shooting mode.
  • the implementation manner of the second index value generated by the imaging device according to the current shooting mode may be various, for example, one or more of the resolution, the compression ratio, the effect, and the like in the current shooting mode may be used according to a certain generation algorithm. , generates a unique index value.
  • the photographing apparatus may further directly acquire a pre-stored second index value corresponding to the current photographing mode after determining the current photographing mode.
  • Step 303 Determine whether the second index value exists in the second correspondence table. When the judgment result is yes, that is, if yes, step 304 is performed; when the judgment result is no, that is, if it does not exist, step 306 is performed.
  • a second correspondence table is established on the photographing device.
  • the second correspondence table is configured to store a second index value, a storage space occupied by the photographed photo before the current photographing in the current photographing mode, and a correspondence between the photographed photographs before the photographing in the current photographing mode. relationship. More specifically, the second correspondence table is configured to store the second index value and the storage space occupied by the photographed photos before the current photographing in the current photographing mode, and the current photographing in the case that the current photographing mode has been used.
  • the correspondence between the number of taken photos before the photo taken in the mode. The fact that the current shooting mode has been used means that the photographing operation has been performed using the shooting mode.
  • the capturing device After acquiring the second index value corresponding to the current shooting mode, the capturing device performs a search in the second correspondence table according to the second index value, and determines whether the second index value exists in the second correspondence table. If the judgment result is present, it indicates that the photographing operation has been performed using the current shooting mode; if the judgment result is non-existent, it indicates that the current shooting mode has not been photographed before. Operation, this is the first time you take a picture using the current shooting mode.
  • Step 304 Obtain, from the second correspondence table, a storage space occupied by the photographed photos corresponding to the second index value and a number of photographs of the photographs taken.
  • Step 305 Obtain an average value of the photos before the current photographing in the current shooting mode according to the storage space occupied by the acquired photographed photos and the number of photographs of the photographs that have been taken, and then perform step 307.
  • the photographing device acquires, from the second correspondence table, the storage space occupied by the photographed photo corresponding to the second index value and the sheet of the photograph taken number.
  • the storage space occupied by the photographed photo corresponding to the second index value is the storage space occupied by the photograph taken before the photographing in the current shooting mode, and the number of photographed photographs corresponding to the second index value is the current photographing mode. The number of photos taken before this photo was taken. Then, the photographing device divides the storage space occupied by the acquired photographed photo by the number of acquired photographs, and obtains the average photograph size corresponding to the photographed state in the current photographing mode.
  • Step 306 Obtain an initial value of the preset photo size as an average value of the photos before the current photographing in the current shooting mode, and then perform step 307.
  • the photographing device acquires the preset photo size initial value as the photograph size average value in the current photographing mode.
  • the preset photo size initial value may be an experience value. For a description of the initial value of the preset photo size, refer to step 1024.
  • Step 307 Determine the number of photos that can be taken before the photo is taken in the current shooting mode according to the current available storage space and the average value of the photos before the current shooting in the current shooting mode.
  • Step 307 can be referred to the description of step 103, and details are not described herein again.
  • step 302-step 305 in this embodiment can be regarded as step 102: Obtain another embodiment of the average value of the photos before the current photographing in the current shooting mode.
  • the photographing device can display the determined number of photographable photographs to the user, so that the user can take a photograph.
  • the user can perform the photographing operation in the current shooting mode using the photographing device. For example, the user can take a photo by pressing the capture button or by clicking a shooting option or by tapping the touch screen.
  • the process of determining, by the photographing device, the number of photographs that can be taken before the photographing in the current photographing mode may be performed before performing the photographing operation in the current photographing mode.
  • the storage space occupied by the photographed photos before the current photographing in the current photographing mode stored in the second correspondence table and The number of shots taken before the photo was taken in the current shooting mode can be calculated by the following steps. Specifically, before step 303, the method includes:
  • Step 303a calculate the storage space occupied by the photograph taken before the current photographing in the current shooting mode.
  • MM indicates the storage space occupied by the photograph taken before the previous photograph taken in the current photographing mode stored in the second correspondence table.
  • a indicates the storage space occupied by the photos taken in the previous shooting of this photo in the current shooting mode.
  • Step 303b Calculate the number of photographs taken before the current photographing in the current shooting mode according to the formula (4).
  • the number of shots taken before the current photographing in the current shooting mode indicates the number of photographs taken before the previous photograph of the current photographing mode stored in the second correspondence table.
  • b indicates the number of photos taken in the previous shooting of this photo in the current shooting mode. Where b > l.
  • Step 303c Update the second correspondence table according to the storage space occupied by the photograph taken before the photographing in the current shooting mode and the number of photographs taken before the photographing in the current shooting mode.
  • the updating the second correspondence table is specifically: replacing the M k _ 2 in the second correspondence table with the 13 ⁇ 4 ⁇ 2 in the second correspondence table.
  • the steps 303a and 303c may be performed after the previous photographing of the current photographing in the current photographing mode, and the steps 303a and 303c actually describe the photographing after the photographing in the current photographing mode.
  • the storage space and the number of photos taken by the previous photo taken this time respectively, the storage space occupied by the photograph taken before the previous photograph of the photograph and the photo taken before the previous photograph of the photograph.
  • the quantity is updated to obtain the storage space occupied by the photograph taken before the photographing in the current shooting mode and the number of photographs taken before the photographing in the current shooting mode.
  • the photographing device stores the photograph taken before the photographing in the current shooting mode.
  • the storage space occupied by the film and the number of photos taken before the photo is taken.
  • the storage space and the space occupied by the photo taken before the photo is taken.
  • the number of photos taken before the photo is taken, the average value of the photos before the current shooting in the current shooting mode is calculated in real time, and then the calculated average size of the photos and the currently available storage space are used to determine the current shooting mode.
  • the number of photos that can be taken before solves the problem of determining the number of photos that can be taken.
  • the average photograph size is calculated in real time, and instead of using the amount of space required for each photo that is pre-estimated and preset, the average size of the photo will change with the number of shots taken, and it will reflect the size of the space required for the photo in the current shooting mode in real time.
  • the number of sheets of photographs that can be taken is more realistic, and the accuracy of the determined number of photographs that can be taken is improved.
  • the embodiment uses the storage space occupied by the photograph taken before the photographing in the current shooting mode and the photo size calculated by the number of photographs taken before the photographing.
  • the average value replaces the size of the space required for each photo in the shooting mode preset in the photographing device in the prior art, so that the size of the space required for each photo in each shooting mode can be eliminated, and the solution is solved.
  • it is necessary to preset the size of the space required for each photo in each shooting mode, and thus solve various problems in the size of the space required to preset each photo, for example, The operation is cumbersome and inefficient.
  • the average size of the photos calculated by the storage space occupied by the photograph taken before the photographing in the current shooting mode and the number of photographs taken before the photographing is used as each photo.
  • Estimated value of the required space taking into account some practical factors such as the hardware and performance of similar cameras, and will vary with the number of shots taken, and the image parameters estimated in the shooting mode using the prior art. The value is more accurate and improves the accuracy of the determined number of shots that can be taken.
  • FIG. 4 is a schematic structural diagram of a photographing apparatus according to an embodiment of the present invention. As shown in FIG. 4, the apparatus of this embodiment includes: a mode determining module 41, an obtaining module 42 and a sheet number determining module 43.
  • the mode determining module 41 is configured to determine a current shooting mode.
  • the obtaining module 42 is connected to the mode determining module 41, and is configured to acquire an average value of the photos before the current photographing in the current shooting mode determined by the mode determining module 41, wherein the average photo size before the current photographing in the current shooting mode It is the storage space occupied by the photos taken before the photo was taken in the current shooting mode and the current shooting. In the mode, the number of shots taken before the photo was taken.
  • the number-of-sheets determining module 43 is connected to the obtaining module 42 for determining the average value of the photos before the current photographing in the current shooting mode acquired by the current available storage space and the acquiring module 42 to determine the current shooting mode before the photo shooting. The number of photos taken.
  • the photographing apparatus of the present embodiment may be various devices having a photographing function, such as a digital camera, a video camera, a mobile phone having a photographing function, a computer having a photographing function, and the like.
  • the function modules of the photographing apparatus of the present embodiment can be used to execute the method for determining the number of photographable sheets shown in FIG. 1.
  • the specific working principle is not described again. For details, refer to the description of the method embodiments.
  • the photographing apparatus of the present embodiment has, in addition to the above-described respective functional modules, a storage module, a power supply module, an interface module connected to the peripheral device, a photographing module, and the like, which are not shown in the attached drawings.
  • the mode determining module determines the current shooting mode, and after the mode determining module determines the current shooting mode, the acquiring module obtains an average value of the photos before the current photographing in the current shooting mode, and then the number determining module is The current available storage space and the average size of the photos before the current shooting in the current shooting mode determine the number of shots that can be taken before the current shooting mode, and solve the problem of determining the number of shots that can be taken.
  • the photographing apparatus of the present embodiment uses the storage space occupied by the photograph taken before the photographing in the current photographing mode and the photograph size average calculated by the number of photographs taken before the photographing in the current photographing mode, Instead of using the amount of space required for each photo that is pre-estimated and preset, the average size of the photo will change as the number of shots taken changes, reflecting the amount of space required for the photo in the current shooting mode. In order to make the determined number of photographable photographs more practical, the accuracy of the determined number of photographable photographs is improved.
  • the photographing apparatus of the embodiment uses the storage space occupied by the photograph taken before the photographing in the current shooting mode and the photograph size average calculated by the number of photographs taken before the photographing in the current photographing mode.
  • the space required for each photo some practical factors such as the hardware and performance of a similar camera are taken into consideration, and will vary depending on the number of shots of the photograph taken, and the shooting mode is set in the prior art.
  • the image parameters are estimated to be more accurate than the values estimated, improving the accuracy of the determined number of shots that can be taken.
  • FIG. 5 is a schematic structural diagram of a photographing apparatus according to another embodiment of the present invention. This embodiment is implemented based on the embodiment shown in FIG. As shown in FIG. 5, the photographing apparatus of this embodiment also includes a mode determining module 41, an obtaining module 42, and a sheet number determining module 43. In this embodiment, an optional implementation structure of the obtaining module 42 includes: a first obtaining unit 421, a first determining unit 422, and a second obtaining unit 423.
  • the first obtaining unit 421 is connected to the mode determining module 41, and is configured to obtain a first index value corresponding to the current shooting mode according to the current shooting mode determined by the mode determining module 41.
  • the first determining unit 422 is connected to the first obtaining unit 421, and is configured to determine whether the first index value acquired by the first acquiring unit 421 exists in the first correspondence table.
  • the first correspondence table is configured to store a correspondence between the first index value and an average value of the photos before the current photographing in the current shooting mode.
  • the second obtaining unit 423 is connected to the first determining unit 422, and configured to obtain, from the first correspondence table, a photo size average corresponding to the first index value when the determining result of the first determining unit 422 is present.
  • the second obtaining unit 423 is further connected to the number-of-sheets determining module 43 for providing the average number of photos corresponding to the first index value to the number-of-sheets determining module 43, that is, the average size of the photos corresponding to the current photographing mode. value.
  • the second obtaining unit 423 may obtain the preset photo size initial value as the photo size average value before the current photographing in the current shooting mode when the determination result of the first determining unit 422 is non-existent. Further, the second obtaining unit 423 may further add the first index value and the preset photo size initial value to the first correspondence table.
  • the obtaining module 42 may further include: a third obtaining unit 424 and a first updating unit 425, on the basis of the implementation structure of the obtaining module 42.
  • the third obtaining unit 424 is configured to calculate a large average value of the photo before the current photographing in the current shooting mode according to the formula (2).
  • formula (2) refer to the description in the above method embodiment.
  • the first updating unit 425 is connected to the third obtaining unit 424, and is configured to update the first correspondence table according to the average value of the photos before the current photographing in the current shooting mode calculated by the third obtaining unit 424.
  • the first updating unit 425 is connected to the first determining unit 422, and configured to provide the first determining unit 422 with the updated first correspondence table.
  • another optional implementation structure of the obtaining module 42 includes: a fourth obtaining unit 426, a second determining unit 427, a fifth obtaining unit 428, and a sixth obtaining unit 429.
  • the fourth obtaining unit 426 is connected to the mode determining module 41, and is configured to acquire a second index value corresponding to the current shooting mode according to the current shooting mode determined by the mode determining module 41. a second determining unit 427, The fourth obtaining unit 426 is connected to determine whether the second index value acquired by the fourth acquiring unit 426 exists in the second correspondence table.
  • the second correspondence table is configured to store a second index value, a correspondence between a storage space occupied by a photograph taken before the photographing in the current photographing mode, and a number of photographs taken before the photographing in the current photographing mode. .
  • the fifth obtaining unit 428 is connected to the second determining unit 427, and is configured to: when the determining result of the second determining unit 427 is present, acquire, from the second correspondence table, the storage occupied by the captured photo corresponding to the second index value. Space and the number of photos taken.
  • the sixth obtaining unit 429 is connected to the fifth obtaining unit 428, and is configured to obtain, according to the storage space occupied by the captured photo acquired by the fifth obtaining unit 428 and the number of taken photos acquired by the fifth obtaining unit 428, to obtain the current The average size of the photos before the photo was taken in shooting mode.
  • the sixth obtaining unit 429 is further connected to the number-of-sheets determining module 43 for providing the number-of-sheets determining module 43 with the average value of the photos before the current photographing in the current shooting mode.
  • the sixth obtaining unit 429 may obtain the preset photo size initial value as the photo size average value in the current shooting mode when the determination result of the second determining unit 427 is non-existent.
  • the initial value of the photo size is preset once in the photographing device, and all shooting modes use the same initial value of the photo size, but are not limited thereto.
  • the obtaining module 42 further includes: a seventh obtaining unit 430, an eighth obtaining unit 431, and a second updating unit 432.
  • the seventh obtaining unit 430 is configured to calculate, according to the formula (3), a storage space occupied by the photograph taken before the current photographing in the current shooting mode.
  • the eighth obtaining unit 431 is configured to calculate, according to the formula (4), the number of photographs taken before the photographing in the current shooting mode.
  • the second update unit 432 is connected to the seventh obtaining unit 430 and the eighth obtaining unit 431, and is configured to use, according to the current shooting mode acquired by the seventh acquiring unit 430, the storage space occupied by the photographed photo before the current photographing and the eighth obtaining unit. 431 The number of photographs taken before the photograph is taken in the current shooting mode acquired, and the second correspondence table is updated.
  • the second updating unit 432 is connected to the second determining unit 427, and configured to provide the second determining unit 427 with the updated second correspondence table.
  • the mode determining module determines the current shooting mode, and after the mode determining module determines the current shooting mode, the acquiring module acquires a large photo before the current photographing mode.
  • the small average value is then determined by the number of sheets determining module according to the current available storage space and the average value of the photos before the current shooting mode in the current shooting mode to determine the number of shots that can be taken before the current photographing mode, and the photographable sheet is solved. The number is determined.
  • the photographing apparatus of the present embodiment uses the storage space occupied by the photograph taken before the photographing in the current photographing mode and the photograph size average calculated by the number of photographs taken before the photographing in the current photographing mode, Instead of using the amount of space required for each photo that is pre-estimated and preset, the average size of the photo will change as the number of shots taken changes, reflecting the amount of space required for the photo in the current shooting mode. In order to make the determined number of photographable photographs more practical, the accuracy of the determined number of photographable photographs is improved.
  • the photographing apparatus of the embodiment uses the storage space occupied by the photograph taken before the photographing in the current photographing mode and the photograph taken before the photographing in the current photographing mode.
  • the average number of photos calculated by the number of sheets replaces the size of space required for each photo in the shooting mode preset in the photographing device, so that it is possible to preset each photo in each shooting mode.
  • the size of the required space solves the problem of determining the amount of space required for each photo in each shooting mode in the shooting device in order to determine the number of shots that can be taken, and also solves the space required to preset each photo.
  • Various problems of size such as cumbersome operation and low efficiency.
  • the photographing apparatus of the embodiment uses the storage space occupied by the photograph taken before the photographing in the current shooting mode and the photograph size average calculated by the number of photographs taken before the photographing in the current photographing mode.
  • the space required for each photo some practical factors such as the hardware and performance of a similar camera are taken into consideration, and will vary depending on the number of shots of the photograph taken, and the shooting mode is set in the prior art.
  • the image parameters are estimated to be more accurate than the values estimated, improving the accuracy of the determined number of shots that can be taken.
  • FIG. 6 is a schematic structural diagram of a photographing apparatus according to another embodiment of the present invention.
  • the photographing apparatus may include: at least one processor 61, and a memory 62 for storing executable program code.
  • the processor 61 runs a program corresponding to the executable program code by reading the executable program code stored in the memory 62, and is configured to: determine a current shooting mode, and obtain an average photo size before the current shooting in the current shooting mode.
  • the value determines the number of photos that can be taken before the photo is taken in the current shooting mode according to the current available storage space and the average value of the photos before the current shooting in the current shooting mode.
  • the average size of the photo is based on the storage space occupied by the photograph taken before the photographing in the current shooting mode and before the photographing in the current shooting mode. The number of shots taken has been calculated.
  • the processor 61 is further configured to perform, after the photographing device (specifically, the photographing module of the photographing device), the current photographing mode, after taking the photograph, according to the photo taken after the photographing.
  • the storage space and the number of photos taken after the photo is taken.
  • the average value of the photos before the current photo in the current shooting mode is updated, and the average value of the photos before the next photo taken in the current shooting mode is obtained.
  • the processor 61 may update the average value of the photos before the current photographing in the current shooting mode according to the formula (1), and obtain the next photograph of the photographed in the current shooting mode.
  • the average size of the previous photo may be updated.
  • the processor 61 is specifically configured to obtain, according to the current shooting mode, a first index value corresponding to the current shooting mode, and determine whether the first index value exists in the first correspondence relationship table. And obtaining an average value of the photos corresponding to the first index value from the first correspondence table.
  • the first correspondence table is configured to store a correspondence between the first index value and an average value of the photos before the current photographing in the current shooting mode.
  • the processor 61 may obtain the preset photo size initial value as the average value of the photos before the current photographing in the current shooting mode.
  • the processor 61 may further obtain an average value of the photos before the current photographing in the current shooting mode according to the formula (2) before determining whether the first index value exists in the first correspondence table, and according to the current current acquired
  • the first correspondence table is updated by the average of the photo size before the photographing in the shooting mode. Specifically, the operation can be performed after the previous photographing of the photographing in the current photographing mode.
  • the processor 61 is specifically configured to obtain a second index value corresponding to the current shooting mode according to the current shooting mode, and determine whether the second index value exists in the second correspondence table. Obtaining, from the second correspondence table, the storage space occupied by the photographed photo corresponding to the second index value and the number of photographs taken, according to the acquired photographed photographs. The storage space and the number of sheets of the photographs taken are obtained, and the average of the photo sizes is obtained. Specifically, the processor 61 may obtain the average of the photo size by dividing the storage space occupied by the acquired photographed photos by the number of acquired photographs taken.
  • the second correspondence table is configured to store the second index value, and the current occupied photograph mode is occupied by the photograph taken before the photographing in the current shooting mode.
  • the processor 61 may obtain the preset photo size initial value as the average value of the photos before the current photographing in the current shooting mode.
  • the initial value of the photo size is preset once in the photographing device, and all the shooting modes use the same initial value of the photo size, but are not limited thereto.
  • the processor 61 may further calculate, according to formula (3), the storage space occupied by the photograph taken before the photographing in the current shooting mode, before determining whether the second index value exists in the second correspondence table, according to the formula. (4), calculate the number of photos taken before the photo in the current shooting mode, and then according to the current shooting mode obtained, the storage space occupied by the photo taken before the photo shooting and the current shooting mode have been taken before the photo shooting. The number of sheets of the photograph is taken, and the second correspondence table is updated. Specifically, the operation can be performed after the previous photographing of the photograph in the current photographing mode.
  • the first correspondence table or the second correspondence table may be stored in the memory 62.
  • the photographing apparatus of the embodiment uses the storage space occupied by the photograph taken before the photographing in the current photographing mode and the average photograph size calculated by the number of photographs taken before the photographing in the current photographing mode, instead of the current In the technology, the size of the space required for each photo in the shooting mode is preset in the shooting device, and the average value of the photo size changes according to the number of photos taken, and the photo in the current shooting mode can be reflected in real time.
  • the size of the space required makes the determined number of photographable photographs more realistic, and improves the accuracy of the determined number of photographable photographs.
  • the photographing apparatus of the embodiment uses the storage space occupied by the photograph taken before the photographing in the current photographing mode and the photograph taken before the photographing in the current photographing mode.
  • the average number of photos calculated by the number of sheets replaces the size of space required for each photo in the shooting mode preset in the photographing device, so that it is possible to preset each photo in each shooting mode.
  • the size of the required space solves the problem of determining the amount of space required for each photo in each shooting mode in the shooting device in order to determine the number of shots that can be taken, and also solves the space required to preset each photo.
  • Various problems of size such as cumbersome operation and low efficiency.
  • the photographing apparatus of the embodiment uses the storage space occupied by the photograph taken before the photographing in the current shooting mode and the photograph size average calculated by the number of photographs taken before the photographing in the current photographing mode.
  • the storage space occupied by the photograph taken before the photographing in the current shooting mode uses the photograph size average calculated by the number of photographs taken before the photographing in the current photographing mode.
  • Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another.
  • a storage medium may be any available media that can be accessed by a computer.
  • computer readable media may comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage media or other magnetic storage device, or can be used for carrying or storing in the form of an instruction or data structure.
  • connection may suitably be a computer readable medium.
  • the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave
  • coaxial cable , fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, wireless, and microwaves are included in the fixing of the associated media.
  • a disk and a disc include a compact disc (CD), a laser disc, a disc, a digital versatile disc (DVD), a floppy disc, and a Blu-ray disc, wherein the disc is usually magnetically copied, and the disc is The laser is used to optically replicate the data. Combinations of the above should also be included within the scope of the computer readable media.
  • CD compact disc
  • DVD digital versatile disc
  • a floppy disc a digital versatile disc
  • Blu-ray disc wherein the disc is usually magnetically copied, and the disc is The laser is used to optically replicate the data.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

本发明实施例提供一种确定可拍摄张数的方法及拍摄装置。其中,方法包括:确定当前拍摄模式;获取当前拍摄模式下本次拍照之前的照片大小平均值,照片大小平均值是根据当前拍摄模式下本次拍照之前已拍摄照片占用的存储空间与当前拍摄模式下本次拍照之前已拍摄照片的张数计算出的;根据当前可用存储空间和上述照片大小平均值,确定出本次拍照之前可拍摄照片的张数。本发明技术方案使用由当前拍摄模式下已拍摄照片占用的存储空间和当前拍摄模式下已拍摄照片的张数计算出的照片大小平均值,提高了确定出的可拍摄照片的张数的精度。

Description

确定可拍摄张数的方法及摄像装置
本申请要求于 2012年 6月 8日提交中国专利局、申请号为 201210188802.0、 名称为 "确定可拍摄张数的方法及摄像装置" 的中国专利申请的优先权,其全 部内容通过引用结合在本申请中。
技术领域 本发明涉及图像技术, 尤其涉及一种确定可拍摄张数的方法及摄像装置。 背景技术 显示可拍摄张数 (即剩余张数)是在摄像装置中经常釆用的一个技术, 就 是在拍照的时候向用户显示还可以拍摄多少张照片。 目前, 确定可拍摄张数的 方法都是获取摄像装置的剩余存储空间 M, 获取当前场景下每张照片所需空 间的大小 P, 则可拍摄张数的估计值 N=M/P。 其中, 影响每张照片所需空间的 大小 P的因素 4艮多, 例如分辨率、 压缩率、 效果等等, 也就是说在不同拍摄模 式下每张照片所需空间的大小 P是不同的。 因此,如何在不同拍摄模式下获取 到每张照片所需空间的大小 P成为目前确定可拍摄张数的难题。 在现有技术中, 为了解决每张照片所需空间的大小 P的获取问题,预先根 据每种拍摄模式中设置的图像参数估计每张照片所需空间的大小 p, 然后将拍 摄模式与该拍摄模式下每张照片所需空间的大小 P 的对应关系预置到摄像装 置中, 每次在计算可拍摄张数时都使用预置的每张照片所需空间的大小 P, 但 实际拍摄出的每张照片的大小不一定与 P相同,所以计算出的可拍摄张数会存 在误差, 精度不高。 发明内容 本发明提供一种确定可拍摄张数的方法及摄像装置,用以提高确定出的可 拍摄张数的精度。 一方面提供一种确定可拍摄张数的方法, 包括:
确定当前拍摄模式;
获取当前拍摄模式下本次拍照之前的照片大小平均值, 其中, 当前拍摄模 式下本次拍照之前的照片大小平均值是根据当前拍摄模式下本次拍照之前已 拍摄照片占用的存储空间与当前拍摄模式下本次拍照之前已拍摄照片的张数 计算出的;
根据当前可用存储空间和当前拍摄模式下本次拍照之前的照片大小平均 值, 确定出当前拍摄模式下本次拍照之前可拍摄照片的张数。
另一方面提供一种拍摄装置, 包括:
模式确定模块, 用于确定当前拍摄模式;
获取模块, 用于获取当前拍摄模式下本次拍照之前的照片大小平均值, 其 中,当前拍摄模式下本次拍照之前的照片大小平均值是根据当前拍摄模式下本 次拍照之前已拍摄照片占用的存储空间与当前拍摄模式下本次拍照之前已拍 摄照片的张数计算出的;
张数确定模块,用于根据当前可用存储空间和当前拍摄模式下本次拍照之 前的照片大小平均值,确定出当前拍摄模式下本次拍照之前可拍摄照片的张数。
一方面提供的确定可拍摄张数的方法, 确定当前拍摄模式,在确定当前拍 摄模式后, 获取当前拍摄模式下照片大小平均值, 然后根据当前可用存储空间 和照片大小平均值确定出可拍摄的张数, 其中, 照片大小平均值是根据当前拍 摄模式下已拍摄照片占用的存储空间和当前拍摄模式下已拍摄照片的张数计 算出的, 会随着已拍摄照片的张数的变化而变化, 由此可见, 本发明提供的方 法使用由当前拍摄模式下已拍摄照片占用的存储空间和当前拍摄模式下已拍 摄照片的张数计算出的照片大小平均值,而不是使用预先估计并预置的每张照 片所需空间的大小,确定出可拍摄照片的张数,提高了确定出的可拍摄照片的 张数的精度 另一方面提供的拍摄装置, 确定当前拍摄模式, 在确定当前拍摄模式后, 获取当前拍摄模式下照片大小平均值,然后根据当前可用存储空间和照片大小 平均值确定出可拍摄的张数, 其中, 照片大小平均值是根据当前拍摄模式下已 拍摄照片占用的存储空间和当前拍摄模式下已拍摄照片的张数计算出的 ,会随 着已拍摄照片的张数的变化而变化, 由此可见, 本发明提供的拍摄装置使用由 当前拍摄模式下已拍摄照片占用的存储空间和当前拍摄模式下已拍摄照片的 张数实时计算出的照片大小平均值,而不是使用预先估计并预置的每张照片所 需空间的大小,确定出可拍摄照片的张数,提高了确定出的可拍摄照片的张数 的精度。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施 例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下面描 述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出 创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明一实施例提供的确定可拍摄张数的方法流程图;
图 2为本发明另一实施例提供的确定可拍摄张数的方法流程图;
图 3为本发明又一实施例提供的确定可拍摄张数的方法流程图;
图 4为本发明一实施例提供的拍摄装置的结构示意图;
图 5为本发明另一实施例提供的拍摄装置的结构示意图; 图 6为本发明又一实施例提供的拍摄装置的结构示意图。 具体实施方式 为使本发明实施例的目的、技术方案和优点更加清楚, 下面将结合本发明 实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。基于本发明中 的实施例 ,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其 他实施例, 都属于本发明保护的范围。
图 1为本发明一实施例提供的确定可拍摄张数的方法流程图。 如图 1所示, 本实施例的方法包括:
步骤 101、 确定当前拍摄模式。
本实施例的执行主体可以是拍摄装置,所述拍摄装置可以是任何具有拍摄 功能的设备, 例如数码相机、 摄像机、 具有拍照功能的手机等。
随着拍摄装置的拍摄功能的越来越强大, 拍摄模式越来越多, 用户对拍摄 照片的质量要求也越来越高。 其中, 一张照片的质量是由多种因素决定的, 例 如分辨率、 压缩率、 效果等。 其中, 影响照片质量的因素的叠加构成不同的拍 摄模式。 以影响照片质量的因素包括分辨率、 压缩率和效果为例, 4叚设有 m种 分辨率、 n种压缩率、 k种效果,这些因素相互叠加后会构成 m*n*p种拍摄模式, 每种拍摄模式对应分辨率、 压缩率和效果的一种组合。
当用户使用拍摄装置进行拍照时, 需要选定当前使用的拍摄模式 (简称为 当前拍摄模式) 。 其中, 用户可以通过手动操作来选定当前拍摄模式。 或者, 用户不进行拍摄模式的选定,这意味着使用拍摄装置当前保存的拍摄模式作为 当前拍摄模式。 拍摄装置可以确定出当前拍摄模式。
步骤 102、 获取当前拍摄模式下本次拍照之前的照片大小平均值, 所述照 片大小平均值是根据当前拍摄模式下本次拍照之前已拍摄照片占用的存储空 间和当前拍摄模式下本次拍照之前已拍摄照片的张数计算出的。
在确定当前拍摄模式后,拍摄装置获取当前拍摄模式下本次拍照之前的照 片大小平均值, 以便于确定本次拍照之前还可拍摄照片的张数。 其中, 当前拍 摄模式下本次拍照之前的照片大小平均值表示在当前拍摄模式下,本次拍照之 前每张照片需要占用的平均存储空间的大小。
在本实施例中,每个拍摄模式下本次拍照之前的照片大小平均值可以由拍 摄装置根据该拍摄模式下本次拍照之前已拍摄照片占用的存储空间和该拍摄 模式下本次拍照之前已拍摄照片的张数计算出。具体的, 拍摄装置可以用该拍 摄模式下本次拍照之前已拍摄照片占用的存储空间除以该拍摄模式下本次拍 照之前已拍摄照片的张数,获得该拍摄模式下本次拍照之前的照片大小平均值。 对于当前拍摄模式下本次拍照之前的照片大小平均值来说,也可由拍摄装置用 当前拍摄模式下本次拍照之前已拍摄照片占用的存储空间除以当前拍摄模式 下本次拍照之前已拍摄照片的张数获得。
其中,每个拍摄模式下本次拍照之前的照片大小平均值与每个拍摄模式下 本次拍照之前对应已拍摄照片占用的存储空间和每个拍摄模式下本次拍照之 前已拍摄照片的张数有关, 因此, 不同拍摄模式下的照片大小平均值可能不相 同。 另外,每个拍摄模式下本次拍照之前的照片大小平均值会随着已拍摄的照 片的张数的变化而变化,其能够实时反映该拍摄模式下本次拍照之前每张照片 所需空间大小的平均值, 因此,使用该拍摄模式下本次拍照之前已拍摄照片占 用的存储空间和该拍摄模式下本次拍照之前已拍摄照片的张数计算出的照片 大小平均值,确定出该拍摄模式下本次拍照之前还可拍摄照片的张数,有利于 提高确定出的可拍摄照片的张数的精度。
在一个可选实施方式中,当前拍摄模式下本次拍照之前的照片大小平均值 可由拍摄装置预先计算出并存储起来。则拍摄装置获取当前拍摄模式下本次拍 照之前的照片大小平均值具体为:直接从存储空间中获取预先存储的当前拍摄 模式下本次拍照之前的照片大小平均值。
在一个可选实施方式中,当前拍摄模式下的照片大小平均值可由拍摄装置 根据当前拍摄模式下本次拍照之前已拍摄照片占用的存储空间和当前拍摄模 式下本次拍照之前已拍摄照片的张数实时计算获得。
步骤 103、 根据当前可用存储空间和当前拍摄模式下本次拍照之前的照片 大小平均值, 确定出当前拍摄模式下本次拍照之前可拍摄照片的张数。
当获取到当前拍摄模式下本次拍照之前的照片大小平均值后,拍摄装置可 以根据当前可用存储空间和获取的当前拍摄模式下本次拍照之前的照片大小 平均值, 确定出本次拍照之前还可拍摄照片的张数。 具体的, 如果拍摄装置的 当前可用存储空间为 L, 当前拍摄模式下本次拍照之前的照片大小平均值 Q, 则可拍摄照片的张数 Y=L/Q。
在本实施例中, 拍摄装置可以获知自己当前可用存储空间的大小。 例如, 拍摄装置可以通过其内部接口去访问其存储空间,从而获取可用存储空间的大 小。 又例如, 拍摄装置可以记录其存储空间的使用情况, 根据记录的存储空间 的使用情况和存储空间的总容量, 获得可用存储空间。 可选的, 各拍摄模式可 共用拍摄装置的存储空间。
进一步,拍摄装置确定出当前拍摄模式下本次拍照之前还可拍摄照片的张 数后, 可以显示给用户, 以便于用户了解还能拍摄多少张照片。
在本实施例中, 拍摄装置确定当前拍摄模式, 在确定当前拍摄模式后, 获 取当前拍摄模式下本次拍照之前的照片大小平均值,然后根据当前可用存储空 间和获取的照片大小平均值确定出本次拍照之前可拍摄的张数,解决了可拍摄 张数的确定问题。 同时, 由于本实施例使用的是由当前拍摄模式下本次拍照之 前已拍摄照片占用的存储空间和当前拍摄模式下本次拍照之前已拍摄照片的 张数计算出的照片大小平均值,而不是使用预先估计并预置的每张照片所需空 间的大小, 照片大小平均值会随着已拍摄照片的张数的变化而变化, 能够实时 反映当前拍摄模式下本次拍照之前每张照片所需空间的大小,使得确定出的可 拍摄照片的张数更加切近实际, 提高了确定出的可拍摄照片的张数的精度。
进一步可选的,在本实施例中,使用由当前拍摄模式下本次拍照之前已拍 摄照片占用的存储空间和当前拍摄模式下本次拍照之前已拍摄照片的张数计 算出的照片大小平均值作为每张照片所需空间的估计值,充分考虑了类似拍摄 装置的硬件、性能等一些实际因素, 并且会随着已拍摄照片的张数的变化而变 化, 与现有技术使用拍摄模式下设置的图像参数估计出的值相比, 更加精确, 提高了确定出的可拍摄的张数的精确度。
图 2为本发明另一实施例提供的确定可拍摄张数的方法流程图。 本实施例 可基于图 1所示实施例实现。 如图 2所示, 本实施例的方法在步骤 103之后还包 括:
步骤 104、 当在当前拍摄模式下进行本次拍照后, 根据本次拍照后已拍摄 照片占用的存储空间和本次拍摄后已拍摄照片的张数更新本次拍照之前的照 片大小平均值,获得当前拍摄模式下本次拍照的下一次拍照之前的照片大小平 均值。
可选的,在确定出当前拍摄模式下本次拍照之前可拍摄照片的张数后, 拍 摄装置可以将确定出的张数显示给用户, 以便于用户进行拍照。
在此说明,本实施例对拍摄装置确定当前拍摄模式下本次拍照之前可拍摄 照片的张数的处理过程与在当前拍摄模式下进行本次拍照的操作之间的执行 顺序不做限定。例如, 拍摄装置确定当前拍摄模式下本次拍照之前可拍摄照片 的张数的处理过程与在当前拍摄模式下进行本次拍照的操作可以同时执行。优 选的,可以在拍摄装置确定当前拍摄模式下本次拍照之前可拍摄照片的张数后, 再在当前拍摄模式下进行本次拍照的操作。无论是哪一种执行顺序,从用户的 角度来说,优选的效果是在当前拍摄模式下执行本次拍照动作的同时或之前能 够看到当前拍摄模式下本次拍照之前可拍摄照片的张数。
当拍摄装置在当前拍摄模式下进行本次拍照后 ,可以获取在当前拍摄模式 下进行本次拍照后已拍摄照片占用的存储空间,并可以获取到在当前拍摄模式 下进行本次拍照后已拍摄照片的张数。 其中, 一次拍照可能只拍摄一张照片, 也可能会连续拍摄多张照片。如果一次拍照只拍摄一张照片, 则拍摄装置可以 将当前拍摄模式下本次拍照之前已拍摄照片的张数加 1得到当前拍摄模式下进 行本次拍照后的已拍摄照片的张数,将当前拍摄模式下本次拍照之前已拍摄照 片占用的存储空间与当前拍摄模式下本次拍照所拍摄的照片占用的存储空间 相加, 获得当前拍摄模式下本次拍照后已拍摄照片占用的存储空间。如果一次 拍照会连续拍摄 X张照片, 则拍摄装置可以将当前拍摄模式下本次拍照之前已 拍摄照片的张数加 X得到当前拍摄模式下进行本次拍照后的已拍摄照片的张数, 将当前拍摄模式下本次拍照之前已拍摄照片占用的存储空间与当前拍摄模式 下本次拍照所拍摄的 X张照片占用的存储空间相加, 获得当前拍摄模式下进行 本次拍照后已拍摄照片占用的存储空间。
在本实施例中,拍摄装置可以获取到本次拍照所拍摄的照片占用的存储空 间。 并且,在拍摄装置上存储有当前拍摄模式下本次拍照之前已拍摄照片的张 数。
以每次拍照仅拍摄一张照片为例, 则步骤 104的一种可选实施方式为: 拍 摄装置根据公式(1 ) , 更新当前拍摄模式下的照片大小平均值。
Vad= ( Vas*num+Vac ) I ( num+1 ) ( 1 )
其中, Vad表示当前拍摄模式下第 k+1次拍照之前对应的照片大小平均值, Vas表示当前拍摄模式下第 k次拍照之前对应的照片大小平均值, Vac表示当前 拍摄模式下第 k次拍照所拍摄的照片占用的存储空间, num表示当前拍摄模式 下第 k次拍照之前已拍摄照片的张数。 其中, ( Vas*num+Vac )表示当前拍摄 模式下第 k+1次拍照之前已拍摄照片占用的存储空间, 也就是当前拍摄模式下 进行第 k次拍照之后已拍摄照片占用的存储空间; ( num+1 )表示当前拍摄模 式下第 k+1次拍照之前已拍摄照片的张数,也就是当前拍摄模式下进行第 k次拍 照之后已拍摄照片的张数。在公式(1 )中, 用第 k次拍照代表本次拍照, 第 k+1 次拍照表示本次拍照的下一次拍照。
在上述参数信息中, 拍摄装置需要保存当前拍摄模式下第 k+1次拍照之前 已拍摄照片的张数和第 k+1次拍照之前对应的照片大小平均值两个参数。
在此说明, 如果是第一次使用当前拍摄模式进行拍照, 公式( 1 )中的 Vas 为预设照片大小初始值, num为 0 , 则计算出的 Vad实际上就是当前拍摄模式下 第 k次拍照所拍摄的照片占用的存储空间。
在上述可选实施方式中,拍摄装置可以根据所存储的当前拍摄模式下本次 拍照之前已拍摄照片的张数和所存储的当前拍摄模式下本次拍照之前的照片 大小平均值以及本次拍照所拍摄的照片占用的存储空间,计算出当前拍摄模式 下进行本次拍照之后已拍摄照片占用的存储空间, 具有计算简单, 易于实现, 且所需存储的参数信息量较少 , 有利于节约存储空间。
在本实施例中, 拍摄装置在当前拍摄模式下进行本次拍照后, 更新当前拍 摄模式下本次拍照之前的照片大小平均值,得到本次拍照的下一次拍照之前的 照片大小平均值,以便于在该拍摄模式下进行本次拍照的下一次拍照之前确定 出可拍摄照片的张数,使得该拍摄模式下每次拍照之前的照片大小平均值随着 拍摄的照片数量的增多而实时变化,有利于提高确定出的每次拍照之前还可拍 摄照片的张数的精度。 另夕卜, 本实施例的方法实际上是通过统计当前拍摄模式 下拍摄的照片占用存储空间的平均值,然后根据统计出的平均值和当前可用存 储空间确定可拍摄照片的张数的,不需要为每个拍摄模式预置每张照片所需空 间的大小, 解决了为每个拍摄模式预置每张照片所需空间的大小存在的问题。
在上述各实施例的一个可选实施方式中, 步骤 102: 获取当前拍摄模式下 本次拍照之前的照片大小平均值可以包括:
步骤 1021、 根据当前拍摄模式, 获取当前拍摄模式对应的第一索引值。 在本实施例中, 每个拍摄模式唯一对应一个索引值。 对于当前拍摄模式, 其对应的索引值为第一索引值。 可选的, 当拍摄装置确定当前拍摄模式后, 可 以根据当前拍摄模式, 生成当前拍摄模式对应的第一索引值。 其中, 拍摄装置 根据当前拍摄模式生成第一索引值的实施方式可以有多种,例如可以按照一定 的生成算法, 使用当前拍摄模式中的分辨率、 压缩率、 效果等信息中的一个或 多个, 生成一个具有唯一性的索引值。 可选的, 拍摄装置也可以在当前拍摄模 式确定后, 直接获取预先存储的与当前拍摄模式对应的第一索引值。
步骤 1022、判断第一索引值是否存在于第一对应关系表中; 当判断结果为 是,即存在时,执行步骤 1023; 当判断结果为否,即不存在时,执行步骤 1024。
在本实施例中, 拍摄装置上建立有第一对应关系表。 第一对应关系表用于 存储第一索引值与当前拍摄模式下本次拍照之前的照片大小平均值之间的对 应关系。 更为具体的说, 该第一对应关系表用于在当前拍摄模式已经使用过的 情况下,存储第一索引值与当前拍摄模式下本次拍照之前的照片大小平均值之 间的对应关系。所述当前拍摄模式已经使用过是指已经使用该拍摄模式进行过 拍照操作。在一个可选实施方式中, 该第一对应关系表以键值对的形式存储第 一索引值与当前拍摄模式下本次拍照之前的照片大小平均值之间的对应关系。 其中, 键值对中的键值 ( key )表示第一索引值, 键值对中的值(Value )表示 对应的照片大小平均值。
基于上述, 当获取当前拍摄模式对应的第一索引值后, 拍摄装置根据第一 索引值在上述第一对应关系表中进行查找,判断第一索引值是否存在于上述第 一对应关系表中。如果判断结果为存在,说明已经使用当前拍摄模式进行过拍 照操作; 如果判断结果为不存在,说明之前没有使用当前拍摄模式进行过拍照 操作, 这是第一次使用当前拍摄模式进行拍照。
步骤 1023、从第一对应关系表中,获取第一索引值对应的照片大小平均值。 当判断出第一索引值存在于上述第一对应关系表中时,拍摄装置从上述第 一对应关系表中, 获取与第一索引值对应的照片大小平均值, 即为当前拍摄模 式下本次拍照之前的照片大小平均值。
步骤 1024、获取预设照片大小初始值作为当前拍摄模式下本次拍照之前的 照片大小平均值,并将第一索引值和预设照片大小初始值存储到第一对应关系 表中。
当判断出第一索引值不存在于上述第一对应关系表中时,说明第一次使用 当前拍摄模式进行拍照 ,则拍摄装置获取预设照片大小初始值作为当前拍摄模 式下本次拍照之前的照片大小平均值。 其中,预设照片大小初始值可以是一经 验值。
在一个优选实施方式中,所有拍摄模式可以使用同一个预设照片大小初始 值, 这样只需预置一次照片大小初始值即可,有利于减少预置照片大小初始值 的操作, 提高效率。 在该优选实施方式中, 使用由当前拍摄模式下本次拍照之 前已拍摄照片占用的存储空间和当前拍摄模式下本次拍照之前已拍摄照片的 张数计算出的照片大小平均值,代替了现有技术中预置在拍摄装置中该拍摄模 式下的每张照片所需空间的大小 ,使得可以不用预置每种拍摄模式下每张照片 所需空间的大小, 只需要预置一次照片大小初始值即可, 解决了为确定可拍摄 张数需要在拍摄装置中预置每种拍摄模式下每张照片所需空间的大小的问题, 也就解决了预置每张照片所需空间的大小存在的各种问题, 例如操作繁瑣、效 率低等。 除上述优选实施方式外,还可以釆用部分拍摄模式共用一个预设照片大小 初始值的方式, 这样可能需要预置多个照片大小初始值(个数小于拍摄模式的 总数)。另外,还可以釆用每个拍摄模式单独使用一个照片大小初始值的方式。
另夕卜,拍摄装置还要将第一索引值和预设照片大小初始值添加到上述第一 对应关系表中, 这样可以保证后续使用当前拍摄模式进行拍照时, 能够获取到 对应的照片大小平均值。 该操作相当于对当前拍摄模式下第 1次拍照之前的照 片大小平均值进行初始化。
进一步, 用户可以使用拍摄装置在当前拍摄模式下进行本次拍照操作。 例 如,用户可以通过按下拍摄按钮或点击拍摄选项或点击触屏等方式进行本次拍 照。
在上述步骤 102的可选实施方式中, 在第一对应关系表中存在第一索引值 的情况下,第一对应关系表中存储的当前拍摄模式下本次拍照之前对应的照片 大小平均值, 可由通过以下步骤计算获得。 具体的, 在步骤 1022之前包括: 步骤 1022a、 根据公式(2 ) , 计算当前拍摄模式下本次拍照之前的照片大 小平均值。
Vk-尸 ( Vk-2*nk-2+a ) /nk-i ( 2 )
其中, 表示当前拍摄模式下本次拍照之前的照片大小平均值。 表 示第一对应关系表中存储的当前拍摄模式下本次拍照的前一次拍照之前的照 片大小平均值。 a表示当前拍摄模式下本次拍照的前一次拍照所拍摄的照片占 用的存储空间。 表示当前拍摄模式下本次拍照之前已拍摄照片的张数。 表示当前拍摄模式下本次拍照的前一次拍照之前已拍摄照片的张数。 另外, 本 实施例的拍摄装置可以釆用计数器等方式,记录并存储当前拍摄模式下每次拍 照之前已拍摄照片的张数。可选的,每次拍照之前已拍摄照片的张数可以存储 在第一对应关系表中, 但不限于此。
在此说明, 如果本次拍照为第 k次拍照, 则本次拍照的前一次拍照可以记 为第 k-1次拍照。
步骤 1022b、 根据获取的当前拍摄模式下本次拍照之前的照片大小平均值 更新第一对应关系表。所述更新第一对应关系表的操作实际上是将第一对应关 系表中的 替换为 Vk
其中,上述步骤 1022a和步骤 1022b具体可以在当前拍摄模式下进行本次拍 照的前一次拍照之后执行,则步骤 1022a和步骤 1022b实际描述的是根据当前拍 摄模式下本次拍照的前一次拍照之前的照片大小平均值和本次拍照的前一次 拍照所拍摄的照片占用的存储空间等,对当前拍摄模式下本次拍照的前一次拍 照之前的照片大小平均值进行更新获得当前拍摄模式下本次拍照之前的照片 大小平均值的过程。
图 3为本发明又一实施例提供的确定可拍摄张数的方法流程图。如图 3所示, 本实施例的方法包括:
步骤 301、 确定当前拍摄模式。
步骤 301可参见步骤 101的描述, 在此不再赘述。
步骤 302、 根据当前拍摄模式, 获取当前拍摄模式对应的第二索引值。
在本实施例中, 每个拍摄模式唯一对应一个索引值。 在本实施例中, 当前 拍摄模式对应的索引值为第二索引值。 可选的, 当拍摄装置确定当前拍摄模式 后, 可以才艮据当前拍摄模式, 生成当前拍摄模式对应的第二索引值。 其中, 拍 摄装置根据当前拍摄模式生成第二索引值的实施方式可以有多种,例如可以按 照一定的生成算法, 使用当前拍摄模式中的分辨率、 压缩率、 效果等信息中的 一个或多个, 生成一个具有唯一性的索引值。 可选的, 拍摄装置还可以在确定 当前拍摄模式后, 直接获取预先存储的与当前拍摄模式对应的第二索引值。
步骤 303、 判断第二索引值是否存在于第二对应关系表中, 当判断结果为 是, 即存在时, 执行步骤 304; 当判断结果为否, 即不存在时, 执行步骤 306。
在本实施例中, 拍摄装置上建立有第二对应关系表。该第二对应关系表用 于存储第二索引值、当前拍摄模式下本次拍照之前的已拍摄照片占用的存储空 间、 当前拍摄模式下本次拍照之前的已拍摄照片的张数之间的对应关系。 更为 具体的说, 该第二对应关系表用于在当前拍摄模式已经使用过的情况下,存储 第二索引值与当前拍摄模式下本次拍照之前的已拍摄照片占用的存储空间、当 前拍摄模式下本次拍照之前的已拍摄照片的张数之间的对应关系。所述当前拍 摄模式已经使用过是指已经使用该拍摄模式进行过拍照操作。
基于上述, 当获取当前拍摄模式对应的第二索引值后, 拍摄装置根据第二 索引值在上述第二对应关系表中进行查找,判断第二索引值是否存在于上述第 二对应关系表中。如果判断结果为存在,说明已经使用当前拍摄模式进行过拍 照操作; 如果判断结果为不存在,说明之前没有使用当前拍摄模式进行过拍照 操作, 这是第一次使用当前拍摄模式进行拍照。
步骤 304、 从第二对应关系表中, 获取第二索引值对应的已拍摄照片占用 的存储空间和已拍摄照片的张数。
步骤 305、 根据所获取的已拍摄照片占用的存储空间和所获取的已拍摄照 片的张数, 获得当前拍摄模式下本次拍照之前的照片大小平均值, 然后执行步 骤 307。
当判断出第二索引值存在于上述第二对应关系表中时,拍摄装置从上述第 二对应关系表中,获取与第二索引值对应的已拍摄照片占用的存储空间和已拍 摄照片的张数。其中, 第二索引值对应的已拍摄照片占用的存储空间也就是当 前拍摄模式下本次拍照之前已拍摄照片占用的存储空间,第二索引值对应的已 拍摄照片的张数也就是当前拍摄模式下本次拍照之前已拍摄照片的张数。然后, 拍摄装置用所获取的已拍摄照片占用的存储空间除以所获取的已拍摄照片的 张数, 获得当前拍摄模式下本次拍照之前对应的照片大小平均值。
步骤 306、 获取预设照片大小初始值作为当前拍摄模式下本次拍照之前的 照片大小平均值, 然后执行步骤 307。
当判断出第二索引值不存在于上述第二对应关系表中时,说明第一次使用 当前拍摄模式进行拍照 ,则拍摄装置获取预设照片大小初始值作为当前拍摄模 式下的照片大小平均值。 其中, 预设照片大小初始值可以是一经验值。 其中, 关于预设照片大小初始值的描述可参见步骤 1024。
步骤 307、 根据当前可用存储空间和当前拍摄模式下本次拍照之前的照片 大小平均值, 确定出当前拍摄模式下本次拍照之前可拍摄照片的张数。
步骤 307可参见步骤 103的描述, 在此不再赘述。
在此说明, 本实施例中的步骤 302-步骤 305可以看做是步骤 102: 获取当前 拍摄模式下本次拍照之前的照片大小平均值的另一种实施方式。
进一步,在确定出当前拍摄模式下本次拍照之前可拍摄照片的张数后, 拍 摄装置可以将确定出的可拍摄照片的张数显示给用户, 以便于用户进行拍照。
进一步, 用户可以使用拍摄装置在当前拍摄模式下进行本次拍照操作。 例 如, 用户可以通过按下拍摄按钮或点击拍摄选项或点击触屏等方式进行拍照。
优选的,对拍摄装置确定当前拍摄模式下本次拍照之前可拍摄照片的张数 的处理过程, 可以在在当前拍摄模式下进行本次拍照操作之前执行。 在图 3所示实施例中, 在第二索引值存在于第二对应关系表中的情况下, 第二对应关系表中存储的当前拍摄模式下本次拍照之前已拍摄照片占用的存 储空间和当前拍摄模式下本次拍照之前已拍摄照片的张数,可由通过以下步骤 计算获得。 具体的, 在步骤 303之前包括:
步骤 303a、 根据公式(3 ) , 计算当前拍摄模式下本次拍照之前已拍摄照 片占用的存储空间。
Mk-i=Mk-2+a ( 3 )
其中, 表示当前拍摄模式下本次拍照之前已拍摄照片占用的存储空间。 MM表示第二对应关系表中存储的当前拍摄模式下本次拍照的前一次拍照之 前已拍摄照片占用的存储空间。 a表示当前拍摄模式下本次拍照的前一次拍照 所拍摄的照片占用的存储空间。
步骤 303b、 根据公式(4 ) , 计算当前拍摄模式下本次拍照之前已拍摄照 片的张数。
Figure imgf000015_0001
其中, 表示当前拍摄模式下本次拍照之前已拍摄照片的张数, 表示 第二对应关系表中存储的当前拍摄模式下本次拍照的前一次拍照之前已拍摄 照片的张数。 b表示当前拍摄模式下本次拍照的前一次拍照所拍摄的照片的张 数。 其中, b > l。
步骤 303c、根据当前拍摄模式下本次拍照之前已拍摄照片占用的存储空间 和当前拍摄模式下本次拍照之前已拍摄照片的张数, 更新第二对应关系表。
上述更新第二对应关系表具体为: 用 替换第二对应关系表中的 Mk_2 , 用 替换第二对应关系表中的 1¾^2
其中,上述步骤 303a和步骤 303c具体可以在当前拍摄模式下进行本次拍照 的前一次拍照之后执行,则步骤 303a和步骤 303c实际描述的是在当前拍摄模式 下进行本次拍照的前一次拍照之后,根据本次拍照的前一次拍照所拍摄的照片 占用的存储空间和数量分别对本次拍照的前一次拍照之前已拍摄照片占用的 存储空间和对本次拍照的前一次拍照之前已拍摄照片的数量进行更新,获得当 前拍摄模式下本次拍照之前已拍摄照片占用的存储空间和当前拍摄模式下本 次拍照之前已拍摄照片的张数的过程。
在该实施例中,拍摄装置存储的是当前拍摄模式下本次拍照之前已拍摄照 片占用的存储空间和本次拍照之前已拍摄照片的张数,当确定要在当前模式下 进行本次拍照时,根据存储的当前拍摄模式下本次拍照之前已拍摄照片占用的 存储空间和本次拍照之前已拍摄照片的张数,实时计算当前拍摄模式下本次拍 照之前的照片大小平均值,然后使用计算出的照片大小平均值和当前可用存储 空间,确定出当前拍摄模式下本次拍照之前可拍摄照片的张数, 解决了确定可 拍摄照片的张数的问题。 同时, 由于本实施例使用的是由当前拍摄模式下本次 拍照之前已拍摄照片占用的存储空间和当前拍摄模式下本次拍照之前已拍摄 照片的张数实时计算出的照片大小平均值,而不是使用预先估计并预置的每张 照片所需空间的大小,照片大小平均值会随着已拍摄照片的张数的变化而变化 , 能够实时反映当前拍摄模式下照片所需空间的大小 ,使得确定出的可拍摄照片 的张数更加切近实际, 提高了确定出的可拍摄照片的张数的精度。
进一步,在只预置一次照片大小初始值情况下, 本实施例使用由当前拍摄 模式下本次拍照之前已拍摄照片占用的存储空间和本次拍照之前已拍摄照片 的张数计算出的照片大小平均值,代替了现有技术中预置在拍摄装置中该拍摄 模式下的每张照片所需空间的大小 ,使得可以不用预置每种拍摄模式下每张照 片所需空间的大小 ,解决了为确定可拍摄张数需要在拍摄装置中预置每种拍摄 模式下每张照片所需空间的大小的问题,也就解决了预置每张照片所需空间的 大小存在的各种问题, 例如操作繁瑣、 效率低等。
进一步可选的,在本实施例中,使用由当前拍摄模式下本次拍照之前已拍 摄照片占用的存储空间和本次拍照之前已拍摄照片的张数计算出的照片大小 平均值作为每张照片所需空间的估计值, 充分考虑了类似拍摄装置的硬件、性 能等一些实际因素, 并且会随着已拍摄照片的张数的变化而变化, 与现有技术 使用拍摄模式下设置的图像参数估计出的值相比, 更加精确,提高了确定出的 可拍摄的张数的精确度。
图 4为本发明一实施例提供的拍摄装置的结构示意图。如图 4所示, 本实施 例的装置包括: 模式确定模块 41、 获取模块 42和张数确定模块 43。
其中, 模式确定模块 41 , 用于确定当前拍摄模式。 获取模块 42, 与模式确 定模块 41连接,用于获取模式确定模块 41确定出的当前拍摄模式下本次拍照之 前的照片大小平均值, 其中, 当前拍摄模式下本次拍照之前的照片大小平均值 是根据当前拍摄模式下本次拍照之前已拍摄照片占用的存储空间与当前拍摄 模式下本次拍照之前已拍摄照片的张数计算出的。 张数确定模块 43 , 与获取模 块 42连接,用于根据当前可用存储空间和获取模块 42获取的当前拍摄模式下本 次拍照之前的照片大小平均值,确定出当前拍摄模式下本次拍照之前可拍摄照 片的张数。 本实施例的拍摄装置可以是各种具有拍摄功能的设备, 例如数码相 机、 摄像机、 具有拍照功能的手机、 具有拍照功能的计算机等。
本实施例的拍摄装置的各功能模块可用于执行图 1所示确定可拍摄张数的 方法流程, 其具体工作原理不再赘述, 详见方法实施例的描述。
在此说明, 本实施例的拍摄装置除了具有上述各功能模块之外,还具有存 储模块、 电源模块、 与外设连接的接口模块、 拍摄模块等, 这些模块未在在附 图中示出。
本实施例的拍摄装置, 其模式确定模块确定当前拍摄模式, 获取模块在模 式确定模块确定当前拍摄模式后,获取当前拍摄模式下本次拍照之前的照片大 小平均值,然后由张数确定模块根据当前可用存储空间和当前拍摄模式下本次 拍照之前的照片大小平均值确定出当前拍摄模式下本次拍照之前可拍摄的张 数, 解决了可拍摄张数的确定问题。 同时, 由于本实施例的拍摄装置使用的是 由当前拍摄模式下本次拍照之前已拍摄照片占用的存储空间和当前拍摄模式 下本次拍照之前已拍摄照片的张数计算出的照片大小平均值,而不是使用预先 估计并预置的每张照片所需空间的大小,照片大小平均值会随着已拍摄照片的 张数的变化而变化, 能够实时反映当前拍摄模式下照片所需空间的大小,使得 确定出的可拍摄照片的张数更加切近实际,提高了确定出的可拍摄照片的张数 的精度。
进一步可选的,本实施例的拍摄装置使用由当前拍摄模式下本次拍照之前 已拍摄照片占用的存储空间和当前拍摄模式下本次拍照之前已拍摄照片的张 数计算出的照片大小平均值作为每张照片所需空间的估计值,充分考虑了类似 拍摄装置的硬件、性能等一些实际因素, 并且会随着已拍摄照片的张数的变化 而变化, 与现有技术使用拍摄模式下设置的图像参数估计出的值相比, 更加精 确, 提高了确定出的可拍摄的张数的精确度。
图 5为本发明另一实施例提供的拍摄装置的结构示意图。本实施例基于图 4 所示实施例实现。 如图 5所示, 本实施例的拍摄装置也包括模式确定模块 41、 获取模块 42和张数确定模块 43。 在本实施例中,获取模块 42的一种可选实现结构包括:第一获取单元 421、 第一判断单元 422和第二获取单元 423。
其中, 第一获取单元 421 , 与模式确定模块 41连接, 用于根据模式确定模 块 41确定出的当前拍摄模式, 获取当前拍摄模式对应的第一索引值。 第一判断 单元 422, 与第一获取单元 421连接, 用于判断第一获取单元 421获取的第一索 引值是否存在于第一对应关系表中。所述第一对应关系表用于存储第一索引值 与当前拍摄模式下本次拍照之前的照片大小平均值之间的对应关系。第二获取 单元 423 , 与第一判断单元 422连接, 用于在第一判断单元 422的判断结果为存 在时, 从第一对应关系表中, 获取第一索引值对应的照片大小平均值。 其中, 第二获取单元 423还与张数确定模块 43连接, 用于向张数确定模块 43提供第一 索引值对应的照片大小平均值,即当前拍摄模式下本次拍照之前对应的照片大 小平均值。
可选的, 第二获取单元 423可在第一判断单元 422的判断结果为不存在时, 获取预设照片大小初始值作为当前拍摄模式下本次拍照之前的照片大小平均 值。 进一步, 第二获取单元 423还可将第一索引值和预设照片大小初始值添加 到第一对应关系表中。
在上述获取模块 42的实现结构的基础上, 获取模块 42还可以包括: 第三获 取单元 424和第一更新单元 425。
其中, 第三获取单元 424, 用于根据公式(2 ) , 计算当前拍摄模式下本次 拍照之前的照片大下平均值。关于公式(2 )可参见上述方法实施例中的描述。
第一更新单元 425 , 与第三获取单元 424连接, 用于根据第三获取单元 424 计算出的当前拍摄模式下本次拍照之前的照片大小平均值更新第一对应关系 表。 可选的, 第一更新单元 425与第一判断单元 422连接, 用于向第一判断单元 422提供更新后的第一对应关系表。
其中, 上述各功能单元可用于执行上述方法实施例中步骤 102的可选实施 方式中的相应流程, 其具体工作原理不再赘述, 详见方法实施例的描述。
在本实施例中,获取模块 42的另一种可选实现结构包括:第四获取单元 426、 第二判断单元 427、 第五获取单元 428和第六获取单元 429。
第四获取单元 426 , 与模式确定模块 41连接, 用于根据模式确定模块 41确 定出的当前拍摄模式,获取当前拍摄模式对应的第二索引值。第二判断单元 427 , 与第四获取单元 426连接,用于判断第四获取单元 426获取的第二索引值是否存 在于第二对应关系表中。 所述第二对应关系表用于存储第二索引值、 当前拍摄 模式下本次拍照之前已拍摄照片占用的存储空间和当前拍摄模式下本次拍照 之前已拍摄照片的张数之间的对应关系。 第五获取单元 428 , 与第二判断单元 427连接,用于在第二判断单元 427的判断结果为存在时,从第二对应关系表中, 获取第二索引值对应的已拍摄照片占用的存储空间和已拍摄照片的张数。第六 获取单元 429, 与第五获取单元 428连接, 用于根据第五获取单元 428所获取的 已拍摄照片占用的存储空间和第五获取单元 428所获取的已拍摄照片的张数, 获得当前拍摄模式下本次拍照之前的照片大小平均值。其中,第六获取单元 429 还与张数确定模块 43连接,用于向张数确定模块 43提供当前拍摄模式下本次拍 照之前的照片大小平均值。
可选的, 第六获取单元 429可在第二判断单元 427的判断结果为不存在时, 获取预设照片大小初始值作为当前拍摄模式下的照片大小平均值。
一种优选实施方式,在拍摄装置中预置一次照片大小初始值, 所有拍摄模 式均使用同一照片大小初始值, 但不限于此。
在获取模块 42的另一种实现结构的基础上, 获取模块 42还包括: 第七获取 单元 430、 第八获取单元 431和第二更新单元 432。
其中, 第七获取单元 430, 用于根据公式(3 ) , 计算当前拍摄模式下本次 拍照之前已拍摄照片占用的存储空间。第八获取单元 431 ,用于根据公式(4 ) , 计算当前拍摄模式下本次拍照之前已拍摄照片的张数。 其中, 关于公式 ( 3 ) 和公式(4 )可参见上述方法实施例中的描述。
第二更新单元 432 , 与第七获取单元 430和第八获取单元 431连接, 用于根 据第七获取单元 430获取的当前拍摄模式下本次拍照之前已拍摄照片占用的存 储空间和第八获取单元 431获取的当前拍摄模式下本次拍照之前已拍摄照片的 张数, 更新第二对应关系表。 可选的, 第二更新单元 432与第二判断单元 427 连接, 用于向第二判断单元 427提供更新后的第二对应关系表。
上述功能单元可用于执行图 3所示方式实施例中的相应流程, 其具体工作 原理不再赘述, 详见方法实施例的描述。
本实施例的拍摄装置, 其模式确定模块确定当前拍摄模式, 获取模块在模 式确定模块确定当前拍摄模式后,获取当前拍摄模式下本次拍照之前的照片大 小平均值,然后由张数确定模块根据当前可用存储空间和当前拍摄模式下本次 拍照之前的照片大小平均值确定出当前拍摄模式下本次拍照之前可拍摄的张 数, 解决了可拍摄张数的确定问题。 同时, 由于本实施例的拍摄装置使用的是 由当前拍摄模式下本次拍照之前已拍摄照片占用的存储空间和当前拍摄模式 下本次拍照之前已拍摄照片的张数计算出的照片大小平均值,而不是使用预先 估计并预置的每张照片所需空间的大小,照片大小平均值会随着已拍摄照片的 张数的变化而变化, 能够实时反映当前拍摄模式下照片所需空间的大小,使得 确定出的可拍摄照片的张数更加切近实际,提高了确定出的可拍摄照片的张数 的精度。
进一步, 在只预置一次照片大小初始值情况下, 本实施例的拍摄装置, 使 用由当前拍摄模式下本次拍照之前已拍摄照片占用的存储空间和当前拍摄模 式下本次拍照之前已拍摄照片的张数计算出的照片大小平均值,代替了现有技 术中预置在拍摄装置中该拍摄模式下的每张照片所需空间的大小,使得可以不 用预置每种拍摄模式下每张照片所需空间的大小,解决了为确定可拍摄张数需 要在拍摄装置中预置每种拍摄模式下每张照片所需空间的大小的问题,也就解 决了预置每张照片所需空间的大小存在的各种问题,例如操作繁瑣、效率低等。
进一步可选的,本实施例的拍摄装置使用由当前拍摄模式下本次拍照之前 已拍摄照片占用的存储空间和当前拍摄模式下本次拍照之前已拍摄照片的张 数计算出的照片大小平均值作为每张照片所需空间的估计值,充分考虑了类似 拍摄装置的硬件、性能等一些实际因素, 并且会随着已拍摄照片的张数的变化 而变化, 与现有技术使用拍摄模式下设置的图像参数估计出的值相比, 更加精 确, 提高了确定出的可拍摄的张数的精确度。
图 6为本发明又一实施例提供的拍摄装置的结构示意图,如图 6所示, 该拍 摄装置可以包括: 至少一个处理器 61 , 以及存储器 62 , 该存储器 62用于存储可 执行程序代码, 其中, 处理器 61通过读取存储器 62中存储的可执行程序代码来 运行与可执行程序代码对应的程序, 以用于: 确定当前拍摄模式, 获取当前拍 摄模式下本次拍照之前的照片大小平均值,根据当前可用存储空间和所获取的 当前拍摄模式下本次拍照之前的照片大小平均值,确定出当前拍摄模式下本次 拍照之前可拍摄照片的张数。其中, 所述照片大小平均值是根据当前拍摄模式 下本次拍照之前已拍摄照片占用的存储空间与当前拍摄模式下本次拍照之前 已拍摄照片的张数计算出的。
在本实施例的一个可选实施方式中, 处理器 61还用于在拍摄装置(具体为 拍摄装置的拍摄模块)使用当前拍摄模式进行本次拍照后,根据本次拍照后已 拍摄照片占用的存储空间和本次拍照后已拍摄照片的张数更新当前拍摄模式 下本次拍照之前的照片大小平均值,获得当前拍摄模式下本次拍照的下一次拍 照之前的照片大小平均值。
在本实施例的一个可选实施方式中, 处理器 61具体可根据公式( 1 ), 更新 当前拍摄模式下本次拍照之前的照片大小平均值,获得当前拍摄模式下本次拍 照的下一次拍照之前的照片大小平均值。 关于公式(1 )可参见前述实施例的 描述。
在本实施例的一个可选实施方式中,处理器 61具体可用于根据当前拍摄模 式, 获取当前拍摄模式对应的第一索引值, 判断所述第一索引值是否存在于第 一对应关系表中, 当判断结果为存在时, 从所述第一对应关系表中, 获取所述 第一索引值对应的照片大小平均值。其中, 第一对应关系表用于存储第一索引 值与当前拍摄模式下本次拍照之前的照片大小平均值之间的对应关系。
进一步可选的, 当判断结果为不存在时, 处理器 61可以获取预设照片大小 初始值作为当前拍摄模式下本次拍照之前的照片大小平均值。
进一步,处理器 61还可以在判断第一索引值是否存在于第一对应关系表中 之前,根据公式(2 ) ,获取当前拍摄模式下本次拍照之前的照片大小平均值, 并根据获取的当前拍摄模式下本次拍照之前的照片大小平均值更新所述第一 对应关系表。具体的, 该操作可在在当前拍摄模式下进行本次拍照的前一次拍 照之后执行。
在本实施例的一个可选实施方式中,处理器 61具体可用于根据当前拍摄模 式, 获取当前拍摄模式对应的第二索引值, 判断所述第二索引值是否存在于第 二对应关系表中, 当判断结果为存在时, 从所述第二对应关系表中, 获取所述 第二索引值对应的已拍摄照片占用的存储空间和已拍摄照片的张数,根据所获 取的已拍摄照片占用的存储空间和所获取的已拍摄照片的张数,获得所述照片 大小平均值。具体的, 处理器 61可以用所获取的已拍摄照片占用的存储空间除 以所获取的已拍摄照片的张数, 获得所述照片大小平均值。 其中, 第二对应关 系表用于存储第二索引值、当前拍摄模式下本次拍照之前已拍摄照片占用的存 储空间和当前拍摄模式下本次拍照之前已拍摄照片的张数之间的对应关系。 进一步可选的, 当判断结果为不存在时, 处理器 61可以获取预设照片大小 初始值作为当前拍摄模式下本次拍照之前的照片大小平均值。在一种优选实施 方式,在拍摄装置中预置一次照片大小初始值, 所有拍摄模式均使用同一照片 大小初始值, 但不限于此。
基于上述,处理器 61还可以在判断第二索引值是否存在于第二对应关系表 中之前, 根据公式(3 ) , 计算当前拍摄模式下本次拍照之前已拍摄照片占用 的存储空间, 根据公式(4 ) , 计算当前拍摄模式下本次拍照之前已拍摄照片 的张数,然后根据所获取的当前拍摄模式下本次拍照之前已拍摄照片占用的存 储空间和当前拍摄模式下本次拍照之前已拍摄照片的张数,更新所述第二对应 关系表。具体的, 该操作可在在当前拍摄模式下进行本次拍照的前一次拍照之 后执行。
在此说明, 上述第一对应关系表或第二对应关系表可存储在存储器 62中。 本实施例的拍摄装置,使用由当前拍摄模式下本次拍照之前已拍摄照片占 用的存储空间和当前拍摄模式下本次拍照之前已拍摄照片的张数计算出的照 片大小平均值,代替了现有技术中预置在拍摄装置中该拍摄模式下的每张照片 所需空间的大小, 照片大小平均值会随着已拍摄照片的张数的变化而变化, 能 够实时反映当前拍摄模式下照片所需空间的大小 ,使得确定出的可拍摄照片的 张数更加切近实际, 提高了确定出的可拍摄照片的张数的精度。
进一步, 在只预置一次照片大小初始值情况下, 本实施例的拍摄装置, 使 用由当前拍摄模式下本次拍照之前已拍摄照片占用的存储空间和当前拍摄模 式下本次拍照之前已拍摄照片的张数计算出的照片大小平均值,代替了现有技 术中预置在拍摄装置中该拍摄模式下的每张照片所需空间的大小,使得可以不 用预置每种拍摄模式下每张照片所需空间的大小,解决了为确定可拍摄张数需 要在拍摄装置中预置每种拍摄模式下每张照片所需空间的大小的问题,也就解 决了预置每张照片所需空间的大小存在的各种问题,例如操作繁瑣、效率低等。
进一步可选的,本实施例的拍摄装置使用由当前拍摄模式下本次拍照之前 已拍摄照片占用的存储空间和当前拍摄模式下本次拍照之前已拍摄照片的张 数计算出的照片大小平均值作为每张照片所需空间的估计值,充分考虑了类似 拍摄装置的硬件、性能等一些实际因素, 并且会随着已拍摄照片的张数的变化 而变化, 与现有技术使用拍摄模式下设置的图像参数估计出的值相比, 更加精 确, 提高了确定出的可拍摄的张数的精确度。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本发 明可以用硬件实现, 或固件实现, 或它们的组合方式来实现。 当使用软件实现 时,可以将上述功能存储在计算机可读介质中或作为计算机可读介质上的一个 或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质 , 其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。 存储介质可以是计算机能够存取的任何可用介质。 以此为例但不限于: 计算机 可读介质可以包括 RAM、 ROM, EEPROM、 CD-ROM或其他光盘存储、 磁盘 存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构 形式的期望的程序代码并能够由计算机存取的任何其他介质。此外。任何连接 可以适当的成为计算机可读介质。例如,如果软件是使用同轴电缆、光纤光缆、 双绞线、 数字用户线(DSL )或者诸如红外线、 无线电和微波之类的无线技术 从网站、 服务器或者其他远程源传输的, 那么同轴电缆、 光纤光缆、 双绞线、 DSL或者诸如红外线、无线和微波之类的无线技术包括在所属介质的定影中。 如本发明所使用的, 盘 (Disk )和碟(disc ) 包括压缩光碟(CD )、 激光碟、 光碟、数字通用光碟(DVD )、软盘和蓝光光碟,其中盘通常磁性的复制数据, 而碟则用激光来光学的复制数据。上面的组合也应当包括在计算机可读介质的 保护范围之内。 总之, 以上所述仅为本发明技术方案的较佳实施例而已, 并非用于限定本 发明的保护范围。凡在本发明的精神和原则之内,所作的任何修改、等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权 利 要求 书
1、 一种确定可拍摄张数的方法, 其特征在于, 包括:
确定当前拍摄模式;
获取当前拍摄模式下本次拍照之前的照片大小平均值, 其中, 当前拍摄模 式下本次拍照之前的照片大小平均值是根据当前拍摄模式下本次拍照之前已 拍摄照片占用的存储空间与当前拍摄模式下本次拍照之前已拍摄照片的张数 计算出的;
根据当前可用存储空间和当前拍摄模式下本次拍照之前的照片大小平均 值, 确定出当前拍摄模式下本次拍照之前可拍摄照片的张数。
2、 根据权利要求 1所述的确定可拍摄张数的方法, 其特征在于, 所述获取 当前拍摄模式下本次拍照之前的照片大小平均值包括:
根据当前拍摄模式 , 获取当前拍摄模式对应的第一索引值;
判断所述第一索引值是否存在于第一对应关系表中,所述第一对应关系表 用于存储所述第一索引值与当前拍摄模式下本次拍照之前的照片大小平均值 之间的对应关系;
当判断结果为存在时,从所述第一对应关系表中, 获取所述第一索引值对 应的照片大小平均值。
3、 根据权利要求 2所述的确定可拍摄张数的方法, 其特征在于, 所述判断 所述第一索引值是否存在于第一对应关系表中之前, 还包括:
根据公式 Vw= ( Vk-2*nk-2+a ) /nk-1 , 计算当前拍摄模式下本次拍照之前的 照片大小平均值;
根据当前拍摄模式下本次拍照之前的照片大小平均值更新所述第一对应 关系表;
其中, 表示当前拍摄模式下本次拍照之前的照片大小平均值;
表示所述第一对应关系表中存储的当前拍摄模式下本次拍照的前一次 拍照之前的照片大小平均值;
a表示当前拍摄模式下本次拍照的前一次拍照所拍摄的照片占用的存储空 间;
表示当前拍摄模式下本次拍照之前已拍摄照片的张数; llM表示当前拍摄模式下本次拍照的前一次拍照之前已拍摄照片的张数。
4、 根据权利要求 1所述的确定可拍摄张数的方法, 其特征在于, 所述获取 当前拍摄模式下本次拍照之前的照片大小平均值包括:
根据当前拍摄模式 , 获取当前拍摄模式对应的第二索引值;
判断所述第二索引值是否存在于第二对应关系表中,所述第二对应关系表 用于存储所述第二索引值、当前拍摄模式下本次拍照之前已拍摄照片占用的存 储空间和当前拍摄模式下本次拍照之前已拍摄照片的张数之间的对应关系; 当判断结果为存在时,从所述第二对应关系表中, 获取所述第二索引值对 应的已拍摄照片占用的存储空间和已拍摄照片的张数;
根据所获取的已拍摄照片占用的存储空间和所获取的已拍摄照片的张数, 获得当前拍摄模式下本次拍照之前的照片大小平均值。
5、 根据权利要求 4所述的确定可拍摄张数的方法, 其特征在于, 所述判断 所述第二索引值是否存在于第二对应关系表中之前, 还包括:
根据公式 Mw=Mi^2+a,计算当前拍摄模式下本次拍照之前已拍摄照片占用 的存储空间;
Figure imgf000025_0001
, 计算当前拍摄模式下本次拍照之前已拍摄照片的张 数;
根据当前拍摄模式下本次拍照之前已拍摄照片占用的存储空间和当前拍 摄模式下本次拍照之前已拍摄照片的张数, 更新所述第二对应关系表;
其中, 表示当前拍摄模式下本次拍照之前已拍摄照片占用的存储空间;
Mk_2表示所述第二对应关系表中存储的当前拍摄模式下本次拍照的前一 次拍照之前已拍摄照片占用的存储空间;
a表示当前拍摄模式下本次拍照的前一次拍照所拍摄的照片占用的存储空 间;
表示当前拍摄模式下本次拍照之前已拍摄照片的张数;
表示所述第二对应关系表中存储的当前拍摄模式下本次拍照的前一次 拍照之前已拍摄照片的张数;
b表示当前拍摄模式下本次拍照的前一次拍照之前所拍摄的照片的张数。
6、 一种拍摄装置, 其特征在于, 包括:
模式确定模块, 用于确定当前拍摄模式; 获取模块, 用于获取当前拍摄模式下本次拍照之前的照片大小平均值, 其 中,当前拍摄模式下本次拍照之前的照片大小平均值是根据当前拍摄模式下本 次拍照之前已拍摄照片占用的存储空间与当前拍摄模式下本次拍照之前已拍 摄照片的张数计算出的;
张数确定模块,用于根据当前可用存储空间和当前拍摄模式下本次拍照之 前的照片大小平均值,确定出当前拍摄模式下本次拍照之前可拍摄照片的张数。
7、 根据权利要求 6所述的拍摄装置, 其特征在于, 所述获取模块包括: 第一获取单元, 用于根据当前拍摄模式, 获取当前拍摄模式对应的第一索 引值;
第一判断单元, 用于判断所述第一索引值是否存在于第一对应关系表中, 所述第一对应关系表用于存储所述第一索引值与当前拍摄模式下本次拍照之 前的照片大小平均值之间的对应关系;
第二获取单元, 用于在第一判断单元的判断结果为存在时,从所述第一对 应关系表中, 获取所述第一索引值对应的照片大小平均值。
8、 根据权利要求 7所述的拍摄装置, 其特征在于, 所述获取模块还包括: 第三获取单元, 用于根据公式 Vw= ( Vk-2*nk-2+a ) /nk-1 , 计算当前拍摄模 式下本次拍照之前的照片大小平均值;
第一更新单元,用于根据当前拍摄模式下本次拍照之前的照片大小平均值 更新所述第一对应关系表;
其中, 表示当前拍摄模式下本次拍照之前的照片大小平均值;
表示所述第一对应关系表中存储的当前拍摄模式下本次拍照的前一次 拍照之前的照片大小平均值;
a表示当前拍摄模式下本次拍照的前一次拍照所拍摄的照片占用的存储空 间;
表示当前拍摄模式下本次拍照之前已拍摄照片的张数;
表示当前拍摄模式下本次拍照的前一次拍照之前已拍摄照片的张数。
9、 根据权利要求 6所述的拍摄装置, 其特征在于, 所述获取模块包括: 第四获取单元, 用于根据当前拍摄模式, 获取当前拍摄模式对应的第二索 引值;
第二判断单元, 用于判断所述第二索引值是否存在于第二对应关系表中, 所述第二对应关系表用于存储所述第二索引值、当前拍摄模式下本次拍照之前 已拍摄照片占用的存储空间和当前拍摄模式下本次拍照之前已拍摄照片的张 数之间的对应关系;
第五获取单元, 用于在所述第二判断单元的判断结果为存在时,从所述第 二对应关系表中,获取所述第二索引值对应的已拍摄照片占用的存储空间和已 拍摄照片的张数;
第六获取单元,用于根据所述第五获取单元获取的已拍摄照片占用的存储 空间和所述第五获取单元获取的已拍摄照片的张数,获得当前拍摄模式下本次 拍照之前的照片大小平均值。
10、根据权利要求 9所述的拍摄装置,其特征在于,所述获取模块还包括: 第七获取单元,用于根据公式 Mw=Mi^2+a,计算当前拍摄模式下本次拍照 之前已拍摄照片占用的存储空间;
第八获取单元, 用
Figure imgf000027_0001
, 计算当前拍摄模式下本次拍照 之前已拍摄照片的张数;
第二更新单元,用于根据当前拍摄模式下本次拍照之前已拍摄照片占用的 存储空间和当前拍摄模式下本次拍照之前已拍摄照片的张数,更新所述第二对 应关系表;
其中, 表示当前拍摄模式下本次拍照之前已拍摄照片占用的存储空间; Mk_2表示所述第二对应关系表中存储的当前拍摄模式下本次拍照的前一 次拍照之前已拍摄照片占用的存储空间;
a表示当前拍摄模式下本次拍照的前一次拍照所拍摄的照片占用的存储空 间;
表示当前拍摄模式下本次拍照之前已拍摄照片的张数;
表示所述第二对应关系表中存储的当前拍摄模式下本次拍照的前一次 拍照之前已拍摄照片的张数; b表示当前拍摄模式下本次拍照的前一次拍照之前所拍摄的照片的张数。
PCT/CN2013/076983 2012-06-08 2013-06-08 确定可拍摄张数的方法及摄像装置 WO2013182081A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP13800507.9A EP2713604A4 (en) 2012-06-08 2013-06-08 METHOD FOR DETERMINING THE NUMBER OF PHOTOS THAT CAN BE TAKEN, AND A DEVICE FOR PHOTOGRAPHY
US14/142,264 US9191564B2 (en) 2012-06-08 2013-12-27 Method for determining the number of available shots and image-shooting apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2012101888020A CN102724403A (zh) 2012-06-08 2012-06-08 确定可拍摄张数的方法及摄像装置
CN201210188802.0 2012-06-08

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/142,264 Continuation US9191564B2 (en) 2012-06-08 2013-12-27 Method for determining the number of available shots and image-shooting apparatus

Publications (1)

Publication Number Publication Date
WO2013182081A1 true WO2013182081A1 (zh) 2013-12-12

Family

ID=46950055

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/076983 WO2013182081A1 (zh) 2012-06-08 2013-06-08 确定可拍摄张数的方法及摄像装置

Country Status (4)

Country Link
US (1) US9191564B2 (zh)
EP (1) EP2713604A4 (zh)
CN (1) CN102724403A (zh)
WO (1) WO2013182081A1 (zh)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724403A (zh) 2012-06-08 2012-10-10 华为终端有限公司 确定可拍摄张数的方法及摄像装置
CN103546646B (zh) * 2013-10-31 2015-08-19 Tcl通讯(宁波)有限公司 一种移动终端相机预览时照片文件大小的预测方法及系统
JP6492111B2 (ja) 2014-06-24 2019-03-27 グーグル エルエルシー コンテンツアイテムの記憶
CN104850487A (zh) * 2015-04-27 2015-08-19 小米科技有限责任公司 信息显示方法及装置
US9942441B2 (en) * 2015-09-09 2018-04-10 Ricoh Company, Ltd. Information processing apparatus configured to predict a size of a storage-use region , method, image processing system, and storage medium
US10051142B1 (en) * 2016-05-20 2018-08-14 Google Llc Adaptive display of image capacity for a camera
WO2019183769A1 (zh) * 2018-03-26 2019-10-03 深圳市大疆创新科技有限公司 剩余存储量处理方法、拍摄设备及计算机可读存储介质
CN110519447B (zh) * 2019-07-30 2021-11-16 惠州Tcl移动通信有限公司 一种智能终端及其图片容量检测方法、存储装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1551614A (zh) * 2003-05-12 2004-12-01 ������������ʽ���� 摄影装置、摄影方法、程序和存储介质
CN1941846A (zh) * 2000-05-31 2007-04-04 富士胶片株式会社 画质选择方法及数码照相机
CN102724403A (zh) * 2012-06-08 2012-10-10 华为终端有限公司 确定可拍摄张数的方法及摄像装置

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040051785A1 (en) * 1997-06-06 2004-03-18 Nikon Corporation Electronic camera having a communication function
US7768558B1 (en) * 2000-09-29 2010-08-03 Hewlett-Packard Development Company, L.P. Digital still camera with remaining picture count indication
JP4046985B2 (ja) * 2001-11-21 2008-02-13 キヤノン株式会社 撮像装置、ファイル格納に関する警告方法、コンピュータ読み取り可能な記憶媒体、及びプログラム
US7268810B2 (en) * 2002-01-29 2007-09-11 Fujifilm Corporation Digital camera for changing a recording size to a high-sensitivity compatible recording size
US20050151858A1 (en) * 2002-02-18 2005-07-14 Nikon Corporation Digital camera
JP2004096623A (ja) * 2002-09-03 2004-03-25 Canon Inc 撮像装置を制御可能な情報処理装置の制御方法
KR100644838B1 (ko) * 2004-11-25 2006-11-10 엘지전자 주식회사 사진수량 표시형 이동통신 단말기 및 그 동작방법
JP2006165851A (ja) * 2004-12-06 2006-06-22 Sony Corp 撮像装置
JP2007006165A (ja) * 2005-06-24 2007-01-11 Fujifilm Holdings Corp 撮像装置、撮像方法、及び撮像プログラム
JP4643439B2 (ja) 2005-12-27 2011-03-02 株式会社東芝 携帯型撮像装置
JP5028115B2 (ja) * 2006-09-07 2012-09-19 キヤノン株式会社 記録装置、その制御方法及びプログラム
JP4901460B2 (ja) * 2006-12-26 2012-03-21 富士フイルム株式会社 撮影装置、方法およびプログラム
CN100562070C (zh) * 2007-02-13 2009-11-18 华晶科技股份有限公司 预测影像撷取数量的方法
JP2008244940A (ja) * 2007-03-28 2008-10-09 Fujifilm Corp デジタルカメラ及びその制御方法
JP2010288263A (ja) * 2009-05-12 2010-12-24 Canon Inc 撮像装置及び撮像方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1941846A (zh) * 2000-05-31 2007-04-04 富士胶片株式会社 画质选择方法及数码照相机
CN1551614A (zh) * 2003-05-12 2004-12-01 ������������ʽ���� 摄影装置、摄影方法、程序和存储介质
CN102724403A (zh) * 2012-06-08 2012-10-10 华为终端有限公司 确定可拍摄张数的方法及摄像装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2713604A4 *

Also Published As

Publication number Publication date
EP2713604A1 (en) 2014-04-02
CN102724403A (zh) 2012-10-10
EP2713604A4 (en) 2014-11-12
US9191564B2 (en) 2015-11-17
US20140132798A1 (en) 2014-05-15

Similar Documents

Publication Publication Date Title
WO2013182081A1 (zh) 确定可拍摄张数的方法及摄像装置
KR101990073B1 (ko) 전자장치에서 다초점 영상 촬영 및 저장 방법 및 장치
WO2016123893A1 (zh) 拍照的方法和装置以及终端
WO2017107629A1 (zh) 移动终端、数据传输系统及移动终端拍摄方法
WO2014154003A1 (zh) 一种自拍图像的展现方法及装置
US20160253298A1 (en) Photo and Document Integration
TWI566597B (zh) 用於擷取影像之記事板
WO2015074203A1 (zh) 一种图片展示方法及装置、终端设备
US9921054B2 (en) Shooting method for three dimensional modeling and electronic device supporting the same
US9781293B2 (en) Apparatus and method for managing image files by displaying backup information
TWI343745B (zh)
CN110073648A (zh) 媒体内容管理设备
CN105915792A (zh) 拍照方法及装置
CN108833768A (zh) 一种多摄像头的拍摄方法、拍摄终端和可读存储介质
JP2017162371A (ja) 画像処理装置、画像処理方法及びプログラム
JP2014154891A (ja) 情報処理装置およびその制御方法、プログラム、並びに記憶媒体
US20140104442A1 (en) Image information processing system
CN108153811B (zh) 一种搜索内容的输入方法、装置、移动终端及存储介质
WO2022095878A1 (zh) 拍摄方法、装置、电子设备及可读存储介质
JP2012222618A (ja) 表示制御装置および表示制御方法
TWI333792B (zh)
JP2020088510A (ja) 画像記録装置及びその制御方法
TWI828298B (zh) 拍攝方法、拍攝裝置、電子設備和可讀存儲介質
JP6142569B2 (ja) 撮像装置、情報処理装置、情報処理方法、及び情報処理プログラム
TWI380225B (en) Imaging processing device and method thereof

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 2013800507

Country of ref document: EP

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13800507

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE