Liquid soap control method, liquid soap machine and readable storage medium

文档序号:1232776 发布日期:2020-09-11 浏览:17次 中文

阅读说明:本技术 洗手液机控制的方法、洗手液机及可读存储介质 (Liquid soap control method, liquid soap machine and readable storage medium ) 是由 陈小平 吴雪良 林勇进 于 2020-02-29 设计创作,主要内容包括:本申请提供一种洗手液机控制的方法、洗手液机及计算机可读存储介质,通过获取用户的身份信息;基于所述用户的身份信息输出对应类型和/或用量的洗手液,以使所述洗手液机按照所述用户的身份信息自动流出对应类型和/或用量的洗手液,不仅提高了洗手液机的功能,还增强用户的体验感。(The application provides a method for controlling a liquid soap machine, the liquid soap machine and a computer readable storage medium, which are used for acquiring identity information of a user; and outputting the corresponding type and/or dosage of the hand sanitizer based on the identity information of the user so that the hand sanitizer machine can automatically flow out the corresponding type and/or dosage of the hand sanitizer according to the identity information of the user, thereby not only improving the function of the hand sanitizer machine, but also enhancing the experience of the user.)

1. A method of liquid soap dispenser control, comprising:

acquiring identity information of a user;

and outputting the corresponding type and/or dosage of the hand sanitizer based on the identity information of the user.

2. The method of claim 1, wherein outputting a corresponding type and/or amount of cleaning composition based on the identity information of the user comprises:

if the identity information of the user is gender and/or age, determining the type and/or the dosage of the hand sanitizer corresponding to the gender and/or age;

outputting the corresponding type and/or amount of hand sanitizer to the user based on the corresponding type and/or amount of hand sanitizer.

3. The method of claim 2, wherein determining the type and/or amount of the hand sanitizer corresponding to the gender and/or age if the identity information of the user is gender and/or age comprises:

and when the obtained age of the user is smaller than a preset threshold value, determining that the hand sanitizer of the type corresponding to the user is a child hand sanitizer and/or the corresponding dosage is a first preset dosage.

4. The method of claim 2, wherein determining the type and/or amount of the cleaning solution corresponding to the gender and/or age if the identity information of the user is gender and/or age comprises:

when the obtained age of the user is larger than or equal to a preset threshold and the gender of the user is male, determining that the hand sanitizer of the type corresponding to the user is a male hand sanitizer and/or the corresponding usage amount is a second preset usage amount;

and when the obtained age of the user is larger than or equal to a preset threshold and the gender of the user is female, determining that the hand sanitizer of the type corresponding to the user is a female hand sanitizer and/or the corresponding usage amount is a third preset usage amount.

5. The method of claim 1, wherein obtaining identity information of a user comprises:

collecting an image of a user;

acquiring facial features of the user according to the image;

and acquiring the identity information of the user based on the facial features of the user.

6. The method of claim 5, wherein said capturing an image of a user comprises:

detecting users in a preset range in real time based on a preset temperature sensor;

and if the preset temperature sensor detects the user in the preset range, starting a preset camera to acquire the image of the user.

7. The method of claim 5, wherein said capturing an image of a user comprises:

detecting a gesture image of a user in a preset range based on a first preset camera;

and if the gesture image corresponds to a preset gesture image, starting a second preset camera to acquire the image of the user.

8. The method of claim 5, wherein said obtaining facial features of the user from the image comprises:

processing the image to determine a facial region of the user in the image;

based on the face region, a face contour of the user is obtained.

9. The method of claim 5, wherein obtaining the identity information of the user based on the facial features of the user comprises:

matching the face contour with a preset face contour in a preset face contour library;

if a preset face contour matched with the face contour is obtained, reading the identity information of the preset face contour mark;

and taking the identity information as the identity information of the user.

10. A dispenser comprising a camera, a processor, a memory, and a computer program stored on the memory and executable by the processor, wherein the computer program when executed by the processor implements the steps of the dispenser-controlled method of any of claims 1-9.

11. A computer-readable storage medium, having a computer program stored thereon, wherein the computer program, when executed by a processor, performs the steps of the hand sanitizer control method of any of claims 1-9.

Technical Field

The application relates to the technical field of household appliance control, in particular to a method for controlling a liquid soap machine, the liquid soap machine and a computer readable storage medium.

Background

