Method and system for trying glasses
The invention discloses a method for trying glasses and a system for trying glasses. The method includes the following steps that: a standardized glasses picture is provided; a face front surface image is acquired; a face detection algorithm and an eye detection algorithm are respectively adopted to...
Gespeichert in:
Hauptverfasser: | , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a method for trying glasses and a system for trying glasses. The method includes the following steps that: a standardized glasses picture is provided; a face front surface image is acquired; a face detection algorithm and an eye detection algorithm are respectively adopted to find out a face rectangular frame and eye rectangular frames, the size of the pixels of the glasses picture is adjusted according to the face rectangular frame, the eye rectangular frames and the relative proportions of the length and width of the pixels; a desired position of the top left corner vertex of the glasses picture is calculated through an empirical formula algorithm according to the relative positions of the two eye rectangular frames in the face rectangular frame; and the adjusted and zoomed glasses picture and the face image are fused, so that an effect picture of a face wearing the glasses can be obtained. According to the method and system of the invention, an OpenCV library is adopted, so that a n |
---|