CN108431867A - A kind of data processing method and device - Google Patents

A kind of data processing method and device Download PDF

Info

Publication number
CN108431867A
CN108431867A CN201780005199.9A CN201780005199A CN108431867A CN 108431867 A CN108431867 A CN 108431867A CN 201780005199 A CN201780005199 A CN 201780005199A CN 108431867 A CN108431867 A CN 108431867A
Authority
CN
China
Prior art keywords
data frame
taking pictures
image
pictures
data
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
CN201780005199.9A
Other languages
Chinese (zh)
Other versions
CN108431867B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN108431867A publication Critical patent/CN108431867A/en
Application granted granted Critical
Publication of CN108431867B publication Critical patent/CN108431867B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing

Abstract

A kind of data processing method of offer of the embodiment of the present invention and device, are related to image processing field, solve the problems, such as that the prior art shows that the second-rate and display effect of image is poor in live-pictures shooting process.The method includes:Obtain the data flow of image for taking pictures, the data flow of the image for taking pictures controls data frames including at least two data frames and at least two of taking pictures;Described at least two are extracted to take pictures the characteristics of image of data frame of each taking pictures in data frame;According to the characteristics of image of each data frame of taking pictures, take pictures data frame from described at least two selection targets in data frame of taking pictures;At least two control data frame and target data frame of taking pictures are handled, to generate display image.

Description