Ensuring hand hygiene is the simplest, safest, most important, most economical, most effective method of preventing and controlling disease. Therefore, it is important to note that hand hygiene is an important step in preventing entry of diseases, and frequent hand washing is the most effective method for preventing invasion of various viruses. However, in all real-life hand cleaners, the corresponding hand cleaners are discharged by calculating the sizes of the hands of the users, but the types of the discharged hand cleaners are the same.

Disclosure of Invention

The application mainly aims to provide a liquid soap control method, a liquid soap machine and a computer readable storage medium, and aims to solve the technical problem that the existing liquid soap machine cannot flow out corresponding types of liquid soap for different users.

In a first aspect, the present application provides a method of sanitizer control, the method of sanitizer control comprising the steps of:

acquiring identity information of a user;

and outputting the corresponding type and/or dosage of the hand sanitizer based on the identity information of the user.

In a second aspect, the present application also provides a dispenser comprising a camera, a processor, a memory, and a computer program stored on the memory and executable by the processor, wherein the computer program, when executed by the processor, implements the steps of the dispenser control method described above.

In a third aspect, the present application also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the hand sanitizer control method as described above.

The application provides a method for controlling a liquid soap machine, the liquid soap machine and a computer readable storage medium, which are used for acquiring identity information of a user; and outputting the corresponding type and/or dosage of the hand sanitizer based on the identity information of the user so that the hand sanitizer machine can automatically flow out the corresponding type and/or dosage of the hand sanitizer according to the identity information of the user, thereby not only improving the function of the hand sanitizer machine, but also enhancing the experience of the user.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.

FIG. 1 is a schematic flow chart of a method for controlling a hand sanitizer according to an embodiment of the present disclosure;

FIG. 2 is a schematic view of a hand sanitizer in an embodiment of the present application;

FIG. 3 is a schematic diagram of a gesture image in an embodiment of the present application;

FIG. 4 is a schematic flow chart diagram of another method for hand sanitizer control provided by embodiments of the present application;

fig. 5 is a block diagram schematically illustrating a structure of a computer device according to an embodiment of the present application.

The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.

Detailed Description

The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.

Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.

Referring to fig. 1, fig. 1 is a schematic flow chart of a method for controlling a hand sanitizer according to an embodiment of the present application.

As shown in fig. 1, the method for controlling the hand sanitizer includes steps S101 to S102.

And step S101, acquiring identity information of the user.

The method comprises the steps of obtaining identity information of a user, wherein the identity information of the user comprises name, age, gender, occupation and the like. The method for acquiring the identity information of the user comprises the following steps: the method comprises the steps of obtaining voice of a user, identifying the voice through a preset voice identification model so as to extract voice characteristics in the voice, obtaining identity information of the user based on the voice characteristics, for example, matching the voice characteristics with preset voice characteristics in a preset voice characteristic library so as to obtain identity information of a matched preset voice characteristic identification, wherein the identity information is used as the identity information of the user.

Or acquiring an image of the acquired user, and acquiring the identity information of the user by identifying the image. For example, a whole body image of the user is acquired, a body contour of the user in the image is acquired by recognizing the image, and the identity information of the user is acquired based on the body contour. For example, the height, shape, and the like of the user are obtained from the body contour, and the user is obtained as a child, an old person, or an adult, or the user is obtained as a male or a female, based on the height, shape, and the like. For another example, a hand image of the user is acquired, and the identity information of the user is obtained based on the hand image of the user. After the hand image of the user is obtained, determining that the identity information of the corresponding user in the hand image is child or adult by measuring the hand image; or, by recognizing the hand image, the identity information of the user is obtained as male or female.

It should be noted that, acquiring the identity information of the user not only collects the voice, the image, and the like of the user, but also includes the user sending the identity information to the user through the terminal, and the like, which is not limited to this.

In one embodiment, the obtaining identity information of the user includes: collecting an image of a user; acquiring facial features of the user according to the image; and acquiring the identity information of the user based on the facial features of the user.

The liquid soap dispenser as shown in fig. 2 includes a camera, and images of a user are collected through a camera image, wherein the number of the cameras is at least one, and the type of the camera is not limited thereto. When the image of the user is obtained, comparing the image of the user with a preset background image to obtain a pixel difference between the image of the user and the preset background image, determining an area of the pixel difference in the image based on the pixel difference and the image of the user, measuring the height and the length of the area, and taking the obtained height and length as the facial features of the user.

