CN105704375B - A kind of method of image procossing, terminal and computer readable storage medium - Google Patents

A kind of method of image procossing, terminal and computer readable storage medium Download PDF

Info

Publication number
CN105704375B
CN105704375B CN201610066313.6A CN201610066313A CN105704375B CN 105704375 B CN105704375 B CN 105704375B CN 201610066313 A CN201610066313 A CN 201610066313A CN 105704375 B CN105704375 B CN 105704375B
Authority
CN
China
Prior art keywords
focusing area
original focusing
instruction
original
pressing
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.)
Expired - Fee Related
Application number
CN201610066313.6A
Other languages
Chinese (zh)
Other versions
CN105704375A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610066313.6A priority Critical patent/CN105704375B/en
Publication of CN105704375A publication Critical patent/CN105704375A/en
Application granted granted Critical
Publication of CN105704375B publication Critical patent/CN105704375B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a kind of methods of image procossing, which comprises obtains image to be processed;Determine the original focusing area of the image to be processed;Obtain the touch parameter for being directed to the original focusing area;Control instruction is generated according to the touch parameter;The control instruction is responded to be adjusted the original focusing area.The embodiment of the invention also provides a kind of terminals.Corresponding control instruction is generated using the touch parameter for focusing area through the embodiment of the present invention to be adjusted focusing area, therefore, user can be facilitated to adjust focusing area.

Description

A kind of method of image procossing, terminal and computer readable storage medium
Technical field
The present invention relates to technical field of image processing, and in particular to a kind of method and terminal of image procossing.
Background technique
With the fast development of information technology, the integrated function of terminal (such as mobile phone, tablet computer) is more and more.Eventually End can be used to communicate, surf the Internet, game, take pictures etc..For by taking pictures, during taking pictures, in order to enable in photographed scene Some region of image be more clear, a certain region can be selected to focus, i.e., user clicks certain point in photographed scene, A focusing area is then being formed centered on the point, still, user can not adjust the focusing area.
Summary of the invention
The embodiment of the invention provides a kind of method of image procossing and terminals, can be adjusted to focusing area.
First aspect of the embodiment of the present invention provides a kind of method of image procossing, comprising:
Obtain image to be processed;
Determine the original focusing area of the image to be processed;
Obtain the touch parameter for being directed to the original focusing area;
Control instruction is generated according to the touch parameter;
The control instruction is responded to be adjusted the original focusing area.
In conjunction with the embodiment of the present invention in a first aspect, in the first possible embodiment of first aspect, the touching Parameter is controlled as the pressing dynamics of the pressing original focusing area, the compressing time of the pressing original focusing area, pressing institute State at least one of the touch point number of original focusing area.
In conjunction with the first aspect of the embodiment of the present invention or the first possible embodiment of first aspect, in first aspect Second of possible embodiment in, the original focusing area of the determination image to be processed, comprising:
It receives and chooses instruction;
Using the region for choosing instruction selection as original focusing area;
Alternatively,
Obtain the closed trajectory that slide formation is carried out for the image to be processed;
The region for including using the closed trajectory is as original focusing area.
In conjunction with the first possible embodiment of the first aspect of the embodiment of the present invention, the third in first aspect can It is described to be referred to according to touch parameter generation control when the touch parameter is the pressing dynamics in the embodiment of energy It enables, comprising:
Judge whether the pressing dynamics are greater than the first preset threshold;
If so, generating amplification instruction, the amplification instruction is for amplifying the original focusing area, wherein institute State that pressing dynamics are bigger, the amplification factor of the original focusing area is bigger, and the pressing dynamics are smaller, the original focusing area The amplification factor in domain is smaller.
In conjunction with the first possible embodiment of the first aspect of the embodiment of the present invention, the 4th kind in first aspect can It is described according to the touch-control when the touch parameter is the pressing dynamics and the compressing time in the embodiment of energy Parameter generates control instruction, comprising:
Judge whether the compressing time is greater than the second preset threshold;
If so, judging whether the mean value of the pressing dynamics in the compressing time is in the first preset range;
Instruction is reduced if so, generating, the diminution instruction is for reducing the original focusing area, wherein institute State that mean value is bigger, the diminution speed of the original focusing area is faster, and the mean value is smaller, the diminution of the original focusing area Speed is smaller.
In conjunction with the first possible embodiment of the first aspect of the embodiment of the present invention, the 5th kind in first aspect can It is described according to the touching when the touch parameter is the touch point number and the pressing dynamics in the embodiment of energy It controls parameter and generates control instruction, comprising:
When the touch point number is in the second preset range and the pressing dynamics are greater than third predetermined threshold value, generate First rotation instruction, the first rotation instruction, which is used to indicate, revolves the original focusing area according to clockwise direction Turn;
Alternatively,
When the touch point number is in third preset range and the pressing dynamics less than four preset thresholds, generate Second rotation instruction, the second rotation instruction, which is used to indicate, revolves the original focusing area according to counter clockwise direction Turn.
Second aspect of the embodiment of the present invention provides a kind of terminal, comprising:
Acquiring unit, for obtaining image to be processed;
Determination unit, the original focusing area of the image to be processed for determining the acquiring unit acquisition;
The acquiring unit is also used to obtain the touch-control ginseng of the original focusing area determined for the determination unit Number;
Generation unit, the touch parameter for being obtained according to the acquiring unit generate control instruction;
Adjustment unit carries out the original focusing area for responding the control instruction that the generation unit generates Adjustment.
In conjunction with the second aspect of the embodiment of the present invention, in the first possible embodiment of second aspect, the touching Parameter is controlled as the pressing dynamics of the pressing original focusing area, the compressing time of the pressing original focusing area, pressing institute State at least one of the touch point number of original focusing area.
In conjunction with the second aspect of the embodiment of the present invention or the first possible embodiment of second aspect, in second aspect Second of possible embodiment in, the determination unit includes:
Receiving module chooses instruction for receiving;
Module is chosen, for using the received region for choosing instruction selection of the receiving module as original focusing area Domain;
Alternatively,
Module is obtained, is formed for obtaining the image progress slide to be processed obtained for the acquiring unit Closed trajectory;
Determining module, the region that the closed trajectory for obtaining the acquisition module includes is as original focusing area Domain.
In conjunction with the first possible embodiment of the second aspect of the embodiment of the present invention, the third in second aspect can In the embodiment of energy, when the touch parameter is the pressing dynamics, the generation unit includes:
First judgment module, for judging whether the pressing dynamics are greater than the first preset threshold;
First generation module, it is described to put if the judging result for the first judgment module is yes, generation amplification instruction Big instruction is for amplifying the original focusing area, wherein the pressing dynamics are bigger, the original focusing area Amplification factor is bigger, and the pressing dynamics are smaller, and the amplification factor of the original focusing area is smaller.
In conjunction with the first possible embodiment of the second aspect of the embodiment of the present invention, the 4th kind in second aspect can In the embodiment of energy, when the touch parameter is the pressing dynamics and the compressing time, the generation unit includes:
Second judgment module, for judging whether the compressing time is greater than the second preset threshold;
Third judgment module, if the judging result for second judgment module be it is yes, judge in the compressing time Whether the mean value of the pressing dynamics is in the first preset range;
Second generation module, if the judging result for the third judgment module is yes, generation diminution instruction, the contracting Small instruction is for reducing the original focusing area, wherein the mean value is bigger, the diminution of the original focusing area Speed is faster, and the mean value is smaller, and the diminution speed of the original focusing area is smaller.
In conjunction with the first possible embodiment of the second aspect of the embodiment of the present invention, the 5th kind in second aspect can In the embodiment of energy, when the touch parameter is the touch point number and the pressing dynamics, the generation unit tool Body is used for:
When the touch point number is in the second preset range and the pressing dynamics are greater than third predetermined threshold value, generate First rotation instruction, the first rotation instruction, which is used to indicate, revolves the original focusing area according to clockwise direction Turn;
Alternatively,
When the touch point number is in third preset range and the pressing dynamics less than four preset thresholds, generate Second rotation instruction, the second rotation instruction, which is used to indicate, revolves the original focusing area according to counter clockwise direction Turn.
The third aspect of the embodiment of the present invention provides a kind of terminal, comprising:
It is stored with the memory of executable program code;
The processor coupled with the memory;
The processor calls the executable program code stored in the memory, executes such as the embodiment of the present invention Step some or all of described in first aspect either method.
The implementation of the embodiments of the present invention has the following beneficial effects:
Image to be processed is obtained through the embodiment of the present invention, determines the original focusing area of the image to be processed, obtains needle To the touch parameter of the original focusing area, control instruction is generated according to the touch parameter, it is original to this to respond the control instruction Focusing area is adjusted.To generate corresponding control instruction to focusing area using the touch parameter for focusing area Domain is adjusted, and therefore, user can be facilitated to adjust focusing area.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are 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 is a kind of first embodiment flow diagram of the method for image procossing provided in an embodiment of the present invention;
Fig. 2 is a kind of second embodiment flow diagram of the method for image procossing provided in an embodiment of the present invention;
Fig. 2 a is the schematic diagram that original focusing area provided in an embodiment of the present invention amplifies;
Fig. 3 is a kind of 3rd embodiment flow diagram of the method for image procossing provided in an embodiment of the present invention;
Fig. 4 is a kind of fourth embodiment flow diagram of the method for image procossing provided in an embodiment of the present invention;
Fig. 4 a is the schematic diagram that original focusing area provided in an embodiment of the present invention is rotated;
Fig. 5 a is a kind of schematic structural diagram of the first embodiment of terminal provided in an embodiment of the present invention;
Fig. 5 b is a kind of schematic structural diagram of the first embodiment of terminal provided in an embodiment of the present invention;
Fig. 5 c is a kind of another structural schematic diagram of first embodiment of terminal provided in an embodiment of the present invention;
Fig. 5 d is a kind of another structural schematic diagram of first embodiment of terminal provided in an embodiment of the present invention;
Fig. 5 e is a kind of another structural schematic diagram of first embodiment of terminal provided in an embodiment of the present invention;
Fig. 6 is a kind of schematic structural diagram of the second embodiment of terminal provided in an embodiment of the present invention.
Specific embodiment
The embodiment of the invention provides a kind of method of image procossing and terminals, can be adjusted to focusing area.
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 invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It is described in detail separately below.
Description and claims of this specification and term " first ", " second ", " third " and " in the attached drawing Four " etc. are not use to describe a particular order for distinguishing different objects.In addition, term " includes " and " having " and it Any deformation, it is intended that cover and non-exclusive include.Such as it contains the process, method of a series of steps or units, be System, product or equipment are not limited to listed step or unit, but optionally further comprising the step of not listing or list Member, or optionally further comprising other step or units intrinsic for these process, methods, product or equipment.
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 should be noted that terminal described in the embodiment of the present invention may include smart phone (such as Android mobile phone, IOS mobile phone, Windows Phone mobile phone etc.), tablet computer, palm PC, laptop, mobile internet device (MID, Mobile Internet Devices) or wearable device etc., above-mentioned terminal is only citing, and non exhaustive, including but not limited to Above-mentioned terminal.
Referring to Fig. 1, for a kind of first embodiment process signal of the method for image procossing provided in an embodiment of the present invention Figure.The method of image procossing as described in this embodiment, comprising the following steps:
101, image to be processed is obtained.
In the embodiment of the present invention, image to be processed is the picture of finding a view of camera shooting, i.e., when terminal opens camera, What camera took find a view, and picture is image to be processed.
102, the original focusing area of the image to be processed is determined.
In the embodiment of the present invention, terminal can receive the selection instruction of user's input, and the region that selection instruction is chosen is made It is generated and is chosen according to the position of click for example, user clicks image to be processed by touch screen for original focusing area Instruction, then terminal can respond selection instruction for the region in the preset range centered on the position using the click as original right Burnt region.
Optionally, the detectable slide carried out for image to be processed of terminal, obtains closing for slide generation Track is closed, the region for being included using the closed trajectory is as original focusing area, for example, user is by touch screen in figure to be processed Drawn a circle as in, then it can be using the region in the circle location as original focusing area.Further, user can pass through Touch screen draws multiple and different closed trajectories in image to be processed, such as: circle, square, triangle, alternatively, other shapes Etc., then it can be using the region that each closed trajectory includes in multiple different closed trajectory as original focusing area.
Still optionally further, the detectable pressing operation carried out for image to be processed of terminal, obtains the pressing operation Pressing area, using the pressing area as original focusing area, for example, user by touch screen carried out in image to be processed by Press operation, such as a finger pressing, then can be using the contact area of a finger as original focusing area.Multiple fingers into It, then can be using the contact area of multiple finger as original focusing area when row pressing.
Optionally, terminal can carry out Face datection to image to be processed, and the human face region that will test is as original focusing Region, for example, including at least one face in image to be processed, then terminal can carry out Face datection to the image to be processed, will examine Region where at least one face measured is as original focusing area.
Optionally, terminal can obtain user and carry out two touch points of touch control operation generation, and obtain two touch points Coordinate, be not mutually equal in the abscissa of the coordinate of two touch points, ordinate is also not mutually equal, according to two touch points The original focusing area of Coordinate generation.For example, by taking the first touch point and the second touch point as an example, the coordinate of first touch point is (x1, y1), the coordinate of second touch point are (x2, y2), and, x1 is not equal to x2, and y1 is not equal to y2, then can by (x1, y1) and (x2, y2) generates original focusing area, i.e., by x=x1, y=y1, x=x2, y=y2, this four constituted regions of line are original Beginning focusing area.
103, the touch parameter for being directed to the original focusing area is obtained.
In the embodiment of the present invention, user can carry out touch control operation for original focusing area, thus, pass through the touch control operation Touch parameter is obtained, which may include pressing operation and slide.Wherein, which may include but not only limits In: press the touching of the pressing dynamics of original focusing area, the compressing time of the original focusing area of pressing, the original focusing area of pressing Touch the pressing area of a number, the original focusing area of pressing.
Further, when user presses original focusing area, then the pressing dynamics of the pressing can be obtained, the pressing dynamics Pressing dynamics when can be for average pressing dynamics, maximum pressing dynamics, minimum pressing dynamics or starting pressing, when loosing one's grip by Surging is not limited thereto.In another example the compressing time of the pressing can be then obtained when user presses original focusing area, The compressing time can be the starting pressing moment to the time for terminating the pressing moment, alternatively, compressing time can be the starting pressing moment Pressing dynamics are greater than some threshold value retention time in the time for terminating the pressing moment, e.g., are 5 Ns in threshold value, then can will press In the process, pressing dynamics greater than 5 Ns of duration as compressing time, optionally, the also settable maximum compressing time of terminal, When practical compressing time is more than the maximum compressing time, then, the compressing time got is just the maximum compressing time.Again For example, when user presses original focusing area the touch point number for pressing original focusing area can be obtained, the touch point number For the finger number for contacting touch screen, having multiple finger pressing touch screens, (wherein, at least one finger is in original focusing area It is interior), then multiple touch points can be detected.In another example the original focusing area of pressing can be obtained when user presses original focusing area The pressing area in domain, during pressing, user can increase pressing area or reduce pressing area, and the pressing area of acquisition can Area or the pressing area at moment of loosing one's grip are pressed for the average pressing area during pressing, maximum pressing area, minimum, This is not construed as limiting.
Optionally, touch parameter may be used also are as follows: the closed trajectory for the generation that sliding touch screen generates.The closed trajectory can for Original focusing area has the closed trajectory of intersection, can not also have the closed trajectory of intersection with original focusing area.
104, control instruction is generated according to the touch parameter.
In the embodiment of the present invention, terminal can generate control instruction according to touch parameter, which may include but not only Be limited to: amplification instruction, diminution instruction, rotation instruction, stretching instructs, deletes instruction, addition instructs, translate instruction, shape changes Instruction, wherein amplification instruction is for amplifying original focusing area;Instruction is reduced for reducing original focusing area;Rotation instruction For being rotated to original focusing area;Instruction is stretched for stretching to original focusing area, specifically, when detecting A touch point on touch screen, then, it can generate according to the moving direction of the touch point and stretch instruction, respond the stretching In the case where instruction, original focusing area is stretched along the moving direction of touch point;Instruction is deleted for having at least When one original focusing area, to this, at least one original focusing area is deleted, and has N number of subregion in original focusing area When, M in N number of subregion can be deleted, wherein N is greater than or equal to the integer of M, and M is positive integer;Addition instruction is for adding Add other focal zones, the region area for expanding original focusing area can be instructed by the addition;Translation instruction is for original Focal zone is moved, for example, original convergence region can be moved left and right, be moved up and down by translation instruction, alternatively, diagonally Line direction is mobile;Shape changes instruction for changing the shape in original convergence region, it is assumed that original convergence region is square, should The central point in original convergence region be O, respond the shape change instruction, then central point O can be kept constant, by it is original just Rectangular original convergence area change is circle, and round equal with the size of square.
105, the control instruction is responded to be adjusted the original focusing area.
In the embodiment of the present invention, terminal can response control instruction, thus, original focusing area can be adjusted, for example, Amplification instruction can indicate to amplify original focusing area, it is preferable that amplification instruction can indicate the base in original focusing area On plinth, which is amplified.
Optionally, terminal can respond amplification instruction and amplify to original focusing area, to obtain amplifying original focusing area Domain, then, response rotation instruction rotates, to obtain rotating original focusing area, immediately to original focusing area is amplified , instruction is reduced in response, is reduced to original focusing area is rotated.In the embodiment of the present invention, to original focusing area into The different touch control operation of row, produces different control instructions, can be to original focusing area according to multiple and different control instructions Carry out multiple and different operations.
Image to be processed is obtained through the embodiment of the present invention, determines the original focusing area of the image to be processed, obtains needle To the touch parameter of the original focusing area, control instruction is generated according to the touch parameter, it is original to this to respond the control instruction Focusing area is adjusted.To generate corresponding control instruction to focusing area using the touch parameter for focusing area Domain is adjusted, and therefore, user can be facilitated to adjust focusing area.
Referring to Fig. 2, for a kind of second embodiment process signal of the method for image procossing provided in an embodiment of the present invention Figure.The method of image procossing as described in this embodiment, comprising the following steps:
201, image to be processed is obtained.
In the embodiment of the present invention, image to be processed is the picture of finding a view of camera shooting, i.e., when terminal opens camera, What camera took find a view, and picture is image to be processed.
202, the original focusing area of the image to be processed is determined.
In the embodiment of the present invention, terminal can receive the selection instruction of user's input, and the region that selection instruction is chosen is made It is generated and is chosen according to the position of click for example, user clicks image to be processed by touch screen for original focusing area Instruction, then terminal can respond selection instruction for the region in the preset range centered on the position using the click as original right Burnt region.
Optionally, the detectable slide carried out for image to be processed of terminal, obtains closing for slide generation Track is closed, the region for being included using the closed trajectory is as original focusing area, for example, user is by touch screen in figure to be processed Drawn a circle as in, then it can be using the region in the circle location as original focusing area.Further, user can pass through Touch screen draws multiple and different closed trajectories in image to be processed, such as: circle, square, triangle, alternatively, other shapes Etc., then it can be using the region that each closed trajectory includes in multiple different closed trajectory as original focusing area.
Still optionally further, the detectable pressing operation carried out for image to be processed of terminal, obtains the pressing operation Pressing area, using the pressing area as original focusing area, for example, user by touch screen carried out in image to be processed by Press operation, such as a finger pressing, then can be using the contact area of a finger as original focusing area.Multiple fingers into It, then can be using the contact area of multiple finger as original focusing area when row pressing.
Optionally, terminal can carry out Face datection to image to be processed, and the human face region that will test is as original focusing Region, for example, including at least one face in image to be processed, then terminal can carry out Face datection to the image to be processed, will examine Region where at least one face measured is as original focusing area.
203, the touch parameter for being directed to the original focusing area is obtained.
In the embodiment of the present invention, user can carry out touch control operation for original focusing area, thus, pass through the touch control operation Touch parameter is obtained, which may include pressing operation and slide.Wherein, which may include but not only limits In: press the touching of the pressing dynamics of original focusing area, the compressing time of the original focusing area of pressing, the original focusing area of pressing Touch the pressing area of a number, the original focusing area of pressing.Optionally, touch parameter may be used also are as follows: the life that sliding touch screen generates At closed trajectory.The closed trajectory can be the closed trajectory for having intersection with original focusing area, can also be with original focusing area Domain does not have the closed trajectory of intersection.
204, when the touch parameter is pressing dynamics, judge whether the pressing dynamics are greater than the first preset threshold.
In the embodiment of the present invention, terminal can determine whether pressing dynamics are greater than the first preset threshold, wherein the first default threshold Value may include, but are not limited to: 5 Ns, 6 Ns, 7 Ns, 6.5 Ns, 7.32 Ns etc..
205, if so, generating amplification instruction.
In the embodiment of the present invention, it is greater than the first preset threshold in pressing dynamics and generates amplification instruction, the amplification instruction is available Original focusing area is amplified in instruction terminal, it is preferable that pressing dynamics are bigger, and the amplification factor of original focusing area is got over Greatly, on the contrary, pressing dynamics are smaller, the amplification factor of original focusing area is smaller.
206, the amplification instruction is responded to amplify the original focusing area.
In the embodiment of the present invention, original focusing area can be carried out original focusing area under the amplification instruction by terminal Amplification.Specifically, as shown in Fig. 2 a, wherein the original focusing area of dashed circle region expression, and solid line circle location The amplified original focusing area of domain representation.After responding amplification instruction, original focusing area can be amplified.
Image to be processed is obtained through the embodiment of the present invention, determines the original focusing area of the image to be processed, obtains needle To the touch parameter of the original focusing area, amplification instruction is generated according to the touch parameter, it is original to this to respond the amplification instruction Focusing area amplifies.To generate corresponding amplification instruction to focusing area using the touch parameter for focusing area Domain amplifies processing, therefore, user can be facilitated to adjust focusing area.
Referring to Fig. 3, for a kind of 3rd embodiment process signal of the method for image procossing provided in an embodiment of the present invention Figure.The method of image procossing as described in this embodiment, comprising the following steps:
301, image to be processed is obtained.
In the embodiment of the present invention, image to be processed is the picture of finding a view of camera shooting, i.e., when terminal opens camera, What camera took find a view, and picture is image to be processed.
302, the original focusing area of the image to be processed is determined.
In the embodiment of the present invention, terminal can receive the selection instruction of user's input, and the region that selection instruction is chosen is made It is generated and is chosen according to the position of click for example, user clicks image to be processed by touch screen for original focusing area Instruction, then terminal can respond selection instruction for the region in the preset range centered on the position using the click as original right Burnt region.
Optionally, the detectable slide carried out for image to be processed of terminal, obtains closing for slide generation Track is closed, the region for being included using the closed trajectory is as original focusing area, for example, user is by touch screen in figure to be processed Drawn a circle as in, then it can be using the region in the circle location as original focusing area.Further, user can pass through Touch screen draws multiple and different closed trajectories in image to be processed, such as: circle, square, triangle, alternatively, other shapes Etc., then it can be using the region that each closed trajectory includes in multiple different closed trajectory as original focusing area.
Still optionally further, the detectable pressing operation carried out for image to be processed of terminal, obtains the pressing operation Pressing area, using the pressing area as original focusing area, for example, user by touch screen carried out in image to be processed by Press operation, such as a finger pressing, then can be using the contact area of a finger as original focusing area.Multiple fingers into It, then can be using the contact area of multiple finger as original focusing area when row pressing.
Optionally, terminal can carry out Face datection to image to be processed, and the human face region that will test is as original focusing Region, for example, including at least one face in image to be processed, then terminal can carry out Face datection to the image to be processed, will examine Region where at least one face measured is as original focusing area.
303, the touch parameter for being directed to the original focusing area is obtained.
In the embodiment of the present invention, user can carry out touch control operation for original focusing area, thus, pass through the touch control operation Touch parameter is obtained, which may include pressing operation and slide.Wherein, which may include but not only limits In: press the touching of the pressing dynamics of original focusing area, the compressing time of the original focusing area of pressing, the original focusing area of pressing Touch the pressing area of a number, the original focusing area of pressing.Optionally, touch parameter may be used also are as follows: the life that sliding touch screen generates At closed trajectory.The closed trajectory can be the closed trajectory for having intersection with original focusing area, can also be with original focusing area Domain does not have the closed trajectory of intersection.
304, when the touch parameter is pressing dynamics and compressing time, judge whether the compressing time is greater than second Preset threshold.
In the embodiment of the present invention, the second preset threshold be may include, but are not limited to: 5 seconds, 6 seconds, 6.5 seconds, 7 seconds, 7.32 seconds Etc..Terminal can determine whether compressing time is greater than second preset threshold.
305, if so, judging whether the mean value of the pressing dynamics in the compressing time is in the first preset range.
In the embodiment of the present invention, if compressing time is greater than the second preset threshold, the mean value in the compressing time can determine whether Whether the first preset range is in, wherein first preset range may include, but are not limited to: 0~5 N, 4.5~5.5 Ns, 6 ~8 Ns, 6.8~7.82 Ns, 10 Ns~100 Ns etc..
306, instruction is reduced if so, generating.
In the embodiment of the present invention, the mean value of pressing dynamics is in the first preset range in compressing time, then produces contracting Small instruction reduces original focusing area according to diminution instruction.
307, the diminution instruction is responded to reduce the original focusing area.
In the embodiment of the present invention, terminal can respond diminution instruction and reduce to original focusing area.During the diminution, Original focusing area reduced scale can be determined by compressing time or pressing dynamics, for example, compressing time is more next, reduce degree It is bigger, alternatively, pressing dynamics are bigger, it is bigger to reduce degree.In specific implementation process, after settable original convergence area reduction Minimum area, thus, after having reached the minimum area, original convergence region can not further reduce again.
Image to be processed is obtained through the embodiment of the present invention, determines the original focusing area of the image to be processed, obtains needle It to the touch parameter of the original focusing area, is generated according to the touch parameter and reduces instruction, it is original to this to respond diminution instruction Focusing area is reduced.To be generated using the touch parameter for focusing area and reduce instruction accordingly to focusing area Domain carries out diminution processing, therefore, user can be facilitated to adjust focusing area.
Referring to Fig. 4, for a kind of fourth embodiment process signal of the method for image procossing provided in an embodiment of the present invention Figure.The method of image procossing as described in this embodiment, comprising the following steps:
401, image to be processed is obtained.
In the embodiment of the present invention, image to be processed is the picture of finding a view of camera shooting, i.e., when terminal opens camera, What camera took find a view, and picture is image to be processed.
402, the original focusing area of the image to be processed is determined.
In the embodiment of the present invention, terminal can receive the selection instruction of user's input, and the region that selection instruction is chosen is made It is generated and is chosen according to the position of click for example, user clicks image to be processed by touch screen for original focusing area Instruction, then terminal can respond selection instruction for the region in the preset range centered on the position using the click as original right Burnt region.
Optionally, the detectable slide carried out for image to be processed of terminal, obtains closing for slide generation Track is closed, the region for being included using the closed trajectory is as original focusing area, for example, user is by touch screen in figure to be processed Drawn a circle as in, then it can be using the region in the circle location as original focusing area.Further, user can pass through Touch screen draws multiple and different closed trajectories in image to be processed, such as: circle, square, triangle, alternatively, other shapes Etc., then it can be using the region that each closed trajectory includes in multiple different closed trajectory as original focusing area.
Still optionally further, the detectable pressing operation carried out for image to be processed of terminal, obtains the pressing operation Pressing area, using the pressing area as original focusing area, for example, user by touch screen carried out in image to be processed by Press operation, such as a finger pressing, then can be using the contact area of a finger as original focusing area.Multiple fingers into It, then can be using the contact area of multiple finger as original focusing area when row pressing.
Optionally, terminal can carry out Face datection to image to be processed, and the human face region that will test is as original focusing Region, for example, including at least one face in image to be processed, then terminal can carry out Face datection to the image to be processed, will examine Region where at least one face measured is as original focusing area.
403, the touch parameter for being directed to the original focusing area is obtained.
In the embodiment of the present invention, user can carry out touch control operation for original focusing area, thus, pass through the touch control operation Touch parameter is obtained, which may include pressing operation and slide.Wherein, which may include but not only limits In: press the touching of the pressing dynamics of original focusing area, the compressing time of the original focusing area of pressing, the original focusing area of pressing Touch the pressing area of a number, the original focusing area of pressing.
Optionally, touch parameter may be used also are as follows: the closed trajectory for the generation that sliding touch screen generates.The closed trajectory can for Original focusing area has the closed trajectory of intersection, can not also have the closed trajectory of intersection with original focusing area.
404, the touch parameter be touch point number and pressing dynamics and the touch point number to be in second default When range and the pressing dynamics are greater than third predetermined threshold value, the first rotation instruction is generated.
In the embodiment of the present invention, the second preset range be may include, but are not limited to: 2~4,1~4,5~7 etc., alternatively, It is even number that second preset range, which may be configured as touch point number, and even, the second preset range can be times that the number of touch point is 4 Number etc., third predetermined threshold value may include, but are not limited to: 5 Ns, 6 Ns, 7 Ns, 6.5 Ns, 7.32 Ns etc..In touch point Number produces the first rotation instruction in the second preset range and when pressing dynamics are greater than third predetermined threshold value.
Optionally, terminal is in third preset range in the touch point number and the pressing dynamics are default less than the 4th When threshold value, the second rotation instruction is generated, the second rotation instruction is used to indicate according to counterclockwise by the original focusing Region is rotated.Wherein, third preset range is an interval range for not being all the second preset range, third preset range It can be complementary with the second preset range.Wherein, third preset range may include, but are not limited to: 1~3,2~4,5~10 etc., or Person, it is odd number that third preset range, which may be configured as touch point number, and even, third preset range can be that the number of touch point is 3 Multiple etc., the 4th preset threshold may include, but are not limited to: 5 Ns, 6 Ns, 7 Ns, 6.5 Ns, 7.32 Ns etc..
Distinguishingly, the second preset range and third preset range are same range, third predetermined threshold value and the 4th default threshold Value is same value, then, in touch point, number is in the second preset range, and pressing dynamics are less than third predetermined threshold value, then give birth to At the second rotation instruction, which, which is used to indicate, revolves the original focusing area according to counter clockwise direction Turn.In touch point, number is in the second preset range, and pressing dynamics are greater than third predetermined threshold value, then generates the first rotation and refer to It enables, which, which is used to indicate, rotates the original focusing area according to clockwise direction.
It should be noted that the first rotation instruction and the second rotation instruction can be collectively referred to as rotation instruction.
Further, the formation condition of the first rotation instruction and the second rotation instruction is not limited only to this, the first rotation instruction It can also determine that pressing dynamics can control original focusing area in (0, A) by pressing dynamics and compressing time with the second rotation instruction It is rotated according to clock-wise order, compressing time is longer, then it is bigger to rotate angle;Pressing dynamics can control original at [A, B] Focusing area is rotated according to sequence counter-clockwise, and compressing time is longer, then it is bigger to rotate angle.
405, the first rotation instruction is responded to rotate the original focusing area according to clockwise direction.
In the embodiment of the present invention, terminal can first rotation instruction under, according to clockwise trust to original focusing area into Row rotation.Specifically, as shown in fig. 4 a, the first rotation of response instruction, by original focusing area according to revolving clockwise Turn.
It should be noted that in the specific implementation, the angular dimension of rotation can be related to pressing dynamics, as pressing dynamics are got over Greatly, rotation angle is more next, and pressing dynamics are smaller, and rotation angle is smaller.Alternatively, the angular dimension of rotation can be with compressing time phase It closes, if compressing time is longer, rotation angle is bigger, and compressing time is shorter, and rotation angle is smaller etc..The angle of rotation can also be with Touch point number is related, for example, a touch point number rotates 5 degree, two touch point numbers rotate 10 degree.Further, it revolves The velocity magnitude turned can be related to pressing dynamics, and if pressing dynamics are bigger, rotation speed is more next, and pressing dynamics are smaller, rotation speed It spends smaller.Alternatively, the velocity magnitude of rotation can be related to touch point number, such as corresponding rotation speed of 1 touch point number is A1, the corresponding rotation speed of two touch point numbers are a2.
Image to be processed is obtained through the embodiment of the present invention, determines the original focusing area of the image to be processed, obtains needle To the touch parameter of the original focusing area, rotation instruction is generated according to the touch parameter, it is original to this to respond the amplification instruction Focusing area is rotated.To generate corresponding rotation instruction to focusing area using the touch parameter for focusing area Domain is rotated, and therefore, user can be facilitated to adjust focusing area.
Fig. 5 a is please referred to, is a kind of schematic structural diagram of the first embodiment of terminal provided in an embodiment of the present invention.This implementation Terminal described in example, comprising:
Acquiring unit 501, for obtaining image to be processed;
Determination unit 502, the original focusing area of the image to be processed for determining the acquisition of acquiring unit 501 Domain;
The acquiring unit 501 is also used to obtain the original focusing area determined for the determination unit 502 Touch parameter;
Generation unit 503, the touch parameter for being obtained according to the acquiring unit 501 generate control instruction;
Adjustment unit 504, for responding the control instruction of the generation of generation unit 503 to the original focusing area Domain is adjusted.
As a kind of possible embodiment, the touch parameter be the pressing dynamics for pressing the original focusing area, Press at least one of compressing time, the touch point number of the pressing original focusing area of the original focusing area.
It should be noted that user can carry out touch control operation for original focusing area in the embodiment of the present invention, thus, Touch parameter is obtained by the touch control operation, which may include pressing operation and slide.Wherein, the touch parameter It may include, but are not limited to: pressing the pressing dynamics of original focusing area, the compressing time of the original focusing area of pressing, pressing original The touch point number of beginning focusing area, the pressing area for pressing original focusing area.
Further, when user presses original focusing area, then the pressing dynamics of the pressing can be obtained, the pressing dynamics Pressing dynamics when can be for average pressing dynamics, maximum pressing dynamics, minimum pressing dynamics or starting pressing, when loosing one's grip by Surging is not limited thereto.In another example the compressing time of the pressing can be then obtained when user presses original focusing area, The compressing time can be the starting pressing moment to the time for terminating the pressing moment, alternatively, compressing time can be the starting pressing moment Pressing dynamics are greater than some threshold value retention time in the time for terminating the pressing moment, e.g., are 5 Ns in threshold value, then can will press In the process, pressing dynamics greater than 5 Ns of duration as compressing time, optionally, the also settable maximum compressing time of terminal, When practical compressing time is more than the maximum compressing time, then, the compressing time got is just the maximum compressing time.Again For example, when user presses original focusing area the touch point number for pressing original focusing area can be obtained, the touch point number For the finger number for contacting touch screen, having multiple finger pressing touch screens, (wherein, at least one finger is in original focusing area It is interior), then multiple touch points can be detected.In another example the original focusing area of pressing can be obtained when user presses original focusing area The pressing area in domain, during pressing, user can increase pressing area or reduce pressing area, and the pressing area of acquisition can Area or the pressing area at moment of loosing one's grip are pressed for the average pressing area during pressing, maximum pressing area, minimum, This is not construed as limiting.Optionally, touch parameter may be used also are as follows: the closed trajectory for the generation that sliding touch screen generates.The closed trajectory can To there is the closed trajectory of intersection with original focusing area, can not also there is no the closed trajectory of intersection with original focusing area.
Optionally, when the touch parameter is the touch point number and the pressing dynamics, the generation unit 503 It is specifically used for:
When the touch point number is in the second preset range and the pressing dynamics are greater than third predetermined threshold value, generate First rotation instruction, the first rotation instruction, which is used to indicate, revolves the original focusing area according to clockwise direction Turn.
Still optionally further, when the touch parameter is the touch point number and the pressing dynamics, the generation Unit 503 is specifically used for:
When the touch point number is in third preset range and the pressing dynamics less than four preset thresholds, generate Second rotation instruction, the second rotation instruction, which is used to indicate, revolves the original focusing area according to counter clockwise direction Turn.
Optionally, as shown in Figure 5 b, the determination unit 502 of terminal described in Fig. 5 a can include:
Receiving module 5021 chooses instruction for receiving;
Module 5022 is chosen, for using the received region for choosing instruction selection of the receiving module 5021 as original Beginning focusing area.
Still optionally further, as shown in Figure 5 c, the determination unit 502 of terminal described in Fig. 5 a can include:
Module 505 is obtained, carries out sliding behaviour for obtaining the image to be processed obtained for the acquiring unit 501 Make the closed trajectory formed;
Determining module 506, the region that the closed trajectory for obtaining the acquisition module 505 includes is as original Focusing area.
Still optionally further, as fig 5d, when the touch parameter is the pressing dynamics, described in Fig. 5 a Terminal the generation unit 503 can include:
First judgment module 5031, for judging whether the pressing dynamics are greater than the first preset threshold;
First generation module 5032, if the judging result for the first judgment module 5031 be it is yes, generate amplification refer to It enables, the amplification instruction is for amplifying the original focusing area, wherein the pressing dynamics are bigger, described original The amplification factor of focusing area is bigger, and the pressing dynamics are smaller, and the amplification factor of the original focusing area is smaller.
Still optionally further, as depicted in fig. 5e, when the touch parameter is the pressing dynamics and the compressing time, The generation unit 503 of terminal described in Fig. 5 a can include:
Second judgment module 507, for judging whether the compressing time is greater than the second preset threshold;
Third judgment module 508, if the judging result for second judgment module 507 be it is yes, judge the pressing Whether the mean value of the pressing dynamics is in the first preset range in time;
Second generation module 509, if the judging result for the third judgment module 508 is yes, generation diminution instruction, The diminution instruction is for reducing the original focusing area, wherein the mean value is bigger, the original focusing area Diminution speed it is faster, the mean value is smaller, and the diminution speed of the original focusing area is smaller.
Described terminal can obtain image to be processed through the embodiment of the present invention, determine the original right of the image to be processed Burnt region obtains the touch parameter for being directed to the original focusing area, generates control instruction according to the touch parameter, responds the control Instruction is adjusted the original focusing area.To generate corresponding control using the touch parameter for focusing area Instruction is adjusted focusing area, therefore, user can be facilitated to adjust focusing area.
Referring to Fig. 6, being a kind of schematic structural diagram of the second embodiment of terminal provided in an embodiment of the present invention.The present embodiment Described in terminal, comprising: at least one input equipment 1000;At least one output equipment 2000;At least one processor 3000, such as CPU;With memory 4000, above-mentioned input equipment 1000, output equipment 2000, processor 3000 and memory 4000 are connected by bus 5000.
Wherein, above-mentioned input equipment 1000 concretely touch panel, physical button or mouse.
Above-mentioned output equipment 2000 concretely display screen.
Above-mentioned memory 4000 can be high speed RAM memory, can also be non-labile memory (non- Volatile memory), such as magnetic disk storage.Above-mentioned memory 4000 is used to store a set of program code, and above-mentioned input is set Standby 1000, output equipment 2000 and processor 3000 execute following behaviour for calling the program code stored in memory 4000 Make:
Above-mentioned processor 3000, is used for:
Obtain image to be processed;
Determine the original focusing area of the image to be processed;
Obtain the touch parameter for being directed to the original focusing area;
Control instruction is generated according to the touch parameter;
The control instruction is responded to be adjusted the original focusing area.
As a kind of possible embodiment, the touch parameter be the pressing dynamics for pressing the original focusing area, Press at least one of compressing time, the touch point number of the pressing original focusing area of the original focusing area.
Optionally, above-mentioned processor 3000 determines the original focusing area of the image to be processed, comprising:
It receives and chooses instruction;
Using the region for choosing instruction selection as original focusing area;
Still optionally further, above-mentioned processor 3000 determines the original focusing area of the image to be processed, comprising:
Obtain the closed trajectory that slide formation is carried out for the image to be processed;
The region for including using the closed trajectory is as original focusing area.
Optionally, when the touch parameter is the pressing dynamics, above-mentioned processor 3000 is according to the touch parameter Generate control instruction, comprising:
Judge whether the pressing dynamics are greater than the first preset threshold;
If so, generating amplification instruction, the amplification instruction is for amplifying the original focusing area, wherein institute State that pressing dynamics are bigger, the amplification factor of the original focusing area is bigger, and the pressing dynamics are smaller, the original focusing area The amplification factor in domain is smaller.
Optionally, when the touch parameter is the pressing dynamics and the compressing time, above-mentioned processor 3000 Control instruction is generated according to the touch parameter, comprising:
Judge whether the compressing time is greater than the second preset threshold;
If so, judging whether the mean value of the pressing dynamics in the compressing time is in the first preset range;
Instruction is reduced if so, generating, the diminution instruction is for reducing the original focusing area, wherein institute State that mean value is bigger, the diminution speed of the original focusing area is faster, and the mean value is smaller, the diminution of the original focusing area Speed is smaller.
Optionally, when the touch parameter is the touch point number and the pressing dynamics, above-mentioned processor 3000 Control instruction is generated according to the touch parameter, comprising:
When the touch point number is in the second preset range and the pressing dynamics are greater than third predetermined threshold value, generate First rotation instruction, the first rotation instruction, which is used to indicate, revolves the original focusing area according to clockwise direction Turn;
Still optionally further, when the touch parameter is the touch point number and the pressing dynamics, above-mentioned processing Device 3000 generates control instruction according to the touch parameter, comprising:
When the touch point number is in third preset range and the pressing dynamics less than four preset thresholds, generate Second rotation instruction, the second rotation instruction, which is used to indicate, revolves the original focusing area according to counter clockwise direction Turn.
In the specific implementation, input equipment 1000 described in the embodiment of the present invention, output equipment 2000 and processor 3000 can be performed first embodiment, second embodiment, the third reality of a kind of method of image procossing provided in an embodiment of the present invention Implementation described in example and fourth embodiment is applied, first that a kind of terminal provided in an embodiment of the present invention also can be performed is real The implementation of terminal described in example is applied, details are not described herein.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is 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, reference can be made to the related descriptions of other embodiments.
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, such as the division of the unit, it is only a kind of Logical function partition, there may be another division manner in actual implementation, such as multiple units or components 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 through some interfaces, the indirect coupling or communication connection of device or unit, It can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code Medium.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the range for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (8)

1. a kind of method of image procossing characterized by comprising
Obtain image to be processed;
Determine the original focusing area of the image to be processed, specifically: when multiple fingers are pressed, then by multiple hand The contact area of finger is as original focusing area;
Obtain the touch parameter for being directed to the original focusing area;
Control instruction is generated according to the touch parameter;
The control instruction is responded to be adjusted the original focusing area;
Wherein, the touch parameter is the pressing dynamics for pressing the original focusing area, the pressing original focusing area At least one of compressing time, touch point number of the pressing original focusing area;
When the touch parameter is the pressing dynamics and the compressing time, described generated according to the touch parameter is controlled Instruction, comprising:
Judge whether the compressing time is greater than the second preset threshold;
If so, judging whether the mean value of the pressing dynamics in the compressing time is in the first preset range;
Instruction is reduced if so, generating, the diminution instruction is for reducing the original focusing area, wherein described equal Value is bigger, and the diminution speed of the original focusing area is faster, and the mean value is smaller, the diminution speed of the original focusing area It is smaller;
Wherein, when the control instruction is to delete instruction, deletion instruction for when there is at least one original focusing area, To this, at least one original focusing area is deleted, specifically: when original focusing area has N number of subregion, it is N number of to delete this M in subregion, wherein N is the integer more than or equal to M, and M is positive integer;
When the control instruction is addition instruction, addition instruction is instructed for adding other focal zones by the addition Expand the region area of original focusing area.
2. the method according to claim 1, wherein the touch parameter be the pressing dynamics when, it is described Control instruction is generated according to the touch parameter, comprising:
Judge whether the pressing dynamics are greater than the first preset threshold;
If so, generating amplification instruction, the amplification instruction is for amplifying the original focusing area, wherein described to press Surging is bigger, and the amplification factor of the original focusing area is bigger, and the pressing dynamics are smaller, the original focusing area Amplification factor is smaller.
3. the method according to claim 1, wherein being the touch point number and described in the touch parameter It is described that control instruction is generated according to the touch parameter when pressing dynamics, comprising:
When the touch point number is in the second preset range and the pressing dynamics are greater than third predetermined threshold value, first is generated Rotation instruction, the first rotation instruction, which is used to indicate, rotates the original focusing area according to clockwise direction;
Alternatively,
When the touch point number is in third preset range and the pressing dynamics less than four preset thresholds, second is generated Rotation instruction, the second rotation instruction, which is used to indicate, rotates the original focusing area according to counter clockwise direction.
4. a kind of terminal characterized by comprising
Acquiring unit, for obtaining image to be processed;
Determination unit, the original focusing area of the image to be processed for determining the acquiring unit acquisition, specifically: When multiple fingers are pressed, then using the contact area of multiple finger as original focusing area;
The acquiring unit is also used to obtain the touch parameter of the original focusing area determined for the determination unit;
Generation unit, the touch parameter for being obtained according to the acquiring unit generate control instruction;
Adjustment unit adjusts the original focusing area for responding the control instruction that the generation unit generates It is whole;
Wherein, the touch parameter is the pressing dynamics for pressing the original focusing area, the pressing original focusing area At least one of compressing time, touch point number of the pressing original focusing area;
When the touch parameter is the pressing dynamics and the compressing time, the generation unit includes:
Second judgment module, for judging whether the compressing time is greater than the second preset threshold;
Third judgment module, if the judging result for second judgment module be it is yes, judge in the compressing time described Whether the mean value of pressing dynamics is in the first preset range;
Second generation module, if the judging result for the third judgment module be it is yes, generate and reduce instruction, the diminution refers to It enables for reducing the original focusing area, wherein the mean value is bigger, the diminution speed of the original focusing area Faster, the mean value is smaller, and the diminution speed of the original focusing area is smaller;
Wherein, when the control instruction is to delete instruction, deletion instruction for when there is at least one original focusing area, To this, at least one original focusing area is deleted, specifically: when original focusing area has N number of subregion, it is N number of to delete this M in subregion, wherein N is the integer more than or equal to M, and M is positive integer;
When the control instruction is addition instruction, addition instruction is instructed for adding other focal zones by the addition Expand the region area of original focusing area.
5. terminal according to claim 4, which is characterized in that described when the touch parameter is the pressing dynamics Generation unit includes:
First judgment module, for judging whether the pressing dynamics are greater than the first preset threshold;
First generation module, if the judging result for the first judgment module be it is yes, generate amplification instruction, the amplification refers to It enables for amplifying the original focusing area, wherein the pressing dynamics are bigger, the amplification of the original focusing area Multiple is bigger, and the pressing dynamics are smaller, and the amplification factor of the original focusing area is smaller.
6. terminal according to claim 4, which is characterized in that in the touch parameter be the touch point number and described When pressing dynamics, the generation unit is specifically used for:
When the touch point number is in the second preset range and the pressing dynamics are greater than third predetermined threshold value, first is generated Rotation instruction, the first rotation instruction, which is used to indicate, rotates the original focusing area according to clockwise direction;
Alternatively,
When the touch point number is in third preset range and the pressing dynamics less than four preset thresholds, second is generated Rotation instruction, the second rotation instruction, which is used to indicate, rotates the original focusing area according to counter clockwise direction.
7. a kind of terminal characterized by comprising
It is stored with the memory of executable program;
The processor coupled with the memory;
The processor calls the executable program stored in the memory, executes such as claim 1 to claim 3 Described in any item methods.
8. a kind of computer readable storage medium, which is characterized in that for storing computer program, wherein the computer journey Sequence makes computer execute the method according to claim 1.
CN201610066313.6A 2016-01-29 2016-01-29 A kind of method of image procossing, terminal and computer readable storage medium Expired - Fee Related CN105704375B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610066313.6A CN105704375B (en) 2016-01-29 2016-01-29 A kind of method of image procossing, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610066313.6A CN105704375B (en) 2016-01-29 2016-01-29 A kind of method of image procossing, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN105704375A CN105704375A (en) 2016-06-22
CN105704375B true CN105704375B (en) 2019-05-21

