CN107248183A - A kind of method and terminal for adjusting edit object color - Google Patents

A kind of method and terminal for adjusting edit object color Download PDF

Info

Publication number
CN107248183A
CN107248183A CN201710324661.3A CN201710324661A CN107248183A CN 107248183 A CN107248183 A CN 107248183A CN 201710324661 A CN201710324661 A CN 201710324661A CN 107248183 A CN107248183 A CN 107248183A
Authority
CN
China
Prior art keywords
color
target body
human
joint
artis
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.)
Withdrawn
Application number
CN201710324661.3A
Other languages
Chinese (zh)
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.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201710324661.3A priority Critical patent/CN107248183A/en
Publication of CN107248183A publication Critical patent/CN107248183A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/40Filling a planar surface by adding surface attributes, e.g. colour or texture
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the present invention provides a kind of method for adjusting edit object color, and terminal, and wherein method includes:Identify the target body artis in image;The color coefficients corresponding to the target body artis are determined, the color coefficients include at least one of saturation degree coefficient, chromaticity coefficent or luminance factor;According to the target body artis, human synovial feature is determined;According to the human synovial feature and the color coefficients, the color of edit object is adjusted, the color includes at least one of saturation degree, colourity or brightness.The embodiment of the present invention can be with the human synovial feature in image, the color of self-adaption edition object.

Description