When the facial features of the user are obtained, the facial features of the user are matched with preset facial features in a preset facial feature library to obtain preset facial features matched with the facial features of the user, identity information of the preset facial feature identification is obtained, and the identity information is used as identity information of the user. As an example, when the length and height of the face of the user are obtained, a preset facial feature library is obtained, in which the height and length of the face of different users and corresponding identity information, such as name, age, gender, occupation, etc., are recorded in advance. And acquiring identity information corresponding to the preset facial features with the same height and length as the face of the user in a preset facial feature library, and taking the identity information as the identity information of the user.

In one embodiment, acquiring images of fiducials includes: detecting users in a preset range in real time based on a preset temperature sensor; and if the preset temperature sensor detects the user in the preset range, starting a preset camera to acquire the image of the user.

An example is that a temperature sensor is mounted on the hand sanitizer machine in advance, and users within a preset range are detected in real time through the preset temperature sensor. For example, the preset range is set under the liquid outlet of the hand washing machine. When the hand of a user appears under a liquid outlet of the liquid soap machine detected by the preset temperature sensor, the preset camera is started, the image of the current user is collected by the preset camera, and the camera is arranged in the middle or above the liquid soap machine and the like which can collect the image of the user.

In one embodiment, capturing an image of a user comprises: detecting a gesture image of a user in a preset range based on a first preset camera; and if the gesture image corresponds to a preset gesture image, starting a second preset camera to acquire the image of the user.

An example is that a first camera is installed beside a liquid outlet of the hand sanitizer in advance, and a gesture image of a user just below the liquid outlet is acquired in real time or at regular time through the first camera. For example, as shown in fig. 3, when a gesture image of a user is collected by a first preset camera, the gesture image is matched with a preset gesture image in a preset gesture library, if the gesture image is matched with any preset gesture image in the preset gesture library, the preset camera is turned on, and an image of the user is collected by a second preset camera, which may be installed in the middle of the liquid soap dispenser or the like to collect an image of the user, where the image includes the face of the user.

In one embodiment, the image is processed to determine a facial region of the user in the image; based on the face region, a face contour of the user is obtained.

An example is that the image is processed by a preset face model or a preset neural network model, an area where the face of the user is located in the image is determined, and edges of the face area are connected to obtain a face contour of the user, wherein the preset face model and the preset neural network model are obtained by performing face image training in advance.

In one embodiment, obtaining identity information of a user comprises matching the face contour with a preset face contour in a preset face contour library; if a preset face contour matched with the face contour is obtained, reading the identity information of the preset face contour mark; and taking the identity information as the identity information of the user.

An illustrative example is that, when the face contour of the user is obtained, a preset face contour library is acquired. The preset face contour records face contours of a plurality of users and identity information corresponding to each face contour. And comparing the obtained face contour of the user with preset face contours in a preset face wheel library one by one. And acquiring the identity information of the preset face wheel bank identification after the preset face outline matched with the face wheel bank is obtained, wherein the identity information comprises name, age, occupation and the like.

And S102, outputting the hand sanitizer with the corresponding type and/or dosage based on the identity information of the user.

And when the identity information of the user is acquired, outputting the corresponding type and/or dosage of the hand sanitizer based on the identity information of the user. For example, when the acquired identity information of the user is a career, such as a sanitation worker, a nurse, and the like, the type of the hand sanitizer corresponding to the sanitation worker, the nurse, and the like and/or the amount of the hand sanitizer corresponding to the sanitation worker, the nurse, and the like are/is output. And when the acquired occupation of the user is the white collar, outputting the hand sanitizer of the type corresponding to the white collar and/or the hand sanitizer with the corresponding dosage.

When the need arises, the information of the types of hand sanitizer series and/or the information of the corresponding amounts of hand sanitizers required by users of different professions are obtained in advance, and the information is stored in the memory of the hand sanitizer machine, wherein the types of the hand sanitizers are at least two.

In one embodiment, as shown in fig. 4, step S102 includes sub-steps S1021 to S1022.

And a substep S1021, if the identity information of the user is gender and/or age, determining the type and/or the dosage of the hand sanitizer corresponding to the gender and/or the age.