Family

ID=56229928

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610066313.6A Expired - Fee Related CN105704375B (en) 2016-01-29 2016-01-29 A kind of method of image procossing, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN105704375B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107786844A (en) * 2016-08-31 2018-03-09 南京中兴软件有限责任公司 Control the method, apparatus and system of video front-end equipment
CN106484255A (en) * 2016-09-14 2017-03-08 珠海格力电器股份有限公司 A kind of focusing area method to set up, device and intelligent terminal
CN106231132B (en) * 2016-09-20 2019-06-11 努比亚技术有限公司 Mobile terminal and peak value focusing method
WO2018209524A1 (en) * 2017-05-15 2018-11-22 深圳市永恒丰科技有限公司 Shooting processing method for photo and shooting processing device for photo
CN107613208B (en) * 2017-09-29 2020-11-06 努比亚技术有限公司 Focusing area adjusting method, terminal and computer storage medium
CN108184070B (en) * 2018-03-23 2020-09-08 维沃移动通信有限公司 Shooting method and terminal
WO2020024196A1 (en) * 2018-08-01 2020-02-06 深圳市大疆创新科技有限公司 Method for adjusting parameters of photographing device, control device and photographing system
CN110740265B (en) * 2019-10-31 2021-03-12 维沃移动通信有限公司 Image processing method and terminal equipment
WO2022061541A1 (en) * 2020-09-22 2022-03-31 深圳市大疆创新科技有限公司 Control method, handheld gimbal, system, and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101360189A (en) * 2008-07-03 2009-02-04 明基电通有限公司 Camera control method and camera thereof
CN102750022A (en) * 2011-04-22 2012-10-24 宏碁股份有限公司 Data capturing method and system of touch device
CN103713821A (en) * 2013-12-27 2014-04-09 深圳市同洲电子股份有限公司 Mobile terminal screen display method and mobile terminal
CN104243825A (en) * 2014-09-22 2014-12-24 广东欧珀移动通信有限公司 Automatic focusing method and system of mobile terminal
CN105045502A (en) * 2015-06-29 2015-11-11 努比亚技术有限公司 Image processing method and image processing device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105242853B (en) * 2015-10-23 2019-11-29 维沃移动通信有限公司 A kind of focusing method and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101360189A (en) * 2008-07-03 2009-02-04 明基电通有限公司 Camera control method and camera thereof
CN102750022A (en) * 2011-04-22 2012-10-24 宏碁股份有限公司 Data capturing method and system of touch device
CN103713821A (en) * 2013-12-27 2014-04-09 深圳市同洲电子股份有限公司 Mobile terminal screen display method and mobile terminal
CN104243825A (en) * 2014-09-22 2014-12-24 广东欧珀移动通信有限公司 Automatic focusing method and system of mobile terminal
CN105045502A (en) * 2015-06-29 2015-11-11 努比亚技术有限公司 Image processing method and image processing device

