CN110493519B - Image acquisition method of mobile terminal, computer readable medium and computer device - Google Patents

Image acquisition method of mobile terminal, computer readable medium and computer device Download PDF

Info

Publication number
CN110493519B
CN110493519B CN201910761898.7A CN201910761898A CN110493519B CN 110493519 B CN110493519 B CN 110493519B CN 201910761898 A CN201910761898 A CN 201910761898A CN 110493519 B CN110493519 B CN 110493519B
Authority
CN
China
Prior art keywords
brightness value
image
mobile terminal
subinterval
interval
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
CN201910761898.7A
Other languages
Chinese (zh)
Other versions
CN110493519A (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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201910761898.7A priority Critical patent/CN110493519B/en
Publication of CN110493519A publication Critical patent/CN110493519A/en
Application granted granted Critical
Publication of CN110493519B publication Critical patent/CN110493519B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • 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/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • 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
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/71Circuitry for evaluating the brightness variation

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses an image acquisition method of a mobile terminal, a computer readable medium and computer equipment. The image acquisition method comprises the following steps: determining that the mobile terminal starts a face unlocking function; the mobile terminal periodically detects the brightness value of the face to be shot; the mobile terminal compares the brightness value with a first preset brightness interval and determines a first subinterval to which the brightness value belongs, wherein the first preset brightness interval comprises at least two first subintervals arranged from low to high; the mobile terminal determines image acquisition frequency according to the first subinterval to which the brightness value belongs, and acquires a face image according to the image acquisition frequency; each first subinterval corresponds to an image acquisition frequency, and the image acquisition frequencies are decreased from low to high according to the first subinterval. When the brightness of the face to be shot is detected to be large, the image acquisition frequency is reduced, and when the brightness of the face image acquired by the camera is detected to be large, the image output frame rate is reduced, the data volume is reduced, and the storage space is saved.

Description

Image acquisition method of mobile terminal, computer readable medium and computer device
Technical Field
The invention belongs to the technical field of mobile terminals, and particularly relates to an image acquisition method, a computer readable medium and computer equipment of a mobile terminal.
Background
At present, a camera is generally adopted by a mobile terminal, a user can shoot and pick up images through the camera configured on the mobile terminal, so that the mobile terminal becomes a true digital camera, the digital camera function of the mobile terminal refers to whether the mobile terminal can shoot still pictures or short films through a built-in or external digital camera, and as a new additional function of the mobile terminal, the digital camera function of the mobile terminal is rapidly developed. With the improvement of the pixels of the camera, the shooting effect of the camera is closer to that of the traditional card camera and even a low-end single-lens reflex camera. The mobile terminal camera is divided into an internal camera and an external camera, and the internal camera is the camera inside the mobile terminal, so that the mobile terminal is more convenient. The external mobile terminal is connected with the digital camera through a data line or a lower interface of the mobile terminal to complete all shooting functions of the digital camera. The external digital camera has the advantages that the weight of the mobile terminal can be reduced, and the external digital camera is light in weight, convenient to carry and simple in use method. The performance of digital cameras of mobile terminals in a development stage should also be in an early stage, with only individual mobile terminal cameras having an optical zoom function, but most having a digital zoom function. It is believed that mobile terminals with optical zoom will gradually come into the market as the digital camera functions of the mobile terminals are developed. In addition, the digital camera functions of the mobile terminal mainly include still image shooting, continuous shooting, short-film shooting, lens rotation, automatic white balance, built-in flash, and the like. The shooting function of the mobile terminal is in direct relation with the screen material, the resolution of the screen, the camera pixels and the camera material.
On the other hand, the camera-based application functions are more and more, if face unlocking is a very common camera application, a user only needs to align the face to the camera to achieve the purpose of unlocking the mobile terminal through feature matching on the face, the trouble that the traditional unlocking needs to be input by hand is avoided, and the mobile terminal is safe and fast.
When the face is unlocked, the image collected by the camera of the mobile terminal is recorded in the prior art. Because it is considered that the requirement for the image is not high in the scene where the face is unlocked, it is sufficient if the content can be recognized. However, in the prior art, when the face is unlocked, the camera still obtains a high-definition face image, which results in a large data volume, and thus occupies a large storage space.
Disclosure of Invention
(I) technical problems to be solved by the invention
The technical problem to be solved by the invention is as follows: when the face is unlocked, the data volume generated in the process of acquiring the image is reduced, so that the occupied storage space is reduced.
(II) the technical scheme adopted by the invention
In order to achieve the purpose, the invention adopts the following technical scheme:
an image acquisition method of a mobile terminal, the image acquisition method comprising:
determining that the mobile terminal starts a face unlocking function;
the mobile terminal periodically detects the brightness value of the face to be shot;
the mobile terminal compares the brightness value with a first preset brightness interval and determines a first sub-interval to which the brightness value belongs, wherein the first preset brightness interval comprises at least two first sub-intervals which are arranged from low to high;
the mobile terminal determines image acquisition frequency according to the first subinterval to which the brightness value belongs, and acquires a face image according to the image acquisition frequency; each first subinterval corresponds to an image acquisition frequency, and the image acquisition frequencies are decreased from low to high according to the first subinterval.
Preferably, the partial intervals of two adjacent first subintervals overlap.
Preferably, the specific method for the mobile terminal to compare the brightness value with a first preset brightness interval and determine a first subinterval to which the brightness value belongs includes:
judging whether the brightness value detected in the current period is in the overlapping interval of the two adjacent first subintervals;
if yes, judging whether the brightness value detected in the previous period is in one of the two adjacent first subintervals;
if yes, determining that the first subinterval to which the brightness value of the current period belongs is the same as the first subinterval to which the brightness value of the previous period belongs.
Preferably, the specific method for the mobile terminal to compare the brightness value with a first preset brightness interval and determine a first subinterval to which the brightness value belongs includes:
judging whether the brightness value detected in the current period is in the overlapping interval of the two adjacent first subintervals;
if yes, judging whether the brightness value detected in the previous period is in one of the two adjacent first subintervals;
if not, determining the first subinterval with the lower corresponding image acquisition frequency in the two adjacent first subintervals as the first subinterval to which the brightness value of the current period belongs.
Preferably, the image acquisition method further comprises:
the mobile terminal periodically detects the brightness value of the collected face image;
the mobile terminal compares the brightness value of the face image with a second preset brightness interval and determines a second subinterval to which the brightness value of the face image belongs, wherein the second preset brightness interval comprises at least two second subintervals arranged from low to high;
the mobile terminal determines an image output frame rate according to a second subinterval to which the brightness value of the face image belongs, and outputs the face image according to the image output frame rate; each second subinterval corresponds to an image output frame rate, and the image output frame rates are decreased from low to high according to the second subintervals.
Preferably, the partial intervals of two adjacent second subintervals overlap.
Preferably, the specific method for the mobile terminal to compare the brightness value of the face image with a second preset brightness interval and determine a second sub-interval to which the brightness value of the face image belongs includes:
judging whether the brightness value of the face image detected in the current period is in the overlapping interval of the two adjacent second subintervals;
if yes, judging whether the brightness value of the face image detected in the previous period is in one of the two adjacent second subintervals;
if yes, determining that the second subinterval to which the brightness value of the face image in the current period belongs is the same as the second subinterval to which the brightness value of the face image in the previous period belongs.
Preferably, the specific method for the mobile terminal to compare the brightness value of the face image with a second preset brightness interval and determine a second sub-interval to which the brightness value of the face image belongs includes:
judging whether the brightness value of the face image detected in the current period is in the overlapping interval of the two adjacent second subintervals;
if yes, judging whether the brightness value of the face image detected in the previous period is in one of the two adjacent second subintervals;
if not, determining the second subinterval with the lower corresponding image output frame rate in the two adjacent second subintervals as the second subinterval to which the brightness value of the face image in the current period belongs.
The invention also discloses a computer readable medium, wherein the computer readable medium stores an image acquisition program of the mobile terminal, and the image acquisition program of the mobile terminal is executed by the processor to realize any one of the image acquisition methods of the mobile terminal.
The invention also discloses a computer device, comprising: the image acquisition system comprises a memory, a processor and an image acquisition program of the mobile terminal stored on the memory, wherein the image acquisition program of the mobile terminal realizes any one of the image acquisition methods of the mobile terminal when being executed by the processor.
(III) advantageous effects
According to the image acquisition method of the mobile terminal, disclosed by the invention, by dividing the plurality of brightness spaces, when the brightness of the face to be shot is detected to be larger, the image acquisition frequency of the camera is properly reduced, and the camera can acquire the face image meeting the face unlocking requirement. Further, when the brightness of the face image collected by the camera is detected to be large, the image output frame rate of the camera is properly reduced, the camera can also output the face image meeting the face unlocking requirement, and therefore the data volume generated in the face unlocking process is reduced as much as possible, the storage space is saved, and the storage efficiency of the mobile terminal is improved.
Drawings
FIG. 1 is a flowchart of an image acquisition method according to a first embodiment of the present invention;
FIG. 2 is a flowchart of an image acquisition method according to a second embodiment of the present invention;
fig. 3 is a block diagram of a computer device according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail with reference to the following embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
The application provides an image acquisition method of a mobile terminal, which aims to adopt an image with lower definition when the mobile terminal dynamically shoots and records an image, the image is only used for face unlocking, and the requirement on the image quality is not high, so that the storage space of the image is reduced, the resources of the mobile terminal are saved, and the storage efficiency of the mobile terminal is improved. One factor related to the high and low image quality is the acquisition frequency of the camera, and the higher the acquisition frequency is, the higher the definition of the acquired image is, but the more storage space is occupied.
As shown in fig. 1, an image capturing method of a mobile terminal according to a first embodiment of the present invention includes the following steps:
step S10: and determining that the mobile terminal starts a face unlocking function.
Specifically, when the mobile terminal is unlocked through the face unlocking function, the front camera is generally turned on to capture a face image, and certainly, the rear camera may be turned on to capture the face image, which is not limited herein. The face unlocking function is started in many ways, for example, by pressing a specific physical key or a virtual key, a camera is started to shoot the face of a user, a specific gesture action can be set, for example, the camera is started by lifting up the mobile terminal, shaking the mobile terminal, and the like, and when the face unlocking function of the mobile terminal is started, the camera is in a dynamic shooting state, that is, in a shooting preview state.
Step S20: the mobile terminal periodically detects a brightness value of a face to be photographed.
After the mobile terminal starts the face unlocking function, the mobile terminal starts a built-in timer with the overtime time being TTW, and periodically detects the brightness value of the face to be shot of the user every TTW time. Specifically, when the timer is started, an ambient light sensor built in the mobile terminal detects a brightness value of the face of the user. Preferably, the value of TTW is chosen to be 200 milliseconds.
Step S30: the mobile terminal compares the brightness value with a first preset brightness interval and determines a first sub-interval to which the brightness value belongs, wherein the first preset brightness interval comprises at least two first sub-intervals which are arranged from low to high.
As a preferred embodiment, partial intervals of two adjacent first subintervals are overlapped, so that frequent switching of the frequency of images acquired by the camera can be avoided, and the load of the system is prevented from increasing. If the image luminance levels are at the boundary image luminance level between two sections, it is easy to frequently switch the image luminance levels between the two sections to increase the system load in consideration of errors, provided that the overlap is not provided between the sections but is directly adjacent to each other. For example, if one image brightness interval is [100, 140], the other image brightness interval is [140,180], then when the image brightness is around 140, the image brightness in the previous period is in the interval [100, 140 ]; the brightness of the image in the next period is in intervals [140,180], and the acquisition frequency is continuously switched between two intervals, so that the system load is increased. When partial intervals of two adjacent first subintervals are overlapped, for example, one first subinterval is [100, 150], which corresponds to the acquisition frequency of the camera input image being a; another first subinterval is [130, 180], which corresponds to a camera input image acquisition frequency of B; when the brightness value is at [100, 130], it is obvious that the acquisition frequency corresponding to the input image of the camera is a; when the brightness value is positioned at [150, 180], the acquisition frequency obviously corresponding to the input image of the camera is B; when the brightness value is located in [130, 150], the brightness value corresponds to A or B according to which the brightness value corresponds to, so that frequent switching of the acquisition frequency can be avoided. For example, the capture frequency of the camera input image is a when the image brightness is 120, then the capture frequency of the camera input image is still a when the image brightness becomes 140, and then the capture frequency of the camera input image is B when the image brightness becomes 170. The capture frequency of the camera input image is B when the image brightness is 170, then B when the image brightness becomes 140, and then a when the image brightness becomes 120. It should be noted that, in other embodiments, the image capturing method of the present invention may be implemented when two adjacent first sub-sections do not overlap, and therefore, the present specification does not impose a limitation on whether two adjacent first sub-sections overlap.
Further, illustratively, the first preset luminance interval is divided into three first sub-intervals. Specifically, three first subintervals are divided between the minimum luminance value Vmin and the maximum luminance value Vmax detectable by the ambient light sensor, which are [ Vmin, V2], [ V1, V4] and [ V3, Vmax ], respectively, where Vmin < V1 < V2 < V3 < V4 < Vmax, where [ Vmin, V2] denotes that the luminance value is greater than or equal to Vmin and less than or equal to V2, and [ V1, V4] and [ V3, Vmax ] have the same meaning as [ Vmin, V2 ]. Thus, the first preset brightness interval is divided into three first sub-intervals from low to high, and each two adjacent first sub-intervals have an overlapping part.
Specifically, in one embodiment, the step S30 specifically includes the following steps:
step S31: and judging whether the brightness value detected in the current period is in the overlapping interval of the two adjacent first subintervals.
Step S32: if yes, judging whether the brightness value detected in the previous period is in one of the two adjacent first subintervals;
step S33: if yes, determining that the first subinterval to which the brightness value of the current period belongs is the same as the first subinterval to which the brightness value of the previous period belongs.
This step S30 will be described below by way of example. For example, when the brightness value Vnext detected in the current period is within the overlapping range of [ Vmin, V2] and [ V1, V4], and it is determined that the brightness value Vbefore detected in the previous period is within [ Vmin, V2] or [ V1, V4], the first sub-interval to which the brightness value Vnext detected in the current period belongs is maintained to be the same as the first sub-interval to which the brightness value Vbefore detected in the previous period belongs, that is, [ Vmin, V2] or [ V1, V4], so that when the brightness value does not change greatly, the stability of the interval to which the brightness value belongs can be ensured, and the acquisition frequency of the camera is further prevented from being frequently switched. It should be noted that, if the brightness value detected in the current period is not within the overlapping range of any two adjacent first sub-intervals, the first sub-interval in which the brightness value is located is directly determined as the first sub-interval to which the brightness value of the current period belongs.
In another embodiment, the step S30 specifically includes the following steps:
step S31': and judging whether the brightness value detected in the current period is in the overlapping interval of the two adjacent first subintervals.
Step S32': if yes, judging whether the brightness value detected in the previous period is in one of the two adjacent first subintervals;
step S33': if not, determining the first subinterval with the lower corresponding image acquisition frequency in the two adjacent first subintervals as the first subinterval to which the brightness value of the current period belongs.
This step S30 will be described below by way of example. For example, when the brightness value Vnext detected in the current period is in the overlapping range of [ V1, V4] and [ V3, Vmax ], and it is determined that the brightness value Vbefore detected in the previous period is not in [ V3, Vmax ], not in [ V1, V4], but in [ Vmin, V2], because the image capture frequency corresponding to [ V3, Vmax ] is less than the image capture frequency corresponding to [ V1, V4], the first sub-interval to which the brightness value Vnext detected in the current period belongs is determined as [ V3, Vmax ], so that when the brightness value changes in the previous and subsequent two periods are large, the small image capture frequency is adopted as much as possible on the premise that the captured image meets the basic requirement, so as to reduce the data amount generated by the face image captured by the camera, and further save the memory space.
Step S40: the mobile terminal determines image acquisition frequency according to the first subinterval to which the brightness value belongs, and acquires a face image according to the image acquisition frequency; each first subinterval corresponds to an image acquisition frequency, and the image acquisition frequencies are decreased from low to high according to the first subinterval.
Specifically, for example, the three first sub-intervals [ Vmin, V2], [ V1, V4] and [ V3, Vmax ] correspond to three image capturing frequencies F1, F2 and F3, respectively, wherein F1 > F2 > F3, i.e., the higher the luminance value, the lower the corresponding image capturing frequency. Because the higher the face brightness value is, the more easily the face is identified, at this moment, the higher image acquisition frequency is not needed, and the camera can acquire the face image meeting the face unlocking requirement.
According to the image acquisition method of the mobile terminal, the plurality of brightness spaces are divided, when the brightness of the face to be shot is detected to be large, the image acquisition frequency of the camera is properly reduced, the camera can acquire the face image meeting the face unlocking requirement, the data volume generated in the face unlocking process is reduced as much as possible, the storage space is saved, and the storage efficiency of the mobile terminal is improved.
Example two
In the face unlocking process, besides the face image needs to be shot dynamically, the shot face image needs to be output dynamically to complete the unlocking process, and due to the fact that the face unlocking does not have high requirements on the output image, the image with low definition can be adopted, so that the storage space of the image is reduced, the resources of the mobile terminal are saved, and the storage efficiency of the mobile terminal is improved. Among the factors related to the resolution of the output image is the image output frame rate, and the higher the image output frame rate is, the higher the resolution of the output image is, but the more the storage space is occupied.
As shown in fig. 2, the image capturing method of the mobile terminal according to the second embodiment of the present invention includes the following steps in addition to steps S10 to S40 in the first embodiment:
step S50: the mobile terminal periodically detects the brightness value of the acquired face image.
After the mobile terminal starts the face unlocking function, the mobile terminal starts a built-in timer with the overtime time being TTN, and periodically detects the brightness value of the collected face image every TTN. Specifically, after the timer is started, the camera of the mobile terminal detects the brightness value of the acquired face image. Preferably, the value of TTN is chosen to be 200 milliseconds.
Step S60: the mobile terminal compares the brightness value of the face image with a second preset brightness interval and determines a second subinterval to which the brightness value of the face image belongs, wherein the second preset brightness interval comprises at least two second subintervals arranged from low to high;
as a preferred embodiment, partial sections of two adjacent second sub-sections overlap, so that frequent switching of the image output frame rate of the camera head portrait can be avoided, and the system load is prevented from increasing. If the image luminance levels are at the boundary between two sections, it is easy to frequently switch the image luminance levels between the two sections to increase the system load in consideration of errors, provided that the overlap is not provided between the sections but is directly adjacent to each other. For example, if one image brightness interval is [100, 140], the other image brightness interval is [140,180], then when the image brightness is around 140, the image brightness in the previous period is in the interval [100, 140 ]; the image brightness in the next period is in the interval [140,180], and the image output frame rate is continuously switched in two intervals, thereby increasing the system load. When partial intervals of two adjacent second subintervals overlap, for example, one second subinterval is [100, 150], which corresponds to an image output frame rate of a camera output image being a; another second subinterval is [130, 180], which corresponds to an image output frame rate of the camera output image being B; when the brightness value is at [100, 130], it is apparent that the image output frame rate corresponding to the camera output image is a; when the brightness value is at [150, 180], the image output frame rate corresponding to the output image of the camera is obviously B; when the brightness value is in [130, 150], the brightness value is corresponding to A or B according to which the brightness value is originally corresponding to, so that the frequent switching of the image output frame rate can be avoided. For example, the image output frame rate of the camera output image is a when the image brightness is 120, then the image output frame rate of the camera output image is still a when the image brightness becomes 140, and then the image output frame rate of the camera output image is B when the image brightness becomes 170. The image output frame rate of the camera output image is B when the image brightness is 170, then B when the image brightness becomes 140, and then a when the image brightness becomes 120. It should be noted that, in other embodiments, the image capturing method of the present invention may be implemented when two adjacent second subintervals are not overlapped, and therefore, the present specification does not impose a limitation on whether two adjacent second subintervals are overlapped.
Further, the second preset luminance interval is illustratively divided into three second sub-intervals. Specifically, three second subintervals are divided between the minimum brightness value V 'min and the maximum brightness value V' max which can be detected by the camera, wherein V 'min, V' 2, [ V '1, V' 4] and [ V '3, V' max ], respectively, wherein V 'min < V' 1 < V '2 < V' 3 < V '4 < V' max, wherein [ V 'min, V' 2] represents that the brightness value is greater than or equal to V 'min and less than or equal to V' 2, and the meaning of [ V '1, V' 4] and [ V '3, V' max ] is similar to that of [ V 'min, V' 2 ]. In this way, the second preset brightness interval is divided into three second sub-intervals from low to high, and each two adjacent second sub-intervals have an overlapping part.
Specifically, in one embodiment, the step S60 specifically includes the following steps:
step S61: judging whether the brightness value of the face image detected in the current period is in the overlapping interval of the two adjacent second subintervals;
step S62: if yes, judging whether the brightness value of the face image detected in the previous period is in one of the two adjacent second subintervals;
step S63: if yes, determining that the second subinterval to which the brightness value of the face image in the current period belongs is the same as the second subinterval to which the brightness value of the face image in the previous period belongs.
This step S60 will be described below by way of example. For example, when the face image brightness value V ' next detected in the current period is within the overlapping range of [ V ' 1, V ' 4] and [ V ' 3, V ' max ], and it is determined that the brightness value V ' before of the face image detected in the previous period is not within [ V ' 3, V ' max ] and not within [ V ' 1, V ' 4], but within [ V ' min, V ' 2], since the image output frame rate corresponding to [ V ' 3, V ' max ] is smaller than the image output frame rate corresponding to [ V ' 1, V ' 4], the second sub-interval to which the brightness value V ' next of the face image detected in the current period belongs is determined as [ V ' 3, V ' max ], so that when the brightness value of the face image in the previous and subsequent two periods is largely changed, the image output frame rate is made as small as possible on the premise that the output image satisfies the basic requirement, the data volume generated when the camera outputs images is reduced, and the memory space is further saved.
Step S70: the mobile terminal determines an image output frame rate according to a second subinterval to which the brightness value of the face image belongs, and outputs the face image according to the image output frame rate; each second subinterval corresponds to an image output frame rate, and the image output frame rates are decreased from low to high according to the second subintervals.
Illustratively, the three second subintervals [ V 'min, V' 2], [ V '1, V' 4] and [ V '3, V' max ] correspond to three image output frame rates F '1, F' 2 and F '3, respectively, where F' 1 > F '2 > F' 3, i.e., the higher the luminance value of the face image, the lower the corresponding image output frame rate. The higher the brightness value of the face image is, the higher the definition of the face image is, at this time, a too high image output frame rate is not required, and the camera can output the face image meeting the face unlocking requirement.
In the image acquisition method of the mobile terminal disclosed in the second embodiment, by dividing the plurality of luminance spaces, when it is detected that the luminance of the face image acquired by the camera is relatively high, the image output frame rate of the camera is appropriately reduced, and the camera can also output the face image meeting the face unlocking requirement, so that the data volume generated in the face unlocking process is reduced as much as possible, the storage space is saved, and the storage efficiency of the mobile terminal is improved.
EXAMPLE III
According to the computer-readable medium of the third embodiment of the present invention, an image capturing program of the mobile terminal is stored in the computer-readable medium, and when the image capturing program of the mobile terminal is executed by the processor, the image capturing method of the mobile terminal according to the first embodiment or the second embodiment is implemented, and specific processes of the image capturing method have been described in the first embodiment and the second embodiment, which are not described herein again.
Further, as shown in fig. 3, the computer apparatus according to the third embodiment of the present invention includes: a memory 100, a processor 200, and an image capturing program 300 of the mobile terminal stored in the memory 100, where the image capturing program 300 of the mobile terminal is executed by the processor 200 to implement the image capturing method of the mobile terminal according to the first embodiment or the second embodiment, and specific processes of the image capturing method have been described in the first embodiment and the second embodiment, and are not described herein again.
The computer-readable medium of embodiment three of the present application may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: in this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing. Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
Although the illustrative embodiments of the present invention have been described above to enable those skilled in the art to understand the present invention, the present invention is not limited to the scope of the embodiments, and it is apparent to those skilled in the art that all the inventive concepts using the present invention are protected as long as they can be changed within the spirit and scope of the present invention as defined and defined by the appended claims.

Claims (10)

1. An image acquisition method of a mobile terminal, the image acquisition method comprising:
determining that the mobile terminal starts a face unlocking function;
the mobile terminal periodically detects the brightness value of the face to be shot;
the mobile terminal compares the brightness value with a first preset brightness interval and determines a first sub-interval to which the brightness value belongs, wherein the first preset brightness interval comprises at least two first sub-intervals which are arranged from low to high;
the mobile terminal determines image acquisition frequency according to the first subinterval to which the brightness value belongs, and acquires a face image according to the image acquisition frequency; each first subinterval corresponds to an image acquisition frequency, and the image acquisition frequencies are decreased from low to high according to the first subinterval.
2. The image capturing method of a mobile terminal according to claim 1, wherein partial intervals of two adjacent first subintervals overlap.
3. The image capturing method of claim 2, wherein the specific method for the mobile terminal to compare the brightness value with a first preset brightness interval and determine a first sub-interval to which the brightness value belongs includes:
judging whether the brightness value detected in the current period is in the overlapping interval of the two adjacent first subintervals;
if yes, judging whether the brightness value detected in the previous period is in one of the two adjacent first subintervals;
if yes, determining that the first subinterval to which the brightness value of the current period belongs is the same as the first subinterval to which the brightness value of the previous period belongs.
4. The image capturing method of claim 2, wherein the specific method for the mobile terminal to compare the brightness value with a first preset brightness interval and determine a first sub-interval to which the brightness value belongs includes:
judging whether the brightness value detected in the current period is in the overlapping interval of the two adjacent first subintervals;
if yes, judging whether the brightness value detected in the previous period is in one of the two adjacent first subintervals;
if not, determining the first subinterval with the lower corresponding image acquisition frequency in the two adjacent first subintervals as the first subinterval to which the brightness value of the current period belongs.
5. The image capturing method of a mobile terminal according to any one of claims 1 to 4, wherein the image capturing method further comprises:
the mobile terminal periodically detects the brightness value of the collected face image;
the mobile terminal compares the brightness value of the face image with a second preset brightness interval and determines a second subinterval to which the brightness value of the face image belongs, wherein the second preset brightness interval comprises at least two second subintervals arranged from low to high;
the mobile terminal determines an image output frame rate according to a second subinterval to which the brightness value of the face image belongs, and outputs the face image according to the image output frame rate; each second subinterval corresponds to an image output frame rate, and the image output frame rates are decreased from low to high according to the second subintervals.
6. The image capturing method of claim 5, wherein partial intervals of two adjacent second subintervals overlap.
7. The image capturing method of claim 6, wherein the specific method for the mobile terminal to compare the brightness value of the face image with a second preset brightness interval and determine a second sub-interval to which the brightness value of the face image belongs includes:
judging whether the brightness value of the face image detected in the current period is in the overlapping interval of the two adjacent second subintervals;
if yes, judging whether the brightness value of the face image detected in the previous period is in one of the two adjacent second subintervals;
if yes, determining that the second subinterval to which the brightness value of the face image in the current period belongs is the same as the second subinterval to which the brightness value of the face image in the previous period belongs.
8. The image capturing method of claim 6, wherein the specific method for the mobile terminal to compare the brightness value of the face image with a second preset brightness interval and determine a second sub-interval to which the brightness value of the face image belongs includes:
judging whether the brightness value of the face image detected in the current period is in the overlapping interval of the two adjacent second subintervals;
if yes, judging whether the brightness value of the face image detected in the previous period is in one of the two adjacent second subintervals;
if not, determining the second subinterval with the lower corresponding image output frame rate in the two adjacent second subintervals as the second subinterval to which the brightness value of the face image in the current period belongs.
9. A computer-readable medium, characterized in that the computer-readable medium stores an image capture program of a mobile terminal, which when executed by a processor implements the image capture method of the mobile terminal according to any one of claims 1 to 8.
10. A computer device, characterized in that the computer device comprises: memory, processor and an image acquisition program of a mobile terminal stored on the memory, which when executed by the processor implements the image acquisition method of a mobile terminal according to any one of claims 1 to 8.
CN201910761898.7A 2019-08-19 2019-08-19 Image acquisition method of mobile terminal, computer readable medium and computer device Active CN110493519B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910761898.7A CN110493519B (en) 2019-08-19 2019-08-19 Image acquisition method of mobile terminal, computer readable medium and computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910761898.7A CN110493519B (en) 2019-08-19 2019-08-19 Image acquisition method of mobile terminal, computer readable medium and computer device

Publications (2)

Publication Number Publication Date
CN110493519A CN110493519A (en) 2019-11-22
CN110493519B true CN110493519B (en) 2021-03-23

Family

ID=68551951

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910761898.7A Active CN110493519B (en) 2019-08-19 2019-08-19 Image acquisition method of mobile terminal, computer readable medium and computer device

Country Status (1)

Country Link
CN (1) CN110493519B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111311785A (en) * 2020-03-06 2020-06-19 浙江大华技术股份有限公司 Vehicle-mounted video storage method and device, control equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105072345A (en) * 2015-08-25 2015-11-18 深圳市巨米电子有限公司 Video encoding method and device
CN107172345A (en) * 2017-04-07 2017-09-15 深圳市金立通信设备有限公司 A kind of image processing method and terminal
CN107491672A (en) * 2017-07-18 2017-12-19 广东欧珀移动通信有限公司 Unlocking processing method and Related product
CN107909686A (en) * 2017-11-02 2018-04-13 广东欧珀移动通信有限公司 Method, apparatus, computer-readable recording medium and the electronic equipment of face unlock
CN108668022A (en) * 2018-04-26 2018-10-16 深圳市明泰电讯有限公司 A kind of face unlocking method under dark-state and its mobile terminal
CN110046597A (en) * 2019-04-19 2019-07-23 努比亚技术有限公司 Face identification method, mobile terminal and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105072345A (en) * 2015-08-25 2015-11-18 深圳市巨米电子有限公司 Video encoding method and device
CN107172345A (en) * 2017-04-07 2017-09-15 深圳市金立通信设备有限公司 A kind of image processing method and terminal
CN107491672A (en) * 2017-07-18 2017-12-19 广东欧珀移动通信有限公司 Unlocking processing method and Related product
CN107909686A (en) * 2017-11-02 2018-04-13 广东欧珀移动通信有限公司 Method, apparatus, computer-readable recording medium and the electronic equipment of face unlock
CN108668022A (en) * 2018-04-26 2018-10-16 深圳市明泰电讯有限公司 A kind of face unlocking method under dark-state and its mobile terminal
CN110046597A (en) * 2019-04-19 2019-07-23 努比亚技术有限公司 Face identification method, mobile terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN110493519A (en) 2019-11-22

Similar Documents

Publication Publication Date Title
CN101334578B (en) Image photographing apparatus, image photographing method, and computer program
CN103888683B (en) Mobile terminal and shooting method thereof
CN101610363B (en) Apparatus and method of blurring background of image in digital image processing device
US20170163878A1 (en) Method and electronic device for adjusting shooting parameters of camera
US10129488B2 (en) Method for shooting light-painting video, mobile terminal and computer storage medium
CN116055897B (en) Photographing method and related equipment thereof
CN108513069B (en) Image processing method, image processing device, storage medium and electronic equipment
WO2017080348A2 (en) Scene-based photographing device and method, and computer storage medium
CN105407295B (en) Mobile terminal filming apparatus and method
WO2023077939A1 (en) Camera switching method and apparatus, and electronic device and storage medium
KR102072731B1 (en) Photographing apparatus, method for controlling the same, and computer-readable storage medium
CN103442173A (en) Photographing method and device of camera in low-light environment
CN110493519B (en) Image acquisition method of mobile terminal, computer readable medium and computer device
WO2022083325A1 (en) Photographic preview method, electronic device, and storage medium
US10769416B2 (en) Image processing method, electronic device and storage medium
KR101547828B1 (en) Apparatus and method for image processing
CN117880628A (en) Shooting method and related equipment thereof
CN110266965B (en) Image processing method, image processing device, storage medium and electronic equipment
CN110266967B (en) Image processing method, image processing device, storage medium and electronic equipment
CN110995988A (en) Intelligent terminal, camera device control method and computer-readable storage medium
US10284783B2 (en) Imaging apparatus and control method of imaging apparatus
CN112218008B (en) Device control method, device, storage medium and electronic device
JP7174123B2 (en) Image processing device, photographing device, image processing method and image processing program
WO2022227200A1 (en) Method and apparatus for adjusting resolution during image capture, and smart device
CN114630016B (en) Image processing method, image processor and electronic equipment

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