CN108184065A - Preview frame screen generating method, device and mobile terminal - Google Patents

Preview frame screen generating method, device and mobile terminal Download PDF

Info

Publication number
CN108184065A
CN108184065A CN201810008921.0A CN201810008921A CN108184065A CN 108184065 A CN108184065 A CN 108184065A CN 201810008921 A CN201810008921 A CN 201810008921A CN 108184065 A CN108184065 A CN 108184065A
Authority
CN
China
Prior art keywords
delay time
mobile terminal
preview frame
model
photographic device
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.)
Granted
Application number
CN201810008921.0A
Other languages
Chinese (zh)
Other versions
CN108184065B (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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201810008921.0A priority Critical patent/CN108184065B/en
Priority to PCT/CN2018/081230 priority patent/WO2019134271A1/en
Publication of CN108184065A publication Critical patent/CN108184065A/en
Application granted granted Critical
Publication of CN108184065B publication Critical patent/CN108184065B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • 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
    • H04M1/72454User 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 fields, provide a kind of preview frame screen generating method, device and mobile terminal, and the mobile terminal includes photographic device, the method includes:Obtain the first preview frame picture of photographic device acquisition;Using the delay time prediction model pre-established, according to the current performance parameters of mobile terminal, the delay time of photographic device is predicted;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 the first preview frame picture is acquired, the delay time of current performance parameters dynamic prediction photographic device according to mobile terminal, so as to fulfill the second preview frame picture is acquired within delay time, the generation of discontinuous preview frame picture is realized, it is highly practical.

Description

Preview frame screen generating method, device and mobile terminal
Technical field
The present invention relates to Internet technical field, in particular to a kind of preview frame screen generating method, device and shifting Dynamic terminal.
Background technology
Android is applied during calling camera gathered data and generating picture, can obtain Camera drives first Then dynamic class drives class to open camera and proceeds by continuous preview (time interval 16.67ms) by Camera.Camera is pre- It is substantially exactly the color channel values for capturing scene to look at, and generates the byte data of a yuv format, YUV is substantially gray-scale map Picture, then camera applications YUV gray scale color datas are switched into RGB color data, RGB is switched to Bitmap by last camera applications Figure, material is thus formed the frames in preview scene picture in camera applications.
It is above-mentioned be current camera apply carry out scene take pictures and generate video when mainstream way, i.e., every 16.67ms A pictures (frame) are generated, 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, it needs to continuously generate the scene of frame picture, and certain special screnes need not carry out successive frame picture Generation, and continuously generate frame picture for CPU consumption or EMS memory occupation all can be higher.
Invention content
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 these goals, technical solution used in the embodiment of the present invention is as follows:
In a first aspect, an embodiment of the present invention provides a kind of preview frame screen generating method, it is described applied to mobile terminal Mobile terminal includes photographic device, the method includes:Obtain the first preview frame picture of the photographic device acquisition;Using pre- The delay time prediction model first established according to the current performance parameters of the mobile terminal, predicts prolonging for the photographic device 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 present invention additionally provide a kind of preview frame screen generating device, applied to mobile terminal, institute It states mobile terminal and includes photographic device, the preview frame screen generating device is pre- including the first picture acquisition module, delay time Survey module and the second picture acquisition module.Wherein, the first picture acquisition module is used to obtain the first of 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 acquisition module is used in the delay In, the second preview frame picture that the photographic device acquires is obtained, to obtain discrete preview frame picture.
The third aspect, the embodiment of the present invention additionally provide a kind of mobile terminal, and the mobile terminal includes photographic device, institute It states mobile terminal and further includes memory;Processor;And preview frame screen generating device, the preview frame screen generating device are deposited The software function module for being stored in the memory and being performed including one or more by the processor.The preview frame picture Generating means include the first picture acquisition module, delay time prediction module and the second picture acquisition module.Wherein, the first picture Acquisition module is used to obtain the first preview frame picture of the photographic device acquisition;Delay time prediction module is used for using advance The delay time prediction model of foundation according to the current performance parameters of the mobile terminal, predicts the delay of the photographic device Time;Second picture acquisition module was 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 provided in an embodiment of the present invention, device and mobile terminal, First, the first preview frame picture of the photographic device acquisition is obtained;Then, mould is predicted using the delay time pre-established Type according to the current performance parameters of mobile terminal, predicts the delay time of photographic device;Finally, within delay time, acquisition is taken the photograph 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, so as to fulfill prolonging The second preview frame picture of acquisition, realizes the generation of discontinuous preview frame picture in the slow time, highly practical.
For the above objects, features and advantages of the present invention is enable to be clearer and more comprehensible, preferred embodiment cited below particularly, and coordinate Appended attached drawing, is described in detail below.
Description of the drawings
It 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 for the preview frame screen generating device that second embodiment of the invention provides.
Icon:100- mobile terminals;101- memories;102- storage controls;103- processors;104- Peripheral Interfaces; 105- photographic devices;200- preview frame screen generating devices;201- the first picture acquisition modules;202- model building modules; 203- delay time prediction modules;204- the second picture acquisition modules.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Ground describes, it is clear that described embodiment is only part of the embodiment 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 configured to arrange and design with a variety of different herein.Cause This, the detailed description of the embodiment of the present invention to providing in the accompanying drawings is not intended to limit claimed invention below Range, but it is merely representative of the selected embodiment of the present invention.Based on the embodiment of the present invention, those skilled in the art are not doing Go out all other embodiments obtained under the premise of creative work, shall fall within the protection scope of the present invention.
It should be noted that:Similar label and letter represents similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need to that it is further defined and explained in subsequent attached drawing.Meanwhile the present invention's In description, term " first ", " second " etc. are only used for distinguishing description, and it is not intended that instruction or hint 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 mobile 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, including 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,105 each element of processor 103, Peripheral Interface 104 and photographic device It is directly or indirectly electrically connected between each other, to realize the transmission of data or interaction.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 used to perform memory The executable module stored in 101, such as the 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, for memory 101 for storing program, the processor 103 performs described program after execute instruction is received.
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, application-specific integrated circuit, Field programmable gate array either other programmable logic device, discrete gate or transistor logic, discrete hardware components. It can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor can be Microprocessor or the processor 103 can also be any conventional processors etc..
The Peripheral Interface 104 is used to various input/output devices being coupled to processor 103 and memory 101. 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 It puts 105 and may be, but not limited to, Android camera.
First embodiment
Fig. 2 is please referred to, Fig. 2 shows the preview frame screen generating method flow charts that first embodiment of the invention provides.In advance Frame screen generating method of looking at includes the following steps:
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 collected after user opens photographic device 105 for the first time Preview frame picture or 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, opening, closing, 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.At present, the value of the CRD of mobile terminal 100 is floated in 1ms~16ms sections, value be it is unfixed, The CRD of different model mobile terminal 100 is there are bigger difference, 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 ranges, and the preview of photographic device 105 is opened in CRD value ranges in time, it is drawn so as 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 according to the performance parameter matrix of mobile terminal, establishes delay time prediction model.
In embodiments of the present invention, the performance parameter of mobile terminal 100 is to influence the factor of CRD values, performance parameter packet It includes, but is not limited to cpu load value, EMS memory occupation amount etc..Performance parameter matrix can be built according to the interval of performance parameter Vertical matrix, for example, the matrix established according to the interval of cpu load value, EMS memory occupation amount etc..Inventor is by a large amount of Research test is found, in the performance parameter of mobile terminal 100 for influencing CRD values, 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, to establish 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 can be:First, the mould of delay time prediction model is determined 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, according to standardization certainly Matrix of variables and standardization dependent variable matrix, calculate the regression coefficient of delay time prediction model, during so as to establish out delay Between prediction model, specific delay time prediction model establishes process and please refers to sub-step S1021~S1023.
Fig. 3 is please referred to, step S102 can include following sub-step:
Sub-step S1021 determines the model independent variable of delay time prediction model and model dependent variable, 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 interval of cpu load value, as a kind of embodiment, the interval of cpu load value can It is obtained with being carried out largely testing to mobile terminal 100 when photographic device 105 acquires preview frame picture by user, in the present embodiment In, inventor tests by a large amount of research, and the interval for determining cpu load value is [0.10,0.99], following basis The interval of the cpu load value, establishing model dependent variable is:YL=[0.10,0.11,0.12 ..., 0.98,0.99]1×90, Model dependent variable YLFor the matrix of one 1 × 90.
In addition, determine that delay time matrix is model independent variable, that is to say, that model is established according to the value of delay time Independent variable, as a kind of embodiment, 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 that argument models are:X=[x1,x2,...,L,...,x90]90×16, from Variate model X is the matrix of one 90 × 16, wherein, standard variance matrixes of the L for the principal component of the first preview frame picture, and l =[1,2,3 ..., 16]1×16, x1,x2,...,x90Include 16 values, and this 16 values are to test to arrive within the 1s times 16 CRD 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 the following formula:
Wherein, i=1,2 ... L..., n, n=90;J=1,2 ... L..., k, k=16;xijRepresent model independent variable X In j-th of variable xjI-th of sample value;Represent j-th of variable x in model independent variable XjMean value;sjRepresent model certainly J-th of variable x in variable XjStandard deviation;yiRepresent i-th of sample value in model dependent variable Y;Represent model dependent variable The mean value of Y;syRepresent the standard deviation of model dependent variable Y;Represent xijNumerical value after standardization;Represent 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, 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, calculates the regression coefficient of delay time prediction model, the calculation formula of regression coefficient 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 continuous, the method introduced in step S102 can be advanced with and establish delay time prediction model And stored, subsequently directly invoke.
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 105 collected first video frame picture of photographic device, 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 the 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 Forecasting Methodology of the delay time of photographic device 105 can be:First, foundation is utilized 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, CRD value model of the current operating system for 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.
Fig. 4 is please referred to, step S103 can include following sub-step:
Sub-step S1031 using delay time prediction model, carries out Principle component extraction to predetermined time delay, is prolonged 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 ranges, i.e. Ro=[1,16].As a kind of embodiment, during 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 according to the current performance parameters of mobile terminal, carries out confidence analysis to initial value, predicts and take the photograph 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 according to the current performance parameters of mobile terminal 100, it is right The initial value of delay time carries out confidence analysis, and specific method can be:First, confidence regression vectors are chosen Wherein, 0.0975 is Partial Least Squares Regression standard confidence factor;Then, confidence matrix M is established according to confidence regression vectorsb, Establishing formula is:Wherein, LCPUCurrent CPU load value for mobile terminal 100;Finally, it obtains 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 is:M=Rorigin×Mb, wherein, M is the delay time of photographic device 105.
Step S104 within delay time, obtains the second preview frame picture of photographic device acquisition, 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 form 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, so as to obtain discrete preview frame picture.
In embodiments of the present invention, according to the performance parameter matrix of mobile terminal 100 and delay time matrix, 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, so as to fulfill image preview is opened in time within delay time, 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
Fig. 5 is please referred to, Fig. 5 shows the box for the preview frame screen generating device 200 that second embodiment of the invention provides Schematic diagram.Preview frame screen generating device 200 includes the first picture acquisition module 201, model building module 202, delay time 203 and second picture acquisition module 204 of prediction module.
First picture acquisition module 201, for obtaining the first preview frame picture of photographic device acquisition.
In embodiments of the present invention, the first picture acquisition module 201 can be used for performing step S101.
Model building module 202 for the performance parameter matrix according to mobile terminal, establishes delay time prediction model.
In embodiments of the present invention, model building module 202 can be used for performing step S102.
In embodiments of the present invention, model building module 202 can be also used for performing the sub-step S1021 of step S102~ 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 performing step S103.
In embodiments of the present invention, delay time prediction module 203 can be also used for performing the sub-step of step S103 S1031~S1032.
Second picture acquisition module 204, the second preview frame within delay time, obtaining photographic device acquisition are drawn Face, to obtain discrete preview frame picture.
In embodiments of the present invention, the second picture acquisition module 204 can be used for performing step S104.
In conclusion a kind of preview frame screen generating method provided in an embodiment of the present invention, device and mobile terminal, described Mobile terminal includes photographic device, the method includes:Obtain the first preview frame picture of photographic device acquisition;Using building in advance Vertical delay time prediction model according to the current performance parameters of mobile terminal, predicts the delay time of photographic device;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 the first preview frame picture is acquired, the delay time of the current performance parameters dynamic prediction photographic device according to mobile terminal, So as to fulfill the second preview frame picture is acquired within delay time, the generation of discontinuous preview frame picture is realized, it is highly 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 flow chart or block diagram can represent the one of a module, program segment or code Part, a part for the module, program segment or code include one or more and are used to implement holding for defined logic function Row instruction.It should also be noted that at some as in the realization method replaced, the function that is marked in box can also be to be different from The sequence marked in attached drawing occurs.For example, two continuous boxes can essentially perform substantially in parallel, they are sometimes It can perform in the opposite order, this is depended on the functions involved.It is it is also noted that every in block diagram and/or flow chart The combination of a box and the box in block diagram and/or flow chart can use function or the dedicated base of action as defined in performing It realizes or can be realized with the combination of specialized hardware and computer instruction in the system of hardware.
In addition, each function module in each embodiment of the present invention can integrate to form an independent portion Point or modules individualism, can also two or more modules be integrated to form an independent part.
If the function is realized in the form of software function module and is independent product sale or in use, can be with It is stored in a computer read/write memory medium.Based on such understanding, technical scheme of the present invention is substantially in other words The part contribute to the prior art or the part of the technical solution can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, is used including some instructions so that a computer equipment (can be People's computer, server or network equipment etc.) perform all or part of the steps of the method according to each embodiment of the present invention. And aforementioned storage medium includes: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 disc or CD.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, term " comprising ", "comprising" or its any other variant are intended to the packet of nonexcludability Contain so that process, method, article or equipment including a series of elements not only include those elements, but also including It other elements that are not explicitly listed or further includes as 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, also there are other identical elements in article or equipment.
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, that is made any repaiies Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should be noted that:Similar label and letter exists Similar terms are represented 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 is explained.

Claims (10)

1. a kind of preview frame screen generating method, which is characterized in that applied to mobile terminal, the mobile terminal includes camera shooting and fills It puts, the method includes:
Obtain the first preview frame picture of the photographic device acquisition;
Using the delay time prediction model pre-established, according to the current performance parameters of the mobile terminal, taken the photograph described in prediction As the delay time of 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 method further includes:
According to the performance parameter matrix of the mobile terminal, the delay time prediction model is established.
3. method as claimed in claim 2, which is characterized in that described the step of establishing the delay time prediction model, packet It includes:
Determine the model independent variable of the delay time prediction model and model dependent variable, wherein, the model independent variable is prolongs Slow time matrix, the model dependent variable are the performance parameter matrix of the mobile terminal;
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 the delay time The regression coefficient of prediction model.
4. the method as described in claim 1, which is characterized in that it is described to utilize the delay time prediction model pre-established, according to According to the current performance parameters of the mobile terminal, the step of predicting the delay time of the photographic device, including:
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 put.
5. method as claimed in claim 4, which is characterized in that the current performance parameters according to the mobile terminal, it is right The initial value carries out confidence analysis, the step of predicting the delay time of the photographic device, including:
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 put described Believe delay time of the matrix as the photographic device.
6. a kind of preview frame screen generating device, which is characterized in that applied to mobile terminal, the mobile terminal includes camera shooting and fills It puts, the preview frame screen generating device includes:
First picture acquisition 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 working as the mobile terminal Preceding performance parameter predicts the delay time of the photographic device;
Second picture acquisition module, the second preview frame within the delay time, obtaining the photographic device acquisition are drawn Face, to obtain discrete preview frame picture.
7. device as claimed in claim 6, which is characterized in that the preview frame screen generating device further includes:
Model building module for the performance parameter matrix according to the mobile terminal, establishes the delay time prediction model.
8. device as claimed in claim 7, which is characterized in that the model building module is specifically used for:
Determine the model independent variable of the delay time prediction model and model dependent variable, wherein, the model independent variable is prolongs Slow time matrix, the model dependent variable are the performance parameter matrix of the mobile terminal;
The model independent variable and the model dependent variable are standardized, obtain standardization independent variable matrix and standard Change dependent variable matrix;
Regression analysis is carried out to the standardization independent variable matrix and the standardization dependent variable matrix, obtains the delay time The regression coefficient of prediction model.
9. device as claimed in claim 6, 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 put.
10. a kind of mobile terminal, which is characterized in that the mobile terminal includes photographic device, and the mobile terminal further includes:
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 module performed by the processor, including:
First preview frame picture acquisition 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 working as the mobile terminal Preceding performance parameter predicts the delay time of the photographic device;
Second preview frame picture acquisition module, it is pre- within the delay time, obtaining the second of the photographic device acquisition Frame picture is look at, to obtain discrete preview frame picture.
CN201810008921.0A 2018-01-04 2018-01-04 Preview frame screen generating method, device and mobile terminal Active CN108184065B (en)

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 true CN108184065A (en) 2018-06-19
CN108184065B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113299251A (en) * 2020-02-21 2021-08-24 联发科技股份有限公司 Control method of processor and processor

Citations (7)

* Cited by examiner, † Cited by third party
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
US20110298962A1 (en) * 2010-06-04 2011-12-08 Seiko Epson Corporation Image-displaying device and display control circuit
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
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
US20110298962A1 (en) * 2010-06-04 2011-12-08 Seiko Epson Corporation Image-displaying device and display control circuit
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

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113299251A (en) * 2020-02-21 2021-08-24 联发科技股份有限公司 Control method of processor and processor
US11457173B2 (en) 2020-02-21 2022-09-27 Mediatek Inc. Dynamic frame rate adjustment mechanism
CN113299251B (en) * 2020-02-21 2023-03-03 联发科技股份有限公司 Control method of processor and processor
US11974071B2 (en) 2020-02-21 2024-04-30 Mediatek Inc. Dynamic frame rate adjustment mechanism

Also Published As

Publication number Publication date
CN108184065B (en) 2019-11-05
WO2019134271A1 (en) 2019-07-11

Similar Documents

Publication Publication Date Title
CN114424253B (en) Model training method and device, storage medium and electronic equipment
CN111950638B (en) Image classification method and device based on model distillation and electronic equipment
WO2021151336A1 (en) Road image target detection method based on attentional mechanism and related device
CN111931931A (en) Deep neural network training method and device for pathology full-field image
CN107633254A (en) Establish device, method and the computer-readable recording medium of forecast model
CN111667001B (en) Target re-identification method, device, computer equipment and storage medium
CN111260037B (en) Convolution operation method and device of image data, electronic equipment and storage medium
CN111914908B (en) Image recognition model training method, image recognition method and related equipment
CN112862828B (en) Semantic segmentation method, model training method and device
US11468296B2 (en) Relative position encoding based networks for action recognition
CN108875519B (en) Object detection method, device and system and storage medium
CN110968712B (en) BIM family model acquisition method, device and system
CN111797861A (en) Information processing method, information processing apparatus, storage medium, and electronic device
CN108921131A (en) A kind of method and device generating Face datection model, three-dimensional face images
CN111984803B (en) Multimedia resource processing method and device, computer equipment and storage medium
CN114881989A (en) Small sample based target object defect detection method and device, and electronic equipment
CN107729144B (en) Application control method and device, storage medium and electronic equipment
CN113240071A (en) Graph neural network processing method and device, computer equipment and storage medium
CN111382791A (en) Deep learning task processing method, image recognition task processing method and device
CN108388886A (en) Method, apparatus, terminal and the computer readable storage medium of image scene identification
CN111797867A (en) System resource optimization method and device, storage medium and electronic equipment
CN111488887B (en) Image processing method and device based on artificial intelligence
CN108184065B (en) Preview frame screen generating method, device and mobile terminal
CN112101109B (en) Training method and device for face key point detection model, electronic equipment and medium
CN112969032A (en) Illumination pattern recognition method and device, computer equipment and storage medium

Legal Events

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