CN109493324A - Assist method, apparatus, equipment and the computer readable storage medium of hair-cutting - Google Patents
Assist method, apparatus, equipment and the computer readable storage medium of hair-cutting Download PDFInfo
- Publication number
- CN109493324A CN109493324A CN201811232423.0A CN201811232423A CN109493324A CN 109493324 A CN109493324 A CN 109493324A CN 201811232423 A CN201811232423 A CN 201811232423A CN 109493324 A CN109493324 A CN 109493324A
- Authority
- CN
- China
- Prior art keywords
- image
- trimmed
- user
- target image
- scissors
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
- G06T7/0004—Industrial image inspection
- G06T7/001—Industrial image inspection using an image reference approach
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/70—Determining position or orientation of objects or cameras
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Image Analysis (AREA)
Abstract
The present invention provides method, apparatus, equipment and the computer readable storage medium of auxiliary hair-cutting, and the method for assisting hair-cutting is comprised determining that referring to image, and described referring to image be that is be pre-stored be used to show the image of fringe pattern;Target image is obtained, the target image includes the current fringe image to be trimmed of user;According to described referring to image, position to be trimmed, the position of the trimming required when trimming position and being in fringe pattern fringe of the user wait trimming in the target image being trimmed in the reference image are determined in the target image;When determine hair dressing tools described in being located in the target image when trimming position, output trimming indication signal.The technical solution can assist user that fringe is trimmed to the fault for reducing referring to the fringe pattern shown in image and occurring during trimming.
Description
Technical field
The present invention relates to information technology field, more particularly to the method, apparatus of auxiliary hair-cutting, equipment and computer-readable
Storage medium.
Background technique
People oneself can usually trim by scissors when Liu Haichang long, but be usually easy fault when oneself trimming cut should not
The position cut influences to trim effect.
Summary of the invention
(1) technical problems to be solved
The first object of the present invention is: a kind of method that auxiliary user trims fringe is provided, to improve user oneself trimming
The problem of error is easy when fringe.
The second object of the present invention is: a kind of device of auxiliary user trimming fringe is provided, to improve user oneself trimming
The problem of error is easy when fringe.
The third object of the present invention is: a kind of equipment that auxiliary user trims fringe is provided, to improve user oneself trimming
The problem of error is easy when fringe.
The fourth object of the present invention is: a kind of computer readable storage medium of auxiliary user trimming fringe is provided, to change
The problem of kind user oneself is easy error when trimming fringe.
(2) technical solution
In order to solve the above-mentioned technical problem, according to a first aspect of the embodiments of the present invention, a kind of side of auxiliary hair-cutting is provided
Method, comprising:
It determines referring to image, described referring to image be that is be pre-stored be used to show the image of fringe pattern;
Target image is obtained, the target image includes the current fringe image to be trimmed of user;
According to described referring to image, the determination position to be trimmed in the target image, the position to be trimmed is to incite somebody to action
Fringe of the user wait trimming is trimmed to the position of required trimming when the fringe pattern in the reference image in the target image;
When determine hair dressing tools described in being located in the target image when trimming position, output trimming indication signal.
In one embodiment, described according to the reference image, position to be trimmed, packet are determined in the target image
It includes:
It determines described in user is to be trimmed in the target image Liu Haiyu referring to the fringe corresponding position head in image
The length residual quantity of hair;
The position to be trimmed is determined according to the length residual quantity.
In one embodiment, the hair dressing tools include scissors, and the determining hair dressing tools are located at the target image
In the position to be trimmed, comprising:
When determining on the scissors color mark to the spacing of two included color marks in preset value interval
When interior, determine that the position between described two color marks is the trimming position of the scissors;
Wherein, described two color marks are respectively arranged on two blades of the scissors, and described two color marks
Note is oppositely arranged.
In one embodiment, it is determined in the target image wait after trimming position, further includes:
The position to be trimmed is marked in the target image.
In one embodiment, the hair dressing tools include scissors, and the determining hair dressing tools are located at the target image
In the position to be trimmed include:
When the position to be trimmed label be located at the scissors on color mark to two included color marks it
Between when, determine that the scissors is located at the position to be trimmed;
Wherein, described two color marks are respectively arranged on two blades of the scissors, and described two color marks
Note is oppositely arranged.
It is in one embodiment, described determining referring to image, comprising:
Export K candidate image, K >=1;
The candidate image that user is selected is determined as described referring to image.
In one embodiment, further includes:
User's head portrait is obtained, synthesizes the preview graph after fringe is trimmed with user's head portrait referring to image for described;
Show the preview graph.
According to a second aspect of the embodiments of the present invention, a kind of device of auxiliary hair-cutting is provided, comprising:
Chosen module, for determining referring to image, described referring to image be that is be pre-stored be used to show the figure of fringe pattern
Picture;
Shooting module, for obtaining target image, the target image includes the current fringe image to be trimmed of user;
Processing module, it is described to be repaired for, referring to image, position to be trimmed being determined in the target image according to described
Position is cut as fringe of the user wait trimming in the target image to be trimmed to the fringe pattern when institute referring in image
The position that need to be trimmed;
Control module, for determine hair dressing tools described in being located in the target image when trimming position, output
Trim indication signal.
In one embodiment, the processing module includes:
Difference computational submodule, for determining described in user is to be trimmed in the target image Liu Haiyu referring in image
Fringe corresponding position hair length residual quantity;
Submodule is measured, for determining the position to be trimmed according to the length residual quantity.
In one embodiment, the hair dressing tools include scissors, and the control module includes:
Location determination submodule, on determining the scissors color mark between two included color marks
When away from preset value interval, determine that the position between described two color marks is the trimming position of the scissors;
Wherein, described two color marks are respectively arranged on two blades of the scissors, and described two color marks
Note is oppositely arranged.
In one embodiment, further includes:
Mark module, for marking the position to be trimmed in the target image.
In one embodiment, the hair dressing tools include scissors, and the control module includes:
Decision sub-module is marked, the label for the position to be trimmed described in determining is located at color mark pair on the scissors
When between two included color marks, determine that the scissors is located at the position to be trimmed;
Wherein, described two color marks are respectively arranged on two blades of the scissors, and described two color marks
Note is oppositely arranged.
In one embodiment, the chosen module includes:
Candidate sub-block, for exporting K candidate image, K >=1;
Submodule is instructed, a candidate image for selecting user is determined as described referring to image.
In one embodiment, further includes:
Previewing module, for obtaining user's head portrait, after the reference image is synthesized fringe trimming with user's head portrait
Preview graph;
Display module shows the preview graph.
According to a third aspect of the embodiments of the present invention, a kind of equipment of auxiliary hair-cutting is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
It determines referring to image, described referring to image be that is be pre-stored be used to show the image of fringe pattern;
Target image is obtained, the target image includes the current fringe image to be trimmed of user;
According to described referring to image, the determination position to be trimmed in the target image, the position to be trimmed is to incite somebody to action
Fringe of the user wait trimming is trimmed to the position of required trimming when the fringe pattern in the reference image in the target image;
When determine hair dressing tools described in being located in the target image when trimming position, output trimming indication signal.
According to a fourth aspect of the embodiments of the present invention, a kind of computer readable storage medium is provided, calculating is stored thereon with
The step of first aspect provides the method for auxiliary hair-cutting is realized in machine instruction when the instruction is executed by processor.
(3) beneficial effect
Above-mentioned technical proposal of the invention has the advantages that
Technical solution provided by the invention, it is first determined referring to image, that is, determine the fringe pattern that user wants, then exist
User obtains the target head portrait including the current fringe image to be trimmed of user when hand-held scissors trims fringe, and determining will
When the fringe of user is trimmed to desired fringe pattern, where hair dressing tools should trimmed, the hand-holdable reason of user
Hair tool and the different location that can be moved into fringe, when determining that hair dressing tools are located at the position of required trimming, output is repaired
Cutting indication signal indicates that user can trim in current location.Using technical solution provided by the invention, it can assist user will
Fringe is trimmed to the fault for reducing referring to the fringe pattern shown in image and occurring during trimming.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
It can the limitation present invention.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention
Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is the flow chart according to the method for the auxiliary hair-cutting shown in embodiment one.
Fig. 2 is to illustrate schematic diagram according to the application interface shown in embodiment one.
Fig. 3 is that position to be trimmed shown according to embodiment one illustrates schematic diagram.
Fig. 4 is that position color mark to be trimmed shown according to embodiment one illustrates schematic diagram.
Fig. 5 is to illustrate schematic diagram according to color mark pair on the scissors shown in embodiment one.
Fig. 6 is to illustrate schematic diagram according to color mark spacing on the scissors shown in embodiment one.
Fig. 7 is the flow chart according to the method for the auxiliary hair-cutting shown in embodiment two.
Fig. 8 is that position to be trimmed shown according to embodiment two illustrates schematic diagram.
Fig. 9 is the device block diagram according to the auxiliary hair-cutting shown in embodiment two.
Figure 10 is the device block diagram according to the auxiliary hair-cutting shown in embodiment two.
Figure 11 is the device block diagram according to the auxiliary hair-cutting shown in embodiment two.
Figure 12 is the device block diagram according to the auxiliary hair-cutting shown in embodiment two.
Figure 13 is the device block diagram according to the auxiliary hair-cutting shown in embodiment two.
Figure 14 is the device block diagram according to the auxiliary hair-cutting shown in embodiment two.
Figure 15 is the device block diagram according to the auxiliary hair-cutting shown in embodiment two.
Figure 16 is the block diagram according to the electronic equipment shown in embodiment two.
Figure 17 is the block diagram according to the terminal device shown in embodiment two.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended
The example of device and method being described in detail in claims, some aspects of the invention are consistent.
It is usually easy error when oneself trimming fringe and cuts the position that should not be cut, the present invention provides a kind of side of auxiliary hair-cutting
Method helps user to reduce mistake.
Embodiment one
Fig. 1 be shown according to embodiment one a kind of auxiliary hair-cutting method flow chart, this method can be applied to mobile phone,
The equipment such as plate, PC.For example, user when hand-held scissors trims fringe, mobile phone or plate can be used to shoot user
Head image, shooting obtain the current fringe image to be trimmed of user and are displayed on the screen, and user can hand on one side watch while
Scissors hold trims fringe.Alternatively, user uses the electronic equipment with camera function to shoot, the figure that electronic equipment obtains shooting
As being sent to mobile phone, plate or PC, user holds scissors trimming fringe while watching.
Embodiment of the disclosure for being applied to the situation of mobile phone to be illustrated.Shown in referring to Fig.1, the side of hair-cutting is assisted
Method includes step 101-104:
In a step 101, it determines referring to image.
It is pre-stored for showing the image of fringe pattern referring to image.
For example, the application program of the mountable auxiliary hair-cutting of mobile phone, illustrates schematic diagram referring to application interface shown in Fig. 2,
The exportable K candidate image of application interface, K >=1.Each candidate image shows different fringe patterns respectively.User waits from K
It selects and selectes oneself desired fringe pattern in image, the candidate image that mobile phone selectes user is determined as referring to image.
In a step 102, target image is obtained.
Target image includes the current fringe image to be trimmed of user.
For example, user can stand mobile phone before mirror, shot using the front camera of mobile phone, mobile phone takes packet
Include the target image of the current fringe image to be trimmed of user and display.User can see the mobile phone while seeing mirror screen bat
The target image taken the photograph assists having hair cut.
In step 103, according to referring to image, position to be trimmed is determined in the target image.
Position to be trimmed is to be trimmed to the fringe to be trimmed of user in target image referring to the fringe pattern in image
The position of Shi Suoxu trimming.
Referring to shown in Fig. 3, the fringe of user is indicated with rectangle 31, referring to the fringe pattern in image with 32 table of crescent
Show.The position that rectangle 31 is overlapped with the lower edge of crescent 32, for position to be trimmed.Position to be trimmed is indicated in Fig. 3 with dotted line.
In one embodiment, mobile phone can mark position to be trimmed in the target image.
For example, referring to shown in Fig. 4, in the target image that mobile phone is shown, black (or other face are marked at position to be trimmed
Color) dotted line 41.User watches black dotted lines 41, on the one hand it is known which position needs to trim, on the one hand can estimate
Fringe pattern after trimming.If not liking can reselect in K candidate image referring to image.
At step 104, when determine hair dressing tools be located in target image when trimming position, output trimming instruction letter
Number.
Hair dressing tools, are moved to the different location of fringe by the hand-holdable hair dressing tools of user.Mobile phone is determining hair dressing tools
Positioned at when trimming position, standby signal is exported, indicates that user can trim in scissors present position.Using the present invention
The technical solution of offer can assist user that fringe is trimmed to referring to the fringe pattern shown in image, reduce trimming process
The fault of middle appearance.
By taking hair dressing tools is the situations of scissors as an example, settable color mark pair on the blade of scissors.Referring to Figure 5,
Color mark is to sharing 3, and for each color mark to including two color marks, two color marks are respectively arranged at scissors
On two blades, and two color marks are oppositely arranged.Referring in Fig. 5,3 color marks to respectively with icon 51-1,51-2,
51-3 mark.When the folding of two blades of scissors, the spacing between two color marks between color mark pair becomes therewith
Change.
In one embodiment, mobile phone determines the spacing between two color marks of a pair of of color mark pair preset
When in value interval, determine that position between the two color marks is the trimming position of scissors, wherein two color marks it
Between spacing refer to the straight line spacing between two color marks.
The scale that length is 1cm is set by taking preset value interval is the situation of 0.5-1cm as an example, on the blade of scissors
52, length of the mobile phone according to scale 52 in the target image, the spacing between two color marks to calculate color mark pair.
For example, 3 color mark centerings, color mark is 0.5cm, color to spacing between two color marks of 51-1
Label is 1.5cm to the corresponding spacing of 51-2, and color mark is 2.5cm to the corresponding spacing of 51-3.Then mobile phone is with color mark
It is the trimming position of scissors to the position between 51-1.
Referring to shown in Fig. 6, when the trimming position of scissors wait trim position with coincideing, mobile phone output trimming indication signal,
Scissors handle can be closed slightly by user at this time, so that scissor blade is closed in color mark at 51-1, be cut at the position
Hair.
The method of auxiliary hair-cutting provided in an embodiment of the present invention, it is first determined referring to image, that is, determine Liu that user wants
Then extra large pattern obtains the mesh including the current fringe image to be trimmed of user when hand-held scissors trims fringe in user
Header picture determines where scissors should trimmed, user when the fringe of user is trimmed to desired fringe pattern
Scissors is moved to the different positions of fringe to change the trimming position of scissors by hand-holdable scissors, if trimming position and position to be trimmed
Set it is identical, then export trimming indication signal indicate user can be trimmed in current location.Using technical side provided by the invention
Case can assist user that fringe is trimmed to the fault for reducing referring to the fringe pattern shown in image and occurring during trimming.
Embodiment two
Method based on the auxiliary hair-cutting that the corresponding embodiment of above-mentioned Fig. 1-Fig. 6 provides, Fig. 7 is shown according to embodiment two
A kind of hair-cutting of auxiliary method flow chart, in embodiment two, further supplement and explanation have been done to the method for auxiliary hair-cutting.
The step in content embodiment corresponding with Fig. 1-Fig. 6 in part of step is same or like, only right below
Difference elaborates in step.Referring to shown in Fig. 7, the method for auxiliary hair-cutting provided in this embodiment includes step 701-
708:
In step 701, determine in candidate image referring to image.
In one embodiment, mobile phone is pre-stored several candidate images, and each candidate image shows different Liu respectively
Extra large pattern.There is user to select one from candidate image to be used as referring to image.
In a step 702, preview graph is generated according to user's head portrait.
In one embodiment, user carries out self-timer using mobile phone, and mobile phone photographed user's head portrait, by what is shown referring to image
Fringe pattern is superimposed upon on user's head portrait, synthesizes preview graph with user's head portrait.Mobile phone shows the preview graph, if user does not like
Fringe pattern in preview graph can be selected again referring to image.
In step 703, target image is obtained.
Target image includes the current fringe image to be trimmed of user.In one embodiment, mobile phone passes through camera
Shooting obtains target head portrait.
In step 704, determine user is to be trimmed in target image Liu Haiyu referring to the fringe corresponding position in image
Locate the length residual quantity of hair.
Referring to shown in Fig. 8, the fringe of user is indicated with solid line 81, is indicated referring to the fringe pattern in image with dotted line 82.
The position shown in straight line A, the actual fringe length of user is 8cm, referring to fringe pattern position shown in straight line A in image
Length be 5cm, then length residual quantity be 3cm.
In step 705, position to be trimmed is determined according to length residual quantity.
It is required when trimming position and being in the fringe pattern being trimmed to the fringe of user in target image in reference image
The position of trimming.Referring to shown in Fig. 8, the position shown in straight line A, position to be trimmed moves up for forelock tip position 83 before user
At 3cm.
In step 706, position to be trimmed is marked in the target image.
Referring to shown in Fig. 8, position to be trimmed is marked with dotted line 82 in the target image.
In step 707, determine that scissors is located in target image when trimming position, output trimming indication signal.
Color mark pair is set on the blade of scissors, and each color mark is to including being set to relative position on two blades
Two color marks at place.Mobile phone determines the trimming position of scissors according to the spacing in target image between color mark pair.
In one embodiment, mobile phone is located at color mark pair on scissors in the label (dotted line 82) for determining position to be trimmed
When between two included color marks, determine that scissors is located at position to be trimmed, the indication signal instruction of output trimming at this time is used
Family can be trimmed in current location.For trimming indication signal as the situation of prompt tone, user hears after the prompt tone only
It needs for scissors handle to be closed slightly, so that scissor blade is cutting the hair at trimming position.
The method of auxiliary hair-cutting provided in an embodiment of the present invention, it is first determined referring to image, that is, determine Liu that user wants
Then extra large pattern obtains the mesh including the current fringe image to be trimmed of user when hand-held scissors trims fringe in user
Header picture determines where scissors should trimmed, user when the fringe of user is trimmed to desired fringe pattern
Scissors is moved to the different positions of fringe to change the trimming position of scissors by hand-holdable scissors, if trimming position and position to be trimmed
Set it is identical, then export trimming indication signal indicate user can be trimmed in current location.Using technical side provided by the invention
Case can assist user that fringe is trimmed to the fault for reducing referring to the fringe pattern shown in image and occurring during trimming.
Following is present device embodiment, can be used for executing embodiment of the present invention method.
Fig. 9 is a kind of device of auxiliary hair-cutting shown according to an exemplary embodiment, which can be by software, hard
Part or both is implemented in combination with its some or all of function, for executing described in the corresponding embodiment of Fig. 1-Fig. 8
The method for assisting hair-cutting.As shown in figure 9, the device of auxiliary hair-cutting includes:
Chosen module 91 is pre-stored for showing the image of fringe pattern referring to image for determining referring to image.
Shooting module 92, for obtaining target image, target image includes the current fringe image to be trimmed of user.
Processing module 93, for according to referring to image, determining position to be trimmed in the target image, position to be trimmed be
The position of required trimming when fringe of the user in target image wait trimming is trimmed to referring to fringe pattern in image.
Control module 94, for determine hair dressing tools be located in target image when trimming position, output trimming refers to
Show signal.
As shown in Figure 10, in one embodiment, processing module 93 includes:
Difference computational submodule 931, for determining user is to be trimmed in target image Liu Haiyu referring to Liu in image
The length residual quantity of extra large corresponding position hair.
Submodule 932 is measured, for determining position to be trimmed according to length residual quantity.
As shown in figure 11, in one embodiment, hair dressing tools include scissors, and control module 94 includes:
Location determination submodule 941, on determining scissors color mark between two included color marks
When away from preset value interval, determine that the position between two color marks is the trimming position of scissors.
Wherein, two color marks are respectively arranged on two blades of scissors, and two color marks are oppositely arranged.
As shown in figure 12, in one embodiment, further includes:
Mark module 95, for marking position to be trimmed in the target image.
In one embodiment, hair dressing tools include scissors, and as shown in figure 13, control module includes:
Decision sub-module 942 is marked, for determining that the label of position to be trimmed is located on scissors color mark to being wrapped
When between two color marks included, determine that scissors is located at position to be trimmed.
Wherein, two color marks are respectively arranged on two blades of scissors, and two color marks are oppositely arranged.
As shown in figure 14, in one embodiment, chosen module 91 includes:
Candidate sub-block 911, for exporting K candidate image, K >=1.
Submodule 912 is instructed, a candidate image for selecting user is determined as referring to image.
As shown in figure 15, in one embodiment, further includes:
Previewing module 96 will synthesize the preview after fringe is trimmed for obtaining user's head portrait referring to image with user's head portrait
Figure.
Display module 97 shows preview graph.
The device of auxiliary hair-cutting provided in an embodiment of the present invention, it is first determined referring to image, that is, determine Liu that user wants
Then extra large pattern obtains the mesh including the current fringe image to be trimmed of user when hand-held scissors trims fringe in user
Header picture determines where scissors should trimmed, user when the fringe of user is trimmed to desired fringe pattern
Scissors is moved to the different positions of fringe to change the trimming position of scissors by hand-holdable scissors, if trimming position and position to be trimmed
Set it is identical, then export trimming indication signal indicate user can be trimmed in current location.Using technical side provided by the invention
Case can assist user that fringe is trimmed to the fault for reducing referring to the fringe pattern shown in image and occurring during trimming.
Figure 16 is the block diagram of a kind of electronic equipment shown according to an exemplary embodiment, the equipment can by software,
Hardware or both is implemented in combination with as some or all of of electronic equipment, and the electronic equipment is for executing above-mentioned Fig. 1-figure
The method of auxiliary hair-cutting described in 8 corresponding embodiments.As shown in figure 16, electronic equipment 160 includes:
Processor 1601.
Memory 1602 for 1601 executable instruction of storage processor.
Wherein, processor 1601 is configured as:
It determines referring to image, is pre-stored for showing the image of fringe pattern referring to image.
Target image is obtained, target image includes the current fringe image to be trimmed of user.
According to referring to image, determining position to be trimmed, position to be trimmed are that will use in target image in the target image
Fringe of the family wait trimming is trimmed to the position of required trimming when the fringe pattern in reference image.
When determine hair dressing tools be located in target image when trimming position, output trimming indication signal.
In one embodiment, above-mentioned processor 1601 is also configured to:
Determine user is to be trimmed in target image Liu Haiyu referring to the length of the fringe corresponding position hair in image
Residual quantity.
Position to be trimmed is determined according to length residual quantity.
In one embodiment, above-mentioned processor 1601 is also configured to:
Hair dressing tools include scissors, determine the position to be trimmed that hair dressing tools are located in target image, comprising:
When determining on scissors color mark to the spacing of two included color marks in preset value interval,
Determine that the position between two color marks is the trimming position of scissors.
Wherein, two color marks are respectively arranged on two blades of scissors, and two color marks are oppositely arranged.
In one embodiment, above-mentioned processor 1601 is also configured to:
It is determined in the target image wait after trimming position, further includes:
Position to be trimmed is marked in the target image.
In one embodiment, above-mentioned processor 1601 is also configured to:
Hair dressing tools include scissors, and the position to be trimmed for determining that hair dressing tools are located in target image includes:
When wait trim when marking positioned at color mark on scissors between two included color marks of position, determination
Scissors is located at position to be trimmed.
Wherein, two color marks are respectively arranged on two blades of scissors, and two color marks are oppositely arranged.
In one embodiment, above-mentioned processor 1601 is also configured to:
It determines referring to image, comprising:
Export K candidate image, K >=1.
The candidate image that user is selected is determined as referring to image.
In one embodiment, above-mentioned processor 1601 is also configured to:
User's head portrait is obtained, the preview graph after fringe is trimmed will be synthesized with user's head portrait referring to image.
Show preview graph.
Electronic equipment provided in an embodiment of the present invention, it is first determined referring to image, that is, determine the fringe pattern that user wants,
Then the target head portrait including the current fringe image to be trimmed of user is obtained when hand-held scissors trims fringe in user,
Determine where scissors should trimmed, and user is hand-holdable when the fringe of user is trimmed to desired fringe pattern
Scissors is moved to the different positions of fringe to change the trimming position of scissors by scissors, if trimming position and position to be trimmed are kissed
It closes, then exporting trimming indication signal indicates that user can trim in current location.It, can using technical solution provided by the invention
Fringe is trimmed to the fault for reducing referring to the fringe pattern shown in image and occurring during trimming by auxiliary user.
Electronic equipment provided in an embodiment of the present invention can be a terminal device as shown in figure 17, and Figure 17 is according to one
A kind of block diagram of terminal device shown in exemplary embodiment, the terminal device 170 can be smart phone, tablet computer etc.,
The method that the terminal device 170 is used to execute auxiliary hair-cutting described in the corresponding embodiment of above-mentioned Fig. 1-Fig. 8.
Terminal device 170 may include following one or more components: processing component 1701, memory 1702, power supply group
Part 1703, multimedia component 1704, audio component 1705, the interface 1706 of input/output (I/O), sensor module 1707, with
And communication component 1708.
The integrated operation of the usual controlling terminal equipment 170 of processing component 1701, such as with display, call, data are logical
Letter, camera operation and record operate associated operation.Processing component 1701 may include one or more processors 17011
It executes instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1701 may include one or more
Module, convenient for the interaction between processing component 1701 and other assemblies.For example, processing component 1701 may include multimedia mould
Block, to facilitate the interaction between multimedia component 1704 and processing component 1701.
Memory 1702 is configured as storing various types of data to support the operation in terminal device 170.These numbers
According to example include any application or method for being operated on terminal device 170 instruction, contact data, phone
Book data, message, picture, video etc..Memory 1702 can by any kind of volatibility or non-volatile memory device or
Person's their combination is realized, such as static random access memory (full name in English: Static Random Access Memory, English
Literary abbreviation: SRAM), electrically erasable programmable read-only memory (full name in English: Electrically Erasable
Programmable Read Only Memory, English abbreviation: EEPROM), (English is complete for Erasable Programmable Read Only Memory EPROM
Claim: Erasable Programmable Read Only Memory, English abbreviation: EPROM), programmable read only memory (English
Literary full name: Programmable Read Only Memory, English abbreviation: PROM), read-only memory (full name in English: Read
Only Memory, English abbreviation: ROM), magnetic memory, flash memory, disk or CD.
Power supply module 1703 provides electric power for the various assemblies of terminal device 170.Power supply module 1703 may include power supply
Management system, one or more power supplys and other with for terminal device 170 generate, manage, and distribute the associated component of electric power.
Multimedia component 1704 includes the screen of one output interface of offer between terminal device 170 and user.?
In some embodiments, screen may include liquid crystal display (full name in English: Liquid Crystal Display, English abbreviation:
) and touch panel (full name in English: Touch Panel, English abbreviation: TP) LCD.If screen includes touch panel, screen can
To be implemented as touch screen, to receive input signal from the user.Touch panel include one or more touch sensors with
Sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense the boundary of a touch or slide action, and
And also detect duration and pressure relevant to touch or slide.In some embodiments, multimedia component 1704 wraps
Include a front camera and/or rear camera.When terminal device 170 is in operation mode, such as screening-mode or video screen module
When formula, front camera and/or rear camera can receive external multi-medium data.Each front camera and postposition are taken the photograph
As head can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 1705 is configured as output and/or input audio signal.For example, audio component 1705 includes a wheat
Gram wind (full name in English: Microphone, English abbreviation: MIC), when terminal device 170 is in operation mode, as call model,
When logging mode and speech recognition mode, microphone is configured as receiving external audio signal.The received audio signal can be with
It is further stored in memory 1702 or is sent via communication component 1708.In some embodiments, audio component 1705 is gone back
Including a loudspeaker, it to be used for output audio signal.
I/O interface 1706 provides interface, above-mentioned peripheral interface module between processing component 1701 and peripheral interface module
It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and
Locking press button.
Sensor module 1707 includes one or more sensors, for providing the shape of various aspects for terminal device 170
State assessment.For example, sensor module 1707 can detecte the state that opens/closes of terminal device 170, component it is relatively fixed
Position, such as component are the display and keypad of terminal device 170, and sensor module 1707 can also detect terminal device 170
Or the position change of 170 1 components of terminal device, the existence or non-existence that user contacts with terminal device 170, terminal device
The temperature change of 170 orientation or acceleration/deceleration and terminal device 170.Sensor module 1707 may include proximity sensor, quilt
It is configured to detect the presence of nearby objects without any physical contact.Sensor module 1707 can also include that light passes
Sensor, as complementary metal oxide semiconductor (full name in English: Complementary Metal Oxide Semiconductor,
English abbreviation: CMOS) or charge coupled cell (full name in English: Charge Coupled Device, English abbreviation: CCD) image
Sensor, for being used in imaging applications.In some embodiments, which can also include that acceleration passes
Sensor, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1708 is configured to facilitate the logical of wired or wireless way between terminal device 170 and other equipment
Letter.Terminal device 170 can access the wireless network based on communication standard, such as Wireless Fidelity (full name in English: Wireless-
Fidelity, English abbreviation: WiFi), 3G, 4G or 5G or their combination.In one exemplary embodiment, communication component
1708 receive broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.It is exemplary at one
In embodiment, communication component 1708 further includes near-field communication (full name in English: Near Field Communication, English letter
Claim: NFC) module, to promote short range communication.For example, the NFC module can be based on radio frequency identification (full name in English: Radio
Frequency Identification, English abbreviation: RFID) technology or Infrared Data Association's (full name in English: Infrared
Data Association, English abbreviation: IrDA) technology or ultra wide band (full name in English: Ultra Wideband, English abbreviation:
UWB) technology or bluetooth (full name in English: Bluetooth, English abbreviation: BT) technology or other technologies are realized.
In the exemplary embodiment, terminal device 170 can (English be complete by one or more application specific integrated circuit
Claim: Application Specific Integrated Circuit, English abbreviation: ASIC), digital signal processor (English
Full name: Digital Signal Processing, English abbreviation: DSP), digital signal processing appts (full name in English:
Digital Signal Processing Device, English abbreviation: DSPD), programmable logic device (full name in English:
Programmable Logic Device, English abbreviation: PLD), field programmable gate array (full name in English: Field
Programmable Gate Array, English abbreviation: FPGA), controller, microcontroller, microprocessor or other electronic components
It realizes, the method for executing auxiliary hair-cutting described in the corresponding embodiment of above-mentioned Fig. 1-Fig. 8.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 1702 of instruction, above-metioned instruction can be executed by the processing component 1701 of terminal device 170 to complete above-mentioned side
Method.For example, non-transitorycomputer readable storage medium can be ROM, random access memory (full name in English: Random
Access Memory, English abbreviation: RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..When in storage medium
When instruction is executed by the processing component 1701 of terminal device 170, so that terminal device 170 is able to carry out above-mentioned Fig. 1-Fig. 8 and corresponds to
Embodiment described in auxiliary hair-cutting method, this method comprises:
It determines referring to image, is pre-stored for showing the image of fringe pattern referring to image.
Target image is obtained, target image includes the current fringe image to be trimmed of user.
According to referring to image, determining position to be trimmed, position to be trimmed are that will use in target image in the target image
Fringe of the family wait trimming is trimmed to the position of required trimming when the fringe pattern in reference image.
When determine hair dressing tools be located in target image when trimming position, output trimming indication signal.
In one embodiment, this method comprises:
Determine user is to be trimmed in target image Liu Haiyu referring to the length of the fringe corresponding position hair in image
Residual quantity.
Position to be trimmed is determined according to length residual quantity.
In one embodiment, this method comprises:
When determining on scissors color mark to the spacing of two included color marks in preset value interval,
Determine that the position between two color marks is the trimming position of scissors.
Wherein, two color marks are respectively arranged on two blades of scissors, and two color marks are oppositely arranged.
In one embodiment, this method comprises:
Position to be trimmed is marked in the target image.
In one embodiment, this method comprises:
When wait trim when marking positioned at color mark on scissors between two included color marks of position, determination
Scissors is located at position to be trimmed.
Wherein, two color marks are respectively arranged on two blades of scissors, and two color marks are oppositely arranged.
In one embodiment, this method comprises:
Export K candidate image, K >=1.
The candidate image that user is selected is determined as referring to image.
In one embodiment, this method comprises:
User's head portrait is obtained, the preview graph after fringe is trimmed will be synthesized with user's head portrait referring to image.
Show preview graph.
Terminal device and storage medium provided in an embodiment of the present invention, it is first determined referring to image, that is, determine that user thinks
The fringe pattern wanted, then in user when hand-held scissors trims fringe, obtaining includes the current Liu Haitu to be trimmed of user
The target head portrait of picture determines where scissors should repaired when the fringe of user is trimmed to desired fringe pattern
Cut, scissors is moved to the different positions of fringe to change the trimming position of scissors by the hand-holdable scissors of user, if trimming position with
Position to be trimmed coincide, then exporting trimming indication signal indicates that user can trim in current location.It is provided using the present invention
Technical solution, can assist user that fringe is trimmed to referring to the fringe pattern shown in image, reduce to go out during trimming
Existing fault.
Those skilled in the art are considering specification and after practicing this disclosure, will readily occur to of the invention its
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or
Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the present invention
Or conventional techniques.The description and examples are only to be considered as illustrative, and therefore, protection scope of the present invention should be wanted with right
Subject to the protection scope asked.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention should be with scope of protection of the claims
It is quasi-.
Claims (16)
1. a kind of method of auxiliary hair-cutting characterized by comprising
It determines referring to image, described referring to image be that is be pre-stored be used to show the image of fringe pattern;
Target image is obtained, the target image includes the current fringe image to be trimmed of user;
According to described referring to image, position to be trimmed is determined in the target image, the position to be trimmed is will be described
Fringe of the user wait trimming is trimmed to the position of required trimming when the fringe pattern in the reference image in target image;
When determine hair dressing tools described in being located in the target image when trimming position, output trimming indication signal.
2. the method for auxiliary hair-cutting according to claim 1, which is characterized in that it is described according to the reference image, in institute
It states and determines position to be trimmed in target image, comprising:
It determines described in user is to be trimmed in the target image Liu Haiyu referring to the fringe corresponding position hair in image
Length residual quantity;
The position to be trimmed is determined according to the length residual quantity.
3. the method for auxiliary hair-cutting according to claim 1, which is characterized in that the hair dressing tools include scissors, described
Determine the position to be trimmed that hair dressing tools are located in the target image, comprising:
When determining on the scissors color mark to the spacing of two included color marks in preset value interval,
Determine that the position between described two color marks is the trimming position of the scissors;
Wherein, described two color marks are respectively arranged on two blades of the scissors, and described two color mark phases
To setting.
4. the method for auxiliary hair-cutting according to claim 1, which is characterized in that determine in the target image wait trim
After position, further includes:
The position to be trimmed is marked in the target image.
5. the method for auxiliary hair-cutting according to claim 4, which is characterized in that the hair dressing tools include scissors, described
The position to be trimmed for determining that hair dressing tools are located in the target image includes:
When described wait trim when marking positioned at color mark on the scissors between two included color marks of position,
Determine that the scissors is located at the position to be trimmed;
Wherein, described two color marks are respectively arranged on two blades of the scissors, and described two color mark phases
To setting.
6. the method for auxiliary hair-cutting according to claim 1, which is characterized in that described determining referring to image, comprising:
Export K candidate image, K >=1;
The candidate image that user is selected is determined as described referring to image.
7. the method for auxiliary hair-cutting according to claim 1, which is characterized in that further include:
User's head portrait is obtained, synthesizes the preview graph after fringe is trimmed with user's head portrait referring to image for described;
Show the preview graph.
8. a kind of device of auxiliary hair-cutting characterized by comprising
Chosen module, for determining referring to image, described referring to image be that is be pre-stored be used to show the image of fringe pattern;
Shooting module, for obtaining target image, the target image includes the current fringe image to be trimmed of user;
Processing module, for, referring to image, position to be trimmed, the position to be trimmed being determined in the target image according to described
It is set to repair required when fringe of the user wait trimming in the target image is trimmed to the fringe pattern referring in image
The position cut;
Control module, for determine hair dressing tools described in being located in the target image when trimming position, output trimming
Indication signal.
9. the device of auxiliary hair-cutting according to claim 8, which is characterized in that the processing module includes:
Difference computational submodule, for determining described in user is to be trimmed in the target image Liu Haiyu referring to Liu in image
The length residual quantity of extra large corresponding position hair;
Submodule is measured, for determining the position to be trimmed according to the length residual quantity.
10. the device of auxiliary hair-cutting according to claim 8, which is characterized in that the hair dressing tools include scissors, described
Control module includes:
Location determination submodule, on determining the scissors color mark exist to the spacing of two included color marks
When in preset value interval, determine that the position between described two color marks is the trimming position of the scissors;
Wherein, described two color marks are respectively arranged on two blades of the scissors, and described two color mark phases
To setting.
11. the device of auxiliary hair-cutting according to claim 8, which is characterized in that further include:
Mark module, for marking the position to be trimmed in the target image.
12. the device of auxiliary hair-cutting according to claim 11, which is characterized in that the hair dressing tools include scissors, institute
Stating control module includes:
Decision sub-module is marked, for determining that the label of the position to be trimmed is located on the scissors color mark to being wrapped
When between two color marks included, determine that the scissors is located at the position to be trimmed;
Wherein, described two color marks are respectively arranged on two blades of the scissors, and described two color mark phases
To setting.
13. the device of auxiliary hair-cutting according to claim 8, which is characterized in that the chosen module includes:
Candidate sub-block, for exporting K candidate image, K >=1;
Submodule is instructed, a candidate image for selecting user is determined as described referring to image.
14. the device of auxiliary hair-cutting according to claim 8, which is characterized in that further include:
Previewing module, for obtaining user's head portrait, by it is described synthesize with user's head portrait referring to image it is pre- after fringe is trimmed
Look at figure;
Display module shows the preview graph.
15. a kind of equipment of auxiliary hair-cutting characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
It determines referring to image, described referring to image be that is be pre-stored be used to show the image of fringe pattern;
Target image is obtained, the target image includes the current fringe image to be trimmed of user;
According to described referring to image, position to be trimmed is determined in the target image, the position to be trimmed is will be described
Fringe of the user wait trimming is trimmed to the position of required trimming when the fringe pattern in the reference image in target image;
When determine hair dressing tools described in being located in the target image when trimming position, output trimming indication signal.
16. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the instruction is by processor
The step of method of any one of claim 1-7 auxiliary hair-cutting is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811232423.0A CN109493324A (en) | 2018-12-06 | 2018-12-06 | Assist method, apparatus, equipment and the computer readable storage medium of hair-cutting |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811232423.0A CN109493324A (en) | 2018-12-06 | 2018-12-06 | Assist method, apparatus, equipment and the computer readable storage medium of hair-cutting |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109493324A true CN109493324A (en) | 2019-03-19 |
Family
ID=65692290
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811232423.0A Pending CN109493324A (en) | 2018-12-06 | 2018-12-06 | Assist method, apparatus, equipment and the computer readable storage medium of hair-cutting |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109493324A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110495954A (en) * | 2019-08-30 | 2019-11-26 | 深圳市汇健医疗工程有限公司 | Ultra high-definition surgical assistant system based on 5G communication |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100026717A1 (en) * | 2007-02-16 | 2010-02-04 | Kao Corporation | Hair image display method and display apparatus |
US20160263754A1 (en) * | 2013-10-31 | 2016-09-15 | Koninklijke Philips N.V. | Programmable hair trimming system |
CN106919738A (en) * | 2017-01-19 | 2017-07-04 | 深圳市赛亿科技开发有限公司 | A kind of hair style matching process |
CN108182588A (en) * | 2017-11-29 | 2018-06-19 | 深圳中科蓝海创新科技有限公司 | A kind of hair style design and clipping device, system and method, equipment and medium |
-
2018
- 2018-12-06 CN CN201811232423.0A patent/CN109493324A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100026717A1 (en) * | 2007-02-16 | 2010-02-04 | Kao Corporation | Hair image display method and display apparatus |
US20160263754A1 (en) * | 2013-10-31 | 2016-09-15 | Koninklijke Philips N.V. | Programmable hair trimming system |
CN106919738A (en) * | 2017-01-19 | 2017-07-04 | 深圳市赛亿科技开发有限公司 | A kind of hair style matching process |
CN108182588A (en) * | 2017-11-29 | 2018-06-19 | 深圳中科蓝海创新科技有限公司 | A kind of hair style design and clipping device, system and method, equipment and medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110495954A (en) * | 2019-08-30 | 2019-11-26 | 深圳市汇健医疗工程有限公司 | Ultra high-definition surgical assistant system based on 5G communication |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3476557B1 (en) | Method and device for controlling a hair trimming apparatus and hair trimming apparatus | |
EP3316105B1 (en) | Instant message processing method and device | |
CN106454336B (en) | The method and device and terminal that detection terminal camera is blocked | |
EP2977959B1 (en) | Method and device for adjusting skin color | |
CN112135049B (en) | Image processing method and device and electronic equipment | |
CN104902189A (en) | Picture processing method and picture processing device | |
CN104598131B (en) | Adjust the method and device of page display way | |
CN104298433A (en) | Screen display method, device and mobile terminal | |
CN112312016B (en) | Shooting processing method and device, electronic equipment and readable storage medium | |
CN105512605A (en) | Face image processing method and device | |
CN103927165A (en) | Wallpaper picture processing method and device | |
CN105512615B (en) | Image processing method and device | |
CN105530434A (en) | Shooting method and terminal | |
WO2022199038A1 (en) | Image adjustment parameter adjustment method and apparatus | |
CN107678648A (en) | Screenshotss processing method and processing device | |
EP3327622A1 (en) | Fingerprint template acquisition method and device | |
CN104978200A (en) | Application program display method and device | |
CN104301610A (en) | Image shooting control method and device | |
CN106023083A (en) | Method and device for obtaining combined image | |
CN107911576A (en) | Image processing method, device and storage medium | |
KR20150072689A (en) | Mobile terminal and controlling method thereof | |
KR20210133104A (en) | Method and device for shooting image, and storage medium | |
CN111565282A (en) | Shooting control processing method, device, equipment and storage medium | |
CN105516588A (en) | Photographic processing method and device | |
CN109493324A (en) | Assist method, apparatus, equipment and the computer readable storage medium of hair-cutting |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190319 |