CN108810277A - It takes pictures method for previewing and device - Google Patents
It takes pictures method for previewing and device Download PDFInfo
- Publication number
- CN108810277A CN108810277A CN201810621287.8A CN201810621287A CN108810277A CN 108810277 A CN108810277 A CN 108810277A CN 201810621287 A CN201810621287 A CN 201810621287A CN 108810277 A CN108810277 A CN 108810277A
- Authority
- CN
- China
- Prior art keywords
- preview
- image
- parameter
- current
- window
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
- H04M1/72439—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0251—Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
- H04W52/0258—Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity controlling an operation mode according to history or models of usage information, e.g. activity schedule or time of day
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
- H04W52/0267—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by controlling user interface components
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- User Interface Of Digital Computer (AREA)
- Studio Devices (AREA)
Abstract
The embodiment of the present application discloses one kind and takes pictures method for previewing and device, and method therein includes:Obtain the image that current preview window is shown;The image shown based on the current preview window determines whether to detect triggering command;It is the second preview parameter by the first preview parameter adjustment of the current preview window when detecting the triggering command, the second preview parameter is more than the first preview parameter;Based on the second preview parameter, preview of taking pictures is carried out.The embodiment of the present application also discloses corresponding pre-viewing device of taking pictures.The embodiment of the present application advantageously reduces the power consumption of electronic equipment, extends the cruise duration of electronic equipment.
Description
Technical field
This application involves technical field of electronic equipment, and in particular to one kind is taken pictures method for previewing and device.
Background technology
It is universal with the rapid development of intelligent electronic device (such as smart mobile phone) technology, and increasingly, become
Indispensable electronic product in user's daily life.The U.S. figure class application installed on smart mobile phone is general support for picture into
Edlin, such as setting paster function.
Invention content
It takes pictures method for previewing and device an embodiment of the present invention provides one kind, to reduce the power consumption of electronic equipment, extend
The cruise duration of electronic equipment.
It takes pictures method for previewing in a first aspect, the embodiment of the present application provides one kind, including:
Obtain the image that current preview window is shown;
The image shown based on the current preview window determines whether to detect triggering command;
It is the second preview by the first preview parameter adjustment of the current preview window when detecting the triggering command
Parameter, the second preview parameter are more than the first preview parameter;
Based on the second preview parameter, preview of taking pictures is carried out.
Second aspect, the embodiment of the present application provide one kind and take pictures pre-viewing device, are applied to electronic equipment, including:
Acquiring unit, the image shown for obtaining current preview window;
Determination unit, the image for being shown based on the current preview window determine whether to detect triggering command;
Adjustment unit, for when detecting the triggering command, by the first preview parameter of the current preview window
It is adjusted to the second preview parameter, the second preview parameter is more than the first preview parameter;
Preview unit carries out preview of taking pictures for being based on the second preview parameter.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, including processor, memory, communication interface and
One or more programs, wherein said one or multiple programs are stored in above-mentioned memory, and are configured by above-mentioned
It manages device to execute, above procedure includes the instruction for executing the step in the embodiment of the present application second aspect either method.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, wherein above computer is readable
Computer program of the storage medium storage for electronic data interchange, wherein above computer program makes computer execute such as
Step some or all of described in the embodiment of the present application first aspect either method.
5th aspect, the embodiment of the present application provide a kind of computer program product, wherein above computer program product
Non-transient computer readable storage medium including storing computer program, above computer program are operable to make calculating
Machine executes the step some or all of as described in the embodiment of the present application first aspect either method.The computer program product
It can be a software installation packet.
As can be seen that method for previewing provided by the embodiments of the present application of taking pictures, electronic equipment obtains current preview window and shows
Image, the image shown based on the current preview window determines whether to detect triggering command, is detecting the triggering
It is the second preview parameter by the first preview parameter adjustment of the current preview window when instruction, the second preview parameter is big
In the first preview parameter, it is based on the second preview parameter, preview of taking pictures is carried out, to realize automatic adjustment the preview window
Preview parameter, extend the cruise duration of electronic equipment, reduce the power consumption of electronic equipment.
Description of the drawings
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to needed in the embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ability
For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1-1 is a kind of schematic diagram of the program running space of smart mobile phone;
Fig. 1-2 is a kind of system architecture diagram of Android system;
Fig. 2 is a kind of flow diagram for method for previewing of taking pictures disclosed in the embodiment of the present application;
Fig. 2-1 is a kind of the preview window interface schematic diagram disclosed in the embodiment of the present application;
Fig. 2-2 is another the preview window interface schematic diagram disclosed in the embodiment of the present application;
Fig. 3 is the flow diagram of another method for previewing of taking pictures disclosed in the embodiment of the present application;
Fig. 4 is the flow diagram of another method for previewing of taking pictures disclosed in the embodiment of the present application;
Fig. 5-1 is a kind of unit composition frame chart for pre-viewing device of taking pictures disclosed in the embodiment of the present application;
Fig. 5-2 is the unit composition frame chart of another pre-viewing device of taking pictures disclosed in the embodiment of the present application;
Fig. 6 is the structural schematic diagram of a kind of electronic equipment disclosed in the embodiment of the present application;
Fig. 7 is the structural schematic diagram of another electronic equipment disclosed in the embodiment of the present application.
Specific implementation mode
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present application
Attached drawing, technical solutions in the embodiments of the present application are clearly and completely described, it is clear that described embodiment is only
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
The every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Term " first ", " second " in description and claims of this specification and above-mentioned attached drawing etc. are for distinguishing
Different objects, rather than for describing particular order.In addition, term " comprising " and " having " and their any deformations, it is intended that
It is to cover and non-exclusive includes.Such as process, method, system, product or the equipment for containing series of steps or unit do not have
It is defined in the step of having listed or unit, but further includes the steps that optionally not listing or unit, or optionally also wrap
It includes for other intrinsic steps of these processes, method, product or equipment or unit.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments
Containing at least one embodiment of the present invention.Each position in the description occur the phrase might not each mean it is identical
Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and
Implicitly understand, embodiment described herein can be combined with other embodiments.
It takes pictures method for previewing and device to be best understood from one kind disclosed in the embodiment of the present application, the application is implemented below
Example describes in detail.
As Figure 1-1, the electronic equipments such as smart mobile phone are typically provided with program running space at present, and program operation is empty
Between include user's space and operating system space, wherein user's space operation there are one or multiple application programs, the application implement
Method for previewing corresponding software algorithm of taking pictures described in example just operates in user's space, and operating system space motion has electronic equipment
Operating system.
The Mobile operating system iOS that the electronic equipment can specifically run Android android system, Apple Inc. develops
Deng not doing unique restriction herein.As shown in Figs. 1-2, by taking electronic equipment operation has android system as an example, corresponding use
Family space includes the application layer (Applications) in the android system, and operating system space may include the Android
Application framework layer (Application Framework) in system, system operation library layer (including system operation library layer
Android Runtime when Libraries and Android are run), Linux inner core (Linux Kernel).Wherein, it applies
It include all kinds of application programs with user's direct interaction on layer, or the service routine for running on backstage write by Java language.
For example, the program for the common basic function realized on smart mobile phone, such as short message service (Short Messaging
Service, SMS) short message, dialing, Photo Browser, calendar, game, map, WWW (World Wide Web,
Web) programs such as browser and the other applications of developer's exploitation.Application framework layer provides exploitation Android
A series of class libraries needed for application program can be used in reusing component, can also realize personalized extension by inheriting.System
Runtime Library layer is the support of application framework, and service is provided for the various components in android system.System operation library layer by
System class libraries and Android are constituted when running.Include core library and Dalvik virtual machine two parts when Android is run.Linux
Inner nuclear layer is for realizing hardware device drivers, process and memory management, network protocol stack, power management, the cores such as wireless communication
Function.
Electronic equipment may include various handheld device, mobile unit, wearable device (example with wireless communication function
Such as smartwatch, Intelligent bracelet, pedometer), computing device or other processing equipments for being connected to radio modem, with
And various forms of user equipmenies (User Equipment, UE), mobile station (Mobile Station, MS), terminal device
(terminal device) etc..For convenience of description, apparatus mentioned above is referred to as electronic equipment.Below to the application reality
Example is applied to describe in detail.
Referring to Fig. 2, Fig. 2 is a kind of flow diagram of method for previewing of taking pictures provided by the embodiments of the present application, such as Fig. 2 institutes
Show, the method for previewing of taking pictures in the embodiment of the present application includes the following steps:
S201, electronic equipment obtain the image that current preview window is shown.
Wherein, the enabling mode of the preview window can be diversified, such as be enabled in the applications such as camera, or
Enabled in the shooting window of the application programs such as instant messaging etc., it does not limit uniquely herein.
Wherein, electronic equipment can show multiple the preview windows on display interface, and above-mentioned current preview window
Mouth is only one in multiple the preview windows.Wherein, the image of the display of multiple the preview windows can be the same or different,
The embodiment of the present application is not restricted.The quantity of multiple the preview windows, location and shape can be a variety of more in the embodiment of the present application
Sample, e.g. can be 2,3 or 4 etc..
Can should be such as Fig. 2-1 comprising the interface of 4 preview forms for example, when the quantity of multiple the preview windows is 4
Shown in 4 palace lattice patterns, wherein the oneth the second duration can be round, and the three or four duration can be rectangle, and current
Preview form be only the first preview form;Should include 2 previews in another example when the quantity of multiple the preview windows is 2
The interface of form can be the 2 palace lattice pattern as shown in Fig. 2-2, and current preview form is only the first preview form.
In one embodiment, size, position and the pattern of above-mentioned each preview form can be configured in advance, this side
Method convenient and efficient, but pattern is more single.
In another embodiment, electronic equipment can capture the user present in interface that currently finds a view by camera
Quantity determines the preview form of corresponding number according to the quantity of the user, according to opposite position of each user in current scene
The position for determining corresponding form is set, and determines the pattern of corresponding form according to the shape of face of each user, if round face correspondence is round,
Oval face corresponds to ellipse, and long face corresponds to rectangle etc., and the method is more intelligent.
The embodiment of the present application does not do unique restriction to the specific setting up procedure of the above-mentioned attribute of preview form.
The image that S202, electronic equipment are shown based on the current preview window determines whether to detect triggering command.
Wherein, electronics determines the limb action of wherein user, or face based on the image that the current preview window is shown
Expression or face action, and further the limb action of detection user or facial expression or face action whether with it is preset
Limb action or the matching of facial expression or face action, if matching, to detect triggering command;If mismatching, for not
Detect triggering command.
Wherein, which is used to trigger the preview parameter that electronic equipment promotes current preview window.
S203, electronic equipment are when detecting the triggering command, by the first preview parameter of the current preview window
It is adjusted to the second preview parameter, the second preview parameter is more than the first preview parameter.
Wherein, the preview parameter includes preview resolution and/or preview frame per second.
Wherein, resolution ratio refers to pixel number included in inches, and resolution ratio determines the fine of image detail
Degree.Under normal conditions, the resolution ratio of image is higher, including pixel it is more, image is more clear, and picture quality is also
Better.But simultaneously, during image procossing, it can also increase the memory source and processor resource of occupancy.As it can be seen that
During image preview, resolution ratio can affect greatly the preview effect of single frames picture, if reducing resolution ratio, preview
The image that user is seen in journey will appear fuzzy situation.Therefore, when individually adjusting resolution ratio, user still can more flow
Preview image freely is watched, but can be lost on image detail.
Frame per second is for measuring display frame number per second.Therefore, the reduction of frame per second will not cause the preview effect of single frames picture
It influences, but when frame per second is relatively low, user can feel the case where preview image seen postpones.That is, individually adjusting frame
When rate, user still can clearly watch the details of preview image, but can be postponed.
When the display interface of electronic equipment includes multiple the preview windows, determined based on the image that current preview window is shown
Detect triggering command, then in one embodiment, electronic equipment can individually adjust the preview parameter of current preview window,
And the preview parameter that the preview window of triggering command is not detected in remaining in multiple the preview windows does not adjust.
S204, electronic equipment are based on the second preview parameter, carry out preview of taking pictures.
As can be seen that method for previewing provided by the embodiments of the present application of taking pictures, electronic equipment obtains current preview window and shows
Image, the image shown based on the current preview window determines whether to detect triggering command, is detecting the triggering
It is the second preview parameter by the first preview parameter adjustment of the current preview window when instruction, the second preview parameter is big
In the first preview parameter, it is based on the second preview parameter, preview of taking pictures is carried out, to realize automatic adjustment the preview window
Preview parameter, due to reduce preview parameter after, reduce needed for handle data volume, extend the cruise duration of electronic equipment,
Reduce the power consumption of electronic equipment.
In one embodiment, the preview parameter includes preview resolution and/or preview frame per second.
Wherein, user can be according to self-demand, such as the careful degree of the flow degree of viewing or image, to preview point
One or two of resolution and preview frame per second are adjusted.
In one embodiment, described to be based on the second preview parameter, after the preview that take pictures, the method is also wrapped
It includes:
When detecting photographing instruction, the display content of the current preview window is captured, to obtain current preview window
Corresponding photo.
Electronic equipment can determine the image that a current preview window is shown when detecting photographing instruction, specifically can be according to
Timestamp fixes, which can correspond to the time for detecting photographing instruction.
In one embodiment, after the image that the acquisition current preview window is shown, the method further includes:
Background paster is set for the image that the current preview window is shown, the background paster is for preview form
In the virtual ornament decorated of image.
Wherein, it can include but is not limited to for the virtual ornament that the image in preview form is decorated following:Eye
Personages' decorative kind paster such as mirror, cap, headwear, cat ear, the peach heart, beard.
When the display interface of electronic equipment includes multiple the preview windows, the background paster set by each preview form can
With identical, can also be different, corresponding, the facial image of the user in each preview form may be the same or different, just
It is to say, multiple preview form can support single user to carry out paster setting, and multiple users can also be supported to paste respectively
Paper is arranged.
It is understood that the setting up procedure of above-mentioned multiple preview forms can be typing one by one and setting, can also be
Interaction typing and setting, do not do unique restriction herein.
As it can be seen that in this example, since preview form includes multiple, and there is no paster setting constraint between form, do not have yet
Facial image typing constrains, so electronic equipment executes identical background paster setting operation to each preview form, to complete
The paster setting of each preview form improves accuracy and stabilization that electronic equipment carries out paster setting for multiple preview forms
Property.
In one embodiment, the image setting background paster shown for the current preview window, including:
It is retrieved as the background paster of the current preview form configuration;
The image data of the background paster is cached in the corresponding texture of the current preview form, the texture is slow
Deposit the container of image data;
The display area mark of the current preview form is obtained, the display area is noted for identifying described current pre-
Look at the display area of form;
It is labeled in the first texture region according to the display area and copies image data in the texture, so that described
Background paster shows that first texture region corresponds to the current preview form in the display area of the current preview form
Display area;
Control the action that the background paster matches the facial image that the image includes.
Further, since electronic equipment can control the action of background paster matching facial image, augmented reality AR patches are realized
Paper function, so it is intelligent to improve paster setting.
As it can be seen that in this example, since paster is stored in material database as independent material, so the image data of paster
Using independent storage and display control logic, can reduce paster setting up procedure and the facial image of user setting up procedure it
Between coupling, improve the image stability and efficiency that show in preview form.
In one embodiment, the image shown based on the current preview window determines whether to detect that triggering refers to
It enables, including:
Based on the image that the current preview window is shown, the expression for the facial image that the image includes is extracted;If institute
The expression for stating extraction is matched with default expression, then to detect the triggering command.
In one embodiment, the image shown based on the current preview window determines whether to detect that triggering refers to
It enables, including:
Based on the image that the current preview window is shown, the action for the facial image that the image includes is extracted;If institute
The action for stating extraction is matched with deliberate action, then to detect the triggering command.
It is consistent with above-mentioned embodiment shown in Fig. 2, referring to Fig. 3, Fig. 3 is another bat provided by the embodiments of the present application
According to the flow diagram of method for previewing.As shown in figure 3, the method for previewing of taking pictures in the embodiment of the present application includes the following steps:
S301, electronic equipment obtain the image that current preview window is shown.
The image setting background paster that S302, electronic equipment are shown for the current preview window, the background paster
For the virtual ornament decorated for the image in preview form.
Wherein, the specific implementation for the image setting background paster that electronic equipment is shown for the current preview window
Can be:
It is retrieved as the background paster of the current preview form configuration;Delay in the corresponding texture of the current preview form
The image data of the background paster is deposited, the texture is the container of caching image data;Obtain the current preview form
Display area marks, and the display area is noted for identifying the display area of the current preview form;According to the display
Image data of the area marking in the first texture region copies the texture, so that the background paster is described current pre-
Looking at the display area of form shows that first texture region corresponds to the display area of the current preview form;Described in control
Background paster matches the action for the facial image that the image includes.
The image that S303, electronic equipment are shown based on the current preview window extracts the facial shadow that the image includes
The expression of picture;
If the expression of S304, the extraction are matched with default expression, electronic equipment is by the first of the current preview window
Preview parameter adjustment is the second preview parameter, and the second preview parameter is more than the first preview parameter;
Wherein, the preview parameter includes preview resolution and/or preview frame per second.
S305, electronic equipment are based on the second preview parameter, carry out preview of taking pictures.
S306, electronic equipment capture the display content of the current preview window, to obtain when detecting photographing instruction
The corresponding photo of current preview window.
As can be seen that method for previewing provided by the embodiments of the present application of taking pictures, electronic equipment obtains current preview window and shows
Image, the image shown based on the current preview window determines whether to detect triggering command, is detecting the triggering
It is the second preview parameter by the first preview parameter adjustment of the current preview window when instruction, the second preview parameter is big
In the first preview parameter, it is based on the second preview parameter, carries out preview of taking pictures, to according to the expression for the user that is taken
It determines the shooting intention of user, and then realizes the preview parameter of automatic adjustment the preview window, extend the cruise duration of electronic equipment,
Reduce the power consumption of electronic equipment.
It is consistent with embodiment shown in above-mentioned Fig. 2 or 3, referring to Fig. 4, Fig. 4 is provided by the embodiments of the present application another
Plant the flow diagram for method for previewing of taking pictures.As shown in figure 4, the method for previewing of taking pictures in the embodiment of the present application includes following step
Suddenly:
S401, electronic equipment obtain the image that current preview window is shown.
S402, electronic equipment obtain the image shown for the current preview window and background paster, the background patch are arranged
Paper is the virtual ornament decorated for the image in preview form.
Wherein, the specific implementation for the image setting background paster that electronic equipment is shown for the current preview window
Can be:
It is retrieved as the background paster of the current preview form configuration;Delay in the corresponding texture of the current preview form
The image data of the background paster is deposited, the texture is the container of caching image data;Obtain the current preview form
Display area marks, and the display area is noted for identifying the display area of the current preview form;According to the display
Image data of the area marking in the first texture region copies the texture, so that the background paster is described current pre-
Looking at the display area of form shows that first texture region corresponds to the display area of the current preview form;Described in control
Background paster matches the action for the facial image that the image includes.
The image that S403, electronic equipment are shown based on the current preview window extracts the facial shadow that the image includes
The action of picture.
If the action of S404, the extraction are matched with deliberate action, electronic equipment is by the first of the current preview window
Preview parameter adjustment is the second preview parameter, and the second preview parameter is more than the first preview parameter.
Wherein, the preview parameter includes preview resolution and/or preview frame per second.
S405, electronic equipment are based on the second preview parameter, carry out preview of taking pictures.
S406, electronic equipment capture the display content of the current preview window, to obtain when detecting photographing instruction
The corresponding photo of current preview window.
As can be seen that method for previewing provided by the embodiments of the present application of taking pictures, electronic equipment obtains current preview window and shows
Image, the image shown based on the current preview window determines whether to detect triggering command, is detecting the triggering
It is the second preview parameter by the first preview parameter adjustment of the current preview window when instruction, the second preview parameter is big
In the first preview parameter, it is based on the second preview parameter, carries out preview of taking pictures, to according to the action for the user that is taken
It determines the shooting intention of user, and then automatically adjusts the preview parameter of the preview window, extend the cruise duration of electronic equipment, reduce
The power consumption of electronic equipment.
It is above-mentioned that mainly the scheme of the embodiment of the present application is described from the angle of method side implementation procedure.It is appreciated that
, for electronic device in order to realize above-mentioned function, it comprises execute the corresponding hardware configuration of each function and/or software mould
Block.Those skilled in the art should be readily appreciated that, in conjunction with each exemplary unit of embodiment description presented herein
And algorithm steps, the application can be realized with the combining form of hardware or hardware and computer software.Some function actually with
Hardware or computer software drive the mode of hardware to execute, and depend on the specific application and design constraint item of technical solution
Part.Professional technician specifically can realize described function to each using distinct methods, but this reality
Now it is not considered that exceeding scope of the present application.
The embodiment of the present application can carry out electronic device according to the above method example division of functional unit, for example, can
Each functional unit is divided with each function of correspondence, two or more functions can also be integrated in a processing unit
In.The form that hardware had both may be used in above-mentioned integrated unit is realized, can also be realized in the form of SFU software functional unit.It needs
It is noted that be schematical, only a kind of division of logic function to the division of unit in the embodiment of the present application, it is practical real
It is current that there may be another division manner.
The following is an embodiment of the apparatus of the present invention, and apparatus of the present invention embodiment is realized for executing the method for the present invention embodiment
Method.Fig. 5-1 is please referred to, Fig. 5-1 is a kind of unit composition frame chart for pre-viewing device of taking pictures disclosed in the embodiment of the present application, such as
Shown in Fig. 5-1, which may include acquiring unit 501, determination unit 502, adjustment unit 503 and preview list
Member 504, wherein:
Acquiring unit 501, the image shown for obtaining current preview window;
Determination unit 502, the image for being shown based on the current preview window determine whether to detect triggering command;
Adjustment unit 503, for when detecting the triggering command, the first preview of the current preview window to be joined
Number is adjusted to the second preview parameter, and the second preview parameter is more than the first preview parameter;
Preview unit 504 carries out preview of taking pictures for being based on the second preview parameter.
Fig. 5-2 is please referred to, Fig. 5-2 is the unit composition frame of another pre-viewing device of taking pictures disclosed in the embodiment of the present application
Figure, as shown in Fig. 5-2, which may include the acquiring unit in pre-viewing device of taking pictures as shown in fig. 5-1
501, determination unit 502, adjustment unit 503 and preview unit 504.
In one embodiment, the preview parameter includes preview resolution and/or preview frame per second.
In one embodiment, described device further includes:
Shooting unit 505, the display content for when detecting photographing instruction, capturing the current preview window, with
Obtain the corresponding photo of current preview window.
In one embodiment, described device further includes:
Setting unit 506, the image setting background paster for being shown for the current preview window, the background patch
Paper is the virtual ornament decorated for the image in preview form.
In one embodiment, the setting unit 506 is specifically used for
It is retrieved as the background paster of the current preview form configuration;Delay in the corresponding texture of the current preview form
The image data of the background paster is deposited, the texture is the container of caching image data;Obtain the current preview form
Display area marks, and the display area is noted for identifying the display area of the current preview form;According to the display
Image data of the area marking in the first texture region copies the texture, so that the background paster is described current pre-
Looking at the display area of form shows that first texture region corresponds to the display area of the current preview form;Described in control
Background paster matches the action for the facial image that the image includes.
In one embodiment, the determination unit 502 is specifically used for:
Based on the image that the current preview window is shown, the expression for the facial image that the image includes is extracted;If institute
The expression for stating extraction is matched with default expression, then to detect the triggering command.
In one embodiment, the determination unit 502 is specifically used for:
Based on the image that the current preview window is shown, the action for the facial image that the image includes is extracted;If institute
The action for stating extraction is matched with deliberate action, then to detect the triggering command.
Specifically, the specific implementation of above-mentioned each unit can refer to retouching for correlation step in Fig. 2 to Fig. 4 corresponding embodiments
It states, this will not be repeated here.
It should be noted that pre-viewing device of taking pictures described in apparatus of the present invention embodiment is in the form of functional unit is in
It is existing.Term " unit " used herein above should be understood as meaning as widest as possible, described for realizing each " unit "
The object of function for example can be integrated circuit ASIC, single circuit, for executing one or more softwares or firmware program
Processor (shared, dedicated or chipset) and memory, combinational logic circuit, and/or its for realizing above-mentioned function is provided
His suitable component.
For example, the function for the image that the acquisition of above-mentioned acquiring unit 501 current preview window is shown can be as shown in Figure 6
Electronic equipment realize, can specifically be obtained by processor 601 by calling the executable program code in memory 602
The image for taking current preview window to show.
As can be seen that pre-viewing device provided by the embodiments of the present application of taking pictures, obtains the image that current preview window is shown, base
Determine whether to detect triggering command in the image that the current preview window is shown, it, will when detecting the triggering command
First preview parameter adjustment of the current preview window is the second preview parameter, and the second preview parameter is more than described first
Preview parameter is based on the second preview parameter, carries out preview of taking pictures, to realize the preview ginseng of automatic adjustment the preview window
Number, extends the cruise duration of electronic equipment, reduces the power consumption of electronic equipment.
Referring to Fig. 6, Fig. 6 is the structural schematic diagram of another electronic equipment disclosed in the embodiment of the present application.Electronic device
Including processor 601, memory 602, communication interface 603 and one or more programs, wherein said one or multiple programs
Be stored in above-mentioned memory 602, and be configured to be executed by above-mentioned processor 601, above procedure include for execute with
The instruction of lower step:
Obtain the image that current preview window is shown;
The image shown based on the current preview window determines whether to detect triggering command;
It is the second preview by the first preview parameter adjustment of the current preview window when detecting the triggering command
Parameter, the second preview parameter are more than the first preview parameter;
Based on the second preview parameter, preview of taking pictures is carried out.
In one embodiment, the preview parameter includes preview resolution and/or preview frame per second.
In one embodiment, described program further includes instructions for performing the following operations:
When detecting photographing instruction, the display content of the current preview window is captured, to obtain current preview window
Corresponding photo.
In one embodiment, described program further includes instructions for performing the following operations:
Background paster is set for the image that the current preview window is shown, the background paster is for preview form
In the virtual ornament decorated of image.
In one embodiment, described in terms of the image setting background paster shown for the current preview window
Instruction in program is specifically used for executing following operation:
It is retrieved as the background paster of the current preview form configuration;
The image data of the background paster is cached in the corresponding texture of the current preview form, the texture is slow
Deposit the container of image data;
The display area mark of the current preview form is obtained, the display area is noted for identifying described current pre-
Look at the display area of form;
It is labeled in the first texture region according to the display area and copies image data in the texture, so that described
Background paster shows that first texture region corresponds to the current preview form in the display area of the current preview form
Display area;
Control the action that the background paster matches the facial image that the image includes.
In one embodiment, determine whether to detect triggering command in the image shown based on the current preview window
Aspect, the instruction in described program are specifically used for executing following operation:
Based on the image that the current preview window is shown, the expression for the facial image that the image includes is extracted;
If the expression of the extraction is matched with default expression, to detect the triggering command.
In one embodiment, determine whether to detect triggering command in the image shown based on the current preview window
Aspect, the instruction in described program are specifically used for executing following operation:
Based on the image that the current preview window is shown, the action for the facial image that the image includes is extracted;
If the action of the extraction is matched with deliberate action, to detect the triggering command.
Wherein, communication interface 603 includes but not limited to antenna, amplifier, transceiver, coupler, LNA (Low Noise
Amplifier, low-noise amplifier), duplexer etc..Memory 802 includes following at least one:It is random access memory (RAM), non-
Volatile memory and external memory.
Specifically, the specific implementation of above-mentioned each unit can refer to retouching for correlation step in Fig. 2 to Fig. 4 corresponding embodiments
It states, this will not be repeated here.
Electronic equipment provided by the embodiments of the present application is can be seen that, the image that current preview window is shown is obtained, is based on institute
The image that current preview window is shown is stated to determine whether to detect triggering command, it, will be described when detecting the triggering command
First preview parameter adjustment of current preview window is the second preview parameter, and the second preview parameter is more than first preview
Parameter is based on the second preview parameter, carries out preview of taking pictures, and to realize the preview parameter of automatic adjustment the preview window, prolongs
Reduce the power consumption of electronic equipment the cruise duration of long electronic equipment.
As shown in fig. 7, the image processing circuit may include picture signal processing (Image Signal Processing,
ISP) processor 740 and control logic device 750.The image data that imaging device 710 captures is handled by ISP processors 740 first,
ISP processors 740 analyze image data, to capture the image statistics of the control parameter for determining imaging device 710
Information.Imaging device 710 can be the camera for having lens 712 and imaging sensor 714.Imaging sensor 714 may include
Each imaging pixel of colour filter array (such as Bayer filters), imaging sensor 714 can capture the light intensity and wave of ambient light
Long message, the imaging sensor 714 transmit raw image data to ISP processors 740.Sensor 720 can be based on preset interface
Raw image data is supplied to ISP processors 740.Preset interface includes Standard Mobile Imager framework (Standard Mobile
Imaging Architecture, SMIA) interface, other serial or parallel camera interfaces or above-mentioned interface combination.
ISP processors 740 handle raw image data pixel by pixel in various formats.For example, each image pixel can
Bit depth with 8,10,12 or 14 bits, ISP processors 740 can carry out raw image data at one or more images
Reason operation, statistical information of the collection about image data.Wherein, image processing operations can be by identical or different bit depth precision
It carries out.
ISP processors 740 can also receive pixel data from video memory 730.For example, from preset interface by original pixels
Data are sent to video memory 730, the raw pixel data in video memory 730 be available to ISP processors 740 for
Processing.Video memory 730 can be the part memory space of memory or independent private memory, type can be
Direct memory access (DMA) (Direct Memory Access, DMA).
When receiving the raw image data from preset interface or from video memory 730, ISP processors 740
Image processing operations can be carried out, are such as filtered.Image data that treated can be transmitted to video memory 730, so as to aobvious
Other processing are carried out before showing.ISP processors 740 receive processing data from video memory 730, and are carried out to the processing data
Image real time transfer in original domain and RGB and YCbCr color spaces.Treated, and image data may be output to display
770, so that user watches and/or by graphics engine or graphics processor (Graphics Processing Unit, GPU) into one
Step processing.In addition, the output of ISP processors 740 also can be transmitted to video memory 730, and display 770 can be stored from image
Device 730 reads image data.In one embodiment, video memory 730 can be configured as realizing one or more frame bufferings
Device.In addition, the output of ISP processors 740 can be transmitted to encoder/decoder 760, to realize encoding/decoding image data.It compiles
The image data of code can be saved, and be decompressed before being shown in 770 equipment of display.Encoder/decoder 760 can be by
CPU or GPU or coprocessor are realized.
The statistical data that ISP processors 740 determine, which can be transmitted, gives control logic device Unit 750.For example, statistical data can wrap
Include the image sensings such as automatic exposure, automatic white balance, automatic focusing, flicker detection, black level compensation, 712 shadow correction of lens
714 statistical information of device.Control logic device 750 can be processor and/or microcontroller, and one or more routines can be according to reception
Statistical data, determine the control parameter of imaging device 710.For example, control parameter may include 720 control parameter (example of sensor
Such as gain, the time of integration of spectrum assignment), camera flash control parameter, 712 control parameter of lens (such as focus or zoom
With focal length) or these parameters combination.ISP control parameters may include for automatic white balance and color adjustment (for example, in RGB
During processing) 712 shadow correction parameter of gain level and color correction matrix and lens.
The embodiment of the present application also provides a kind of computer program product, and the computer program product includes storing calculating
The non-transient computer readable storage medium of machine program, the computer program are operable to that computer is made to execute such as above-mentioned side
Any type described in method embodiment is taken pictures some or all of method for previewing step.
The embodiment of the present application also provides a kind of computer storage media, wherein the computer storage media can be stored with journey
Sequence, the program include that any type described in above method embodiment is taken pictures some or all of method for previewing step when executing
Suddenly.
It should be noted that for each method embodiment above-mentioned, for simple description, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the described action sequence because
According to the present invention, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know
It knows, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention
It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way
It realizes.For example, the apparatus embodiments described above are merely exemplary, for example, the unit division, it is only a kind of
Division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can combine or can
To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Coupling, direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of device or unit,
Can be electrical or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can be stored in a computer-readable access to memory.Based on this understanding, technical scheme of the present invention substantially or
Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products
Reveal and, which is stored in a memory, including some instructions are used so that a computer equipment
(can be personal computer, server or network equipment etc.) executes all or part of each embodiment the method for the present invention
Step.And memory above-mentioned includes:USB flash disk, read-only memory (read-only memory, ROM), random access memory
The various media that can store program code such as (random access memory, RAM), mobile hard disk, magnetic disc or CD.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer-readable memory, memory
May include:Flash disk, read-only memory (read-only memory, ROM), random access device (random access
Memory, RAM), disk or CD etc..
The embodiment of the present application is described in detail above, specific case used herein to the principle of the present invention and
Embodiment is expounded, and the explanation of above example is only intended to facilitate the understanding of the method and its core concept of the invention;
Meanwhile for those of ordinary skill in the art, according to the thought of the present invention, can in specific embodiments and applications
There is change place, in conclusion the content of the present specification should not be construed as limiting the invention.
Claims (10)
- The method for previewing 1. one kind is taken pictures, which is characterized in that including:Obtain the image that current preview window is shown;The image shown based on the current preview window determines whether to detect triggering command;When detecting the triggering command, the first preview parameter adjustment of the current preview window is joined for the second preview Number, the second preview parameter are more than the first preview parameter;Based on the second preview parameter, preview of taking pictures is carried out.
- 2. the method as described in claim 1, which is characterized in that the preview parameter includes preview resolution and/or preview frame Rate.
- 3. method as claimed in claim 1 or 2, which is characterized in that it is described to be based on the second preview parameter, take pictures pre- After looking at, the method further includes:When detecting photographing instruction, the display content of the current preview window is captured, to obtain current preview window correspondence Photo.
- 4. method as described in any one of claims 1 to 3, which is characterized in that the shadow for obtaining current preview window and showing As after, the method further includes:Background paster is set for the image that the current preview window is shown, the background paster is in preview form The virtual ornament that image is decorated.
- 5. method as claimed in claim 4, which is characterized in that the image setting shown for the current preview window Background paster, including:It is retrieved as the background paster of the current preview form configuration;The image data of the background paster is cached in the corresponding texture of the current preview form, the texture is that caching is schemed As the container of data;The display area mark of the current preview form is obtained, the display area, which is noted for identifying the current preview, to be regarded The display area of window;It is labeled in the first texture region according to the display area and copies image data in the texture, so that the background Paster shows that first texture region corresponds to the aobvious of the current preview form in the display area of the current preview form Show region;Control the action that the background paster matches the facial image that the image includes.
- 6. such as method described in any one of claim 1 to 5, which is characterized in that described to be shown based on the current preview window Image determine whether to detect triggering command, including:Based on the image that the current preview window is shown, the expression for the facial image that the image includes is extracted;If the expression of the extraction is matched with default expression, to detect the triggering command.
- 7. such as method described in any one of claim 1 to 5, which is characterized in that described to be shown based on the current preview window Image determine whether to detect triggering command, including:Based on the image that the current preview window is shown, the action for the facial image that the image includes is extracted;If the action of the extraction is matched with deliberate action, to detect the triggering command.
- The pre-viewing device 8. one kind is taken pictures, which is characterized in that it is applied to electronic equipment, including:Acquiring unit, the image shown for obtaining current preview window;Determination unit, the image for being shown based on the current preview window determine whether to detect triggering command;Adjustment unit, for when detecting the triggering command, by the first preview parameter adjustment of the current preview window For the second preview parameter, the second preview parameter is more than the first preview parameter;Preview unit carries out preview of taking pictures for being based on the second preview parameter.
- 9. a kind of electronic equipment, which is characterized in that including processor, memory, communication interface, and one or more programs, One or more of programs are stored in the memory, and are configured to be executed by the processor, described program packet It includes for executing the instruction such as the step in claim 1-7 any one of them methods.
- 10. a kind of computer readable storage medium, which is characterized in that computer program of the storage for electronic data interchange, In, the computer program makes computer execute such as claim 1-7 any one of them methods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810621287.8A CN108810277B (en) | 2018-06-15 | 2018-06-15 | Photographing preview method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810621287.8A CN108810277B (en) | 2018-06-15 | 2018-06-15 | Photographing preview method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108810277A true CN108810277A (en) | 2018-11-13 |
CN108810277B CN108810277B (en) | 2021-02-26 |
Family
ID=64086557
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810621287.8A Active CN108810277B (en) | 2018-06-15 | 2018-06-15 | Photographing preview method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108810277B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109639980A (en) * | 2018-12-28 | 2019-04-16 | Tcl移动通信科技(宁波)有限公司 | A kind of mobile terminal image preview control method, storage medium and mobile terminal |
CN109862276A (en) * | 2019-03-31 | 2019-06-07 | 联想(北京)有限公司 | A kind of information processing method and device |
CN111324763A (en) * | 2020-02-07 | 2020-06-23 | Tcl移动通信科技(宁波)有限公司 | Photo preview method and system, storage medium and terminal equipment |
CN112019738A (en) * | 2020-07-31 | 2020-12-01 | 广东小天才科技有限公司 | Photographing method and terminal equipment |
CN113568688A (en) * | 2020-04-29 | 2021-10-29 | RealMe重庆移动通信有限公司 | View switching method and device, electronic equipment and storage medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101796481B1 (en) * | 2011-11-28 | 2017-12-04 | 삼성전자주식회사 | Method of eliminating shutter-lags with low power consumption, camera module, and mobile device having the same |
CN105068748A (en) * | 2015-08-12 | 2015-11-18 | 上海影随网络科技有限公司 | User interface interaction method in camera real-time picture of intelligent touch screen equipment |
CN105578049A (en) * | 2015-12-24 | 2016-05-11 | 深圳市金立通信设备有限公司 | Camera control method and terminal |
CN105975046A (en) * | 2016-04-29 | 2016-09-28 | 乐视控股(北京)有限公司 | Photographing preview method and device |
CN107666567A (en) * | 2016-07-27 | 2018-02-06 | 中兴通讯股份有限公司 | A kind of photographic method, device and mobile terminal |
-
2018
- 2018-06-15 CN CN201810621287.8A patent/CN108810277B/en active Active
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109639980A (en) * | 2018-12-28 | 2019-04-16 | Tcl移动通信科技(宁波)有限公司 | A kind of mobile terminal image preview control method, storage medium and mobile terminal |
CN109639980B (en) * | 2018-12-28 | 2021-10-22 | Tcl移动通信科技(宁波)有限公司 | Mobile terminal image preview control method, storage medium and mobile terminal |
CN109862276A (en) * | 2019-03-31 | 2019-06-07 | 联想(北京)有限公司 | A kind of information processing method and device |
CN109862276B (en) * | 2019-03-31 | 2020-11-20 | 联想(北京)有限公司 | Information processing method and device |
CN111324763A (en) * | 2020-02-07 | 2020-06-23 | Tcl移动通信科技(宁波)有限公司 | Photo preview method and system, storage medium and terminal equipment |
CN111324763B (en) * | 2020-02-07 | 2023-08-15 | Tcl移动通信科技(宁波)有限公司 | Photo preview method and system, storage medium and terminal equipment thereof |
CN113568688A (en) * | 2020-04-29 | 2021-10-29 | RealMe重庆移动通信有限公司 | View switching method and device, electronic equipment and storage medium |
CN113568688B (en) * | 2020-04-29 | 2023-06-06 | RealMe重庆移动通信有限公司 | View switching method and device, electronic equipment and storage medium |
CN112019738A (en) * | 2020-07-31 | 2020-12-01 | 广东小天才科技有限公司 | Photographing method and terminal equipment |
CN112019738B (en) * | 2020-07-31 | 2022-03-01 | 广东小天才科技有限公司 | Photographing method and terminal equipment |
Also Published As
Publication number | Publication date |
---|---|
CN108810277B (en) | 2021-02-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108810277A (en) | It takes pictures method for previewing and device | |
CN109218628B (en) | Image processing method, image processing device, electronic equipment and storage medium | |
CN110072052B (en) | Image processing method and device based on multi-frame image and electronic equipment | |
RU2397542C2 (en) | Method and device for creating images with high dynamic range from multiple exposures | |
CN110072051A (en) | Image processing method and device based on multiple image | |
CN108965692B (en) | Sticker setting method and device | |
CN109672819B (en) | Image processing method, image processing device, electronic equipment and computer readable storage medium | |
CN108024065B (en) | Terminal shooting method, terminal and computer readable storage medium | |
CN110198417A (en) | Image processing method, device, storage medium and electronic equipment | |
CN109040609A (en) | Exposal control method, device and electronic equipment | |
CN108683862A (en) | Image formation control method, device, electronic equipment and computer readable storage medium | |
CN108605099A (en) | The method and terminal taken pictures for terminal | |
CN110191291A (en) | Image processing method and device based on multiple image | |
CN109167930A (en) | Image display method, device, electronic equipment and computer readable storage medium | |
CN110213502A (en) | Image processing method, device, storage medium and electronic equipment | |
CN107704798B (en) | Image blurring method and device, computer readable storage medium and computer device | |
CN109194855A (en) | Imaging method, device and electronic equipment | |
CN109379534B (en) | Method, device, terminal and storage medium for processing image | |
CN109151333B (en) | Exposure control method, exposure control device and electronic equipment | |
CN109089046A (en) | Image denoising method, device, computer readable storage medium and electronic equipment | |
CN108495043B (en) | Image data processing method and related device | |
CN107481186A (en) | Image processing method, device, computer-readable recording medium and computer equipment | |
CN115601244A (en) | Image processing method and device and electronic equipment | |
CN113747058B (en) | Image content shielding method and device based on multiple cameras | |
CN113570617B (en) | Image processing method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |