Reminding method and electronic equipment

文档序号:1245992 发布日期:2020-08-18 浏览:36次 中文

阅读说明:本技术 提醒方法及电子设备 (Reminding method and electronic equipment ) 是由 侯宇涛 于 2020-05-15 设计创作,主要内容包括:本申请公开了一种提醒方法及电子设备,属于智能控制技术领域,所述方法包括:在接收到第一信息的情况下,获取第二信息;根据所述第二信息,使用前置闪光灯进行提醒;或者,使用后置闪光灯进行提醒;或者,使用闪光提醒以外的提醒方式进行提醒;其中,所述第二信息包括以下至少之一:前置摄像模组采集的第一图像和后置摄像模组采集的第二图像。本申请实施例,可以根据前置摄像模组采集的第一图像和/或后置摄像模组采集的第二图像自动选择合适的闪光灯来进行提醒或选择闪光提醒方式以外的其他提醒方式来进行提醒,提高提醒的有效性,使得用户能够及时接听来电或查看消息。(The application discloses a reminding method and electronic equipment, which belong to the technical field of intelligent control, wherein the method comprises the following steps: under the condition of receiving the first information, acquiring second information; according to the second information, a front-mounted flash lamp is used for reminding; or, a rear flash lamp is used for reminding; or, reminding is carried out by using a reminding mode other than the flash reminding; wherein the second information comprises at least one of: the first image that the leading module of making a video recording gathered and the second image that the rearmounted module of making a video recording gathered. According to the embodiment of the application, the appropriate flash lamp can be automatically selected to remind or other reminding modes except the flash reminding mode can be selected to remind according to the first image acquired by the front camera module and/or the second image acquired by the rear camera module, so that the reminding effectiveness is improved, and a user can answer a call or check a message in time.)

1. A reminding method is characterized by comprising the following steps:

under the condition of receiving the first information, acquiring second information;

according to the second information, a front-mounted flash lamp is used for reminding; or, a rear flash lamp is used for reminding; or, reminding is carried out by using a reminding mode other than the flash reminding;

wherein the second information comprises at least one of: the first image that the leading module of making a video recording gathered and the second image that the rearmounted module of making a video recording gathered.

2. The method of claim 1, wherein the alerting using a front-facing flash according to the second information comprises:

determining whether the front flash lamp is shielded or not according to the first image, and reminding by using the front flash lamp under the condition that the front flash lamp is not shielded;

or determining whether the front flash lamp is shielded according to the first image, determining whether the rear flash lamp is shielded according to the second image, and reminding by using the front flash lamp under the condition that the front flash lamp is not shielded and the rear flash lamp is shielded;

or determining whether the front flash lamp is shielded or not according to the first image, determining whether the rear flash lamp is shielded or not according to the second image, and reminding by using the front flash lamp under the condition that the front flash lamp and the rear flash lamp are not shielded.

3. The method of claim 1, wherein the alerting using a back flash according to the second information comprises:

determining whether the rear flash lamp is shielded or not according to the second image, and reminding by using the rear flash lamp under the condition that the rear flash lamp is not shielded;

or determining whether the front flash lamp is shielded or not according to the first image, determining whether the rear flash lamp is shielded or not according to the second image, and reminding by using the rear flash lamp under the condition that the front flash lamp is shielded and the rear flash lamp is not shielded;

or determining whether the front flash lamp is shielded or not according to the first image, determining whether the rear flash lamp is shielded or not according to the second image, and reminding by using the rear flash lamp under the condition that the front flash lamp and the rear flash lamp are both shielded;

or determining whether the front flash lamp is shielded or not according to the first image, determining whether the rear flash lamp is shielded or not according to the second image, and reminding by using the rear flash lamp under the condition that the front flash lamp and the rear flash lamp are not shielded.

4. The method of claim 1, wherein alerting using an alerting method other than a flashing alert based on the second information comprises:

and determining whether the front flash lamp is shielded or not according to the first image, determining whether the rear flash lamp is shielded or not according to the second image, and reminding by using a reminding mode except flash reminding under the condition that the front flash lamp and the rear flash lamp are both shielded.

