Disclosure of Invention
In order to solve the related technical problems in the prior art, the invention provides a face shape matching system using cloud storage, which can judge whether a face shaping operation selected by a user is suitable for the face shape of the user, so that the face shaping effect is ensured, the arrangement of the face shaping operation of the user is reduced, and the original face of the face shape of the user is maintained as much as possible.
For this reason, the present invention needs to have at least the following key points:
(1) performing the same analysis processing of the face organ layout drawing on the face-lifting reference pattern selected by the user as the face-lifting target face and the face pattern of the user himself so as to provide valuable reference data for whether the face-lifting target face is suitable for the current user;
(2) and when the matching degree of the user face organ layout diagram and the reference face organ layout diagram is over, sending a reference pattern available instruction to determine that the face shaping target face shape is applicable to the face shaping reference of the current user.
According to an aspect of the present invention, there is provided a face matching system using cloud storage, the system including:
a manual setting mechanism for selecting a reference cosmetic pattern preferred by a user from the pattern database as a cosmetic reference pattern under a manual operation of the user;
the cloud storage device is connected with the manual setting mechanism through a network and is used for storing the pattern database, and each reference face-lifting pattern corresponding to each face-lifting face is stored in the pattern database;
the data uploading device is connected with the cloud storage device through a network and is used for uploading a new reference cosmetic pattern edited by a worker;
the cloud storage device is further used for updating a pattern database stored in the cloud storage device in real time based on the received new reference face-lifting pattern;
a first identifying mechanism for acquiring a face pattern of a user, and identifying an occupation region of a left eye in the face pattern and an occupation region of a right eye in the face pattern from the face pattern based on eye geometry to output as a first region and a second region, respectively;
a second authentication mechanism for acquiring a face pattern of the user and recognizing an occupation region of the mouth in the face pattern from the face pattern based on a geometry of the mouth to output as a third region;
a third identifying mechanism for acquiring a face pattern of the user and identifying an occupied area of the nose in the face pattern from the face pattern based on the nose geometry to output as a fourth area;
a content parsing device, connected to the first authentication mechanism, the second authentication mechanism and the third authentication mechanism, respectively, for drawing a user facial organ layout based on a position of a centroid of the first region in the face pattern, a position of a centroid of the second region in the face pattern, a position of a centroid of the third region in the face pattern and a position of a centroid of the fourth region in the face pattern;
wherein, replacing the face pattern, the content analysis device, the first authentication mechanism, the second authentication mechanism and the third authentication mechanism are further used for executing the same processing on the face-lifting reference pattern to obtain a reference face organ layout corresponding to the face-lifting reference pattern;
and the command extraction mechanism is respectively connected with the manual setting mechanism and the content analysis equipment and is used for sending out a reference pattern available command when the matching degree of the user face organ layout drawing and the reference face organ layout drawing exceeds the limit.
According to another aspect of the present invention, there is also provided a face matching terminal using cloud storage, the terminal including: a memory and a processor, the processor coupled to the memory; the memory for storing executable instructions of the processor; the processor is configured to invoke the executable instructions in the memory to implement a method for determining whether a reference cosmetic face currently selected by a user is applicable to the user itself based on a custom data content matching mechanism using the cloud-stored face matching system as described above.
The face matching system utilizing cloud storage and the corresponding terminal are compact in structure and logical identification. Whether the face-beautifying execution selected by the user is suitable for the face shape of the user can be judged, so that the original face of the face shape of the user can be maintained as much as possible while the face-beautifying effect is ensured.
Detailed Description
Embodiments of a face matching system using cloud storage and a corresponding terminal according to the present invention will be described in detail with reference to the accompanying drawings.
Cosmetic surgery, also known as reconstructive surgery or reconstructive surgery, is mainly used for treating wounds, diseases, such as skin, muscle and bone, congenital or acquired tissue or organ defects and deformities. The treatment comprises two contents of repair and reconstruction. The therapeutic range of plastic surgery (plastic surgery) is mainly wounds, diseases, congenital or acquired tissue or organ defects and malformations, such as skin, muscle and bone. The treatment includes both repair and reconstruction, and surgical approaches to autologous tissue transplantation, allogenic, xenogenic or tissue substitutes may also be used to repair tissue defects or malformations resulting from various causes to improve or restore physiological function and appearance.
However, the current face-lifting design does not consider the original face shape of each face-lifting user, such as the face shape layout and the shape and size of each human body component, so that the face-lifting effect is uniform, various face-lifting faces without individuality appear, and the original face and characteristics of the user cannot be reserved.
In order to overcome the defects, the invention provides a face matching system utilizing cloud storage and a corresponding terminal, and can effectively solve the corresponding technical problem.
Fig. 1 is a schematic structural diagram of a face matching system using cloud storage according to an embodiment of the present invention, where the face matching system includes:
a manual setting mechanism for selecting a reference cosmetic pattern preferred by a user from the pattern database as a cosmetic reference pattern under a manual operation of the user;
the cloud storage device is connected with the manual setting mechanism through a network and is used for storing the pattern database, and each reference face-lifting pattern corresponding to each face-lifting face is stored in the pattern database;
the data uploading device is connected with the cloud storage device through a network and is used for uploading a new reference cosmetic pattern edited by a worker;
the cloud storage device is further used for updating a pattern database stored in the cloud storage device in real time based on the received new reference face-lifting pattern;
a first identifying mechanism for acquiring a face pattern of a user, and identifying an occupation region of a left eye in the face pattern and an occupation region of a right eye in the face pattern from the face pattern based on eye geometry to output as a first region and a second region, respectively;
a second authentication mechanism for acquiring a face pattern of the user and recognizing an occupation region of the mouth in the face pattern from the face pattern based on a geometry of the mouth to output as a third region;
a third identifying mechanism for acquiring a face pattern of the user and identifying an occupied area of the nose in the face pattern from the face pattern based on the nose geometry to output as a fourth area;
a content parsing device, connected to the first authentication mechanism, the second authentication mechanism and the third authentication mechanism, respectively, for drawing a user facial organ layout based on a position of a centroid of the first region in the face pattern, a position of a centroid of the second region in the face pattern, a position of a centroid of the third region in the face pattern and a position of a centroid of the fourth region in the face pattern;
wherein, replacing the face pattern, the content analysis device, the first authentication mechanism, the second authentication mechanism and the third authentication mechanism are further used for executing the same processing on the face-lifting reference pattern to obtain a reference face organ layout corresponding to the face-lifting reference pattern;
and the command extraction mechanism is respectively connected with the manual setting mechanism and the content analysis equipment and is used for sending out a reference pattern available command when the matching degree of the user face organ layout drawing and the reference face organ layout drawing exceeds the limit.
Next, a detailed structure of the face matching system using cloud storage according to the present invention will be further described.
In the face matching system using cloud storage:
the command extraction mechanism is further used for sending out a reference pattern unavailable instruction when the matching degree of the user face organ layout map and the reference face organ layout map is not over limit.
The face matching system using cloud storage may further include:
and the power supply device is respectively connected with the content analysis device and the third identification mechanism and is used for respectively providing different input voltages for the content analysis device and the third identification mechanism according to the requirements of the input voltages of the content analysis device and the third identification mechanism.
In the face matching system using cloud storage:
the power supply apparatus includes a power supply unit, a voltage conversion unit, and a voltage output unit, the power supply unit being connected with the voltage conversion unit.
In the face matching system using cloud storage:
the voltage conversion unit comprises a user input interface and a voltage conversion circuit, and the user input interface is used for receiving various manually input required voltage values.
In the face matching system using cloud storage:
the voltage conversion circuit is connected with the user input interface and is used for performing different voltage reduction conversion operations on input voltage provided by the power supply equipment based on the received various required voltage values;
the power supply equipment further comprises a voltage stabilizing circuit which is arranged at the front end of the voltage conversion unit and used for providing stable input voltage for the voltage conversion unit.
In the face matching system using cloud storage:
the content analysis equipment is internally provided with a power-saving control unit which is used for switching the content analysis equipment from a working state to a dormant state when receiving a dormant control command.
In the face matching system using cloud storage:
the power saving control unit is further configured to switch the content analysis device from a sleep state to a working state when receiving a wake-up control command.
The face matching system using cloud storage may further include:
a data storage card provided in the middle of the content analysis device and the third authentication mechanism, for storing input signals and output signals of the content analysis device and the third authentication mechanism;
the data memory card is one of an SD memory card, a FLASH memory card, an MMC memory card and a TF memory card.
Meanwhile, in order to overcome the defects, the invention also builds a face type matching terminal using cloud storage, and the terminal comprises: a memory and a processor, the processor coupled to the memory;
wherein the memory is used for storing executable instructions of the processor;
the processor is configured to invoke the executable instructions in the memory to implement a method for determining whether a reference cosmetic face currently selected by a user is suitable for the user based on a customized data content matching mechanism using the cloud-stored face matching system as described above.
In addition, FLASH memory chips are nonvolatile memories, and blocks of memory cells called blocks can be erased and reprogrammed. The write operation of any FLASH device can only be performed in empty or erased cells, so in most cases, the erase must be performed before the write operation can be performed. While it is simple for a NAND device to perform an erase operation, NOR requires that all bits in the target block be written to 0 before an erase can be performed. Since erasing NOR devices is performed in blocks of 64-128 KB, the time for performing a write/erase operation is 5s, whereas erasing NAND devices is performed in blocks of 8-32 KB, which requires only 4ms at most to perform the same operation. The difference in block size when performing erasures further increases the performance gap between NOR and NADN, and statistics show that for a given set of write operations (especially when updating small files), more erase operations must be performed in NOR-based cells.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.