


技术领域technical field
本发明涉及一种利用图像识别技术来控制摇篮摇摆状态的摇篮装置及其方法,特别涉及一种利用图像识别技术来判断婴儿是否进入睡眠状态以控制摇篮摇摆状态的摇篮装置及其方法。The present invention relates to a cradle device and its method for controlling the swaying state of the cradle by using image recognition technology, in particular to a cradle device and its method for controlling the swaying state of the cradle by using the image recognition technology to determine whether a baby is in a sleeping state.
背景技术Background technique
一般来说,带过婴儿的人都有这样的经验,就是当婴儿要睡觉的时候会将婴儿放入摇篮内,而以手动的方式来摇摇篮,以让婴儿比较容易入睡,而且在摇摇篮的过程中,必须随时注意婴儿的入睡状况,例如当婴儿进入熟睡状态时,便可停止摇动摇篮,以避免婴儿在沉睡当中因为摇篮晃动而受到惊吓,或是婴儿会习惯于熟睡时还需要大人继续摇动摇篮,而造成大人们沉重的负担,尤其是在三更半夜时需亲自在摇篮旁摇动摇篮,更是相当地不便。Generally speaking, people who have taken babies have the experience that when the baby is going to sleep, they will put the baby in the cradle, and shake the cradle manually to make it easier for the baby to fall asleep, and when the baby is shaking the cradle During the process of sleeping, you must always pay attention to the baby's falling asleep status. For example, when the baby falls asleep, you can stop shaking the cradle to avoid the baby being frightened by the shaking of the cradle while sleeping, or when the baby gets used to sleeping and needs an adult to Continue to rock the cradle, and cause the heavy burden of adults, especially in the middle of the night, it is quite inconvenient to shake the cradle by the cradle in person.
发明内容Contents of the invention
本发明提供一种利用图像识别技术来判断婴儿是否进入睡眠状态以控制摇篮摇摆状态的摇篮装置及其方法,以解决上述的问题。The present invention provides a cradle device and method for controlling the swaying state of the cradle by using image recognition technology to determine whether the baby is in a sleep state, so as to solve the above problems.
本发明揭露一种利用图像识别技术来控制摇篮摇摆状态的摇篮装置,其包含有一摇篮,一图像撷取模块,用来撷取一图像数据,一图像识别模块,用来识别该图像撷取模块所撷取的该图像数据,一摇篮驱动模块,用来驱动该摇篮的摇摆运动,以及一控制模块,耦合于该图像识别模块及该摇篮驱动模块,用来依据该图像识别模块识别该图像数据的结果控制该摇篮驱动模块。The present invention discloses a cradle device using image recognition technology to control the swaying state of the cradle, which includes a cradle, an image capture module for capturing image data, and an image recognition module for identifying the image capture module The captured image data, a cradle drive module, used to drive the swing motion of the cradle, and a control module, coupled to the image recognition module and the cradle drive module, used to identify the image data according to the image recognition module The result controls the cradle drive module.
本发明黑揭露一种利用图像识别技术控制一摇篮摇摆状态的方法,其包含下列步骤:(a)撷取一图像数据;(b)识别在步骤(a)所撷取的该图像数据;以及(c)依据步骤(b)的识别结果控制该摇篮的摇摆状态。The present invention discloses a method for controlling the rocking state of a cradle using image recognition technology, which includes the following steps: (a) capturing an image data; (b) identifying the image data captured in step (a); and (c) Controlling the rocking state of the cradle according to the identification result of step (b).
附图说明Description of drawings
图1为本发明摇篮装置的功能方块示意图。FIG. 1 is a functional block diagram of the cradle device of the present invention.
图2为本发明摇篮装置的外观示意图。Fig. 2 is a schematic diagram of the appearance of the cradle device of the present invention.
图3为本发明利用图像识别技术控制摇篮的摇摆状态的流程图。Fig. 3 is a flow chart of the present invention using image recognition technology to control the rocking state of the cradle.
图4为步骤114所得出的眼睛图像轮廓的示意图。FIG. 4 is a schematic diagram of the contour of the eye image obtained in
附图符号说明:Explanation of reference symbols:
10 摇篮装置 12 摇篮10
14 图像撷取模块 16 镜头14
18 图像传感器 20 图像识别模块18
22 摇篮驱动模块 24 马达22 Cradle Drive
26 马达控制单元 28 存储模块26
30 控制模块 32 支架30
34 杆件 36 固定杆34
38 脸部区域检测单元 40 眼睛区域检测单元38 Face
具体实施方式Detailed ways
请参阅图1与图2,图1为本发明一种利用图像识别技术来控制摇篮摇摆状态的摇篮装置10的功能方块示意图,图2为本发明摇篮装置10的外观示意图。摇篮装置10包含一摇篮12,用来承载婴儿,一图像撷取模块14,用来撷取图像数据,其可为一摄像机或一照相机,图像撷取模块14包含一镜头16,用来接收欲撷取图像所发射或反射的光线,以及一图像传感器18,用来将镜头16所接收的光线转换成电气信号,图像传感器18可包含至少一感光耦合组件(charge coupled device,CCD),或至少一互补金属氧化物半导体(complementary metal-oxide semiconductor,CMOS)等。摇篮装置10另包含一图像识别模块20,用来识别图像撷取模块14所撷取的图像数据,其可以是一程序代码或逻辑电路等,以及一摇篮驱动模块22,用来驱动摇篮12的摇摆运动,摇篮驱动模块22是包含一马达24,其可以是一环状转圜的直流马达(DC motor),藉以摇动摇篮12,以及一马达控制单元26,用来接收控制信号以控制马达24的动作。摇篮装置10另包含一存储模块28,用来储存图像撷取模块14所撷取的图像数据以及做为图像识别模块20处理数据时的数据暂存空间,以及一控制模块30,耦合于图像识别模块20及摇篮驱动模块22,用来依据图像识别模块20识别图像撷取模块14所撷取的图像数据的结果控制摇篮驱动模块22,藉以控制摇篮12的摆动。此外,摇篮装置10另包含一支架32,一杆件34,以可转动的方式连接于支架32,以及一固定杆36,连接于杆件34与摇篮12,用来承载摇篮12,其中图像撷取模块14是安装在杆件34上,且摇篮驱动模块22是连接于杆件34与固定杆36,而摇篮驱动模块22可以X轴作为旋转轴且如图2箭头方向所示进行转动(rolling),藉以带动固定杆36进行来回摆动而摇摆摇篮12,且可带动杆件34进行转动,以使杆件34上的图像撷取模块14可一直同步对准摇篮12中的婴儿,而连续撷取婴儿的图像特征。此外,图像撷取模块14所撷取的图像数据可以是婴儿脸部的图像数据,而图像识别模块20另包含一脸部区域检测单元38,用来撷取脸部的图像特征信息,以及一眼睛区域检测单元40,用来由脸部区域检测单元38所撷取出的脸部的图像特征信息中撷取出眼睛的图像特征信息,其中控制模块30是用来依据该眼睛的图像特征信息控制摇篮驱动模块22。Please refer to FIG. 1 and FIG. 2 . FIG. 1 is a functional block diagram of a
请参阅图3,图3为本发明利用图像识别技术控制摇篮12的摇摆状态的流程图,该方法包含下列步骤:Please refer to Fig. 3, Fig. 3 is the flow chart that the present invention utilizes image recognition technology to control the rocking state of
步骤100:开始。Step 100: start.
步骤102:利用图像撷取模块14撷取摇篮12中婴儿的脸部图像数据。Step 102: Use the
步骤104:图像识别模块20的脸部区域检测单元38依据肤色范围撷取出步骤102中图像撷取装置14所撷取的脸部图像数据的图像特征信息。Step 104: The face
步骤106:图像识别模块20的眼睛区域检测单元40依据脸部区域检测单元38所撷取出的脸部图像特征信息产生一眼睛区域图像。Step 106 : The eye
步骤108:利用Sobel边缘强化法(Sobel edge enhancement)处理步骤106所得出的该眼睛区域图像。Step 108: Process the eye region image obtained in step 106 by Sobel edge enhancement.
步骤110:利用二值化处理法处理步骤108所产生的图像数据。Step 110: Process the image data generated in
步骤112:撷取步骤110所产生的图像数据的边缘特征点。Step 112: Extract edge feature points of the image data generated in
步骤114:利用蛇模型(snake model)处理法处理步骤112所产生的图像数据以产生眼睛图像的轮廓。Step 114: Process the image data generated in
步骤116:判断步骤114中所得出的该眼睛图像的轮廓的宽度/长度比是否大于一预定值,若是执行步骤118;若不是则执行步骤120。Step 116: Determine whether the width/length ratio of the outline of the eye image obtained in
步骤118:控制模块30控制摇篮驱动模块22,藉以驱动摇篮12进行摇摆动作。Step 118: The
步骤120:控制模块30控制摇篮驱动模块22,藉以控制摇篮12停止摇摆动作。Step 120: the
步骤122:结束。Step 122: end.
在此对上述步骤做一详细的说明,首先图像撷取模块14可被架设在杆件34上如图2中所示对准摇篮12中婴儿脸部的位置,藉以撷取摇篮12中婴儿的脸部图像数据,而摇篮12在摇摆的过程中由于杆件34与固定杆36会被摇篮驱动模块22同步带动,故杆件34与摇篮12亦会同步摇摆而使得图像撷取模块14可一直对准摇篮12中婴儿脸部的位置,因此可设定每间隔一段时间便利用图像撷取模块14撷取摇篮12中婴儿的脸部图像数据。而图像撷取模块14所撷取的婴儿的脸部图像数据可储存在存储模块28,之后图像识别模块20的脸部区域检测单元38便可依据肤色范围撷取出步骤102中图像撷取装置14所撷取的脸部图像数据的图像特征信息,举例来说,利用现有的肤色理论,依据统计数据中肤色可能的范围,判断步骤102中图像撷取装置14所撷取的脸部图像数据中哪些像素的Cr与Cb值座落在肤色可能的Cr、Cb值范围内,而取得脸部图像数据的图像特征信息(脸部的大小范围),其中,可设定该脸部图像数据的图像特征信息中脸部肤色部分为白色,其余部分为黑色等。接下来,图像识别模块20的眼睛区域检测单元40可依据脸部区域检测单元38所撷取出的脸部图像特征信息产生该眼睛区域图像,意即可在脸部肤色部分的白色区域中找到两个黑色区域的眼睛区域图像,之后再利用传统的一些图像处理方法对该眼睛区域图像进行图像处理,而得出眼睛图像的外部轮廓,例如在此实施例中可利用Sobel边缘强化法(Sobel edge enhancement)处理步骤106所得出的该眼睛区域图像,再利用二值化处理法处理步骤108所产生的图像数据,再撷取步骤110所产生的图像数据的边缘特征点,最后再利用蛇模型(snake model)处理法处理步骤112所产生的图像数据以产生眼睛图像的轮廓。而由该脸部图像数据产生出该眼睛区域图像,以及由该眼睛区域图像中撷取出眼睛图像的轮廓的图像处理方法,可不局限于上述的图像处理方法,在此不再详述。Here, the above-mentioned steps are described in detail. First, the
而所得到的眼睛图像轮廓便为判断婴儿是否进入睡眠状态的主要依据,请参阅图4,图4为步骤114所得出的眼睛图像轮廓的示意图,由该眼睛图像轮廓最外围的边缘特征点可得出一长度L以及一宽度W,当该眼睛图像轮廓的宽度/长度比(W/L)大于该预定值时,则代表婴儿的眼睛尚未阖上,故婴儿此时并未进入睡眠状态;反之,当该眼睛图像轮廓的宽度/长度比(W/L)小于该预定值时,则代表婴儿的眼睛已经阖上,故婴儿此时已进入睡眠状态。之后,控制模块30便可依据该眼睛图像轮廓的宽度/长度比(W/L)与该预定值的比较结果,来控制摇篮驱动模块22的动作,当该眼睛图像轮廓的宽度/长度比(W/L)大于该预定值时,由于此时判定婴儿并未进入睡眠状态,故控制模块30可输出一控制信号至摇篮驱动模块22的马达控制单元26,藉以控制马达24继续转动而驱动摇篮12以进行摇摆动作;而当眼睛图像轮廓的宽度/长度比(W/L)小于该预定值时,由于此时判定婴儿已进入睡眠状态,故控制模块30可输出一控制信号至摇篮驱动模块22的马达控制单元26,藉以控制马达24停止转动而停止驱动摇篮12的摇摆。除此之外,亦可设计为控制模块30可依据眼睛图像轮廓的宽度/长度比(W/L)来控制摇篮驱动模块22的马达24的运转速度,例如当眼睛图像轮廓的宽度/长度比(W/L)越大时,则代表婴儿现正处于清醒的状态,故可控制摇篮驱动模块22的马达24的运转速度较快,而使摇篮12的摆动幅度或摆动频率较大,以帮助婴儿入睡;若当眼睛图像轮廓的宽度/长度比(W/L)越小时,则代表婴儿现正处于慢慢入睡的状态,故可控制摇篮驱动模块22的马达24的运转速度较慢,而使摇篮12的摆动幅度或摆动频率较小,以避免婴儿在沉睡当中因为摇篮12晃动而受到惊吓,或是婴儿会养成熟睡时还需要摇篮12继续摇动的习惯。And the obtained eye image outline is just the main basis for judging whether the baby enters sleep state, please refer to Fig. 4, Fig. 4 is the schematic diagram of the eye image outline that
相较于现有的摇篮装置,本发明的利用图像识别技术来控制摇篮摇摆状态的摇篮装置,可自动判断婴儿是否进入睡眠状态而实时地控制摇篮摇摆状态,故大人们不必亲自在摇篮旁摇动摇篮,而达到人性化控制摇篮摆动的机制。Compared with the existing cradle device, the cradle device of the present invention uses image recognition technology to control the cradle swing state, which can automatically determine whether the baby is in a sleep state and control the cradle swing state in real time, so adults do not have to rock beside the cradle Cradle, and achieve the mechanism of humanized control of the swing of the cradle.
以上所述仅为本发明的较佳实施例,凡依本发明申请专利范围所做的均等变化与修饰,皆应属本发明专利的涵盖范围。The above descriptions are only preferred embodiments of the present invention, and all equivalent changes and modifications made according to the scope of the patent application of the present invention shall fall within the scope of the patent of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 200610075286CN101057736A (en) | 2006-04-18 | 2006-04-18 | Cradle device and method for controlling cradle swing state by using image recognition technology |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 200610075286CN101057736A (en) | 2006-04-18 | 2006-04-18 | Cradle device and method for controlling cradle swing state by using image recognition technology |
| Publication Number | Publication Date |
|---|---|
| CN101057736Atrue CN101057736A (en) | 2007-10-24 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN 200610075286PendingCN101057736A (en) | 2006-04-18 | 2006-04-18 | Cradle device and method for controlling cradle swing state by using image recognition technology |
| Country | Link |
|---|---|
| CN (1) | CN101057736A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101794384A (en)* | 2010-03-12 | 2010-08-04 | 浙江大学 | Shooting action identification method based on human body skeleton map extraction and grouping motion diagram inquiry |
| CN104665375A (en)* | 2013-12-03 | 2015-06-03 | 哈尔滨智木科技有限公司 | Intelligent crib |
| CN109059763A (en)* | 2018-08-08 | 2018-12-21 | 浙江科技学院 | The method and device of mobile phone for measuring size based on laser ranging and image comparison |
| US10238341B2 (en) | 2016-05-24 | 2019-03-26 | Graco Children's Products Inc. | Systems and methods for autonomously soothing babies |
| CN110400262A (en)* | 2019-04-10 | 2019-11-01 | 泰州市康平医疗科技有限公司 | Identification device based on customized data processing |
| CN111209881A (en)* | 2020-01-13 | 2020-05-29 | 深圳市雄帝科技股份有限公司 | Method and system for detecting eye state in image |
| CN111814511A (en)* | 2019-04-10 | 2020-10-23 | 泰州市康平医疗科技有限公司 | Identification method based on customized data processing |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101794384A (en)* | 2010-03-12 | 2010-08-04 | 浙江大学 | Shooting action identification method based on human body skeleton map extraction and grouping motion diagram inquiry |
| CN104665375A (en)* | 2013-12-03 | 2015-06-03 | 哈尔滨智木科技有限公司 | Intelligent crib |
| US10238341B2 (en) | 2016-05-24 | 2019-03-26 | Graco Children's Products Inc. | Systems and methods for autonomously soothing babies |
| CN109059763A (en)* | 2018-08-08 | 2018-12-21 | 浙江科技学院 | The method and device of mobile phone for measuring size based on laser ranging and image comparison |
| CN110400262A (en)* | 2019-04-10 | 2019-11-01 | 泰州市康平医疗科技有限公司 | Identification device based on customized data processing |
| CN111814511A (en)* | 2019-04-10 | 2020-10-23 | 泰州市康平医疗科技有限公司 | Identification method based on customized data processing |
| CN111814511B (en)* | 2019-04-10 | 2021-02-23 | 青岛大学附属医院 | Identification method based on customized data processing |
| CN111209881A (en)* | 2020-01-13 | 2020-05-29 | 深圳市雄帝科技股份有限公司 | Method and system for detecting eye state in image |
| Publication | Publication Date | Title |
|---|---|---|
| CN101057736A (en) | Cradle device and method for controlling cradle swing state by using image recognition technology | |
| CN103905733B (en) | A kind of method and system of monocular cam to real time face tracking | |
| CN110348270B (en) | Image object identification method and image object identification system | |
| CN102930256B (en) | Face recognition device and face image recognition method | |
| CN104639835B (en) | Image tracking system and image tracking method | |
| CN105306796A (en) | Night vision equipment with regular infrared illumination function and global shutter CMOS (Complementary Metal Oxide Semiconductor) sensor | |
| CN102868857A (en) | Electronic device and method for operating the electronic device | |
| CN103079034A (en) | Perception shooting method and system | |
| CN1542678A (en) | Verification object image pickup device and method thereof | |
| JP2007186916A (en) | Window image area detection device and power window device | |
| CN114079709B (en) | Driver mechanism for rolling shutter sensor to acquire structured light patterns | |
| JP2003150942A (en) | Eye position tracing method | |
| CN109426797B (en) | Drowsiness detection device and drowsiness detection method thereof | |
| US20240048672A1 (en) | Adjustment of shutter value of surveillance camera via ai-based object recognition | |
| CN103886567A (en) | Method for repairing periodical noise in image | |
| WO2018099247A1 (en) | Projection control method and device | |
| CN100589135C (en) | Automatic doorbell and its realization method | |
| KR102603793B1 (en) | System and method for providing video for small exhibitions | |
| CN108259769B (en) | Image processing method, device, storage medium and electronic device | |
| JP2004228770A (en) | Image processing system | |
| TW201916669A (en) | Method and apparatus for gaze recognition and interaction | |
| CN112532932A (en) | Monitoring device with target tracking function | |
| CN120614516A (en) | Control device, operating method of control device, storage medium, computer program product, camera device and display device | |
| Hizem et al. | Specific sensors for face recognition | |
| CN100442819C (en) | Interlock |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
| WD01 | Invention patent application deemed withdrawn after publication |