And if the acquired identity information of the user is the sex and/or the age, determining the type of the hand sanitizer corresponding to the sex and/or the age and/or the corresponding amount of the hand sanitizer. For example, when the sex of the user is male, the corresponding type of hand sanitizer is male hand sanitizer, and the corresponding dosage is 10 drops; or when the gender of the user is female, the corresponding type of hand sanitizer is female hand sanitizer, the corresponding dosage is 7 drops, and the like.

In a real-time example, the step of determining the type and/or the dosage of the hand sanitizer corresponding to the gender and/or the age comprises the step of determining that the type of the hand sanitizer corresponding to the user is a child hand sanitizer and/or the corresponding dosage is a first preset dosage when the obtained age of the user is smaller than a preset threshold.

When the obtained age of the user is smaller than a preset threshold, it is determined that the identity information of the user is a child, it is determined that the type of the liquid soap of the user is a child liquid soap, and it is determined that the usage amount of the liquid soap of the user is a first preset usage amount, which is smaller than a standard usage amount, for example, when the standard usage amount is 8 drops, the first preset usage amount is 6 drops or 5 drops, which is not limited to this. For example, when the first preset threshold is 14 years old, the user is determined to be a child whose age is less than 14 years old. If the obtained user is 8 years old, the type of the hand sanitizer of the user is determined to be child hand sanitizer or the dosage of the hand sanitizer is determined to be 5 drops.

In one embodiment, determining the type and/or amount of hand sanitizer corresponding to the gender and/or age comprises: when the obtained age of the user is larger than or equal to a preset threshold and the gender of the user is male, determining that the hand sanitizer of the type corresponding to the user is a male hand sanitizer and/or the corresponding usage amount is a second preset usage amount; and when the obtained age of the user is larger than or equal to a preset threshold and the gender of the user is female, determining that the hand sanitizer of the type corresponding to the user is a female hand sanitizer and/or the corresponding usage amount is a third preset usage amount.

And when the obtained age of the user is larger than a preset threshold value and the gender of the user is male, determining that the hand sanitizer of the type corresponding to the user is a male hand sanitizer and/or the hand sanitizer with the corresponding dosage is a second preset dosage. For example, the preset threshold is 14 years old, when the obtained age of the user is 28 years old, the user is determined to be an adult, and the gender of the user is a male, the type of the hand sanitizer of the user is determined to be male hand sanitizer and/or the usage amount of the hand sanitizer is determined to be 10 preset drops based on the preset hand sanitizer correspondence table, wherein the second preset usage amount is 10 drops, and the preset second usage amount can be adjusted.

And when the obtained age of the user is larger than a preset threshold value and the gender of the user is female, determining that the hand sanitizer of the type corresponding to the user is female hand sanitizer and/or the hand sanitizer with the corresponding dosage is third preset dosage. For example, the preset threshold is 14 years old, when the obtained age of the user is 22 years old, the user is determined to be an adult, and the gender of the user is female, the type of the liquid soap of the user is determined to be female liquid soap and/or the dosage of the liquid soap is determined to be 8 drops of the third preset dosage based on the preset liquid soap correspondence table.

And a substep S1022 of outputting to the user a hand sanitizer of a corresponding type and/or dosage based on the hand sanitizer of the corresponding type and/or dosage.

And after the hand sanitizer of the type corresponding to the user and/or the hand sanitizer with the corresponding dosage are determined, outputting the hand sanitizer of the type corresponding to the user and/or the hand sanitizer with the corresponding dosage to the user. As an example, if it is determined that the type of hand sanitizer corresponding to the user is male hand sanitizer and/or the amount of hand sanitizer corresponding to the user is a second preset amount, outputting the second preset amount of male hand sanitizer to the user; or if the type of the hand sanitizer corresponding to the user is determined to be the female hand sanitizer and/or the amount of the hand sanitizer corresponding to the user is determined to be the third preset amount, outputting the female hand sanitizer with the third preset amount to the user.

In the application, the image of the user is collected, the identity information of the user is obtained from the image, and the corresponding type of the hand sanitizer and/or the corresponding amount of the hand sanitizer are output to the user based on the identity information of the user, so that the hand sanitizer machine can automatically flow out the corresponding type and/or amount of the hand sanitizer according to the identity information of the user, the function of the hand sanitizer machine is improved, and the experience of the user is enhanced.

Referring to fig. 5, fig. 5 is a schematic block diagram of a computer device according to an embodiment of the present disclosure. The computer device is a hand sanitizer machine.