5. The method according to any of claims 2-4, wherein the determining from the first image whether the front flash is occluded comprises:

acquiring the number of black pixels in the first image;

and determining that the front flash lamp is shielded under the condition that the number of black pixels in the first image is greater than or equal to a first preset value.

6. The method according to any of claims 2-4, wherein the determining from the second image whether the rear flash is occluded comprises:

acquiring the number of black pixels in the second image;

and under the condition that the number of black pixels in the second image is greater than or equal to a second preset value, determining that the rear flash lamp is shielded.

7. An electronic device, comprising:

the acquisition module is used for acquiring second information under the condition of receiving the first information;

the reminding module is used for reminding by using a front-mounted flash lamp according to the second information; or, a rear flash lamp is used for reminding; or, reminding is carried out by using a reminding mode other than the flash reminding;

wherein the second information comprises at least one of: the device comprises a first image collected by a front camera module and a second image collected by a rear camera module.

8. The electronic device of claim 7, wherein the reminder module comprises:

a first determination unit configured to determine whether the front flash is occluded according to the first image; the first reminding unit is used for reminding by using the front flash lamp under the condition that the front flash lamp is not shielded;

or, a first determining unit, configured to determine whether the front flash is occluded according to the first image; a second determination unit configured to determine whether the rear flash is blocked according to the second image; the second reminding unit is used for reminding by using the front flash lamp under the condition that the front flash lamp is not shielded and the rear flash lamp is shielded;

or, a first determining unit, configured to determine whether the front flash is occluded according to the first image; a second determination unit configured to determine whether the rear flash is blocked according to the second image; and the third reminding unit is used for reminding by using the front flash lamp under the condition that the front flash lamp and the rear flash lamp are not shielded.

9. The electronic device of claim 7, wherein the reminder module comprises:

a second determination unit configured to determine whether the rear flash is blocked according to the second image; the fourth reminding unit is used for reminding by using the rear flash lamp under the condition that the rear flash lamp is not shielded;

or, a first determining unit, configured to determine whether the front flash is occluded according to the first image; a second determination unit configured to determine whether the rear flash is blocked according to the second image; the fifth reminding unit is used for reminding by using the rear flash lamp under the condition that the front flash lamp is shielded and the rear flash lamp is not shielded;

or, a first determining unit, configured to determine whether the front flash is occluded according to the first image; a second determination unit configured to determine whether the rear flash is blocked according to the second image; the sixth reminding unit is used for reminding by using a rear flash lamp under the condition that the front flash lamp and the rear flash lamp are both blocked;

or, a first determining unit, configured to determine whether the front flash is occluded according to the first image; a second determination unit configured to determine whether the rear flash is blocked according to the second image; and the seventh reminding unit is used for reminding by using the rear flash lamp under the condition that the front flash lamp and the rear flash lamp are not shielded.

10. The electronic device of claim 7, wherein the reminder module comprises:

a first determination unit configured to determine whether the front flash is occluded according to the first image; a second determination unit configured to determine whether the rear flash is blocked according to the second image; and the sixth reminding unit is used for reminding by using a reminding mode except for flash reminding under the condition that the front flash lamp and the rear flash lamp are both blocked.

11. The electronic device according to any one of claims 8-10, wherein the first determination unit includes:

the first acquisition subunit is used for acquiring the number of black pixels in the first image;

the first judging subunit is used for determining that the front flash lamp is blocked under the condition that the number of black pixels in the first image is greater than or equal to a first preset value.

12. The electronic device according to any one of claims 8-10, wherein the second determination unit includes:

the second acquisition subunit is used for acquiring the number of black pixels in the second image;

and the second judging subunit is used for determining that the rear flash lamp is shielded under the condition that the number of black pixels in the second image is greater than or equal to a second preset value.

13. An electronic device comprising a processor, a memory and a program stored on the memory and executable on the processor, the program, when executed by the processor, implementing the steps in the reminder method according to any one of claims 1 to 6.

14. A readable storage medium, on which a program is stored, which when executed by a processor implements the steps in the reminder method according to any one of claims 1 to 6.

19页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:信息处理装置、方法和系统

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!