A kind of method and terminal for adjusting edit object color
Technical field
The embodiment of the present invention belongs to field of terminal technology, more particularly to a kind of method for adjusting edit object color and end End.
Background technology
During image editing software editor's image in using terminal, it may be desired to according to different situations to image The color of the paintbrush person's handwriting used in software for editing is controlled.At present, the color of paintbrush person's handwriting in image editing software is adjusted Mode typically have two kinds:
One kind is to show that the paintbrush with different person's handwriting colors is selected for user by graphical interfaces, this mode is operated It is cumbersome, it is inconvenient especially for operation for the mobile terminal without mouse device;
It is another to be, pressure sensor is set in terminal, electronic pen is detected on a terminal screen by pressure sensor Pressure adjust the color of paintbrush person's handwriting, this mode needs to increase extra hardware, add the product of terminal device into This.
To sum up, the method for paintbrush person's handwriting is operated or needs in the presence of user is not easy in existing adjustment image editing software The extra hardware of increase, the problem of adding end product cost.
The content of the invention
The embodiment of the present invention provides a kind of method and terminal for adjusting edit object color, human body that can be in image The color of edit object in joint characteristic, adaptive adjustment image.
On the one hand the embodiment of the present invention provides a kind of method for adjusting edit object color, including:
Identify the target body artis in image;
The color coefficients corresponding to the target body artis are determined, the color coefficients include saturation degree coefficient, color Spend at least one of coefficient or luminance factor;
According to the target body artis, human synovial feature is determined;
According to the human synovial feature and the color coefficients, the color of edit object is adjusted, the color includes full With at least one of degree, colourity or brightness.
On the other hand the embodiment of the present invention also provides a kind of terminal, including:
Human synovial recognition unit, for identifying the target body artis in image;
Color coefficients determining unit, for determining the color coefficients corresponding to the target body artis, the color Coefficient includes at least one of saturation degree coefficient, chromaticity coefficent or luminance factor;
Human synovial feature acquiring unit, for according to the target body artis, determining human synovial feature;
Color adjusting unit, for according to the human synovial feature and the color coefficients, adjusting the color of edit object Coloured silk, the color includes at least one of saturation degree, colourity or brightness.
The embodiment of the present invention is due to by identifying the target body artis in image;Determine the target body joint The corresponding color coefficients of point, the color coefficients include at least one in saturation degree coefficient, chromaticity coefficent or luminance factor Kind;According to the target body artis, human synovial feature is determined;According to the human synovial feature and the color system Number, adjusts the color of edit object, the color includes at least one of saturation degree, colourity or brightness, so as to root According to the human synovial feature in image, the adaptive color for adjusting edit object in image simplifies user's operation, and be not required to Increase extra hardware, reduce the cost of terminal device product.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, for ability For the those of ordinary skill of domain, on the premise of not paying creative work, it can also be obtained according to these accompanying drawings other attached Figure.
Fig. 1 is a kind of schematic flow diagram of the method for adjustment edit object color that the embodiment of the present invention one is provided;
Fig. 2 is the schematic diagram of the human body palm middle skeleton artis in pending image in a concrete application;
Fig. 3 is a kind of schematic flow diagram of the method for adjustment edit object color that the embodiment of the present invention two is provided;
Fig. 4 is the schematic flow diagram for the method that the present invention implements a kind of three adjustment edit object colors provided;
Fig. 5 is a kind of schematic block diagram for terminal that the embodiment of the present invention four is provided;
Fig. 6 is a kind of schematic block diagram for terminal that the embodiment of the present invention five is provided;
Fig. 7 is a kind of schematic block diagram for terminal that the embodiment of the present invention six is provided;
Fig. 8 is a kind of schematic block diagram for terminal that the embodiment of the present invention seven is provided.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
It should be appreciated that ought be in this specification and in the appended claims in use, term " comprising " and "comprising" be indicated Described feature, entirety, step, operation, the presence of element and/or component, but be not precluded from one or more of the other feature, it is whole Body, step, operation, element, component and/or its presence or addition for gathering.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment And be not intended to limit the present invention.As used in description of the invention and appended claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singulative, " one " and "the" are intended to include plural form.
It will be further appreciated that, the term "and/or" used in description of the invention and appended claims is Refer to any combinations of one or more of the associated item listed and be possible to combination, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, the terminal described in the embodiment of the present invention is including but not limited to such as with touch sensitive surface The mobile phone, laptop computer or tablet PC of (for example, touch-screen display and/or touch pad) etc it is other just Portable device.It is to be further understood that in certain embodiments, the equipment not portable communication device, but with touching Touch the desktop computer of sensing surface (for example, touch-screen display and/or touch pad).
In discussion below, the terminal including display and touch sensitive surface is described.It is, however, to be understood that It is that terminal can include one or more of the other physical user-interface device of such as physical keyboard, mouse and/or control-rod.
Terminal supports various application programs, such as one or more of following:Drawing application program, demonstration application journey Sequence, word-processing application, website create application program, disk imprinting application program, spreadsheet applications, game application Program, telephony application, videoconference application, email application, instant messaging applications, exercise Support application program, photo management application program, digital camera application program, digital camera application program, web-browsing application Program, digital music player application and/or video frequency player application program.
The various application programs that can be performed in terminal can use such as touch sensitive surface at least one is public Physical user-interface device.It can adjust and/or change among applications and/or in corresponding application programs and touch sensitive table The corresponding information shown in the one or more functions and terminal in face.So, the public physical structure of terminal is (for example, touch Sensing surface) the various application programs with user interface directly perceived and transparent for a user can be supported.
It is that the embodiment of the present invention one provides a kind of schematic flow diagram for the method for adjusting edit object color, such as referring to Fig. 1 Shown in Fig. 1, this method may include following steps:
Step S101, identifies the target body artis in image.
In the present embodiment, the target body artis identified in image, including:
Obtain the position of the human joint pointses in image;
According to the position of the human joint pointses, the target body artis in described image is identified.
In the present embodiment, human body image data is included in described image, each human joint points in identification image Need described image importing image editing software before, image is recognized under the picture editting interface that image editing software is shown In each human joint points position, and set up coordinate system, the position of each human joint points put and used in a coordinate system Coordinate is represented.Wherein, the image importeding into image editing software can be imaging sensor, three-dimension sensor or depth The image input data that sensor is collected in real time, or the view data stored in terminal memory.
In the present embodiment, it can specifically be wrapped by machine vision, AI image algorithms to recognize in the pending image All human joint pointses contained, then according to position of each human joint points in pending image and pixel value, are calculated Go out position coordinates of each human joint points in the coordinate system.
For example, in a concrete application, if the image imported in image editing software is depth image, being calculated by AI images Method identifies that position of some human joint points in the depth image is (a, b), and pixel value is c, then the human joint pointses The coordinate of corresponding x, y, z axle is respectively that a, b, c, i.e. position coordinates corresponding to the human joint pointses are (a, b, c);If leading The image entered in image editing software is two dimensional image, identifies some human joint points in the X-Y scheme by AI image algorithms Position as in is (a, b), then the coordinate of the x, y, z axle corresponding to the human joint pointses is respectively that a, b, 0, the i.e. human body are closed Position coordinates corresponding to node is (a, b, 0).
In the present embodiment, behind the position of the human joint pointses in identifying image, you can according to each in described image The position of individual human joint pointses, identifies the position coordinates of target body artis in the picture.
Step S102, determines the color coefficients corresponding to the target body artis, and the color coefficients include saturation Spend at least one of coefficient, chromaticity coefficent or luminance factor.
In the present embodiment, the corresponding relation of target body artis and color coefficients, different mesh are preset in terminal The color coefficients marked corresponding to human joint pointses are different, for example:Shown in Fig. 2, when target body artis is e, f, color system Number includes saturation degree coefficient, chromaticity coefficent and brightness system, and saturation degree coefficient, chromaticity coefficent and luminance factor be respectively n1, m1、p1;When target body artis is a, x, color coefficients include saturation degree coefficient, chromaticity coefficent and luminance factor, and full It is respectively n2, m2, p2 with degree coefficient, chromaticity coefficent and luminance factor.
Step S103, according to the target body artis, determines human synovial feature.
In the present embodiment, the target body artis includes multiple human joint pointses, the human synovial feature bag Include but be not limited to the degree of crook of the distance between each adjacent human synovial and each human synovial.
In the present embodiment, the terminal, can after the position coordinates of the human joint pointses of each in getting described image Calculated according to the position coordinates of each human joint points and Euclidean distance calculation formula between each adjacent human synovial away from From, wherein, Euclidean distance calculation formula is specially:
Wherein, the coordinate that (x1, y1, z1) is a certain human joint pointses e in image, (x2, y2, z2) is another people in image Body artis f coordinate, D is the distance between human joint pointses e, f in image.
In the present embodiment, the terminal is after the position coordinates of the human joint pointses of each in getting described image, also The degree of crook for obtaining the human synovial of each in described image is calculated according to the position coordinates of each human joint points.
Step S104, according to the human synovial feature and the color coefficients, adjusts the color of edit object, the color Coloured silk includes at least one of saturation degree, colourity or brightness.
In the present embodiment, step S104 is specifically included:
Edit object is adjusted according to the distance between adjacent human synovial of each in described image and the color coefficients Color;Or,
The color of edit object is adjusted according to the degree of crook of the human synovial of each in described image and the color coefficients.
In the present embodiment, it is described according to the distance between adjacent human synovial of each in described image and the color system The color of number adjustment edit object is specifically included:
According to the distance between adjacent human synovial of each in described image, calculate the adjacent human body of each in described image and close Average value between section;
The color of edit object is adjusted according to the average value of distance between each adjacent human synovial and the color coefficients.
For example, with reference to shown in Fig. 2, in a concrete application, described image includes human hand image, and the target body is closed Node includes a, e, f, h, x, and after the position of the target body artis in the picture is identified, we can be according to these The position coordinates of target body artis, calculating obtains the distance between each adjacent finger in human hand image:ae、ef、fh、 hx;Then, then ae, ef, fh, hx average value is calculatedThe last average value obtained further according to calculatingWith it is default with it is described Color coefficients corresponding to target body artis (a, e, f, h, x) adjust the color of edit object.
Further, if the color coefficients corresponding to the target body artis (a, e, f, h, x) include saturation degree system Number, chromaticity coefficent and luminance factor, while saturation degree coefficient, chromaticity coefficent and luminance factor are respectively n3, m3, p3;So, then The saturation degree, colourity and brightness of the color of the edit object are adjusted to respectively
It is preferred that, in the present embodiment, according to it is described according to the adjacent human synovial of each in described image each other Distance, calculate described image in each distance of adjacent human synovial each other average value before can also include:
Judge whether the distance between adjacent human synovial of each in described image is all higher than predetermined threshold value;
If being all higher than predetermined threshold value, the color of the edit object is directly adjusted to default fixed value;
If less than or equal to predetermined threshold value, between adjacent human synovial according to each in described image away from From the step of calculating the average value of distance in described image between each adjacent human synovial.
In the present embodiment, it is described to be adjusted according to the degree of crook of the human synovial of each in described image and the color coefficients The color of whole edit object:
According to the degree of crook of the human synovial of each in described image, each human synovial in the pending image is calculated The average value of degree of crook;
According to the average value of each human synovial degree of crook, according to the average value of each human synovial degree of crook The color of the edit object is adjusted with the color coefficients.
For example, with reference to shown in Fig. 2, in a concrete application, described image includes each in human hand image, described image The degree of crook of human synovial refers to the degree of crook of five fingers in the human hand image, and we can obtain five fingers Degree of crook after, calculate five fingers degree of crook average valueLast being averaged further according to five digital flexion degree ValueThe color of edit object is adjusted with the color coefficients corresponding to the default target body artis with five fingers It is color.
Further, if the color coefficients corresponding to target body artis on five fingers include saturation degree system Number, chromaticity coefficent and luminance factor, and saturation degree coefficient, chromaticity coefficent and luminance factor are respectively n4, m4, p4;So, then will Saturation degree, colourity and the brightness of the color of the edit object are adjusted to respectively
Above as can be seen that a kind of method for adjusting edit object color provided in an embodiment of the present invention is due to passing through identification The target body artis gone out in image;Determine the color coefficients corresponding to the target body artis, the color coefficients Including at least one of saturation degree coefficient, chromaticity coefficent or luminance factor;According to the target body artis, people is determined Body joint characteristic;According to the human synovial feature and the color coefficients, the color of edit object is adjusted, the color includes At least one of saturation degree, colourity or brightness, so as to the human synovial feature in image, adaptive adjustment figure The color of edit object as in, simplifies user's operation, and need not increase extra hardware, reduces terminal device product Cost.
Fig. 3 shows a kind of schematic flow diagram of the method for adjustment edit object color that the embodiment of the present invention two is provided. Shown in Figure 3, this method may comprise steps of:
Step S301, identifies the target body artis in image, and the target body artis is two.
Step S302, determines the color coefficients corresponding to the target body artis, and the color coefficients include saturation Spend at least one of coefficient, chromaticity coefficent or luminance factor.
In the present embodiment, step S301~step S302 implementation respectively with step S101~step in a upper embodiment Rapid S102 implementation is identical, therefore will not be repeated here.
Step S303, according to the target body artis, determines the distance between two human joint pointses.
In the present embodiment, the distance between described two human joint pointses refer to two target body artis it Between distance.Wherein, two target body artis can be the artis at two neighboring joint same position, Such as:Can be the artis f on the artis e and human body middle finger on the human body forefinger shown in Fig. 2;It can be located at for any two Artis on different joints, such as:Can be the pass on the artis a and human body small thumb on the human body thumb shown in Fig. 2 Node x;Can also be two non-conterminous human joint pointses on same human synovial, for example:Artis e in Fig. 2, c。
Wherein, the distance between two target body artis are calculated according to the position coordinates of two target body artis Calculation it is identical with the calculation of the distance between each adjacent human synovial in a upper embodiment, therefore, herein not Repeat again.
Step S304, according to the distance between described two human joint pointses and the color coefficients, adjusts edit object Color, the color includes at least one of saturation degree, colourity or brightness.
In the present embodiment, step S304 is specifically included:
First product value of the distance between described two human joint pointses and the saturation degree adjustment factor is calculated, by institute The saturation degree for stating edit object is adjusted to first product value;Or,
Second product value of the distance between described two human joint pointses and the chromaticity coefficent is calculated, by the editor The colourity of object is adjusted to second product value;Or,
The 3rd product value of the distance between described two human joint pointses and the luminance factor is calculated, by the editor The brightness regulation of object is the 3rd product value.
It is preferred that, in the present embodiment, it can also include before step S304:
Judge whether the distance between described two human joint pointses are more than pre-determined distance threshold value;
If the distance between described two human synovials are more than pre-determined distance threshold value, directly by the color of the edit object Coloured silk is adjusted to default fixed value;
If the distance between described two human synovials are less than or equal to pre-determined distance threshold value, into step S204.
Relative to a upper embodiment, in the present embodiment can directly according to the distance between two target body artis come The color of edit object is adjusted, is closed without calculating the distance between adjacent human synovials all in described image or all human bodies The degree of crook of section, the mode that it adjusts edit object color is simpler, more efficient.
Above as can be seen that a kind of method for adjusting edit object color provided in an embodiment of the present invention equally can basis Human synovial feature in image, the color of adaptive adjustment edit object, simplifies user's operation, and need not increase volume Outer hardware, reduces the cost of terminal device product.
Fig. 4 shows a kind of schematic flow diagram of the method for adjustment edit object color that the embodiment of the present invention three is provided. Shown in Figure 4, this method may comprise steps of:
Step S401, identifies the target body artis in image, and the target body artis is closed for target body At least two human joint pointses on section.
Step S402, determines the color coefficients corresponding to the target body artis, and the color coefficients include saturation Spend at least one of coefficient, chromaticity coefficent or luminance factor.
In the present embodiment, step S401~step S402 implementation respectively with step S101~step in embodiment one S102 implementation is identical, therefore will not be repeated here.
Step S403, according at least two human joint pointses on the target body joint, determines the target body The degree of crook in joint.
In a concrete application, the target body artis can be with the non-conterminous human body of two on target body joint Artis, for example:Can be the human joint pointses e and c in the human hand image shown in Fig. 2, we can close according to target body The position coordinates of the two human joint pointses on section calculates the distance between the two human joint pointses, then further according to The distance between the two human joint pointses, obtain the degree of crook in target body joint.Wherein, the bending in target body joint The distance between degree and described two human joint pointses are inversely proportional, and the distance between described two human joint pointses are nearer, mesh The degree of crook for marking human synovial is bigger;The distance between described two human joint pointses are more remote, the bending in target body joint Degree is smaller.
In another concrete application, the target body artis can be three adjacent people on target body joint Body artis, for example:Can be human joint pointses e, d, c in the human hand image described in Fig. 2, we can be according to these three people The position coordinates and geometrical principle of body artis calculate the bending of forefinger in the crooked radian for obtaining target body joint, i.e. Fig. 2 Radian, then according to the crooked radian in target body joint, obtains the degree of crook in target body joint.Wherein, degree of crook It is directly proportional to crooked radian, crooked radian is the specific angle of bend of human synovial, and degree of crook is one to represent people The numerical value of body joint flexion angle size, for example:The degree of crook of human synovial can be divided into Three Estate, three etc. by we Level represents that the scope of the corresponding human synovial angle of bend of numerical value " 1 " is 0~60 °, numerical value with numerical value " 1 ", " 2 ", 3 respectively The angle of bend scope of " 2 " corresponding human synovial is 60 °~120 °, numerical value " the angle of bend scope of 3 corresponding human synovials For 120 °~180 °.
Step S404, according to the degree of crook and the color coefficients in the target body joint, adjustment edit object Color, the color includes at least one of saturation degree, colourity or brightness.
In the present embodiment, step S404 is specifically included:
The degree of crook in the target body joint and the 4th product value of the saturation degree coefficient are calculated, by the editor The saturation degree of object color is adjusted to the 4th product value;Or,
The degree of crook in the target body joint and the 5th product value of the chromaticity coefficent are calculated, by the editor couple As the colourity of color is adjusted to the 5th product value;Or,
The degree of crook in the target body joint and the 6th product value of the luminance factor are calculated, by the editor couple As the brightness regulation of color is the 6th product value.
Relative to embodiment one, the present embodiment can directly adjust editor couple according to the degree of crook in target body joint The color of elephant, the bending journey without calculating the distance between adjacent human synovials all in described image or all human synovials Degree, the mode that it adjusts edit object color is simpler, more efficient.
Above as can be seen that a kind of method for adjustment edit object color that the present embodiment is provided equally can be according to image In human synovial feature, the color of adaptive adjustment edit object simplifies user's operation, and need not increase extra Hardware, reduces the cost of terminal device product.
Fig. 5 is a kind of schematic block diagram for terminal that the embodiment of the present invention four is provided.For convenience of description, it illustrate only Part related to the present embodiment.
It is shown in Figure 5, a kind of terminal 100 that the present embodiment is provided, including:
Human synovial recognition unit 1, for identifying the target body artis in image;
Color coefficients determining unit 2, for determining the color coefficients corresponding to the target body artis, the color Coefficient includes at least one of saturation degree coefficient, chromaticity coefficent or luminance factor;
Human synovial feature acquiring unit 3, for according to the target body artis, determining human synovial feature;
Color adjusting unit 4, for according to the human synovial feature and the color coefficients, adjusting the color of edit object Coloured silk, the color includes at least one of saturation degree, colourity or brightness.
Optionally, the human synovial recognition unit 1 specifically for:
Obtain the position of the human joint pointses in image;
According to the position of the human joint pointses, the target body artis in described image is identified.
Optionally, shown in Figure 6, in another embodiment, the target body artis is two, and the human body is closed Section feature acquiring unit 3 includes:
Metrics calculation unit 31, for according to the target body artis, determining the distance of two human joint pointses, institute State human synovial and be characterized as the distance between two human joint pointses.
Optionally, the terminal 100 also includes judging unit 5, is used for:
Judge whether the distance between described two human joint pointses are more than predetermined threshold value;If more than predetermined threshold value, controlling Make the color adjusting unit and the color of the edit object is adjusted to default fixed value;
If less than or equal to predetermined threshold value, controlling described in the color adjusting unit according to described according to human body pass Feature and the color coefficients are saved, the color of edit object is adjusted.
Optionally, shown in Figure 7, in another embodiment, the target body artis is on target body joint At least two human joint pointses, the human synovial feature acquiring unit 3 includes:
Degree of crook acquiring unit 32, for according at least two human joint pointses on the target body joint, really The degree of crook in the fixed target body joint, the human synovial is characterized as the degree of crook in the target body joint.
It should be noted that the unit in above-mentioned terminal provided in an embodiment of the present invention, due to the inventive method Embodiment is based on same design, and its technique effect brought is identical with the inventive method embodiment, and particular content can be found in this hair Narration in bright embodiment of the method, here is omitted.
Thus, it will be seen that terminal provided in an embodiment of the present invention equally can be in image human synovial feature, The color of adaptive adjustment edit object, simplifies user's operation, and need not increase extra hardware, reduces terminal and sets The cost of standby product.
It is a kind of terminal schematic block diagram that the embodiment of the present invention seven is provided referring to Fig. 8.In the present embodiment as shown in Figure 8 Terminal can include:One or more processors 801;One or more input equipments 802, one or more output equipments 803 and memory 804.Above-mentioned processor 801, input equipment 802, output equipment 803 and memory 804 are connected by bus 805 Connect.Memory 802 is used for store instruction, and processor 801 is used for the instruction for performing the storage of memory 802.Wherein, the processor 801 are used for:
Identify the target body artis in image;
The color coefficients corresponding to the target body artis are determined, the color coefficients include saturation degree coefficient, color Spend at least one of coefficient or luminance factor;
According to the target body artis, human synovial feature is determined;
According to the human synovial feature and the color coefficients, the color of edit object is adjusted, the color includes full With at least one of degree, colourity or brightness.
Optionally, the target body artis is two, and the processor 801 is additionally operable to:
According to the target body artis, the distance of two human joint pointses is determined, the human synovial is characterized as two The distance between individual human joint pointses.
Optionally, the processor 801 is additionally operable to:
Judge whether the distance between described two human joint pointses are more than predetermined threshold value;
If more than predetermined threshold value, the color of the edit object is adjusted into default fixed value;
If less than or equal to predetermined threshold value, into it is described according to described according to the human synovial feature and the color Coefficient, the step of adjusting the color of edit object.
Optionally, the target body artis is at least two human joint pointses on target body joint, the place Reason device 801 is additionally operable to:
According at least two human joint pointses on the target body joint, the bending in the target body joint is determined Degree, the human synovial is characterized as the degree of crook in the target body joint.
Optionally, the processor 801 is additionally operable to:
Obtain the position of the human joint pointses in image;
According to the position of the human joint pointses, the target body artis in described image is identified.
It should be appreciated that in embodiments of the present invention, alleged processor 801 can be CPU (Central Processing Unit, CPU), the processor can also be other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other FPGAs Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at It can also be any conventional processor etc. to manage device.
Input equipment 802 can include Trackpad, fingerprint adopt sensor (finger print information that is used to gathering user and fingerprint Directional information), microphone etc., output equipment 803 can include display (LCD etc.), loudspeaker etc..
The memory 804 can include read-only storage and random access memory, and to processor 801 provide instruction and Data.The a part of of memory 804 can also include nonvolatile RAM.For example, memory 804 can also be deposited Store up the information of device type.
In the specific implementation, processor 801, input equipment 802, the output equipment 803 described in the embodiment of the present invention can The implementation described in the first embodiment and second embodiment of method provided in an embodiment of the present invention is performed, also be can perform The implementation of terminal described by the embodiment of the present invention, will not be repeated here.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, the composition and step of each example are generally described according to function in the above description.This A little functions are performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specially Industry technical staff can realize described function to each specific application using distinct methods, but this realization is not It is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that, for convenience of description and succinctly, foregoing description terminal With the specific work process of unit, the corresponding process in preceding method embodiment is may be referred to, be will not be repeated here.
Step in present invention method can be sequentially adjusted, merged and deleted according to actual needs.
Unit in terminal of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
, can be by it in several embodiments provided herein, it should be understood that disclosed terminal and method Its mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, only Only a kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can be tied Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.In addition, shown or discussed phase Coupling or direct-coupling or communication connection between mutually can be INDIRECT COUPLING or the communication by some interfaces, device or unit Connection or electricity, mechanical or other forms are connected.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize scheme of the embodiment of the present invention according to the actual needs Purpose.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also It is that unit is individually physically present or two or more units are integrated in a unit.It is above-mentioned integrated Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used When, it can be stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially The part contributed in other words to prior art, or all or part of the technical scheme can be in the form of software product Embody, the computer software product is stored in a storage medium, including some instructions are to cause a computer Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment methods described of the invention Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced Change, these modifications or substitutions should be all included within the scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection domain be defined.