A kind of data processing method and device
This application claims on November 30th, 2016 submit Patent Office of the People's Republic of China, application No. is a kind of 201611082252.9, priority of the Chinese patent application of entitled " method and apparatus for processing of taking pictures ", entire contents are hereby incorporated by reference in the application.
Technical field
This application involves field of image processing more particularly to a kind of data processing method and devices.
Background technique
At present, as shown in Figure 1, when user carries out live-pictures shooting using terminals such as mobile phone, cameras, image sensor in terminal can first capture objective body and be converted to RAW data, the RAW data can be converted to preview data stream, data flow of taking pictures and control information, the RAW data and can be buffered in data buffer zone.Wherein, RAW data refer to the data flow about image of the most original of capture, and preview data stream refers to continuous yuv data frame of the RAW data Jing Guo ISP cell processing;Data flow of taking pictures refers to the data flow for generating display image, may include multiple data frames of taking pictures;Control information refers to the information of identification code or timestamp including data frame of taking pictures, may include multiple control data frames, each control data frame can include certain control information.Later, image signal process (Image Signal Processing by data stream transmitting of taking pictures to responsible image procossing, ISP) unit, matching is compared to control information and data flow of taking pictures by ISP unit, and by the data frame coded treatment of taking pictures of successful match at first, to obtain the Jpeg for being shown to user or other compressed encoding format pictures, i.e. final display image, such as, picture format shown in FIG. 1 is the image of Jpeg, can be shown later by display panel.
When ISP unit in the above method compares matching to control information and data flow of taking pictures, it is to be matched according to each take pictures data frame and the corresponding timestamp of control information or identification code, and final display image is generated according to the data frame of taking pictures of first time successful match.However, when obtaining RAW data, it can be because of the factors such as shake or environmental change, lead to having a certain difference property or noise in the RAW data obtained, to according to the above method compare matching and generate Jpeg image when, can there is a problem of that the picture quality of the image is poor and display effect is poor.
Summary of the invention
The embodiment of the present invention provides a kind of data processing method and device, solves the problems, such as that the prior art shows that the second-rate and display effect of image is poor in live-pictures shooting process.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that
In a first aspect, provide a kind of data processing method, this method comprises: obtain the data flow of the image for taking pictures, the data flow of the image for being used to take pictures includes at least two taking pictures data frame and at least two control data frames;At least two are extracted to take pictures the characteristics of image of data frame of each taking pictures in data frame;According to the characteristics of image of each data frame of taking pictures, take pictures data frame from least two selection targets in data frame of taking pictures;At least two control data frames and target data frame of taking pictures are handled, to generate display image.In embodiments of the present invention, after terminal obtains data flow for the image taken pictures, terminal can extract data flow includes at least two and take pictures the image of data frame of each taking pictures in data frame Feature, to be taken pictures data frame based on characteristics of image from least two selection targets in data frame of taking pictures, at least two control data frames and target data frame of taking pictures are handled later, image is shown to generate, it thereby may be ensured that and show that the quality of image is more excellent in live-pictures shooting process, it is poor that its display effect is improved in turn, promotes user experience.
With reference to first aspect, in the first possible implementation of the first aspect, which includes at least one of following characteristics: color characteristic, textural characteristics, shape feature, spatial relation characteristics.In above-mentioned possible implementation, provide several possible characteristics of image in data frame of taking pictures, to be extracted to these characteristics of image, and according to the image feature selection target of extraction take pictures data frame when, display image can be generated from least two data frames of preferably taking pictures of selection effect in data frame of taking pictures.
With reference to first aspect or the first possible implementation of first aspect, in the second possible implementation of the first aspect, according to the characteristics of image of each data frame of taking pictures, it takes pictures data frame from least two selection targets in data frame of taking pictures, comprising: whether each the take pictures characteristics of image of data frame of judgement meets preset condition;It selects at least two to take pictures to meet the data frame of taking pictures of preset condition in data frame and take pictures data frame as target;Wherein, if characteristics of image includes a feature, preset condition includes that the characteristic parameter of this feature is more than or equal to the first preset threshold;Alternatively, preset condition includes that the characteristic parameter of this feature is less than or equal to the first preset threshold if characteristics of image includes a feature;Alternatively, if picture characteristics include at least two features, preset condition include the product of the corresponding default weight of the characteristic parameter of at least two feature and be more than or equal to the second preset threshold;Alternatively, if picture characteristics include at least two features, preset condition include the product of the corresponding default weight of the characteristic parameter of at least two feature and be less than or equal to the second preset threshold.In above-mentioned possible implementation, provide several possible preset conditions, so that terminal is taken pictures data frame according to preset condition from least two selection preferable targets of effect in data frame of taking pictures, to improve the quality of the display image generated, and then its display effect is improved.
With reference to first aspect or the first possible implementation of first aspect, in a third possible implementation of the first aspect, the data flow of the image for being used to take pictures further includes at least two sensor informations, the corresponding data frame of taking pictures of each sensor information, according to the characteristics of image of each data frame of taking pictures, it takes pictures data frame from least two selection targets in data frame of taking pictures, it include: the characteristics of image according to data frame of each taking pictures, and the corresponding sensor information of data frame of each taking pictures, it takes pictures data frame from least two selection targets in data frame of taking pictures.In above-mentioned possible implementation, target is carried out by the characteristics of image and sensor information that combine data frame of each taking pictures to take pictures the selection of data frame, the problem of display effect difference caused by the problems such as image is because of shake or angle can be shown to avoid generation, and then promote user experience.
Second aspect provides a kind of terminal, which includes: acquiring unit, and for obtaining the data flow of the image for taking pictures, the data flow of the image for being used to take pictures includes at least two taking pictures data frame and at least two control data frames;Extraction unit is taken pictures the characteristics of image of data frame of each taking pictures in data frame for extracting at least two;Selecting unit is taken pictures data frame from least two selection targets in data frame of taking pictures for the characteristics of image according to data frame of each taking pictures;Processing unit, for handling at least two control data frames and target data frame of taking pictures, to generate display image.
In conjunction with second aspect, in the first possible implementation of the second aspect, which includes at least one of following characteristics: color characteristic, textural characteristics, shape feature, spatial relation characteristics.
In conjunction with the possible implementation of the first of second aspect or second aspect, in a second possible implementation of the second aspect, selecting unit is specifically used for: whether the characteristics of image of each data frame of taking pictures of judgement meets preset condition;It selects at least two to take pictures to meet the data frame of taking pictures of preset condition in data frame and take pictures data frame as target;Wherein, if characteristics of image includes a feature, preset condition includes that the characteristic parameter of this feature is more than or equal to the first default threshold Value;Alternatively, preset condition includes that the characteristic parameter of this feature is less than or equal to the first preset threshold if characteristics of image includes a feature;Alternatively, if picture characteristics include at least two features, preset condition include the product of the corresponding default weight of the characteristic parameter of at least two feature and be more than or equal to the second preset threshold;If picture characteristics include at least two features, preset condition include the product of the corresponding default weight of the characteristic parameter of at least two feature and be less than or equal to the second preset threshold.
In conjunction with the possible implementation of the first of second aspect or second aspect, in the third possible implementation of the second aspect, the data flow of the image for being used to take pictures further includes at least two sensor informations, the corresponding data frame of taking pictures of each sensor information, selecting unit, it is specifically used for: according to the characteristics of image of each data frame of taking pictures and each takes pictures the corresponding sensor information of data frame, takes pictures data frame from least two selection targets in data frame of taking pictures.
The third aspect, a kind of terminal is provided, the terminal includes processor, memory, store code and data in memory, code in processor run memory, so that processor executes data processing method provided by above-mentioned first aspect to any one of the third possible implementation of first aspect.
Fourth aspect, a kind of computer readable storage medium is provided, computer executed instructions are stored in computer readable storage medium, when at least one processor of equipment executes the computer executed instructions, equipment executes data processing method provided by above-mentioned first aspect to any one of the third possible implementation of first aspect.
5th aspect, provides a kind of computer program product, which includes computer executed instructions, which stores in a computer-readable storage medium;At least one processor of equipment can read the computer executed instructions from computer readable storage medium, at least one processor executes the computer executed instructions and equipment is made to implement data processing method provided by above-mentioned first aspect to any one of the third possible implementation of first aspect.
Understandably, device, computer storage medium or the computer program product of any data processing method of above-mentioned offer are used to execute corresponding method presented above, therefore, its attainable beneficial effect can refer to the beneficial effect in corresponding method presented above, details are not described herein again.
Detailed description of the invention
Fig. 1 is a kind of schematic diagram of the data flow processing method of image for taking pictures;
Fig. 2 is a kind of structure chart of terminal provided in an embodiment of the present invention;
Fig. 3 is a kind of flow chart of data processing method provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic diagram of the data flow processing method of the image for taking pictures provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of another terminal provided in an embodiment of the present invention.
Specific embodiment
Data processing method provided in an embodiment of the present invention can be executed by terminal, the terminal can be mobile phone, tablet computer, laptop, Ultra-Mobile PC (Ultra-mobile Personal Computer, UMPC), net book, personal digital assistant (Personal Digital Assistant, PDA), video camera and camera etc..The embodiment of the present invention is illustrated taking the terminal as an example, Fig. 2 shows be mobile phone relevant to various embodiments of the present invention part-structure block diagram.
It will appreciated by the skilled person that structure shown in Fig. 2 is only to illustrate, the structure of terminal is not caused to limit.For example, the terminal may also include the more perhaps less component than shown in Fig. 2 or have and figure Different configuration shown in 2.
As shown in Fig. 2, the terminal 20 include: memory 201, processor 202, sensor module 203, multimedia component 204, power supply module 205, input output interface 206.
It is specifically introduced below with reference to each component parts of the Fig. 1 to terminal 20:
Memory 201 can be used for storing data, software program and module;It mainly include storing program area and storage data area, wherein storing program area can application program (such as sound-playing function, image player function etc.) needed for storage program area, at least one function etc.;Storage data area, which can be stored, uses created data (such as audio data, image data, phone directory etc.) etc. according to terminal 20.In addition, memory 201 may include high-speed random access memory, it can also include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 202 is the control centre of terminal 20, utilize the various pieces of various interfaces and the entire electronic equipment of connection, by running or executing the software program and/or module that are stored in memory 201, and call the data being stored in memory 201, the various functions and processing data for executing terminal 20, to carry out integral monitoring to terminal 20.Optionally, processor 202 may include one or more processing units;Preferably, processor 202 can integrate application processor and modem processor, wherein the main processing operation system of application processor, user interface and application program etc., modem processor mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 202.
Sensor module 203 includes one or more sensors, for providing the status assessment of various aspects for terminal 20.Wherein, sensor module 203 may include optical sensor, such as CMOS or ccd image sensor, for using in imaging applications.Furthermore, sensor module 203 can also include acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor, it can detecte the acceleration/deceleration of terminal 20 by sensor module 203, orientation, open/close state, the relative positioning of component or the temperature change of terminal 20 etc..
The screen of offer one output interface of the multimedia component 204 between terminal 20 and user, for example, the screen can be liquid crystal display, touch panel.When screen is touch panel, screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensors to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense the boundary of a touch or slide action, but also detect duration and pressure associated with the touch or slide operation.In addition, multimedia component 204 further includes a front camera and/or rear camera.When terminal 20 is in operation mode, such as in a shooting mode or a video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Power supply module 205 is used to for the various components of terminal 20 provide power supply, and power supply module 205 may include power-supply management system, one or more power supplys and other the associated component of electric power is generated, managed, and distributed with terminal 20.Input output interface 206 provides interface between processor 202 and peripheral interface module, for example, peripheral interface module can be with keyboard, mouse etc..
Although being not shown, terminal 20 can also include audio component and communication component etc., such as, audio component includes microphone, communication component includes WiFi (wireless fidelity, Wireless Fidelity) module, bluetooth module etc., and details are not described herein for the embodiment of the present invention.
Fig. 3 is a kind of flow chart of data processing method provided in an embodiment of the present invention, and this method is applied in above-mentioned terminal shown in Fig. 2, and referring to Fig. 3, this method includes following steps.
Step 301: obtaining the data flow of image for taking pictures, the data flow of the image for taking pictures includes at least two taking pictures data frame and at least two control data frames.
Wherein, when terminal is when taking pictures, the data flow of the available image for taking pictures of terminal, the data flow is RAW data, may include preview data stream, data flow of taking pictures and control information.Data flow refers to that the image data of the most original about the image for taking pictures of the camera sensing device capture of terminal, the data flow can be buffered in data buffer area.Preview data stream refers to the treated continuous yuv data frame of RAW data.Data frame of taking pictures refers to that, for generating display image, control information refers to the information of identification code or timestamp including data frame of taking pictures.In embodiments of the present invention, data flow of taking pictures includes at least two taking pictures data frame, that is, data flow of taking pictures may include two or more data frame of taking pictures;Controlling information includes at least two control data frames, that is, controls the control data frame that data flow may include two or more.
Step 302: extracting at least two and take pictures the characteristics of image of data frame of each taking pictures in data frame.
After terminal obtains data flow for the image taken pictures, terminal can extract at least two and take pictures the characteristics of image of data frame of each taking pictures in data frame, and terminal can extract a characteristics of image for data frame of each taking pictures, and can also extract multiple images feature.The characteristics of image may include at least one of the following: color characteristic, textural characteristics, shape feature, spatial relation characteristics.
Wherein, color characteristic, it is a kind of global characteristics, describe the surface nature of scenery corresponding to image or image-region, general color characteristic is the feature based on pixel, and color histogram, color set, color are the method for most common expression color characteristic away from, color convergence vector sum color correlogram etc..
Textural characteristics and a kind of global characteristics, it also illustrates the surface nature of scenery corresponding to image or image-region.Different from color characteristic, textural characteristics are not based on the feature of pixel, it needs to carry out statistics calculating in the region comprising multiple pixels.Optionally, the extracting method of common textural characteristics may include statistical method, geometric method, modelling and signal processing method etc..
Shape feature has two class representation methods under normal conditions, and one kind is contour feature, and another kind of is provincial characteristics.Contour feature is mainly for the outer boundary of object, and provincial characteristics is then mainly related to entire shape area.Wherein, common shape feature, which describes method, has boundary characteristic method, Fourier's shape description symbols method, geometry parameter method and shape invariance away from method etc..
Spatial relation characteristics, refer to the mutual spatial position between the multiple targets split in image or relative direction relationship, these relationships can be divided into connection/syntople, overlapping/overlapping relation and comprising/containment relationship etc..Optionally, extracting image space relationship characteristic can be there are two types of method: a kind of method is to be divided automatically to data frame of taking pictures first, object or color region included in data frame of taking pictures are marked off, then according to these extracted region images features, and establishes index;Another method is then that the data frame that will take pictures is evenly divided into multiple regular sub-blocks, then extracts feature to each regular sub-block, and establish index.
Step 303: according to the characteristics of image of each data frame of taking pictures, taking pictures data frame from least two selection targets in data frame of taking pictures.
Wherein, terminal is according to the characteristics of image of data frame of each taking pictures, it may include: whether each the take pictures characteristics of image of data frame of terminal judgement meets preset condition from least two data frames of taking pictures of selection target in data frame of taking pictures, and select at least two to take pictures and meet the data frame of taking pictures of preset condition in data frame and take pictures data frame as target.Wherein, if characteristics of image includes a feature, preset condition includes: that the characteristic parameter of this feature is more than or equal to the first preset threshold;Alternatively, preset condition includes: that the characteristic parameter of this feature is less than or equal to first in advance if characteristics of image includes a feature If threshold value;Alternatively, if picture characteristics include at least two features, preset condition include: the product of the corresponding default weight of the characteristic parameter of at least two feature and be more than or equal to the second preset threshold;Alternatively, if picture characteristics include at least two features, preset condition include: the product of the corresponding default weight of the characteristic parameter of at least two feature and be less than or equal to the second preset threshold.
Such as, the characteristics of image for the data frame of taking pictures that terminal is extracted includes a feature, this feature can be color characteristic, textural characteristics, shape feature, any feature in spatial relation characteristics, and the corresponding characteristic parameter of the characteristics of image of a certain data frame of taking pictures is a, first preset threshold is A, if this feature parameter is bigger, indicate take pictures data frame effect it is better, then preset condition is that the characteristic parameter of this feature is more than or equal to the first preset threshold, as this feature parameter a >=A, it can then determine that the data frame of taking pictures meets preset condition, so as to which the data frame of taking pictures is taken pictures data frame as target.
Specifically, there are more than two data frames of taking pictures according to the method described above if at least two take pictures in data frame and meet preset condition, the optimal data frame of taking pictures of characteristic parameter in more than two data frames of taking pictures can then be taken pictures data frame as target, that is, the data frame of taking pictures for selecting effect optimal is taken pictures data frame as target.
For another example, the characteristics of image for the data frame of taking pictures that terminal is extracted includes at least two features, at least two feature can be with color characteristic, textural characteristics, shape feature, at least two features in spatial relation characteristics, and the characteristic parameter of corresponding at least two feature of a certain data frame of taking pictures is divided into for a1, a2, ..., an, the corresponding default weight of at least two features is respectively b1, b2, ..., bn, n is the integer more than or equal to 2, b1, b2, ..., bn is the number for being less than or equal to 1 more than or equal to 0, second preset threshold can be B, if the product of the corresponding default weight of at least two characteristic parameter and bigger, indicate take pictures data frame effect it is better, then preset condition be the product of the corresponding default weight of characteristic parameter of at least two feature and be more than or equal to the second preset threshold , as a1*b1+a2*b2+ ... when+an*bn >=B, then can determine that the data frame of taking pictures meets preset condition, so as to which the data frame of taking pictures is taken pictures data frame as target.
Specifically, there are more than two data frames of taking pictures according to the method described above if at least two take pictures in data frame and meet preset condition, the optimal data frame of taking pictures of product of the sum of its characteristic parameter in more than two data frames of taking pictures and its default weight can then be taken pictures data frame as target, that is, the data frame of taking pictures for selecting effect optimal is taken pictures data frame as target.
Further, the data flow of image for taking pictures can also include at least two sensor informations, the corresponding data frame of taking pictures of each sensor information, then above-mentioned steps 303 can be with are as follows: the corresponding sensor information of data frame of according to the characteristics of image of each data frame of taking pictures and each taking pictures is taken pictures data frame from least two selection targets in data frame of taking pictures.
Wherein, sensor information can include but is not limited to the information that the monitorings such as gravity sensing and gyroscope obtain, and sensor information can serve to indicate that the information such as shake, speed and the angle when terminal obtains the image for taking pictures.When terminal from least two take pictures selection target in data frame take pictures data frame when, terminal can in conjunction with data frame of each taking pictures characteristics of image and each take pictures the corresponding sensor information of data frame, each data frame of taking pictures is judged.
Specifically, terminal can select the data frame of taking pictures for meeting preset condition first, in accordance with the judgment method of above-mentioned characteristics of image, judgement selection carried out to the data frame of taking pictures for meeting preset condition further according to sensor information later, and the data frame of taking pictures selected is taken pictures data frame as target.Wherein, method when specifically being judged according to sensor information is similar with the method that the above-mentioned preset condition according to characteristics of image is judged, details are not described herein for the embodiment of the present invention.Certainly, terminal can also first be judged according to the sensor information of data frame of each taking pictures, after according to image spy Sign is judged;Or terminal is judged that it is not limited in the embodiment of the present invention according to the characteristics of image and sensor information for data frame of each taking pictures simultaneously.
In addition, taking pictures for two or more while meeting judgement to characteristics of image and sensor information at data frame if it exists, then can take pictures data frame using wherein optimal data frame of taking pictures as target.
Step 304: at least two control data frames and target data frame of taking pictures being handled, to generate display image.
Wherein, when terminal select target take pictures data frame when, terminal can be handled at least two control data frames and target data frame of taking pictures, the matched control data frame of data frame of taking pictures with target is selected from least two control data frames according to timestamp or identification code etc., according to matched control data frame to target take pictures data frame carry out coded treatment, to generate final display image, the format of the display image can be any image format, such as Jpeg, Jpg, tiff or gif etc..Later, terminal can show final display image on display panel or display.
In practical applications, the process that terminal executes above-mentioned steps 301- step 304 can be with as shown in figure 4, be obtained the data flow of image for taking pictures by image sensor, and by the data flow cache in data buffer zone.Step 302 and step 303 can be executed by ISP unit, can also be executed by the newly-increased processing unit being arranged, and be illustrated so that newly-increased processing unit executes step 302 and step 303 as an example in Fig. 4.After selection target takes pictures data frame, step 304 is executed by ISP unit, to generate display image, Fig. 4 is illustrated for being Jpeg in the format to show image.
In embodiments of the present invention, after terminal obtains the data flow for the image taken pictures, terminal can extract data flow includes at least two and take pictures the characteristics of image of data frame of each taking pictures in data frame, to be taken pictures data frame based on characteristics of image from least two selection targets in data frame of taking pictures, at least two control data frames and target data frame of taking pictures are handled later, image is shown to generate, it thereby may be ensured that and show that the effect of image is optimal in live-pictures shooting process, it is poor that its display effect is improved in turn, promotes user experience.
It is above-mentioned that mainly scheme provided in an embodiment of the present invention is described from the angle of terminal.It is understood that terminal is in order to realize the above functions, it comprises execute the corresponding hardware configuration of each function and/or software module.Those skilled in the art should be readily appreciated that, terminal described in conjunction with the examples disclosed in the embodiments of the present disclosure and algorithm steps, and the embodiment of the present invention can be realized with the combining form of hardware or hardware and computer software.Some function is executed in a manner of hardware or computer software driving hardware actually, specific application and design constraint depending on technical solution.Professional technician can use different methods to achieve the described function each specific application, but this realization is it is not considered that exceed scope of the present application.
Two or more functions can also be integrated in a processing module according to the division that above method example carries out functional module to terminal for example, each functional module of each function division can be corresponded to by the embodiment of the present invention.Above-mentioned integrated module both can take the form of hardware realization, can also be realized in the form of software function module.It should be noted that being schematically that only a kind of logical function partition, there may be another division manner in actual implementation to the division of module in the embodiment of the present invention.
In the case where each function division of use correspondence each functional module, Fig. 5 shows a kind of possible structural schematic diagram of terminal involved in above-described embodiment, and terminal 400 includes: acquiring unit 401, extraction unit 402, selecting unit 403 and processing unit 404.Wherein, acquiring unit 401 is used to execute the step 301 in Fig. 3;Extraction unit 402 is used to execute the step 302 in Fig. 3;Selecting unit 403 is used to execute the step 303 in Fig. 3;Processing unit 404 is used to execute the step 304 in Fig. 3.All related contents for each step that above method embodiment is related to can quote the function description of corresponding function module, and details are not described herein.
In hardware realization, above-mentioned acquiring unit 401 can be sensor, extraction unit 402, selecting unit 403 It can be processor with processing unit 404.
Shown in Fig. 6, a kind of possible logical construction schematic diagram of terminal involved in above-described embodiment for providing for the embodiment of the present invention.Terminal 410 includes: memory 411, processor 412, sensor 413, communication interface 414 and bus 415.Memory 411, processor 412, sensor 413 and communication interface 414 are connected with each other by bus 414.In the embodiment of invention, processor 412 is for carrying out control management to the movement of terminal 410, for example, processor 412 is used to execute the step 302- step 304 in Fig. 3, and/or other processes for techniques described herein.Sensor 413 is for executing step 301 shown in Fig. 3.Communication interface 414 is for supporting that terminal 410 is communicated.Memory 311, for storing the program code and data of terminal 410.
Wherein, processor 412 can be central processor unit, general processor, digital signal processor, specific integrated circuit, field programmable gate array or other programmable logic device, transistor logic, hardware component or any combination thereof.It, which may be implemented or executes, combines various illustrative logic blocks, module and circuit described in present disclosure.The processor is also possible to realize the combination of computing function, such as combines comprising one or more microprocessors, digital signal processor and the combination of microprocessor etc..Sensor 413 may include image sensor, gravity sensing sensor, gyroscope etc..Bus 415 can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The bus can be divided into address bus, data/address bus, control bus etc..Only to be indicated with a thick line in Fig. 6, it is not intended that an only bus or a type of bus convenient for indicating.
In another embodiment of the invention, a kind of computer readable storage medium is also provided, computer executed instructions are stored in computer readable storage medium, when at least one processor of equipment executes the computer executed instructions, equipment executes data processing method shown in Fig. 3.
In another embodiment of the invention, a kind of computer program product is also provided, which includes computer executed instructions, which stores in a computer-readable storage medium;At least one processor of equipment can read the computer executed instructions from computer readable storage medium, at least one processor executes the computer executed instructions and makes data processing method shown in equipment implementing Fig. 3.
In embodiments of the present invention, after obtaining the data flow for the image taken pictures, data flow includes at least two can be extracted to take pictures the characteristics of image of data frame of each taking pictures in data frame, to be taken pictures data frame based on characteristics of image from least two selection targets in data frame of taking pictures, at least two control data frames and target data frame of taking pictures are handled later, image is shown to generate, it thereby may be ensured that the quality that image is shown in live-pictures shooting process, and then its display effect is improved, promote user experience.
Finally, it should be noted that described above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, and any change or replacement within the technical scope of the present application should all be covered within the scope of protection of this application.Therefore, the protection scope of the application should be based on the protection scope of the described claims.

