CN108184065B - Preview frame screen generating method, device and mobile terminal - Google Patents
Preview frame screen generating method, device and mobile terminal Download PDFInfo
- Publication number
- CN108184065B CN108184065B CN201810008921.0A CN201810008921A CN108184065B CN 108184065 B CN108184065 B CN 108184065B CN 201810008921 A CN201810008921 A CN 201810008921A CN 108184065 B CN108184065 B CN 108184065B
- Authority
- CN
- China
- Prior art keywords
- delay time
- mobile terminal
- model
- preview frame
- matrix
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
- Telephone Function (AREA)
Abstract
The present embodiments relate to Internet technical field, providing a kind of preview frame screen generating method, device and mobile terminal, the mobile terminal includes photographic device, which comprises obtains the first preview frame picture of photographic device acquisition;The delay time of photographic device is predicted according to the current performance parameters of mobile terminal using the delay time prediction model pre-established;Within delay time, the second preview frame picture of photographic device acquisition is obtained, to obtain discrete preview frame picture.The embodiment of the present invention is after acquiring the first preview frame picture, the delay time of current performance parameters dynamic prediction photographic device according to mobile terminal, the second preview frame picture is acquired within delay time to realize, realizes the generation of discontinuous preview frame picture, it is practical.
Description
Technical field
The present invention relates to Internet technical fields, in particular to a kind of preview frame screen generating method, device and shifting
Dynamic terminal.
Background technique
Android is applied during calling camera acquisition data and generating picture, can obtain Camera drive first
Then dynamic class drives class to open camera and starts to carry out continuous preview (time interval 16.67ms) by Camera.Camera is pre-
Looking at substantially is exactly the color channel values for grabbing scene, generates the byte data of a yuv format, and YUV is substantially grayscale image
Picture, then YUV gray scale color data is switched to RGB color data by camera applications, and RGB is switched to Bitmap by last camera applications
Figure, material is thus formed the frames in camera applications in preview scene picture.
It is above-mentioned be current camera apply carry out scene take pictures and generate video when mainstream way, i.e., every 16.67ms
It generates a picture (frame), at least 60 frames can be continuously generated in 1s.But the process flow exists just for similar camera
And video class application of taking pictures, need to continuously generate the scene of frame picture, and certain special screnes are without carrying out successive frame picture
Generation, and continuously generate frame picture no matter for CPU consumption or EMS memory occupation all can be higher.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of preview frame screen generating method, device and mobile terminal, to
Generate discontinuous preview frame picture.
To achieve the goals above, technical solution used in the embodiment of the present invention is as follows:
In a first aspect, it is applied to mobile terminal the embodiment of the invention provides a kind of preview frame screen generating method, it is described
Mobile terminal includes photographic device, which comprises obtains the first preview frame picture of the photographic device acquisition;Using pre-
The delay time prediction model first established predicts prolonging for the photographic device according to the current performance parameters of the mobile terminal
The slow time;Within the delay time, the second preview frame picture of the photographic device acquisition is obtained, it is discrete pre- to obtain
Look at frame picture.
Second aspect, the embodiment of the invention also provides a kind of preview frame screen generating devices, are applied to mobile terminal, institute
Stating mobile terminal includes photographic device, and the preview frame screen generating device is pre- including the first picture acquisition module, delay time
It surveys module and the second picture obtains module.Wherein, the first picture obtains first that module is used to obtain the photographic device acquisition
Preview frame picture;Delay time prediction module is used for using the delay time prediction model pre-established, according to described mobile whole
The current performance parameters at end predict the delay time of the photographic device;Second picture obtains module and is used in the delay
In, the second preview frame picture of the photographic device acquisition is obtained, to obtain discrete preview frame picture.
The third aspect, the embodiment of the invention also provides a kind of mobile terminal, the mobile terminal includes photographic device, institute
Stating mobile terminal further includes memory;Processor;And preview frame screen generating device, the preview frame screen generating device are deposited
The software function mould group for being stored in the memory and being executed including one or more by the processor.The preview frame picture
Generating means include that the first picture obtains module, delay time prediction module and the second picture acquisition module.Wherein, the first picture
Obtain the first preview frame picture that module is used to obtain the photographic device acquisition;Delay time prediction module is used for using preparatory
The delay time prediction model of foundation predicts the delay of the photographic device according to the current performance parameters of the mobile terminal
Time;Second picture obtains module and is used within the delay time, and the second preview frame for obtaining the photographic device acquisition is drawn
Face, to obtain discrete preview frame picture.
Compared with the prior art, a kind of preview frame screen generating method, device and mobile terminal provided in an embodiment of the present invention,
Firstly, obtaining the first preview frame picture of the photographic device acquisition;Then, mould is predicted using the delay time pre-established
Type predicts the delay time of photographic device according to the current performance parameters of mobile terminal;Finally, acquisition is taken the photograph within delay time
As the second preview frame picture that device acquires, to obtain discrete preview frame picture.The embodiment of the present invention is pre- in acquisition first
It lookes at after frame picture, the delay time of the current performance parameters dynamic prediction photographic device according to mobile terminal is prolonging to realize
The second preview frame picture is acquired in the slow time, realizes the generation of discontinuous preview frame picture, it is practical.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows the block diagram of mobile terminal provided in an embodiment of the present invention.
Fig. 2 shows the preview frame screen generating method flow charts that first embodiment of the invention provides.
Fig. 3 be Fig. 2 shows step S102 sub-step flow chart.
Fig. 4 be Fig. 2 shows step S103 sub-step flow chart.
Fig. 5 shows the block diagram of the preview frame screen generating device of second embodiment of the invention offer.
Icon: 100- mobile terminal;101- memory;102- storage control;103- processor;104- Peripheral Interface;
105- photographic device;200- preview frame screen generating device;The first picture of 201- obtains module;202- model building module;
203- delay time prediction module;The second picture of 204- obtains module.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete
Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist
The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause
This, is not intended to limit claimed invention to the detailed description of the embodiment of the present invention provided in the accompanying drawings below
Range, but it is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile of the invention
In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
Fig. 1 is please referred to, Fig. 1 shows the block diagram of mobile terminal 100 provided in an embodiment of the present invention.Mobile terminal
100 may be, but not limited to, smart phone, tablet computer, pocket computer on knee, vehicle-mounted computer, personal digital assistant
(personal digital assistant, PDA), wearable mobile terminal etc..The mobile terminal 100 is equipped with Android
System comprising preview frame screen generating device 200, memory 101, storage control 102, processor 103, Peripheral Interface
104 and photographic device 105.
The memory 101, storage control 102, processor 103, Peripheral Interface 104 and each element of photographic device 105
It is directly or indirectly electrically connected between each other, to realize the transmission or interaction of data.For example, these elements can lead between each other
It crosses one or more communication bus or signal wire is realized and is electrically connected.The preview frame screen generating device 200 includes at least one
It is a to be stored in the memory 101 or be solidificated in the mobile terminal 100 in the form of software or firmware (firmware)
Operating system (operating system, OS) in software function module.The processor 103 is for executing memory
The executable module stored in 101, such as software function module or computer that the preview frame screen generating device 200 includes
Program.
Wherein, memory 101 may be, but not limited to, random access memory (Random Access Memory,
RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only
Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM),
Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..
Wherein, memory 101 is for storing program, and the processor 103 executes described program after receiving and executing instruction.
Processor 103 can be a kind of IC chip, have signal handling capacity.Above-mentioned processor 103 can be with
It is general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network
Processor, NP), speech processor and video processor etc.;Can also be digital signal processor, specific integrated circuit,
Field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components.
It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor can be
Microprocessor or the processor 103 are also possible to any conventional processor etc..
The Peripheral Interface 104 is used to couple processor 103 and memory 101 for various input/output devices.In
In some embodiments, Peripheral Interface 104, processor 103 and storage control 102 can be realized in one single chip.At it
In his some examples, they can be realized by independent chip respectively.
Photographic device 105 is for acquiring the first preview frame picture and the second preview frame picture, in the present embodiment, camera shooting dress
Setting 105 may be, but not limited to, Android camera.
First embodiment
Referring to figure 2., Fig. 2 shows the preview frame screen generating method flow charts that first embodiment of the invention provides.In advance
Look at frame screen generating method the following steps are included:
Step S101 obtains the first preview frame picture of photographic device acquisition.
In embodiments of the present invention, the first preview frame picture can be after user opens photographic device 105 for the first time and collect
Preview frame picture, be also possible to user photographic device 105 open during, in camera delay time (Camera
Responsing Delay, CRD) in open the collected any one frame preview frame picture of camera preview.
CRD is operation photographic device 105, for example, open, close, open preview, close preview, flash of light lamp switch etc.
The operating lag that hardware operation generates.CRD is a unstable parameter of photographic device 105, and CRD is smaller, and photographic device 105 is hard
Part performance is higher.Currently, the value of the CRD of mobile terminal 100 is floated in the section 1ms~16ms, value be it is unfixed,
There are bigger differences by the CRD of different model mobile terminal 100, even if the value of the same CRD in different time of mobile terminal 100
There is also floatings, and therefore, the embodiment of the present invention uses the real-time performance according to mobile terminal 100, to predict photographic device 105
CRD value range, and the preview of photographic device 105 is opened in CRD value range in time, it is drawn to generate discontinuous preview frame
Face.
In embodiments of the present invention, it after collecting the first preview frame picture, needs according to the currency of mobile terminal 100
Energy parameter, for example, cpu load value, EMS memory occupation amount etc., to estimate the delay time of photographic device 105, so as in the delay
It is interior to be again turned on 105 preview of photographic device, to acquire the second preview frame picture, therefore, preview provided in an embodiment of the present invention
Frame screen generating method can also include the following steps S102:
Step S102 establishes delay time prediction model according to the performance parameter matrix of mobile terminal.
In embodiments of the present invention, the performance parameter of mobile terminal 100 is to influence the factor of CRD value, performance parameter packet
Include, but be not limited to cpu load value, EMS memory occupation amount etc..Performance parameter matrix can be to be built according to the value interval of performance parameter
Vertical matrix, for example, the matrix established according to the value interval of cpu load value, EMS memory occupation amount etc..Inventor is by a large amount of
Research test discovery, influence in the performance parameter of mobile terminal 100 of CRD value, cpu load value be influence it is the most significant because
Element therefore can be according to the cpu load value of mobile terminal 100, Lai Jianli delay time prediction model.
In embodiments of the present invention, delay time prediction model is established using partial least-squares regressive analysis method, specifically
Modeling method may is that firstly, determining the mould of delay time prediction model according to the performance parameter matrix of mobile terminal 100
Type dependent variable, and model independent variable is determined according to delay time matrix;Then, model independent variable and model dependent variable are distinguished
It is standardized, obtains corresponding standardization independent variable matrix and standardization dependent variable matrix;Finally, certainly according to standardization
Matrix of variables and standardization dependent variable matrix, calculate the regression coefficient of delay time prediction model, to establish out when postponing
Between prediction model, specific delay time prediction model establishment process please refers to sub-step S1021~S1023.
Referring to figure 3., step S102 may include following sub-step:
Sub-step S1021 determines the model independent variable and model dependent variable of delay time prediction model, wherein model is certainly
Variable is delay time matrix, and model dependent variable is the performance parameter matrix of mobile terminal.
In embodiments of the present invention, the performance parameter matrix for determining mobile terminal 100 is model dependent variable, that is to say, that
Model independent variable is established according to the value interval of cpu load value, as an implementation, the value interval of cpu load value can
It is obtained with largely test to mobile terminal 100 when photographic device 105 acquires preview frame picture by user, in the present embodiment
In, inventor determines that the value interval of cpu load value is [0.10,0.99], following basis by a large amount of research test
The value interval of the cpu load value establishes model dependent variable are as follows: YL=[0.10,0.11,0.12 ..., 0.98,0.99]1×90,
Model dependent variable YLFor one 1 × 90 matrix.
In addition, determining that delay time matrix is model independent variable, that is to say, that establish model according to the value of delay time
Independent variable, as an implementation, the value of delay time can be by user when photographic device 105 acquires preview frame picture
It carries out a large amount of tests to obtain, in the present embodiment, determines argument models are as follows: X=[x1,x2,...,L,...,x90]90×16, from
Variate model X is one 90 × 16 matrix, wherein L is the standard variance matrix of the principal component of the first preview frame picture, and l
=[1,2,3 ..., 16]1×16, x1,x2,...,x90It include 16 values, and this 16 values are to test to arrive within the 1s time
16 CRD value intervals.
Sub-step S1022 is standardized model independent variable and model dependent variable respectively, obtains corresponding standard
Change independent variable matrix and standardization dependent variable matrix.
In embodiments of the present invention, after determining model independent variable X and model dependent variable Y, to model independent variable X and mould
Type dependent variable Y is standardized respectively, obtains corresponding standardization independent variable matrix E0With standardization dependent variable matrix F0,
Standardization can be carried out according to following formula:
Wherein, i=1,2 ... L..., n, n=90;J=1,2 ... L..., k, k=16;xijIndicate model independent variable X
In j-th of variable xjI-th of sample value;Indicate j-th of variable x in model independent variable XjMean value;sjIndicate model certainly
J-th of variable x in variable XjStandard deviation;yiIndicate i-th of sample value in model dependent variable Y;Indicate model dependent variable
The mean value of Y;syIndicate the standard deviation of model dependent variable Y;Indicate xijNumerical value after standardization;Indicate yiNumber after standardization
Value.
Sub-step S1023 carries out regression analysis to standardization independent variable matrix and standardization dependent variable matrix, is postponed
The regression coefficient of time prediction model.
In embodiments of the present invention, model independent variable X and model dependent variable Y are standardized respectively, are obtained pair
The standardization independent variable matrix E answered0With standardization dependent variable matrix F0Later, to according to standardization independent variable matrix E0And standardization
Dependent variable matrix F0Regression analysis is carried out, the regression coefficient of delay time prediction model, the calculation formula of regression coefficient are calculated
ForSo far, delay time prediction model has just been established out.
It should be noted that introduced in step S102 the step of establishing delay time prediction model, can be in acquisition the
It is carried out before one video frame picture, that is to say, that the process for establishing delay time prediction model can be with preview frame generating method
Other steps be not it is continuous, the method introduced in step S102 can be advanced with and establish delay time prediction model
And stored, it is subsequent to call directly.
Step S103, using the delay time prediction model pre-established, according to the current performance parameters of mobile terminal, in advance
Survey the delay time of photographic device.
In embodiments of the present invention, after getting the collected first video frame picture of photographic device 105, movement is obtained
The current performance parameters of terminal 100 choose the current CPU load value of mobile terminal 100 in the present embodiment, and according to mobile terminal
100 current CPU load value predicts delay time of photographic device 105, that is, opens camera preview next time, obtains
The time interval of second preview frame picture.
In embodiments of the present invention, the prediction technique of the delay time of photographic device 105 may is that firstly, using establishing
Good delay time prediction model carries out Principle component extraction to predetermined time delay, obtains the initial value of delay time, default to prolong
The slow time is set as Ro=[1,16], that is, current operating system are the CRD value model of the mobile terminal 100 of Android system
It encloses;Then, after the initial value for calculating delay time, the cpu load value of mobile terminal 100 is obtained in real time, that is, is obtained
The current CPU load value of mobile terminal 100, and the current performance parameters mobile terminal 100 according to mobile terminal 100 is current
Cpu load value carries out confidence analysis to the initial value of delay time, predicts the delay time of photographic device 105, specific pre-
Survey process please refers to sub-step S1031~S1032.
Referring to figure 4., step S103 may include following sub-step:
Sub-step S1031 carries out Principle component extraction to predetermined time delay, is prolonged using delay time prediction model
The initial value of slow time.
In embodiments of the present invention, predetermined time delay is set as the mobile terminal that current operating system is Android system
100 CRD value range, i.e. Ro=[1,16].As an implementation, when using Cross gain modulation algorithm to pre-set delay
Between carry out Principle component extraction, obtain the initial value of delay time, Principle component extraction formula is ROrigin=pRi,i∈[1,16]。
Sub-step S1032 carries out confidence analysis to initial value, predicts and take the photograph according to the current performance parameters of mobile terminal
As the delay time of device.
In embodiments of the present invention, after the initial value for calculating delay time, the current of mobile terminal 100 is obtained in real time
Performance parameter, that is, the current CPU load value of mobile terminal 100, and the current performance parameters according to mobile terminal 100 are right
The initial value of delay time carries out confidence analysis, and specific method may is that firstly, choosing confidence regression vectors
Wherein, 0.0975 is Partial Least Squares Regression standard confidence factor;Then, confidence matrix M is established according to confidence regression vectorsb,
Establish formula are as follows:Wherein, LCPUFor the current CPU load value of mobile terminal 100;Finally, obtaining
Take the current CPU load value L of mobile terminal 100CPU, and by LCPUInput confidence matrix Mb, confidence interval is calculated, that is, take the photograph
As the delay time of device 105, calculation formula are as follows: M=Rorigin×Mb, wherein M is the delay time of photographic device 105.
Step S104 obtains the second preview frame picture of photographic device acquisition within delay time, discrete to obtain
Preview frame picture.
In embodiments of the present invention, the second preview frame picture is a later frame picture of the first preview frame picture.It calculates and takes the photograph
As device 105 delay time after, open image sensor within the delay time, photographic device 105 can be by the scape of acquisition
Image data is exported with the format of byte arrays, and then byte arrays are switched to the gray level image of yuv format, finally switch to YUV
RGB image with color channel generates the second preview frame picture, to obtain discrete preview frame picture.
In embodiments of the present invention, according to the performance parameter matrix and delay time matrix of mobile terminal 100, using partially most
Small two one-tenth methods algorithm with regress analysis method establishes out delay time prediction model;Again by the current CPU of the mobile terminal 100 obtained in real time
Load value, input delay time prediction model, to calculate the time interval for opening image sensor next time, and in the time
Image sensor is opened in section, obtains discrete preview frame picture.The embodiment of the present invention is based on Partial Least Squares Regression point
Analysis algorithm carrys out the delay time of dynamic estimation photographic device 105, opens image preview in time within delay time to realize, into
And realize the generation of the discontinuous preview frame picture of photographic device 105, and it is low for CPU consumption or EMS memory occupation, have good
Practicability.
Second embodiment
Referring to figure 5., Fig. 5 shows the box of the preview frame screen generating device 200 of second embodiment of the invention offer
Schematic diagram.Preview frame screen generating device 200 includes that the first picture obtains module 201, model building module 202, delay time
Prediction module 203 and the second picture obtain module 204.
First picture obtains module 201, for obtaining the first preview frame picture of photographic device acquisition.
In embodiments of the present invention, the first picture, which obtains module 201, can be used for executing step S101.
Model building module 202 establishes delay time prediction model for the performance parameter matrix according to mobile terminal.
In embodiments of the present invention, model building module 202 can be used for executing step S102.
In embodiments of the present invention, model building module 202 can be also used for execute step S102 sub-step S1021~
S1023。
Delay time prediction module 203, for utilizing the delay time prediction model pre-established, according to mobile terminal
Current performance parameters predict the delay time of photographic device.
In embodiments of the present invention, delay time prediction module 203 can be used for executing step S103.
In embodiments of the present invention, delay time prediction module 203 can be also used for executing the sub-step of step S103
S1031~S1032.
Second picture obtains module 204, and the second preview frame within delay time, obtaining photographic device acquisition is drawn
Face, to obtain discrete preview frame picture.
In embodiments of the present invention, the second picture, which obtains module 204, can be used for executing step S104.
In conclusion a kind of preview frame screen generating method, device and mobile terminal provided in an embodiment of the present invention, described
Mobile terminal includes photographic device, which comprises obtains the first preview frame picture of photographic device acquisition;Using building in advance
Vertical delay time prediction model predicts the delay time of photographic device according to the current performance parameters of mobile terminal;Postponing
In time, the second preview frame picture of photographic device acquisition is obtained, to obtain discrete preview frame picture.The embodiment of the present invention
After acquiring the first preview frame picture, the delay time of the current performance parameters dynamic prediction photographic device according to mobile terminal,
The second preview frame picture is acquired within delay time to realize, realizes the generation of discontinuous preview frame picture, it is practical.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through
Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and block diagram in attached drawing
Show the device of multiple embodiments according to the present invention, the architectural framework in the cards of method and computer program product,
Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code
Part, a part of the module, section or code, which includes that one or more is for implementing the specified logical function, to be held
Row instruction.It should also be noted that function marked in the box can also be to be different from some implementations as replacement
The sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimes
It can execute in the opposite order, this depends on the function involved.It is also noted that every in block diagram and or flow chart
The combination of box in a box and block diagram and or flow chart can use the dedicated base for executing defined function or movement
It realizes, or can realize using a combination of dedicated hardware and computer instructions in the system of hardware.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together
Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.It needs
Illustrate, herein, relational terms such as first and second and the like be used merely to by an entity or operation with
Another entity or operation distinguish, and without necessarily requiring or implying between these entities or operation, there are any this realities
The relationship or sequence on border.Moreover, the terms "include", "comprise" or its any other variant are intended to the packet of nonexcludability
Contain, so that the process, method, article or equipment for including a series of elements not only includes those elements, but also including
Other elements that are not explicitly listed, or further include for elements inherent to such a process, method, article, or device.
In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the element
Process, method, article or equipment in there is also other identical elements.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should also be noted that similar label and letter exist
Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing
It is further defined and explained.
Claims (6)
1. a kind of preview frame screen generating method, which is characterized in that be applied to mobile terminal, the mobile terminal includes camera shooting dress
It sets, which comprises
Determine the model independent variable and model dependent variable of delay time prediction model, wherein when the model independent variable is delay
Between matrix, the model dependent variable be the mobile terminal performance parameter matrix;
The model independent variable and the model dependent variable are standardized respectively, obtain corresponding standardization independent variable
Matrix and standardization dependent variable matrix;
Regression analysis is carried out to the standardization independent variable matrix and the standardization dependent variable matrix, obtains delay time prediction
The regression coefficient of model, to establish delay time prediction model;
Obtain the first preview frame picture of the photographic device acquisition;
Institute is predicted according to the current performance parameters of the mobile terminal using the delay time prediction model pre-established
State the delay time of photographic device;
Within the delay time, the second preview frame picture of the photographic device acquisition is obtained, to obtain discrete preview
Frame picture.
2. the method as described in claim 1, which is characterized in that the delay time that the utilization pre-establishes predicts mould
Type, according to the current performance parameters of the mobile terminal, the step of predicting the delay time of the photographic device, comprising:
Using the delay time prediction model, Principle component extraction is carried out to predetermined time delay, obtains the delay time
Initial value;
According to the current performance parameters of the mobile terminal, confidence analysis is carried out to the initial value, predicts the camera shooting dress
The delay time set.
3. method according to claim 2, which is characterized in that the current performance parameters according to the mobile terminal, it is right
The step of initial value carries out confidence analysis, predicts the delay time of the photographic device, comprising:
Obtain the recurrence confidence factor of the delay time prediction model;
According to the recurrence confidence factor, the confidence matrix of the current performance parameters of the mobile terminal is established, and is set described
Believe delay time of the matrix as the photographic device.
4. a kind of preview frame screen generating device, which is characterized in that be applied to mobile terminal, the mobile terminal includes camera shooting dress
It sets, the preview frame screen generating device includes:
Model building module, for determining the model independent variable and model dependent variable of delay time prediction model, wherein the mould
Type independent variable is delay time matrix, and the model dependent variable is the performance parameter matrix of the mobile terminal;To the model
Independent variable and the model dependent variable are standardized respectively, obtain corresponding standardization independent variable matrix and standardization because
Matrix of variables;Regression analysis is carried out to the standardization independent variable matrix and the standardization dependent variable matrix, when obtaining delay
Between prediction model regression coefficient, to establish delay time prediction model;
First picture obtains module, for obtaining the first preview frame picture of the photographic device acquisition;
Delay time prediction module, for utilizing the delay time prediction model pre-established, according to the mobile terminal
Current performance parameters, predict the delay time of the photographic device;
Second picture obtains module, and the second preview frame within the delay time, obtaining the photographic device acquisition is drawn
Face, to obtain discrete preview frame picture.
5. device as claimed in claim 4, which is characterized in that the delay time prediction module is specifically used for:
Using the delay time prediction model, Principle component extraction is carried out to predetermined time delay, obtains the delay time
Initial value;
According to the current performance parameters of the mobile terminal, confidence analysis is carried out to the initial value, predicts the camera shooting dress
The delay time set.
6. a kind of mobile terminal, which is characterized in that the mobile terminal includes photographic device, the mobile terminal further include:
Memory;
Processor;And
Preview frame screen generating device, the preview frame screen generating device are stored in the memory and including one or more
A software function mould group executed by the processor comprising:
Model building module, for determining the model independent variable and model dependent variable of delay time prediction model, wherein the mould
Type independent variable is delay time matrix, and the model dependent variable is the performance parameter matrix of the mobile terminal;To the model
Independent variable and the model dependent variable are standardized respectively, obtain corresponding standardization independent variable matrix and standardization because
Matrix of variables;Regression analysis is carried out to the standardization independent variable matrix and the standardization dependent variable matrix, when obtaining delay
Between prediction model regression coefficient, to establish delay time prediction model;
First preview frame picture obtains module, for obtaining the first preview frame picture of the photographic device acquisition;
Delay time prediction module, for utilizing the delay time prediction model pre-established, according to the mobile terminal
Current performance parameters, predict the delay time of the photographic device;
Second preview frame picture obtains module, and second within the delay time, obtaining the photographic device acquisition is pre-
Frame picture is look at, to obtain discrete preview frame picture.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810008921.0A CN108184065B (en) | 2018-01-04 | 2018-01-04 | Preview frame screen generating method, device and mobile terminal |
PCT/CN2018/081230 WO2019134271A1 (en) | 2018-01-04 | 2018-03-30 | Preview frame generation method and apparatus, mobile terminal, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810008921.0A CN108184065B (en) | 2018-01-04 | 2018-01-04 | Preview frame screen generating method, device and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108184065A CN108184065A (en) | 2018-06-19 |
CN108184065B true CN108184065B (en) | 2019-11-05 |
Family
ID=62549864
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810008921.0A Active CN108184065B (en) | 2018-01-04 | 2018-01-04 | Preview frame screen generating method, device and mobile terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108184065B (en) |
WO (1) | WO2019134271A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11457173B2 (en) | 2020-02-21 | 2022-09-27 | Mediatek Inc. | Dynamic frame rate adjustment mechanism |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1988662A (en) * | 2006-12-22 | 2007-06-27 | 清华大学 | Self adaptive multimedia playing method |
CN101076084A (en) * | 2006-05-16 | 2007-11-21 | 奥林巴斯映像株式会社 | Imaging apparatus |
CN103685921A (en) * | 2012-09-12 | 2014-03-26 | 三星电子株式会社 | Method and device for displaying camera preview screen in a portable terminal |
CN104902179A (en) * | 2015-05-27 | 2015-09-09 | 广东欧珀移动通信有限公司 | Method and device for previewing camera image |
CN105144690A (en) * | 2013-04-26 | 2015-12-09 | 富士胶片株式会社 | Image pickup apparatus |
CN106453886A (en) * | 2016-09-30 | 2017-02-22 | 维沃移动通信有限公司 | Shooting method of mobile terminal and mobile terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011254416A (en) * | 2010-06-04 | 2011-12-15 | Seiko Epson Corp | Photographing device |
-
2018
- 2018-01-04 CN CN201810008921.0A patent/CN108184065B/en active Active
- 2018-03-30 WO PCT/CN2018/081230 patent/WO2019134271A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101076084A (en) * | 2006-05-16 | 2007-11-21 | 奥林巴斯映像株式会社 | Imaging apparatus |
CN1988662A (en) * | 2006-12-22 | 2007-06-27 | 清华大学 | Self adaptive multimedia playing method |
CN103685921A (en) * | 2012-09-12 | 2014-03-26 | 三星电子株式会社 | Method and device for displaying camera preview screen in a portable terminal |
CN105144690A (en) * | 2013-04-26 | 2015-12-09 | 富士胶片株式会社 | Image pickup apparatus |
CN104902179A (en) * | 2015-05-27 | 2015-09-09 | 广东欧珀移动通信有限公司 | Method and device for previewing camera image |
CN106453886A (en) * | 2016-09-30 | 2017-02-22 | 维沃移动通信有限公司 | Shooting method of mobile terminal and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN108184065A (en) | 2018-06-19 |
WO2019134271A1 (en) | 2019-07-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110390387A (en) | Deep learning application used resource is assessed | |
WO2021151336A1 (en) | Road image target detection method based on attentional mechanism and related device | |
CN111260037B (en) | Convolution operation method and device of image data, electronic equipment and storage medium | |
CN109145828B (en) | Method and apparatus for generating video category detection model | |
CN110929569A (en) | Face recognition method, device, equipment and storage medium | |
Cuevas et al. | Improved background modeling for real-time spatio-temporal non-parametric moving object detection strategies | |
US11514263B2 (en) | Method and apparatus for processing image | |
CN111931931A (en) | Deep neural network training method and device for pathology full-field image | |
CN112862828B (en) | Semantic segmentation method, model training method and device | |
CN109858333A (en) | Image processing method, device, electronic equipment and computer-readable medium | |
US11468296B2 (en) | Relative position encoding based networks for action recognition | |
CN114881989A (en) | Small sample based target object defect detection method and device, and electronic equipment | |
CN113496208B (en) | Video scene classification method and device, storage medium and terminal | |
EP4113376A1 (en) | Image classification model training method and apparatus, computer device, and storage medium | |
CN111984803B (en) | Multimedia resource processing method and device, computer equipment and storage medium | |
CN109741108A (en) | Streaming application recommended method, device and electronic equipment based on context aware | |
CN115082752A (en) | Target detection model training method, device, equipment and medium based on weak supervision | |
CN108184065B (en) | Preview frame screen generating method, device and mobile terminal | |
CN105631404A (en) | Method and device for clustering pictures | |
CN112969032A (en) | Illumination pattern recognition method and device, computer equipment and storage medium | |
CN109145987A (en) | model generating method and device | |
CN113240071A (en) | Graph neural network processing method and device, computer equipment and storage medium | |
CN113052025A (en) | Training method of image fusion model, image fusion method and electronic equipment | |
CN111310531A (en) | Image classification method and device, computer equipment and storage medium | |
CN108492266A (en) | Image processing method, device, storage medium 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 |