Claims (10)

1. a kind of method for adjusting edit object color, it is characterised in that including:
Identify the target body artis in image;
The color coefficients corresponding to the target body artis are determined, the color coefficients include saturation degree coefficient, colourity system At least one of number or luminance factor;
According to the target body artis, human synovial feature is determined;
According to the human synovial feature and the color coefficients, adjust the color of edit object, the color include saturation degree, At least one of colourity or brightness.
2. the method as described in claim 1, it is characterised in that the target body artis is two, described in the basis Target body artis, determines human synovial feature, including:
According to the target body artis, the distance of two human joint pointses is determined, the human synovial is characterized as two people The distance between body artis.
3. method as claimed in claim 2, it is characterised in that described according to the human synovial feature and the color system Also include before number, the color for adjusting edit object:
Judge whether the distance between described two human joint pointses are more than predetermined threshold value;
If more than predetermined threshold value, the color of the edit object is adjusted into default fixed value;
If less than or equal to predetermined threshold value, into it is described according to described according to the human synovial feature and the color system Number, the step of adjusting the color of edit object.
4. the method as described in claim 1, it is characterised in that the target body artis be on target body joint extremely Few two human joint pointses, it is described according to the target body artis, human synovial feature is determined, including:
According at least two human joint pointses on the target body joint, the bending journey in the target body joint is determined Degree, the human synovial is characterized as the degree of crook in the target body joint.
5. the method as described in claim 1, it is characterised in that the target body artis identified in image, including:
Obtain the position of the human joint pointses in image;
According to the position of the human joint pointses, the target body artis in described image is identified.
6. a kind of terminal, it is characterised in that including:
Human synovial recognition unit, for identifying the target body artis in image;
Color coefficients determining unit, for determining the color coefficients corresponding to the target body artis, the color coefficients Including at least one of saturation degree coefficient, chromaticity coefficent or luminance factor;
Human synovial feature acquiring unit, for according to the target body artis, determining human synovial feature;
Color adjusting unit, for according to the human synovial feature and the color coefficients, adjusting the color of edit object, institute Stating color includes at least one of saturation degree, colourity or brightness.
7. terminal as claimed in claim 6, it is characterised in that the target body artis is two, the human synovial Feature acquiring unit includes:
Metrics calculation unit, for according to the target body artis, determining the distance of two human joint pointses, the human body Joint characteristic is the distance between two human joint pointses.
8. terminal as claimed in claim 7, it is characterised in that also including judging unit, is used for:
Judge whether the distance between described two human joint pointses are more than predetermined threshold value;If more than predetermined threshold value, controlling institute State color adjusting unit and the color of the edit object is adjusted to default fixed value;
If less than or equal to predetermined threshold value, controlling described in the color adjusting unit according to described special according to the human synovial Seek peace the color coefficients, adjust the color of edit object.
9. terminal as claimed in claim 6, it is characterised in that the target body artis be on target body joint extremely Few two human joint pointses, the human synovial feature acquiring unit includes:
Degree of crook acquiring unit, for according at least two human joint pointses on the target body joint, it is determined that described The degree of crook in target body joint, the human synovial is characterized as the degree of crook in the target body joint.
10. terminal as claimed in claim 6, it is characterised in that the human synovial recognition unit specifically for:
Obtain the position of the human joint pointses in image;
According to the position of the human joint pointses, the target body artis in described image is identified.
CN201710324661.3A 2017-05-09 2017-05-09 A kind of method and terminal for adjusting edit object color Withdrawn CN107248183A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710324661.3A CN107248183A (en) 2017-05-09 2017-05-09 A kind of method and terminal for adjusting edit object color

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710324661.3A CN107248183A (en) 2017-05-09 2017-05-09 A kind of method and terminal for adjusting edit object color