Claims (9)

  1. A kind of data processing method, which is characterized in that the described method includes:
    Obtain the data flow of image for taking pictures, the data flow of the image for taking pictures includes that at least two data frames and at least two of taking pictures control data frames;
    Described at least two are extracted to take pictures the characteristics of image of data frame of each taking pictures in data frame;
    According to the characteristics of image of each data frame of taking pictures, take pictures data frame from described at least two selection targets in data frame of taking pictures;
    At least two control data frame and target data frame of taking pictures are handled, to generate display image.
  2. The method according to claim 1, wherein described image feature includes at least one of following characteristics: color characteristic, textural characteristics, shape feature, spatial relation characteristics.
  3. Method according to claim 1 or 2, which is characterized in that the characteristics of image of the basis data frame of taking pictures is taken pictures data frame from described at least two selection targets in data frame of taking pictures, comprising:
    Whether the characteristics of image of each data frame of taking pictures of judgement meets preset condition;Wherein, if described image feature includes a feature, the preset condition includes that the characteristic parameter of the feature is more than or equal to the first preset threshold;Alternatively, the preset condition includes that the characteristic parameter of the feature is less than or equal to the first preset threshold if described image feature includes a feature;Alternatively, if described image characteristic include at least two features, the preset condition include the product of the corresponding default weight of the characteristic parameter of at least two feature and be more than or equal to the second preset threshold;Alternatively, if described image characteristic include at least two features, the preset condition include the product of the corresponding default weight of the characteristic parameter of at least two feature and be less than or equal to the second preset threshold;
    It selects described at least two to take pictures to meet the data frame of taking pictures of the preset condition in data frame and take pictures data frame as target.
  4. Method according to claim 1 or 2, it is characterized in that, the data flow of the image for taking pictures further includes at least two sensor informations, the corresponding data frame of taking pictures of each sensor information, the characteristics of image of each data frame of taking pictures of the basis, it takes pictures data frame from described at least two selection targets in data frame of taking pictures, comprising:
    According to the characteristics of image of each data frame of taking pictures and the corresponding sensor information of data frame of taking pictures, take pictures data frame from described at least two selection targets in data frame of taking pictures.
  5. A kind of terminal, which is characterized in that the terminal includes:
    Acquiring unit, for obtaining the data flow of the image for taking pictures, the data flow of the image for taking pictures includes at least two taking pictures data frame and at least two control data frames;
    Extraction unit is taken pictures the characteristics of image of data frame of each taking pictures in data frame for extracting described at least two;
    Selecting unit is taken pictures data frame from described at least two selection targets in data frame of taking pictures for the characteristics of image according to the data frame of taking pictures;
    Processing unit, for handling at least two control data frame and target data frame of taking pictures, to generate display image.
  6. Terminal according to claim 5, which is characterized in that described image feature includes at least one of following characteristics: color characteristic, textural characteristics, shape feature, spatial relation characteristics.
  7. Terminal according to claim 5 or 6, which is characterized in that the selecting unit is specifically used for:
    Whether the characteristics of image of each data frame of taking pictures of judgement meets preset condition;Wherein, if described image feature includes a feature, the preset condition includes that the characteristic parameter of the feature is more than or equal to the first preset threshold;Alternatively, If described image feature includes a feature, the preset condition includes that the characteristic parameter of the feature is less than or equal to the first preset threshold;Alternatively, if described image characteristic include at least two features, the preset condition include the product of the corresponding default weight of the characteristic parameter of at least two feature and be more than or equal to the second preset threshold;If described image characteristic include at least two features, the preset condition include the product of the corresponding default weight of the characteristic parameter of at least two feature and be less than or equal to the second preset threshold;
    It selects described at least two to take pictures to meet the data frame of taking pictures of the preset condition in data frame and take pictures data frame as target.
  8. Terminal according to claim 5 or 6, which is characterized in that the data flow of the image for taking pictures further includes at least two sensor informations, and the corresponding data frame of taking pictures of each sensor information, the selecting unit is specifically used for:
    According to the characteristics of image of each data frame of taking pictures and the corresponding sensor information of data frame of taking pictures, take pictures data frame from described at least two selection targets in data frame of taking pictures.
  9. A kind of terminal, it is characterized in that, the terminal includes processor, memory, store code and data in the memory, the processor runs the code in the memory, so that the processor executes the described in any item data processing methods of the claims 1-4.