As shown in fig. 5, the computer device includes a camera 305, a processor 302, a memory 303, which may include a nonvolatile storage medium and an internal memory, and a network interface 304 connected through a system bus 301.

The non-volatile storage medium may store an operating system and a computer program. The computer program includes program instructions that, when executed, cause the processor to perform any of the methods of handwash control.

The processor is used for providing calculation and control capability and supporting the operation of the whole computer equipment.

The internal memory provides an environment for the execution of a computer program on a non-volatile storage medium, which when executed by the processor, causes the processor to perform any of the methods for handwash control.

The network interface is used for network communication, such as sending assigned tasks and the like. It will be appreciated by those skilled in the art that the configuration shown in fig. 5 is a block diagram of only a portion of the configuration relevant to the present solution and does not constitute a limitation on the computer apparatus to which the present solution is applied, and in particular the computer apparatus may include more or less components than those shown in the drawings, or combine certain components, or have a different arrangement of components.

It should be understood that the Processor may be a Central Processing Unit (CPU), and the Processor may be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.

Wherein, in one embodiment, the processor is configured to execute a computer program stored in the memory to implement the steps of:

acquiring identity information of a user;

and outputting the corresponding type and/or dosage of the hand sanitizer based on the identity information of the user.

In one embodiment, the processor, in causing the outputting of the corresponding type and/or amount of cleaning composition based on the identity information of the user, is configured to cause:

if the identity information of the user is gender and/or age, determining the type and/or the dosage of the hand sanitizer corresponding to the gender and/or age;

outputting the corresponding type and/or amount of hand sanitizer to the user based on the corresponding type and/or amount of hand sanitizer.

In one embodiment, the processor, when implementing that if the identity information of the user is gender and/or age, determining a type and/or usage of hand sanitizer corresponding to the gender and/or age, is configured to implement:

and when the obtained age of the user is smaller than a preset threshold value, determining that the hand sanitizer of the type corresponding to the user is a child hand sanitizer and/or the corresponding dosage is a first preset dosage.

In one embodiment, if the identity information of the user is gender and/or age, and the type and/or amount of the hand sanitizer corresponding to the gender and/or age is determined, the following steps are performed:

when the obtained age of the user is larger than or equal to a preset threshold and the gender of the user is male, determining that the hand sanitizer of the type corresponding to the user is a male hand sanitizer and/or the corresponding usage amount is a second preset usage amount;

and when the obtained age of the user is larger than or equal to a preset threshold and the gender of the user is female, determining that the hand sanitizer of the type corresponding to the user is a female hand sanitizer and/or the corresponding usage amount is a third preset usage amount.

In one embodiment, the processor, when implementing obtaining identity information of a user, is configured to implement:

collecting an image of a user;

acquiring facial features of the user according to the image;

and acquiring the identity information of the user based on the facial features of the user.

In one embodiment, the processor, in implementing the capturing of the image of the user, is configured to implement:

detecting users in a preset range in real time based on a preset temperature sensor;

and if the preset temperature sensor detects the user in the preset range, starting a preset camera to acquire the image of the user.

In one embodiment, the processor, when effecting acquiring an image of a user, is operative to effect:

detecting a gesture image of a user in a preset range based on a first preset camera;

and if the gesture image corresponds to a preset gesture image, starting a second preset camera to acquire the image of the user.

Detecting a gesture image of a user in a preset range based on a first preset camera;

and if the gesture image corresponds to a preset gesture image, starting a second preset camera to acquire the image of the user.

In one embodiment, the processor, in enabling acquiring facial features of the user from the image, is configured to enable:

processing the image to determine a facial region of the user in the image;

based on the face region, a face contour of the user is obtained.

In one embodiment, the processor, in implementing the obtaining facial features of the user, determining identity information of the user, is configured to implement:

matching the face contour with a preset face contour in a preset face contour library;

if a preset face contour matched with the face contour is obtained, reading the identity information of the preset face contour mark;

and taking the identity information as the identity information of the user.

Embodiments of the present application also provide a computer-readable storage medium, on which a computer program is stored, where the computer program includes program instructions, and when the program instructions are executed, the method implemented may refer to various embodiments of a method for controlling a hand sanitizer according to the present application.

The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, for example, a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the computer device.

It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.

The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.

Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.

The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

12页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:洗手机

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!