Publications (1)

Publication Number Publication Date
CN107248183A true CN107248183A (en) 2017-10-13

Family

ID=60016581

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710324661.3A Withdrawn CN107248183A (en) 2017-05-09 2017-05-09 A kind of method and terminal for adjusting edit object color

Country Status (1)

Country Link
CN (1) CN107248183A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108830782A (en) * 2018-05-29 2018-11-16 北京字节跳动网络技术有限公司 Image processing method, device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103021019A (en) * 2013-01-10 2013-04-03 广东工业大学 Method for drawing high-fidelity model on basis of CT (computed tomography) knee-joint images
CN106060402A (en) * 2016-07-06 2016-10-26 北京奇虎科技有限公司 Image data processing method and device, and mobile terminal
CN106096588A (en) * 2016-07-06 2016-11-09 北京奇虎科技有限公司 The processing method of a kind of view data, device and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103021019A (en) * 2013-01-10 2013-04-03 广东工业大学 Method for drawing high-fidelity model on basis of CT (computed tomography) knee-joint images
CN106060402A (en) * 2016-07-06 2016-10-26 北京奇虎科技有限公司 Image data processing method and device, and mobile terminal
CN106096588A (en) * 2016-07-06 2016-11-09 北京奇虎科技有限公司 The processing method of a kind of view data, device and mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108830782A (en) * 2018-05-29 2018-11-16 北京字节跳动网络技术有限公司 Image processing method, device, computer equipment and storage medium
CN108830782B (en) * 2018-05-29 2022-08-05 北京字节跳动网络技术有限公司 Image processing method, image processing device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US10942546B2 (en) Electronic device and method for processing gesture thereof
US20220262022A1 (en) Displaying and editing images with depth information
CN106210521A (en) A kind of photographic method and terminal
US20180059891A1 (en) Apparatus and method for providing a visual transition between screens
EP2680110B1 (en) Method and apparatus for processing multiple inputs
JP2022084635A (en) User interface camera effect
TWI584164B (en) Emulating pressure sensitivity on multi-touch devices
EP3547218B1 (en) File processing device and method, and graphical user interface
CN107861679A (en) A kind of operation processing method, terminal and computer-readable recording medium
CN106454139A (en) Shooting method and mobile terminal
CN107395958A (en) Image processing method and device, electronic equipment and storage medium
CN107426493A (en) A kind of image pickup method and terminal for blurring background
CN110377215B (en) Model display method and device and terminal equipment
US20180260044A1 (en) Information processing apparatus, information processing method, and program
WO2017019390A1 (en) Universal keyboard
CN108646960A (en) A kind of document handling method and flexible screen terminal
CN107608719A (en) A kind of interface operation method, terminal and computer-readable recording medium
CN108491152B (en) Touch screen terminal control method, terminal and medium based on virtual cursor
CN110377220A (en) A kind of instruction response method, device, storage medium and electronic equipment
CN106131533A (en) A kind of method for displaying image and terminal
CN107248183A (en) A kind of method and terminal for adjusting edit object color
CN107422854A (en) Action identification method and terminal applied to virtual reality
CN109559319A (en) A kind of processing method and terminal of normal map
CN108196670A (en) A kind of gesture display methods, terminal device and computer readable storage medium
CN107357495A (en) A kind of searching method, terminal and computer-readable recording medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20171013

WW01 Invention patent application withdrawn after publication