IP Library Granted Patent US 9,191,564
Granted Patent B2
US 9,191,564 · App. 14/142,264 · Granted Nov 17, 2015

Method for determining the number of available shots and image-shooting apparatus

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,191,564
App. No.
14/142,264
Granted
Nov 17, 2015
Kind
B2
Abstract

Embodiments of the present invention provide a method for determining the number of available shots and an image-shooting apparatus. The method includes: determining a current shooting mode; acquiring an average value of a picture size before current shooting in the current shooting mode, where the average value of the picture size is calculated according to storage space occupied by pictures shot before the current shooting in the current shooting mode and the number of the pictures shot before the current shooting in the current shooting mode; and determining, according to currently available storage space and the average value of the picture size, the number of available shots before the current shooting. The technical solution of the present invention improves precision of the determined number of available shots.

Claims (72)

1. A method for determining the number of available shots, comprising:

determining a current shooting mode;

acquiring an average value of a picture size before current shooting in the current shooting mode by

acquiring, according to the current shooting mode, a first index value corresponding to the current shooting mode;

determining whether the first index value exists in a first correspondence table, wherein the first correspondence table is used to store correspondence between the first index value and the average value of the picture size before the current shooting in the current shooting mode; and

when a determination result is that the first index value exists in the first correspondence table, acquiring, from the first correspondence table, the average value of the picture size corresponding to the first index value; and

determining, according to currently available storage space and the average value of the picture size before the current shooting in the current shooting mode, the number of available shots before the current shooting in the current shooting mode.

2. The method for determining the number of available shots according to claim 1 , wherein before the determining whether the first index value exists in the first correspondence table, the method further comprises:

calculating, the average value of the picture size before the current shooting in the current shooting mode; and

updating, according to the average value of the picture size before the current shooting in the current shooting mode, the first correspondence table.

3. The method for determining the number of available shots according to claim 2 , wherein the average value of the picture size is obtained according to a formula V k−1 =(V k−2 *n k−2 +a)/n k−1 , wherein

V k−1 represents the average value of the picture size before the current shooting in the current shooting mode;

V k−2 represents an average value of a picture size stored in the first correspondence table, before previous shooting of the current shooting in the current shooting mode;

a represents storage space occupied by pictures shot in the previous shooting of the current shooting in the current shooting mode;

n k−1 represents the number of the pictures shot before the current shooting in the current shooting mode; and

n k−2 represents the number of pictures shot before the previous shooting of the current shooting in the current shooting mode.

4. A method for determining the number of available shots, comprising:

determining a current shooting mode;

acquiring an average value of a picture size before current shooting in the current shooting mode by,

acquiring, according to the current shooting mode, a second index value corresponding to the current shooting mode;

determining whether the second index value exists in a second correspondence table, wherein the second correspondence table is used to store correspondence between the second index value, the storage space occupied by the pictures shot before the current shooting in the current shooting mode, and the number of the pictures shot before the current shooting in the current shooting mode;

when a determination result is that the second index value exists in the second correspondence table, acquiring, from the second correspondence table, the storage space occupied by the shot pictures and the number of the shot pictures that are corresponding to the second index value; and obtaining, according to the acquired storage space occupied by the shot pictures and the acquired number of the shot pictures, the average value of the picture size before the current shooting in the current shooting mode

determining, according to currently available storage space and the average value of the picture size before the current shooting in the current shooting mode, the number of available shots before the current shooting in the current shooting mode.

5. The method for determining the number of available shots according to claim 4 , wherein before the determining whether the second index value exists in a second correspondence table, the method further comprises:

determining, the storage space occupied by the pictures shot before the current shooting in the current shooting mode;

determining, the number of the pictures shot before the current shooting in the current shooting mode; and

updating, according to the storage space occupied by the pictures shot before the current shooting in the current shooting mode and the number of the pictures shot before the current shooting in the current shooting mode, the second correspondence table.

6. The method for determining the number of available shots according to claim 5 , wherein the storage space occupied by the pictures shot is determined according to a formula M k−1 =M k−2 +a; and the number of the pictures shot is determined according to a formula n k−1 =n k−2 +b; and

wherein

M k−1 represents the storage space occupied by the pictures shot before the current shooting in the current shooting mode;

M k−2 represents storage space occupied by pictures stored in the second correspondence table, shot before previous shooting of the current shooting in the current shooting mode;

a represents storage space occupied by pictures shot in the previous shooting of the current shooting in the current shooting mode;

n k−1 represents the number of the pictures shot before the current shooting in the current shooting mode;

n k−2 represents the number of the pictures, stored in the second correspondence table, shot before the previous shooting of the current shooting in the current shooting mode; and

b represents the number of the pictures shot before the previous shooting of the current shooting in the current shooting mode.

7. An image-shooting apparatus, comprising:

a mode determining module, configured to determine a current shooting mode;

an acquiring module, configured to acquire an average value of a picture size before current shooting in the current shooting mode; and