Also Published As

Publication number Publication date
CN105704375A (en) 2016-06-22

Similar Documents

Publication Publication Date Title
CN105704375B (en) A kind of method of image procossing, terminal and computer readable storage medium
CN108596092B (en) Gesture recognition method, device, equipment and storage medium
JP6529659B2 (en) Information processing method, terminal and computer storage medium
CA2985867C (en) Information processing method, terminal, and computer storage medium
TWI573074B (en) Method and apparatus for providing access to functions from a locked screen, and related computer program product
CN105120162B (en) A kind of camera method of controlling rotation and terminal
CN106791364A (en) Method and mobile terminal that a kind of many people take pictures
WO2017032016A1 (en) Interface operating method and electronic terminal
CN106780685B (en) A kind of generation method and terminal of dynamic picture
CN108650451A (en) A kind of photographic method and mobile terminal
CN109428969A (en) Edge touch control method, device and the computer readable storage medium of double screen terminal
CN108055459B (en) Shooting method based on rotary camera and related product
CN103677609A (en) Picture processing method and terminal
EP4030749B1 (en) Image photographing method and apparatus
CN104063128A (en) Information processing method and electronic equipment
CN105681657B (en) A kind of method and terminal device for shooting focusing
CN104423789A (en) Information processing method and electronic equipment
WO2017032020A1 (en) Image processing method and electronic terminal
CN105159494A (en) Information display method and device
CN105573582A (en) Display method and terminal
CN104112262B (en) A kind of method and electronic equipment of information processing
CN107580182B (en) Snapshot method, mobile terminal and computer readable storage medium
CN110166696A (en) Image pickup method, device, terminal device and computer readable storage medium
CN109101174A (en) A kind of scaling method, device, terminal and medium
CN105611143B (en) The photographic method and electronic equipment of a kind of electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190521