CN201780005199.9A 2016-11-30 2017-03-16 Data processing method and terminal Active CN108431867B (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201611082252 2016-11-30
CN2016110822529 2016-11-30
PCT/CN2017/076944 WO2018098931A1 (en) 2016-11-30 2017-03-16 Method and device for data processing

Publications (2)

Publication Number Publication Date
CN108431867A true CN108431867A (en) 2018-08-21
CN108431867B CN108431867B (en) 2020-12-08

Family

ID=62242709

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201780005199.9A Active CN108431867B (en) 2016-11-30 2017-03-16 Data processing method and terminal

Country Status (2)

Country Link
CN (1) CN108431867B (en)
WO (1) WO2018098931A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110807789A (en) * 2019-08-23 2020-02-18 腾讯科技(深圳)有限公司 Image processing method, model, device, electronic equipment and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103686042A (en) * 2012-09-25 2014-03-26 三星电子株式会社 Method and apparatus for image data processing, and electronic device including the apparatus
CN104869305A (en) * 2014-02-20 2015-08-26 三星电子株式会社 Method for processing image data and apparatus for the same

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005202469A (en) * 2004-01-13 2005-07-28 Fuji Xerox Co Ltd Image processor, image processing method and program
JP4811433B2 (en) * 2007-09-05 2011-11-09 ソニー株式会社 Image selection apparatus, image selection method, and program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103686042A (en) * 2012-09-25 2014-03-26 三星电子株式会社 Method and apparatus for image data processing, and electronic device including the apparatus
CN104869305A (en) * 2014-02-20 2015-08-26 三星电子株式会社 Method for processing image data and apparatus for the same

Also Published As

Publication number Publication date
WO2018098931A1 (en) 2018-06-07
CN108431867B (en) 2020-12-08

Similar Documents

Publication Publication Date Title
US11102398B2 (en) Distributing processing for imaging processing
TWI543610B (en) Electronic device and image selection method thereof
US9692959B2 (en) Image processing apparatus and method
WO2020019873A1 (en) Image processing method and apparatus, terminal and computer-readable storage medium
CN109076159B (en) Electronic device and operation method thereof
CN107423699B (en) Biopsy method and Related product
US10181203B2 (en) Method for processing image data and apparatus for the same
CN109040523B (en) Artifact eliminating method and device, storage medium and terminal
CN108513069B (en) Image processing method, image processing device, storage medium and electronic equipment
CN112954212B (en) Video generation method, device and equipment
CN109313797B (en) Image display method and terminal
CN116152122B (en) Image processing method and electronic device
CN109981989B (en) Method and device for rendering image, electronic equipment and computer readable storage medium
CN108259767B (en) Image processing method, image processing device, storage medium and electronic equipment
CN107180417B (en) Photo processing method and device, computer readable storage medium and electronic equipment
US9117110B2 (en) Face detection-processing circuit and image pickup device including the same
US20160073089A1 (en) Method for generating 3d image and electronic apparatus using the same
CN108495038B (en) Image processing method, image processing device, storage medium and electronic equipment
CN108431867A (en) A kind of data processing method and device
CN114399622A (en) Image processing method and related device
CN112468722B (en) Shooting method, device, equipment and storage medium
JP2014085845A (en) Moving picture processing device, moving picture processing method, program and integrated circuit
JP6203007B2 (en) Image processing apparatus, image processing method, and program
CN113749614B (en) Skin detection method and apparatus
CN115423752B (en) Image processing method, electronic equipment and readable storage medium

Legal Events

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