a picture number determining module, configured to determine, according to currently available storage space and the average value of the picture size before the current shooting in the current shooting mode, the number of available shots before the current shooting in the current shooting mode;

wherein the acquiring module comprises:

a first acquiring unit, configured to acquire, according to the current shooting mode, a first index value corresponding to the current shooting mode; a first judging unit, configured to determine whether the first index value exists in a first correspondence table,

wherein the first correspondence table is used to store correspondence between the first index value and the average value of the picture size before the current shooting in the current shooting mode; and

a second acquiring unit, configured to, when a determination result of the first judging unit is that the first index value exists in the first correspondence table, acquire, from the first correspondence table, the average value of the picture size corresponding to the first index value.

8. The image-shooting apparatus according to claim 7 , wherein the acquiring module further comprises:

a third acquiring unit, configured to calculate, the average value of the picture size before the current shooting in the current shooting mode; and

a first updating unit, configured to update, according to the average value of the picture size before the current shooting in the current shooting mode, the first correspondence table.

9. The image-shooting apparatus according to claim 8 , wherein the third acquiring unit is further configured to obtain the average value of the picture size according to a formula V k−1 =(V k−2 *n k−2 +a)/n k−1 , wherein

V k−1 represents the average value of the picture size before the current shooting in the current shooting mode;

V k−2 represents an average value of a picture size stored in the first correspondence table, before previous shooting of the current shooting in the current shooting mode;

a represents storage space occupied by pictures shot in the previous shooting of the current shooting in the current shooting mode;

n k−1 represents the number of the pictures shot before the current shooting in the current shooting mode; and

n k−2 represents the number of pictures shot before the previous shooting of the current shooting in the current shooting mode.

10. An image-shooting apparatus, comprising:

a mode determining module, configured to determine a current shooting mode;

an acquiring module, configured to acquire an average value of a picture size before current shooting in the current shooting mode; and

picture number determining module, configured to determine, according to currently available storage space and the average value of the picture size before the current shooting in the current shooting mode, the number of available shots before the current shooting in the current shooting mode;

wherein the acquiring module comprises:

a fourth acquiring unit, configured to acquire, according to the current shooting mode, a second index value corresponding to the current shooting mode;

a second judging unit, configured to determine whether the second index value exists in a second correspondence table, wherein the second correspondence table is used to store correspondence between the second index value, the storage space occupied by the pictures shot before the current shooting in the current shooting mode, and the number of the pictures shot before the current shooting in the current shooting mode;

a fifth acquiring unit, configured to, when a determination result of the second judging unit is that the second index value exists in the second correspondence table, acquire, from the second correspondence table, the storage space occupied by the shot pictures and the number of the shot pictures that are corresponding to the second index value; and

a sixth acquiring unit, configured to obtain, according to the storage space occupied by the shot pictures acquired by the fifth acquiring unit and the number of the shot pictures acquired by the fifth acquiring unit, the average value of the picture size before the current shooting in the current shooting mode.

11. The image-shooting apparatus according to claim 10 , wherein the acquiring module further comprises:

a seventh acquiring unit, configured to determine, the storage space occupied by the pictures shot before the current shooting in the current shooting mode;

an eighth acquiring unit, configured to determine, the number of the pictures shot before the current shooting in the current shooting mode; and

a second updating unit, configured to update, according to the storage space occupied by the pictures shot before the current shooting in the current shooting mode and the number of the pictures shot before the current shooting in the current shooting mode, the second correspondence table.

12. The image-shooting apparatus according to claim 11 , wherein the seventh acquiring unit is further configured to obtain the storage space occupied by the pictures shot according to a formula M k−1 =M k−2 +a; the eighth acquiring unit is further configured to determine the number of the pictures shot according to a formula n k−1 =n k−2 +b; and

wherein

M k−1 represents the storage space occupied by the pictures shot before the current shooting in the current shooting mode;

M k−2 represents storage space occupied by pictures, stored in the second correspondence table, shot before previous shooting of the current shooting in the current shooting mode;

a represents storage space occupied by pictures shot in the previous shooting of the current shooting in the current shooting mode;

n k−1 represents the number of the pictures shot before the current shooting in the current shooting mode;

n k−2 represents the number of the pictures, stored in the second correspondence table, shot before the previous shooting of the current shooting in the current shooting mode; and b represents the number of the pictures shot before the previous shooting of the current shooting in the current shooting mode.

Assignments (3)
CHANGE OF NAME Recorded Mar 11, 2019
From: HUAWEI DEVICE (DONGGUAN) CO.,LTD.
To: HUAWEI DEVICE CO.,LTD.
Reel/Frame 048555/0951 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 5, 2017
From: HUAWEI DEVICE CO., LTD.
To: HUAWEI DEVICE (DONGGUAN) CO., LTD.
Reel/Frame 043750/0393 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 24, 2015
From: LI, TIE; LIN, RONGQIU; CHEN, GUODONG
To: HUAWEI DEVICE CO., LTD.
Reel/Frame 036650/0145 →