CN109639980B - Mobile terminal image preview control method, storage medium and mobile terminal - Google Patents

Mobile terminal image preview control method, storage medium and mobile terminal Download PDF

Info

Publication number
CN109639980B
CN109639980B CN201811629740.6A CN201811629740A CN109639980B CN 109639980 B CN109639980 B CN 109639980B CN 201811629740 A CN201811629740 A CN 201811629740A CN 109639980 B CN109639980 B CN 109639980B
Authority
CN
China
Prior art keywords
image
current image
mobile terminal
camera
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811629740.6A
Other languages
Chinese (zh)
Other versions
CN109639980A (en
Inventor
俞斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Huaxi Investment Co ltd
Original Assignee
TCL Mobile Communication Technology Ningbo Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TCL Mobile Communication Technology Ningbo Ltd filed Critical TCL Mobile Communication Technology Ningbo Ltd
Priority to CN201811629740.6A priority Critical patent/CN109639980B/en
Publication of CN109639980A publication Critical patent/CN109639980A/en
Application granted granted Critical
Publication of CN109639980B publication Critical patent/CN109639980B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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

Abstract

The invention discloses a mobile terminal image preview control method, a storage medium and a mobile terminal, wherein the method comprises the following steps: presetting a plurality of speed gears with different heights; detecting whether a camera is started or not, and when the camera is detected to be started, acquiring a current image of the camera according to a last set gear speed and displaying the current image; comparing whether the current image is the same as the last image or not, and recording a comparison result; judging whether the continuous same times of the comparison result reach P times, and if so, reducing the rate of acquiring the current image at the camera to a lower level; judging whether the continuous and different times of the comparison result reach Q times or not, and if so, increasing the rate of acquiring the current image at the camera to a first level; the current image is stored. The invention not only can ensure the reliability of data, but also can fully utilize the performance of the mobile terminal, so that the preview effect is more stable, and the effect of saving the electric energy of the mobile terminal can be achieved.

Description

Mobile terminal image preview control method, storage medium and mobile terminal
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a mobile terminal image preview control method, a storage medium and a mobile terminal.
Background
Currently, mobile terminals are equipped with cameras so that users can take video, pictures, etc. through the mobile terminals. The process that the user uses the camera is to open the camera, the display image for previewing appears on the screen at the moment, the user shoots according to the display image for previewing, and the camera is in the previewing state except for video recording and shooting, so that the user mostly displays the preview image when using the camera, and the control on the preview image is very important, so the display effect of previewing is very important, and particularly the display stability of previewing is very important. However, in the existing mobile terminals, the current image is obtained from the camera at a fixed rate for previewing, which not only wastes electric energy easily, but also cannot reasonably regulate and control the performance of the mobile terminal.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
In view of the above deficiencies of the prior art, an object of the present invention is to provide a mobile terminal image preview control method, a storage medium and a mobile terminal, which aim to solve the problems that the method for previewing an image to be captured by a mobile terminal in the prior art is prone to cause power waste and cannot reasonably regulate and control the performance of a camera.
The technical scheme of the invention is as follows:
a mobile terminal image preview control method comprises the following steps:
presetting a plurality of speed gears with different heights;
detecting whether a camera is started or not, and when the camera is detected to be started, acquiring a current image of the camera according to a last set gear speed and displaying the current image;
comparing whether the current image is the same as the last image or not, and recording a comparison result;
judging whether the continuous same times of the comparison result reach P times, and if so, reducing the rate of acquiring the current image at the camera to a lower level; judging whether the continuous and different times of the comparison result reach Q times or not, and if so, increasing the rate of acquiring the current image at the camera to a first level;
the current image is stored.
The image preview control method for the mobile terminal comprises the steps of comparing whether the current image is the same as the last image or not and recording the comparison result, and specifically comprises the following steps:
presetting the number of times of the continuous same comparison result as M, presetting the number of times of the continuous different comparison result as N, and initializing M =0 and N = 0;
and comparing the current image with the last image, if the current image is the same as the last image, recording M = M +1 and N =0, and if the current image is different from the last image, recording M =0 and N = N + 1.
The image preview control method for the mobile terminal, wherein the step of judging whether the number of times of the comparison result is continuously the same reaches P times, and if so, the step of reducing the rate of acquiring the current image at the camera to the lower first level further comprises the following steps:
judging whether the current speed is in the lowest gear, and if so, discarding the down-regulation instruction;
the step of judging whether the number of times of the continuous and different comparison results reaches Q times, and after the step of increasing the rate of acquiring the current image at the camera to a high first gear, further comprises:
and judging whether the current speed is in the highest gear, and if so, discarding the up-regulation instruction.
The image preview control method of the mobile terminal is characterized in that when the current image is stored in the step, the current image is stored in a mode of replacing the last image.
The mobile terminal image preview control method comprises the steps of comparing whether a current image is the same as a previous image or not, judging that the current image is the same as the previous image if the repetition rate of image data of the current image and the previous image reaches a preset threshold value, and otherwise, judging that the current image is not the same as the previous image.
The image preview control method for the mobile terminal comprises the step of presetting 5 speed gears from low to high in a plurality of speed gears with different heights.
The mobile terminal image preview control method comprises the steps that the 5 speed gears are respectively a first gear for acquiring a current image of the camera every 5s, a second gear for acquiring the current image of the camera every 2s, a third gear for acquiring the current image of the camera every 1s, a fourth gear for acquiring the current image of the camera every 500ms, and a fifth gear for acquiring the current image of the camera every 100 ms.
In the image preview control method of the mobile terminal, both P and Q are 10.
The image preview control method of the mobile terminal is characterized in that the mobile terminal is a mobile phone or a tablet computer.
A storage medium having stored thereon a plurality of instructions, wherein the instructions are adapted to be loaded by a processor and to perform a mobile terminal image preview control method as described above.
A mobile terminal, comprising:
a processor adapted to implement instructions; and
a storage medium adapted to store a plurality of instructions adapted to be loaded by a processor and to perform the mobile terminal image preview control method as described above.
Has the advantages that: according to the invention, through presetting a plurality of speed gears, the gear speed of the current image at the camera can be dynamically adjusted and obtained according to the change state of the current image in the camera of the mobile terminal, so that the reliability of data can be ensured, the performance of the mobile terminal can be fully utilized, the previewing effect is more stable, and the effect of saving the electric energy of the mobile terminal can be achieved.
Drawings
FIG. 1 is a flowchart illustrating a mobile terminal image preview control method according to a preferred embodiment of the present invention;
fig. 2 is a schematic structural diagram of a mobile terminal according to the present invention.
Detailed Description
The present invention provides a mobile terminal image preview control method, a storage medium and a mobile terminal, and the present invention is further described in detail below in order to make the objects, technical solutions and effects of the present invention clearer and clearer. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
A mobile terminal image preview control method, as shown in fig. 1, includes the following steps:
s1, presetting a plurality of speed gears with different heights;
s2, detecting whether the camera is started or not, and when the camera is detected to be started, acquiring a current image at the camera according to the last set gear speed and displaying the current image;
s3, comparing whether the current image is the same as the last image or not, and recording the comparison result;
s4, judging whether the number of times of the comparison result is continuously the same reaches P times, and if so, reducing the rate of acquiring the current image at the camera to a lower level; judging whether the continuous and different times of the comparison result reach Q times or not, and if so, increasing the rate of acquiring the current image at the camera to a first level;
and S5, storing the current image.
In the mobile terminal image preview control method, a plurality of speed gears are preset in the mobile terminal, then whether the current image at the camera is the same as the last image is compared, the speed of acquiring the current image at the camera is adjusted to be a lower gear (namely, a gear with slower acquisition speed) when the continuous same times reach P times, and the speed of acquiring the current image at the camera is adjusted to be a higher gear (namely, a gear with faster acquisition speed) when the continuous different times reach Q times, so that the speed of acquiring the current image from the camera is dynamically adjusted, the preview instantaneity can be ensured when the current image changes frequently, and the electric energy of the mobile terminal can be saved when the current image is relatively stable.
Specifically, in step S1, it is necessary to set a plurality of speed gears corresponding to different current image capturing rates first, so as to control the mobile terminal to capture the current image at the camera at different rates. And the current image is a current environment scene picture which is just opposite to the camera after the camera is started.
Preferably, 3, 5 or 7 speed gears from low to high can be preset to correspondingly realize 3, 5 or 7 gear adjustments. Preferably, 5 speed gears are preset, wherein the 5 speed gears are a first gear for acquiring a current image of the camera every 5s, a second gear for acquiring a current image of the camera every 2s, a third gear for acquiring a current image of the camera every 1s, a fourth gear for acquiring a current image of the camera every 500ms, and a fifth gear for acquiring a current image of the camera every 100ms, respectively.
In step S2, it is required to detect whether the camera is turned on, and when it is detected that the camera is turned on, obtain the current image of the camera according to the last set shift rate and display the current image, that is, after each time the camera is turned on, first, the current image of the camera according to the last set acquisition rate is obtained, and the current image is displayed on the screen, so as to implement the preview effect. In other words, after each use of the camera, the current bit rate is saved as the initial acquisition rate of the current image after the camera is turned on next time. Of course, a specific initial acquisition rate may also be preset, and the current image at the camera is acquired and displayed at the initial acquisition rate each time the camera is turned on, and then the speed gear is adjusted according to whether the current image is frequently changed.
In the above solution of the present invention, it is determined that the current image is not frequently changed according to whether the current image is the same as the previous image for P consecutive times, and it is determined that the current image is frequently changed according to whether the image is different from the previous image for Q consecutive times, in step S3, the current image and the previous image need to be compared once each time to see whether the current image and the previous image are the same, and the same or different comparison results are recorded, which specifically includes: presetting the number of times of the continuous same comparison result as M, presetting the number of times of the continuous different comparison result as N, and initializing M =0 and N = 0; and comparing the current image with the last image, if the current image is the same as the last image, recording M = M +1 and N =0, and if the current image is different from the last image, recording M =0 and N = N + 1.
That is, in step S3, the zeroing process is performed for different consecutive times every time the current image is compared with the previous image, and the zeroing process is performed for the same consecutive times every time the current image is compared with the previous image.
Preferably, in the present invention, the image data of the current image is compared with the image data of the previous image, and whether the repetition rate of the current image and the image data of the previous image reaches a preset threshold is determined, when the repetition rate of the current image and the repetition rate of the previous image reach the preset threshold, the current image is determined to be the same as the previous image, otherwise, the current image is determined to be different from the previous image, wherein the preset threshold may be 95-100%; more preferably, the preset threshold is 99%.
Preferably, both P and Q are 10. Obviously, a timer needs to be preset to trigger the mobile terminal to acquire the current image of the camera at a corresponding speed gear regularly, so the specific processing of step S3 is that a shift register is arranged in the mobile terminal, the shift register is composed of ten bits (10 bits ), the ten bits of the shift register are all set to 0 after the camera is started, each bit in the shift register is shifted to the left after the camera preview detection timer times out every time, if the current image acquired from the camera and the data are different from the previous data, the rightmost position 1 in the shift register is used, and the data are the same as the previous data, and the position is zero; if the sum of all the phases in the shift register is equal to 10, controlling a camera preview receiving rate selection unit to select a receiving rate of a first higher gear; and if the sum of all the bits in the shift register is equal to 0, controlling the camera preview receiving rate selection unit to select the receiving rate of the next lower level.
In step S4, whether the number of times that the comparison result is continuously the same reaches P times is determined, which indicates that the current image change of the camera is not obvious, and the rate of acquiring the current image at the camera can be adjusted to a lower level without affecting the preview effect, and the power can be saved; if the number of times of continuous and different comparison results reaches Q times, which indicates that the current image at the camera changes frequently, the rate of acquiring the current image at the camera needs to be increased to a high level, so as to ensure that the preview efficiency is stable without omission.
In addition, in step S4, after the number of times that the comparison result is continuously the same reaches P times, it is further determined whether the current rate is at the lowest gear, and it is determined whether the current rate is at the lowest gear, if so, it is determined that the image acquisition rate cannot be further adjusted downward, and thus the downward adjustment instruction is discarded;
similarly, after the number of times of continuous difference of the comparison results reaches Q times, whether the current speed is in the highest gear is further determined, if so, it is determined that the image acquisition speed cannot be further adjusted, and the adjustment instruction is discarded.
In step S5, the acquired current image needs to be saved as the last image for the next comparison, so as to facilitate the next comparison process. Preferably, the storage is performed in a manner of replacing the last image, so as to save the storage space.
In the image preview control method of the mobile terminal of the present invention, the mobile terminal may be a mobile phone or a tablet computer, and may be a camera at present.
Based on the method, the invention also provides a storage medium, wherein a plurality of instructions are stored on the storage medium, and the instructions are suitable for being loaded by a processor and executing the image preview control method of the mobile terminal.
Based on the above method, the present invention further provides a mobile terminal, wherein as shown in fig. 2, the method includes:
a camera 100 for generating a current image from a front scene;
a processor 200 adapted to implement instructions; and
a storage medium 300 adapted to store a plurality of instructions adapted to be loaded by a processor and to perform the mobile terminal image preview control method as described above.
Technical details and advantages with respect to the above mobile terminal and storage medium have been set forth in the above method and will not be described again.
In summary, according to the mobile terminal image preview control method, the storage medium and the mobile terminal provided by the invention, by presetting a plurality of speed gears, the gear speed of the current image at the camera can be dynamically adjusted according to the change state of the current image in the camera of the mobile terminal, so that not only can the reliability of data be ensured, but also the performance of the mobile terminal can be fully utilized, the preview effect is more stable, and the effect of saving the electric energy of the mobile terminal can be achieved.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (7)

1. A mobile terminal image preview control method is characterized by comprising the following steps:
presetting a plurality of speed gears with different heights;
detecting whether a camera is started or not, and when the camera is detected to be started, acquiring a current image of the camera according to a last set gear speed and displaying the current image;
comparing whether the current image is the same as the last image or not, if the image data repetition rate of the current image and the last image reaches a preset threshold value, judging that the current image is the same as the last image, otherwise, judging that the current image is different from the last image, and recording a comparison result;
judging whether the continuous same times of the comparison result reach P times, and if so, reducing the rate of acquiring the current image at the camera to a lower level; judging whether the continuous and different times of the comparison result reach Q times or not, and if so, increasing the rate of acquiring the current image at the camera to a first level;
the step of comparing whether the current image is the same as the last image and recording the comparison result specifically comprises the following steps:
presetting M as the number of times that the comparison results are continuously the same, presetting N as the number of times that the comparison results are continuously different, and initializing M to be 0 and N to be 0;
comparing the current image with the last image, if the current image is the same as the last image, recording M +1 and N + 0, and if the current image is different from the last image, recording M + 0 and N + 1;
storing the current image;
when the current image is stored, the current image is stored in a mode of replacing the last image.
2. The image preview control method of a mobile terminal according to claim 1,
the step of judging whether the number of times of the comparison result is continuously the same reaches P times, and after the step of adjusting the rate of acquiring the current image at the camera to the first lower level, the method further comprises the following steps:
judging whether the current speed is in the lowest gear, and if so, discarding the down-regulation instruction;
the step of judging whether the number of times of the continuous and different comparison results reaches Q times, and after the step of increasing the rate of acquiring the current image at the camera to a high first gear, further comprises:
and judging whether the current speed is in the highest gear, and if so, discarding the up-regulation instruction.
3. The image preview control method of a mobile terminal according to claim 1, wherein 5 speed steps from low to high are preset in the plurality of speed steps with different heights preset in the step.
4. The image preview control method of a mobile terminal according to claim 1, wherein P and Q are both 10.
5. The image preview control method of a mobile terminal according to claim 1, wherein the mobile terminal is a mobile phone or a tablet computer.
6. A storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor and to perform a method for image preview control of a mobile terminal according to any of claims 1 to 5.
7. A mobile terminal, comprising:
a camera;
a processor adapted to implement instructions; and
a storage medium adapted to store a plurality of instructions adapted to be loaded by a processor and to perform a mobile terminal image preview control method according to any of claims 1 to 5.
CN201811629740.6A 2018-12-28 2018-12-28 Mobile terminal image preview control method, storage medium and mobile terminal Active CN109639980B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811629740.6A CN109639980B (en) 2018-12-28 2018-12-28 Mobile terminal image preview control method, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811629740.6A CN109639980B (en) 2018-12-28 2018-12-28 Mobile terminal image preview control method, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN109639980A CN109639980A (en) 2019-04-16
CN109639980B true CN109639980B (en) 2021-10-22

Family

ID=66079073

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811629740.6A Active CN109639980B (en) 2018-12-28 2018-12-28 Mobile terminal image preview control method, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN109639980B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102341764A (en) * 2009-03-06 2012-02-01 诺基亚公司 Method and device to extend camera battery life
CN104270535A (en) * 2014-10-16 2015-01-07 深圳市中兴移动通信有限公司 Method, device and system for regulating and controlling camera shooting and picture recording power consumption
CN105528050A (en) * 2014-09-30 2016-04-27 宇龙计算机通信科技(深圳)有限公司 Terminal and terminal display control method
CN108810277A (en) * 2018-06-15 2018-11-13 Oppo广东移动通信有限公司 It takes pictures method for previewing and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7017053B2 (en) * 2002-01-04 2006-03-21 Ati Technologies, Inc. System for reduced power consumption by monitoring video content and method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102341764A (en) * 2009-03-06 2012-02-01 诺基亚公司 Method and device to extend camera battery life
CN105528050A (en) * 2014-09-30 2016-04-27 宇龙计算机通信科技(深圳)有限公司 Terminal and terminal display control method
CN104270535A (en) * 2014-10-16 2015-01-07 深圳市中兴移动通信有限公司 Method, device and system for regulating and controlling camera shooting and picture recording power consumption
CN108810277A (en) * 2018-06-15 2018-11-13 Oppo广东移动通信有限公司 It takes pictures method for previewing and device

Also Published As

Publication number Publication date
CN109639980A (en) 2019-04-16

Similar Documents

Publication Publication Date Title
CN111654629B (en) Camera switching method and device, electronic equipment and readable storage medium
CN103002152B (en) Mobile terminal continuous photographing method and device
KR101867445B1 (en) Mobile terminal and method for starting shooting on mobile terminal
CN107124545B (en) Method for automatically switching terminal focusing modes and terminal
CN111432143B (en) Control method, system, medium and electronic device for switching camera modules
KR102587377B1 (en) Imaging apparatus, flicker detection method, and program
EP2523450A1 (en) Handheld electronic device with dual image capturing method and computer program product
JP5775679B2 (en) Digital camera
CN101729777B (en) Digital image acquisition method and equipment
CN104539844A (en) Terminal
CN105323484B (en) Rapid photographing method and electronic equipment
CN104580891A (en) Method for terminal to take images
WO2023030223A1 (en) Photographing method and apparatus, and electronic device
CN109639980B (en) Mobile terminal image preview control method, storage medium and mobile terminal
CN105426081B (en) Interface switching device and method of mobile terminal
CN106488128B (en) Automatic photographing method and device
CN112653841B (en) Shooting method and device and electronic equipment
CN105025228A (en) Method for recording video and images continuously based on picture states
WO2017071560A1 (en) Picture processing method and device
CN106993138B (en) Time-gradient image shooting device and method
JP2015007797A (en) Digital camera and digital camera control method
CN109151305B (en) Method for controlling mobile terminal to continuously shoot, storage device and mobile terminal
CN115881021B (en) Display control circuit and method, and micro display device
JP2011171917A (en) Mobile terminal, and method and program for setting photographing system
CN117278842A (en) Shooting control method, shooting control device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230403

Address after: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Patentee after: Shenzhen Huaxi Investment Co.,Ltd.

Address before: 10 / F, No.5, Lane 999, Yangfan Road, high tech Zone, Ningbo, Zhejiang 315100

Patentee before: TCL mobile communication technology (Ningbo) Co.,Ltd.