Drinking detection method and device based on image recognition, medium and equipment
The invention provides a drinking detection method based on image recognition. The method comprises the following steps: taking a facial image by using a color camera lens; collecting face data of n rows and m columns of rectangular areas of a preset area of the face image; generating two groups of...
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 provides a drinking detection method based on image recognition. The method comprises the following steps: taking a facial image by using a color camera lens; collecting face data of n rows and m columns of rectangular areas of a preset area of the face image; generating two groups of RGB and CMYK color space data matrixes of the face data; and calculating face color data according to the face data matrix, and judging whether a user is in a drinking state or not according to the face color data. Compared with the traditional method, the method does not need to add extra hardware equipment, and only needs to embed control software in the existing equipment such as a mobile phone to realize the functions of face image shooting, color analysis, result judgment and the like. According to the method, a drinking detection function can be added on the basis of keeping original equipment functions, and the application field of drinking detection equipment is greatly expanded. Through the method, drinkin |
---|