[go: up one dir, main page]

CN102406456B - Human vision principle-based method and device for automatically controlling egg frying fire - Google Patents

Human vision principle-based method and device for automatically controlling egg frying fire Download PDF

Info

Publication number
CN102406456B
CN102406456B CN 201110228212 CN201110228212A CN102406456B CN 102406456 B CN102406456 B CN 102406456B CN 201110228212 CN201110228212 CN 201110228212 CN 201110228212 A CN201110228212 A CN 201110228212A CN 102406456 B CN102406456 B CN 102406456B
Authority
CN
China
Prior art keywords
eggs
camera
egg
gray value
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN 201110228212
Other languages
Chinese (zh)
Other versions
CN102406456A (en
Inventor
董军宇
姚康
胥志伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ocean University of China
Original Assignee
Ocean University of China
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ocean University of China filed Critical Ocean University of China
Priority to CN 201110228212 priority Critical patent/CN102406456B/en
Publication of CN102406456A publication Critical patent/CN102406456A/en
Application granted granted Critical
Publication of CN102406456B publication Critical patent/CN102406456B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Frying-Pans Or Fryers (AREA)

Abstract

The invention discloses a human vision principle-based method and a human vision principle-based device for automatically controlling egg frying fire. The method comprises the following steps of: analyzing a histogram of a shot egg frying image, wherein when a gray value between 40 and 60 accounts for more than 1.6 percent of the whole image, an egg is burnt and heating is stopped; and monitoring whether a gray value between 180 and 210 accounts for 0.8 percent of the whole image, if so, the egg is medium, if the gray value between 180 and 210 accounts for 0.9 percent of the whole image, indicating that the egg is medium well, if the gray value between 180 and 210 accounts for more than 1 percent, indicating that the egg is well done, and stopping heating when the set raw and cooked degree is reached. The device comprises a camera, a fire control module, a control panel, a data storage module, a clock module, a camera control module, a raw and cooked degree detection module and a fire control module. The method and the device have the advantages of simple structure, reliability, feasibility and accurate judgment, can effectively control the raw and cooked degree of fried eggs, save energy, and are also suitable for multiple kinds of industrial and commercial stove equipment based on a micro controller.

Description

基于人眼视觉原理的煎鸡蛋火力自动控制方法及装置Firepower automatic control method and device for fried eggs based on the principle of human vision

技术领域 technical field

本发明涉及一种自动煎鸡蛋的方法及装置,具体涉及一种基于人眼视觉原理的煎鸡蛋火力自动控制方法及装置,属于机器视觉及智能家电领域。The invention relates to a method and device for automatically frying eggs, in particular to a method and device for automatically controlling the firepower of fried eggs based on the principle of human vision, and belongs to the field of machine vision and smart home appliances.

背景技术 Background technique

煎鸡蛋是一种非常普遍的鸡蛋烹饪方式。现有的煎鸡蛋方法大多需要人工操作,无人监督的自动煎鸡蛋做法往往是靠检测温度来调节燃气供给量的燃气炉或电炉热量,或者是直接设置烹饪的时间,如具有煎炒和保温功能的控制器。但该无人监督的方法往往不准确,这是由于气压和打蛋形状的特性不同(如蛋清摊开的形状会导致不同位置的鸡蛋温度也不相同),温度的阈值往往不好控制,煎出的鸡蛋很容易糊锅。Fried eggs are a very common way of cooking eggs. Most of the existing methods of frying eggs require manual operation. The unsupervised automatic frying method is often a gas stove or an electric stove that adjusts the gas supply by detecting the temperature, or directly sets the cooking time, such as frying and heat preservation. function controller. However, this unsupervised method is often inaccurate. This is due to the different characteristics of the air pressure and the shape of the beaten egg (such as the shape of the egg white spread will cause the temperature of the eggs at different positions to be different), and the temperature threshold is often difficult to control. The eggs that come out are easy to paste.

现有的具有火力控制功能的灶具多是用于煮粥,主要有两类产品,一类是半机械式的调谐锅,仍保留磁钢限温的方式,用改变继电器的通断时间或二极管半波整流的方式来调节沸腾后的功率,但这些功率调节有限,仍会溢出;另一类是电子限温和微电脑控制技术的微电脑控制器,电脑中存有事先设置的各种功能控制程序,煎炒过程中不断测量传感器感应的温度,通过继电器的通断比来调节加热功率。另一方面,由于燃气价格的不断上涨,燃气灶的热效率性能显得格外重要;同时消费者对燃气灶的安全性、节能性、智能性也提出了更高的要求;并且节能型家电也越来越被国家和电器厂家所重视。具有自动火力控制功能的煎鸡蛋的灶具将会节约大量的能源,但目前尚未有一种有效的自动煎鸡蛋火力控制方法及装置。Most of the existing stoves with fire control function are used for cooking porridge. There are two main types of products, one is semi-mechanical tuning pot, which still retains the way of magnetic steel temperature limit, and changes the on-off time of relay or diode Half-wave rectification is used to adjust the power after boiling, but these power adjustments are limited and will still overflow; the other is a microcomputer controller with electronic temperature limiting and microcomputer control technology. There are various function control programs set in advance in the computer. During the frying process, the temperature sensed by the sensor is continuously measured, and the heating power is adjusted through the on-off ratio of the relay. On the other hand, due to the rising price of gas, the thermal efficiency performance of gas stoves is particularly important; at the same time, consumers have put forward higher requirements for the safety, energy saving, and intelligence of gas stoves; and energy-saving home appliances are becoming more and more important. The more it is valued by the country and electrical appliance manufacturers. The cooker for frying eggs with automatic firepower control function will save a lot of energy, but there is not yet an effective automatic firepower control method and device for frying eggs.

发明内容 Contents of the invention

本发明的目的是提供一种基于人眼视觉原理的煎鸡蛋火力自动控制方法,能够根据煎蛋过程中鸡蛋的外观变化,判断鸡蛋的生熟程度,而控制燃气的供应量或电炉的功率,以克服现有技术的不足。不仅煎蛋时可节约燃气能量,且更能保证鸡蛋按其外观特性变化进行均匀地自动煎炸,不会存在煎炸过度或煎不熟的情况。The object of the present invention is to provide an automatic fire control method for fried eggs based on the principle of human vision, which can judge the degree of rawness and ripeness of the eggs according to the appearance changes of the eggs during the frying process, and control the supply of gas or the power of the electric furnace. To overcome the deficiencies in the prior art. Not only can it save gas energy when frying eggs, but it can also ensure that the eggs are evenly fried automatically according to the changes in their appearance characteristics, and there will be no over-frying or undercooking.

本发明的另一个目的在于提供一种基于人眼视觉原理的自动煎鸡蛋装置,根据煎鸡蛋过程中鸡蛋外观变化的来判断鸡蛋生熟程度,完全替代人眼在煎制过程中对鸡蛋在锅内状态的判断,且鲁棒性较好。Another object of the present invention is to provide an automatic egg frying device based on the principle of human vision, which can judge the degree of rawness and ripeness of eggs according to the changes in the appearance of eggs during the frying process, completely replacing the human eye in the frying process. The judgment of the internal state, and the robustness is better.

本发明方法的技术构思如下:The technical concept of the inventive method is as follows:

当煎蛋时,倒入必要的油料后,一般使用恒温加热。如果有人在旁边观察,人眼根据锅中鸡蛋外观形态的变化很容易判断鸡蛋的生熟程度(研究表明,该判断可用图像的直方图来表示),进而控制炉灶的火力大小,这样一方面可以节约燃气和能量,另一方面可以保证鸡蛋不会因煎制过度而糊锅。因此基于人眼视觉原理进行无监督的自动煎蛋,按照鸡蛋外观的变化即时控制燃气火力或电功率,可实现类似人眼视觉的监督效果。When frying eggs, after pouring in the necessary oil, generally use constant temperature heating. If someone is watching from the side, the human eye can easily judge the degree of rawness and maturity of the eggs according to the changes in the appearance of the eggs in the pot (research shows that this judgment can be represented by the histogram of the image), and then control the firepower of the stove. It saves gas and energy, and on the other hand, it can ensure that the eggs will not be burnt due to over-cooking. Therefore, unsupervised automatic egg frying based on the principle of human vision can realize the supervision effect similar to human vision by controlling the gas firepower or electric power in real time according to the change of egg appearance.

本发明的技术方案如下:Technical scheme of the present invention is as follows:

基于人眼视觉原理的煎鸡蛋火力自动控制方法,其特征在于该方法包括以下步骤:An automatic fire control method for frying eggs based on the principle of human vision, characterized in that the method comprises the following steps:

(1)将摄像头设置在灶头的上方,将光照强度调整在150~200lux之间;(1) Set the camera above the stove, and adjust the light intensity between 150 and 200lux;

(2)设定鸡蛋的生熟程度,包括:五分熟、八分熟和全熟;(2) Set the degree of rawness and ripeness of the eggs, including: half-cooked, half-cooked and fully-cooked;

(3)摄像头以固定间隔时间δ秒拍摄煎鸡蛋的图像,并对拍摄的图像进行直方图分析以得到灰度分布,如果发现40-60之间灰度值占整幅图像超过1.6%,则表明糊锅,停止加热;否则持续监测180-210之间灰度值,如其占整幅图像达到0.8%,表明鸡蛋达到五分熟;占0.9%,表明鸡蛋八分熟;超过1%,则表明鸡蛋全熟;(3) The camera takes images of fried eggs at a fixed interval of δ seconds, and performs histogram analysis on the captured images to obtain the gray distribution. If it is found that the gray values between 40 and 60 account for more than 1.6% of the entire image, then Indicates a paste pot, stop heating; otherwise, continue to monitor the gray value between 180-210, if it accounts for 0.8% of the entire image, it indicates that the egg is half-cooked; if it accounts for 0.9%, it indicates that the egg is half-cooked; if it exceeds 1%, then Indicates that the eggs are fully cooked;

(4)当达到步骤2所设的生熟度时,停止加热。(4) When the degree of doneness set in step 2 is reached, stop heating.

为了有效地通过图像识别煎鸡蛋的生熟度,上述步骤2之后还包括校准分析,即在设定鸡蛋的生熟程度之后,首先截取一幅锅底图像的样本,统计其灰度分布,在对煎鸡蛋图像进行直方图分析中对于分布在锅底灰度区间的像素值不再参与直方图分析,即将该像素值从整幅图像中排除。In order to effectively recognize the rawness of fried eggs through images, calibration analysis is also included after the above step 2, that is, after setting the rawness of eggs, first intercept a sample of the image of the bottom of the pot, and count its gray distribution. In the histogram analysis of the fried egg image, the pixel values distributed in the gray range of the bottom of the pan no longer participate in the histogram analysis, that is, the pixel values are excluded from the entire image.

还可在灶头上方加装光照稳定的光源以制造均匀的光照环境,这一点尤其适合于在密闭煎制的环境下使用。A light source with stable light can also be installed above the stove to create a uniform light environment, which is especially suitable for use in a closed frying environment.

上述步骤3中的固定间隔时间δ秒可以设置在1~2秒范围内,既保证了计算的精度与速度,又不至于因间隔时间太长而导致糊锅。The fixed interval time δ seconds in the above step 3 can be set in the range of 1 to 2 seconds, which not only ensures the accuracy and speed of calculation, but also prevents the overly long interval time from causing burnout.

一种基于人眼视觉原理的煎鸡蛋火力自动控制装置,包括一个用于模拟人眼视觉的摄像头和火力控制装置,其特征在于还包括用于设定鸡蛋生熟度的控制面板,和用于存储设定的生熟度的数据存储模块,该数据存储模块分别向时钟模块、摄像头控制模块和生熟度检测模块发出启动信号;所述时钟模块根据该启动信号向摄像头控制模块发送时钟脉冲,而使摄像头控制模块控制摄像头以数据存储模块存储的时间间隔拍摄煎鸡蛋图像,所述生熟程度检测模块收到该启动信号后根据设定的生熟度开始分析摄像头拍摄的煎鸡蛋图像,若未达到设定的生熟度,则发出信号使摄像头控制模块继续控制摄像头拍摄,若达到设定的生熟度,则经由火力控制模块向所述火力控制装置发送关火脉冲而结束自动煎鸡蛋过程。An automatic fire control device for fried eggs based on the principle of human vision, comprising a camera for simulating human vision and a fire control device, characterized in that it also includes a control panel for setting the degree of rawness of eggs, and for A data storage module that stores the set degree of ripeness, the data storage module sends a start signal to the clock module, the camera control module and the degree of ripeness detection module respectively; the clock module sends clock pulses to the camera control module according to the start signal, The camera control module controls the camera to take pictures of fried eggs at intervals stored in the data storage module, and the rawness detection module starts to analyze the fried eggs image taken by the camera according to the set rawness after receiving the start signal, if If the set degree of doneness is not reached, a signal is sent to make the camera control module continue to control the camera to shoot; if the set degree of doneness is reached, the fire control module sends a fire off pulse to the fire control device to end the automatic egg frying process.

上述摄像头控制模块、生熟度检测模块和火力控制模块一起构成控制模块,该控制模块是以DSP或单片机实现的集成结构。The above-mentioned camera control module, rawness detection module and firepower control module together constitute a control module, and the control module is an integrated structure realized by DSP or single-chip microcomputer.

该控制装置还可以设有光源,且该光源设置在灶具的上方即可。The control device can also be provided with a light source, and the light source only needs to be arranged above the cooker.

上述控制面板可采用电容式感应按键,用于鸡蛋生熟程度的设定和修改。The above-mentioned control panel can adopt capacitive sensing buttons for setting and modifying the degree of rawness and ripeness of eggs.

本发明的步骤和装置结构简单、可靠易行、判断精确,实现了对煎鸡蛋时鸡蛋生熟程度和自动火力控制的无监督判断,可有效地控制煎鸡蛋的生熟程度,也节省了能源;显然本发明的技术方案也适用于以微型控制器为基础的工业和商业炉灶设备。The steps and device of the present invention are simple in structure, reliable and easy to operate, and accurate in judging, and realize unsupervised judgment on the degree of rawness and automatic firepower control of eggs when frying eggs, can effectively control the degree of ripeness of fried eggs, and save energy ; Obviously the technical scheme of the present invention is also applicable to industrial and commercial stove equipment based on microcontrollers.

通过控制面板设定好预定的鸡蛋生熟程度后,按下启动键就可实现无人监督自动煎鸡蛋,即可根据煎鸡蛋过程中鸡蛋外观特征的变化,自动判断鸡蛋的生熟程度,控制灶具自动动作,不仅节约能源,避免忘记关火的事故发生,而且做到鸡蛋色香味俱佳的效果。显然,本发明的技术内容也适用于以微型控制器为基础工业和商业炉灶设备。After setting the predetermined degree of rawness and ripeness of eggs through the control panel, press the start button to realize unsupervised automatic egg frying, which can automatically judge the degree of rawness and ripeness of eggs according to the change of egg appearance characteristics during the frying process, and control The automatic operation of the stove not only saves energy, avoids the accident of forgetting to turn off the fire, but also achieves the effect of good color and fragrance of eggs. Obviously, the technical content of the present invention is also applicable to microcontroller-based industrial and commercial stove equipment.

附图说明 Description of drawings

图1是本发明的火力自动控制方法的总体流程示意图。FIG. 1 is a schematic flow chart of the automatic fire control method of the present invention.

图2是煎鸡蛋的示意图。Figure 2 is a schematic diagram of a fried egg.

图3是煎鸡蛋时鸡蛋刚入锅到完全熟透的直方图。其中:Fig. 3 is a histogram of the eggs from the moment they are put into the pan to the time when the eggs are fully cooked. in:

图3a是鸡蛋刚入锅时的直方图,刚打入时,鸡蛋接触热油的一面迅速变白,由于蛋清厚度问题上层的蛋清还是透明状态。对图像进行直方图分析,得出:灰度值在0-25之间的分别占总体的0.3%--1.5%之间,呈递增曲线。25-70之间的灰度值分别占总体的1.5%--2%之间,呈递增后递减曲线,灰度值25占1.7%左右,灰度值40占2%左右,灰度值50占1.7%左右,灰度值70占1.5%左右。Figure 3a is the histogram of the egg when it was just put into the pot. When it was just put into the pot, the side of the egg that touched the hot oil turned white rapidly, and the egg white on the upper layer was still in a transparent state due to the thickness of the egg white. The histogram analysis of the image shows that gray values between 0-25 account for 0.3%--1.5% of the total, showing an increasing curve. The gray values between 25 and 70 account for 1.5%--2% of the total respectively, showing an increasing and then decreasing curve. The gray value of 25 accounts for about 1.7%, the gray value of 40 accounts for about 2%, and the gray value of 50 It accounts for about 1.7%, and the gray value 70 accounts for about 1.5%.

图3b是煎鸡蛋时鸡蛋五分熟的直方图,五分熟时,经过加热一段时间,蛋清基本凝固,蛋黄还未有变化。对图像进行直方图分析,得出:其变化主要在三个灰度值区间,25-70,140-160,200-240。25-70之间的灰度值分别占总体的2%--2.5%之间,呈递增后递减曲线,灰度值25占2%左右,灰度值50占2.5%左右,灰度值70占2%左右。灰度值140-160呈递增曲线,在灰度值140占0.5%左右,灰度值160约为0.7%。灰度值200-240呈递增后递减曲线,灰度值200占1%左右,灰度值225在1.4%左右,灰度值240在1%左右。由刚入锅状态到五分熟状态,灰度值在145左右到180左右之间的概率降低,200左右的灰度值上升。Figure 3b is a histogram of half-cooked eggs when frying eggs. When the eggs are half-cooked, after heating for a period of time, the egg white is basically solidified, and the egg yolk has not changed. The histogram analysis of the image shows that the changes are mainly in three gray value intervals, 25-70, 140-160, and 200-240. The gray values between 25-70 account for 2% of the total -- Between 2.5%, it presents an increasing and then decreasing curve, with a gray value of 25 accounting for about 2%, a gray value of 50 accounting for about 2.5%, and a gray value of 70 accounting for about 2%. Gray value 140-160 presents an increasing curve, accounting for about 0.5% at gray value 140, and about 0.7% at gray value 160. The gray value 200-240 presents an increasing and then decreasing curve. The gray value 200 accounts for about 1%, the gray value 225 is about 1.4%, and the gray value 240 is about 1%. From the state of just entering the pot to the state of half-cooked, the probability of the gray value between about 145 and 180 decreases, and the gray value of about 200 increases.

图3c是煎鸡蛋时鸡蛋八分熟的直方图,八分熟时,经过加热一段时间,蛋清凝固之后,蛋黄已有所变化,蛋黄边缘有蛋清附着。对图像进行直方图分析,得出:其变化主要在三个灰度值区间,25-70,140-160,200-240。25-70之间的灰度值分别占总体的1.5%--1.8%之间,呈递增后递减曲线,灰度值25占1.5%左右,灰度值50占1.8%左右,灰度值70占1.5%左右。灰度值140-160呈递增后递减曲线,在灰度值140占0.4%左右,灰度值150占0.6%左右,灰度值160约为0.4%。灰度值200-240呈递增后递减曲线,灰度值200占0.8%左右,灰度值225在1%左右,灰度值240在0.8%左右。五分熟到八分熟状态,30,150,200左右的灰度值略微减少,灰度值在150到200之间的概率和增加。因为白色的蛋清面积增大,蛋黄略微减少。Fig. 3c is the histogram of half-cooked eggs when frying eggs. When the eggs are half-cooked, after heating for a period of time, the egg yolk has changed after the egg white has solidified, and the egg yolk is attached to the edge of the egg yolk. The histogram analysis of the image shows that the changes are mainly in three gray value intervals, 25-70, 140-160, and 200-240. The gray values between 25-70 account for 1.5% of the total -- Between 1.8%, it presents an increasing and then decreasing curve, with a gray value of 25 accounting for about 1.5%, a gray value of 50 accounting for about 1.8%, and a gray value of 70 accounting for about 1.5%. The grayscale value 140-160 presents an increasing and then decreasing curve, with a grayscale value of 140 accounting for about 0.4%, a grayscale value of 150 accounting for about 0.6%, and a grayscale value of 160 accounting for about 0.4%. The gray value 200-240 presents an increasing and then decreasing curve. The gray value 200 accounts for about 0.8%, the gray value 225 is about 1%, and the gray value 240 is about 0.8%. From medium to medium, the gray values around 30, 150, and 200 decrease slightly, and the probability of gray values between 150 and 200 increases. Because the white area of the egg white increases, the yolk decreases slightly.

图3d是煎鸡蛋时鸡蛋九分熟的直方图,九分熟时,经过加热一段时间,蛋黄附着的蛋清更多。对图像进行直方图分析,得出:其变化主要在三个灰度值区间,25-70,140-160,200-240。25-70之间的灰度值分别占总体的1.2%--2%之间,呈递增后递减曲线,灰度值25占1.7%左右,灰度值40占2%左右,灰度值70占1.2%左右。灰度值140-160呈递增后递减又递增曲线,在灰度值140占0.5%左右,灰度值150占0.6%左右,灰度值150占0.4%左右,灰度值160占0.5%左右。灰度值200-240呈递增后递减曲线,灰度值200占1%左右,灰度值225在1.2%左右,灰度值240在0.8%左右。八分熟到九分熟主要变化是蛋清进一步增加,蛋黄减少,有直方图可以看出150-200之间的灰度值总概率和增加。Fig. 3d is a histogram of half-cooked eggs when frying eggs. When the eggs are half-cooked, more egg whites are attached to the yolk after a period of heating. The histogram analysis of the image shows that the changes are mainly in three gray value intervals, 25-70, 140-160, and 200-240. The gray values between 25-70 account for 1.2% of the total -- Between 2%, there is an increasing and then decreasing curve. The gray value of 25 accounts for about 1.7%, the gray value of 40 accounts for about 2%, and the gray value of 70 accounts for about 1.2%. The gray value 140-160 presents a curve of increasing and then decreasing and increasing. The gray value of 140 accounts for about 0.5%, the gray value of 150 accounts for about 0.6%, the gray value of 150 accounts for about 0.4%, and the gray value of 160 accounts for about 0.5%. . The gray value 200-240 presents an increasing and then decreasing curve. The gray value 200 accounts for about 1%, the gray value 225 is about 1.2%, and the gray value 240 is about 0.8%. The main change from medium to medium is that the egg white further increases and the egg yolk decreases. The histogram shows that the total probability of the gray value between 150-200 increases.

图3e是煎鸡蛋时鸡蛋完全熟透的直方图,鸡蛋完全熟透时,蛋黄附着的蛋清更多。对图像进行直方图分析,得出:其变化主要在三个灰度值区间,25-70,140-160,200-240。25-70之间的灰度值分别占总体的1.5%--2.2%之间,呈递增后递减曲线,灰度值25占1.5%左右,灰度值40占2.2%左右,灰度值70占1.5%左右。灰度值140-160呈递增后递减再递增再递减曲线,在灰度值140占0.5%左右,灰度值145占0.7%左右,灰度值150占0.4%左右,灰度值160占0.5%左右。灰度值200-240呈递增后递减曲线,灰度值200占0.9%左右,灰度值230在1.1%左右,灰度值240在0.9%左右。九分熟到全熟,总体变化不明显,直方图也相对变化不大。Figure 3e is a histogram of the fully cooked egg when the egg is fried. When the egg is fully cooked, more egg white is attached to the yolk. The histogram analysis of the image shows that the changes are mainly in three gray value intervals, 25-70, 140-160, and 200-240. The gray values between 25-70 account for 1.5% of the total -- Between 2.2%, it presents a decreasing curve after increasing, with a gray value of 25 accounting for about 1.5%, a gray value of 40 accounting for about 2.2%, and a gray value of 70 accounting for about 1.5%. The gray value of 140-160 presents a curve of increasing, decreasing, increasing and decreasing again. The gray value of 140 accounts for about 0.5%, the gray value of 145 accounts for about 0.7%, the gray value of 150 accounts for about 0.4%, and the gray value of 160 accounts for 0.5% %about. The gray value 200-240 presents an increasing and then decreasing curve. The gray value 200 accounts for about 0.9%, the gray value 230 is about 1.1%, and the gray value 240 is about 0.9%. Nine to well done, the overall change is not obvious, and the histogram is relatively little changed.

图4是煎鸡蛋时锅底的直方图。Figure 4 is a histogram of the bottom of the pan when frying eggs.

考虑到锅底的颜色,其灰度值主要分布在20-40之间,且在煎制鸡蛋过程中保持不变。为了更准确地判断鸡蛋的生熟程度,可在程序运行过程中排除锅底灰度值对图像的影响。Considering the color of the bottom of the pan, its gray value is mainly distributed between 20-40, and it remains unchanged during the process of frying eggs. In order to judge the degree of rawness and ripeness of the eggs more accurately, the influence of the gray value of the bottom of the pot on the image can be excluded during the running of the program.

图5是煎鸡蛋时已经焦了的鸡蛋的直方图。Figure 5 is a histogram of eggs that have burnt when frying eggs.

已经焦了的鸡蛋做直方图分析,其灰度值主要分布在30-70之间,当检测到分布在这个范围的灰度值突然升高时,可判断其已经焦了。要控制加热火力避免该区域的灰度值过大,具体做法是检测到该区域灰度值异常是减小加热火力。The histogram analysis of burnt eggs shows that the gray value is mainly distributed between 30-70. When a sudden increase in the gray value in this range is detected, it can be judged that it has been burnt. To control the heating power to avoid excessive gray value in this area, the specific method is to reduce the heating power if abnormal gray value is detected in this area.

图6是本发明的火力自动控制装置的总体结构示意图(图中含灶具)。Fig. 6 is a schematic diagram of the overall structure of the automatic fire control device of the present invention (cooker is included in the figure).

图7本发明在灶头上方加装光源的结构示意图。Fig. 7 is a structural schematic diagram of adding a light source above the cooktop according to the present invention.

其中,1、摄像头,2、火力控制装置,3、摄像头控制模块,4、生熟度检测模块,5、控制面板,6、时钟模块,7、火力控制模块,8、数据存储模块,9、控制模块,10、灶具,11、光源。Among them, 1. camera, 2. fire control device, 3. camera control module, 4. rawness detection module, 5. control panel, 6. clock module, 7. fire control module, 8. data storage module, 9. A control module, 10, a cooker, and 11, a light source.

具体实施方式 Detailed ways

通常,煎鸡蛋的示意图如图2所示,可以看到在煎锅中蛋清摊开的形状通常是不规则的,蛋黄的形状基本保持圆形,且至终变化不大;通过实验分析,如附图3所示,鸡蛋的状态变化主要在三个区间,灰度值在30-70区间,150左右和200左右。Usually, the schematic diagram of a fried egg is shown in Figure 2. It can be seen that the shape of the egg white spread in the frying pan is usually irregular, and the shape of the egg yolk basically remains circular, and the final change is not large; through experimental analysis, as As shown in Figure 3, the state of the egg changes mainly in three intervals, the gray value is in the interval of 30-70, around 150 and around 200.

其中,如上述分析,灰度值在30-70区间表示已经焦了的鸡蛋,该区间还包括了一部分锅底的颜色的灰度值(20-40);灰度值在150左右的区间表示鸡蛋在煎鸡蛋过程中,蛋清处于由透明到变成白色的中间状态;灰度值在200左右的区间表示蛋清熟透时所对应的灰度区间。Among them, as the above analysis, the gray value in the range of 30-70 indicates burnt eggs, which also includes the gray value (20-40) of the color of a part of the bottom of the pot; the gray value in the interval of about 150 indicates During the process of frying eggs, the egg white is in an intermediate state from transparent to white; the gray value range around 200 indicates the corresponding gray range when the egg white is fully cooked.

如图5所示,为了排除两个端值的可能不精确的数据,选取40-60之间灰度值占整幅图像的比例作为判断糊锅的灰度区间,又经实验分析当人眼判断糊锅时,在40-60之间的灰度值占整幅图像超过1.6%,因此以该比例作为判断糊锅的依据。As shown in Figure 5, in order to exclude the possible inaccurate data of the two end values, the proportion of the gray value between 40 and 60 in the entire image is selected as the gray range for judging the paste pot. When judging the paste pot, the gray value between 40-60 accounts for more than 1.6% of the entire image, so this ratio is used as the basis for judging the paste pot.

由于煎鸡蛋时蛋黄的变化不大,人眼主要是以蛋清的变化来判断是否煎熟,在此过程中蛋清的灰度变化主要在150-240之间,选取180-210之间灰度值作为判断鸡蛋生熟度的灰度区间;又经实验分析当人眼判断鸡蛋为五分熟、八分熟、全熟时,所述的三个生熟度所对应的180-210之间灰度值占整幅图像的比例分别是0.8%、0.9%和1%,因此监测180-210之间灰度值,如其占整幅图像达到0.8%,表明鸡蛋达到五分熟;占0.9%,鸡蛋八分熟;超过1%,则表明鸡蛋全熟。Since the egg yolk does not change much when frying eggs, the human eye mainly judges whether it is cooked through the change of the egg white. It is used as the gray interval for judging the degree of ripeness of eggs; and through experimental analysis, when the human eye judges that the eggs are half-cooked, half-cooked, or fully cooked, the grayscale between 180-210 corresponding to the three degrees of ripeness The proportions of grayscale values to the entire image are 0.8%, 0.9%, and 1%, so monitor the grayscale value between 180-210, if it accounts for 0.8% of the entire image, it indicates that the egg is half-cooked; 0.9%, Eggs are half-cooked; more than 1%, it shows that the eggs are fully cooked.

因此通过上述实验分析,如图1所示,本发明的基于人眼视觉原理的煎鸡蛋火力自动控制方法,其特征在于该方法包括以下步骤:Therefore by above-mentioned experimental analysis, as shown in Figure 1, the fried egg firepower automatic control method based on human vision principle of the present invention is characterized in that the method comprises the following steps:

(1)将摄像头设置在灶头的上方,将灶头位置的光照强度调整在150~200lux之间;摄像头将在步骤3中以固定间隔时间δ秒拍摄煎鸡蛋的图像,该固定时间间隔时间δ秒可以设置在1~2秒范围内;(1) Set the camera above the stove, and adjust the light intensity at the stove between 150 and 200 lux; the camera will take images of fried eggs at a fixed interval of δ seconds in step 3, and the fixed time interval of δ seconds Can be set within the range of 1 to 2 seconds;

(2)设定鸡蛋的生熟程度,包括:五分熟、八分熟、全熟;为了有效地通过图像识别煎鸡蛋的生熟度,该步骤之后还包括校准分析,即在设定鸡蛋的生熟程度之后,首先截取一幅锅底图像的样本,统计其灰度分布,在对煎鸡蛋图像进行直方图分析中对于分布在锅底灰度区间的像素值不再参与直方图分析,即将该像素值从整幅图像中排除,在步骤3中,该锅底灰度区间的像素不作为计算各个灰度区间所占整幅图像的百分比时的分母。(2) Set the degree of ripeness of the eggs, including: half-cooked, half-cooked, and fully-cooked; in order to effectively identify the degree of rawness of fried eggs through images, calibration analysis is also included after this step, that is, after setting the egg After the degree of rawness and cookedness of the pot bottom, first intercept a sample of the bottom of the pot image, and count its gray distribution. In the histogram analysis of the fried egg image, the pixel values distributed in the gray range of the bottom of the pot are no longer involved in the histogram analysis. That is to say, the pixel value is excluded from the entire image. In step 3, the pixels in the gray scale interval of the bottom of the pot are not used as the denominator when calculating the percentage of each gray scale interval in the entire image.

(3)对摄像头拍摄的煎鸡蛋图像进行直方图分析以得到灰度分布,如果发现40-60之间灰度值占整幅图像超过1.6%,则表明糊锅,停止加热;否则持续监测180-210之间灰度值,如其占整幅图像达到0.8%,表明鸡蛋达到五分熟;占0.9%,表明鸡蛋八分熟;超过1%,则表明鸡蛋全熟;(3) Analyze the histogram of the fried egg image captured by the camera to obtain the gray distribution. If it is found that the gray value between 40 and 60 accounts for more than 1.6% of the entire image, it indicates that the pan is mushy and stops heating; otherwise, continue to monitor for 180 The gray value between -210, if it accounts for 0.8% of the entire image, it indicates that the egg is half-cooked; if it accounts for 0.9%, it indicates that the egg is medium-cooked; if it exceeds 1%, it indicates that the egg is fully cooked;

(4)当达到步骤2所设的生熟度时,停止加热。(4) When the degree of doneness set in step 2 is reached, stop heating.

还可在灶头上方加装光照稳定的光源以制造均匀的光照环境,这一点尤其适合于在密闭煎制的环境下使用。A light source with stable light can also be installed above the stove to create a uniform light environment, which is especially suitable for use in a closed frying environment.

一种基于人眼视觉原理的煎鸡蛋火力自动控制装置,包括一个用于模拟人眼视觉的摄像头1和火力控制装置2,其特征在于还包括用于设定鸡蛋生熟度的控制面板5,和用于存储设定的生熟度的数据存储模块8,该数据存储模块8分别向时钟模块6、摄像头控制模块3和生熟度检测模块4发出启动信号;所述时钟模块6根据该启动信号向摄像头控制模块3发送时钟脉冲,而使摄像头控制模块3控制摄像头1以数据存储模块8存储的时间间隔拍摄煎鸡蛋图像,所述生熟程度检测模块4收到该启动信号后根据设定的生熟度开始分析摄像头1拍摄的煎鸡蛋图像,若未达到设定的生熟度,则发出信号使摄像头控制模块3继续控制摄像头1拍摄,若达到设定的生熟度,则经由火力控制模块7向所述火力控制装置2发送关火脉冲而结束自动煎鸡蛋过程。An automatic fire control device for fried eggs based on the principle of human vision, comprising a camera 1 for simulating human vision and a fire control device 2, characterized in that it also includes a control panel 5 for setting the degree of rawness of eggs, And the data storage module 8 that is used to store the rawness degree of setting, this data storage module 8 sends starting signal to clock module 6, camera control module 3 and rawness detection module 4 respectively; The signal sends clock pulses to the camera control module 3, so that the camera control module 3 controls the camera 1 to take images of fried eggs at the time interval stored in the data storage module 8, and the rawness detection module 4 according to the setting after receiving the start signal start to analyze the fried egg image taken by camera 1, if it does not reach the set degree of ripeness, it will send a signal to make the camera control module 3 continue to control the camera 1 to shoot, if it reaches the set degree of ripeness, it will send out a signal through the firepower The control module 7 sends a fire off pulse to the fire control device 2 to end the process of automatically frying eggs.

上述摄像头控制模块3、生熟度检测模块4和火力控制模块7一起构成控制模块9,该控制模块9是以DSP或单片机实现的集成结构。The above-mentioned camera control module 3, rawness detection module 4 and fire control module 7 form a control module 9 together, and the control module 9 is an integrated structure realized by a DSP or a single-chip microcomputer.

如图7所示,该控制装置还可以设有光照可调的光源11,且该光源设置在灶具10的上方即可。As shown in FIG. 7 , the control device may also be provided with a light source 11 with adjustable illumination, and the light source may be arranged above the cooker 10 .

上述控制面板5可采用电容式感应按键,用于鸡蛋生熟程度的设定和修改。The above-mentioned control panel 5 can adopt capacitive sensing buttons for setting and modifying the degree of rawness and ripeness of eggs.

上述摄像头1的分辨率在320*480以上。The above-mentioned camera 1 has a resolution above 320*480.

使用时,在普通的燃气灶具或者电炉的灶头上方(一般不要在正上方,可在稍微偏离正上方的位置处)安装摄像头装置,保证摄像头1的拍摄照片的中心在燃气灶或电炉燃烧器的中心。光源11可安装于正上方。电子控制面板5可安装到抽油烟机上,也可选择更加合适的位置,只要保证信号的正常传输即可。When in use, install a camera device above the stove head of an ordinary gas cooker or electric stove (generally not directly above, but at a position slightly deviated from directly above), to ensure that the center of the photo taken by the camera 1 is at the center of the burner of the gas stove or electric stove center. The light source 11 can be installed directly above. The electronic control panel 5 can be installed on the range hood, or a more suitable position can be selected, as long as the normal transmission of the signal is guaranteed.

如附图6所示,本发明的煎鸡蛋火力自动控制装置的工作过程如下:As shown in accompanying drawing 6, the working process of fried egg fire automatic control device of the present invention is as follows:

首先由用户在控制面板5设定预期生熟度,该生熟度信息存储于数据存储模块8;并可经由控制面板5控制系统是否启动,若启动,则数据存储模块8发出信号,使得时钟模块6连续不断地以固定时间间隔发送时钟脉冲,同时摄像头控制模块3接收时钟模块6发出的时钟脉冲信号,以数据存储模块8内存储的预设时间间隔控制摄像头1拍照,生熟程度检测模块4收到数据存储模块8发来的启动信号时,告知火力控制模块7向火力控制装置2发送点火脉冲,控制灶具10点火,生熟程度检测模块4接收到摄像头1传送来的图像后进行分析,若未达到用户由控制面板5所设定并存储在数据存储模块8中的预期生熟程度,则发送信号使得摄像头控制模块3继续控制摄像头1拍照,若达到预期生熟程度,则发送信号告知火力控制模块7,使其向火力控制装置2发送关火脉冲,关闭灶具10,自动煎鸡蛋流程结束。First, the user sets the expected degree of ripeness on the control panel 5, and the degree of ripeness information is stored in the data storage module 8; and whether the system can be controlled via the control panel 5, if activated, the data storage module 8 sends a signal to make the clock Module 6 continuously sends clock pulses at fixed time intervals, while camera control module 3 receives the clock pulse signal sent by clock module 6, controls camera 1 to take pictures with the preset time interval stored in data storage module 8, and the degree of ripeness detection module 4. When receiving the starting signal from the data storage module 8, inform the fire control module 7 to send an ignition pulse to the fire control device 2 to control the ignition of the cooker 10, and the doneness detection module 4 receives the image sent by the camera 1 and then analyzes it , if it does not reach the expected degree of ripeness set by the user by the control panel 5 and stored in the data storage module 8, then send a signal to make the camera control module 3 continue to control the camera 1 to take pictures, if it reaches the expected degree of ripeness, then send a signal Inform the fire control module 7 to send a fire off pulse to the fire control device 2 to turn off the cooker 10, and the automatic egg frying process ends.

Claims (8)

1.基于人眼视觉原理的煎鸡蛋火力自动控制方法,其特征在于该方法包括以下步骤:1. The firepower automatic control method of frying eggs based on the principle of human vision is characterized in that the method comprises the following steps: (1)将摄像头设置在灶头的上方,将光照强度调整在150~200lux之间;(1) Set the camera above the stove, and adjust the light intensity between 150 and 200lux; (2)设定鸡蛋的生熟程度,包括:五分熟、八分熟和全熟;(2) Set the degree of rawness and ripeness of the eggs, including: half-cooked, half-cooked and fully-cooked; (3)摄像头以固定间隔时间δ秒拍摄煎鸡蛋的图像,并对摄像的图像进行直方图分析以得到灰度分布,如果发现40-60之间灰度值占整幅图像超过1.6%,则表明糊锅,停止加热;否则持续监测180-210之间灰度值,如其占整幅图像达到0.8%,表明鸡蛋达到五分熟;占0.9%,表明鸡蛋八分熟;超过1%,则表明鸡蛋全熟;(3) The camera takes images of fried eggs at a fixed interval of δ seconds, and performs histogram analysis on the captured images to obtain the gray distribution. If it is found that the gray value between 40 and 60 accounts for more than 1.6% of the entire image, then Indicates a paste pot, stop heating; otherwise, continue to monitor the gray value between 180-210, if it accounts for 0.8% of the entire image, it indicates that the egg is half-cooked; if it accounts for 0.9%, it indicates that the egg is half-cooked; if it exceeds 1%, then Indicates that the eggs are fully cooked; (4)当达到步骤2所设的生熟度时,停止加热;(4) Stop heating when the doneness set in step 2 is reached; 上述步骤还包括校准分析:在设定鸡蛋的生熟程度之后,首先截取一幅锅底图像的样本,统计其灰度分布;在对拍摄的煎鸡蛋图像进行直方图分析中对于分布在锅底灰度区间的像素值不再参与直方图分析,即将该像素值从整幅图像中排除。The above steps also include calibration analysis: after setting the degree of rawness and ripeness of the eggs, first intercept a sample of the image of the bottom of the pot, and count its gray distribution; The pixel values in the grayscale interval are no longer involved in the histogram analysis, that is, the pixel values are excluded from the entire image. 2.如权利要求1所述的方法,其特征在于在灶头上方加装光照稳定的光源以制造均匀的光照环境。2. The method according to claim 1, characterized in that a light source with stable light is installed above the stove to create a uniform light environment. 3.如权利要求1所述的方法,其特征在于上述步骤3中的固定间隔时间δ秒在1~2秒范围内。3. The method according to claim 1, characterized in that the fixed interval time δ second in the above step 3 is in the range of 1-2 seconds. 4.一种基于人眼视觉原理的煎鸡蛋火力自动控制装置,包括一个用于模拟人眼视觉的摄像头(1)和火力控制装置(2),其特征在于还包括用于设定鸡蛋生熟度的控制面板(5),和用于存储设定的生熟度的数据存储模块(8),该数据存储模块(8)分别向时钟模块(6)、摄像头控制模块(3)和生熟度检测模块(4)发出启动信号;所述时钟模块(6)根据该启动信号向摄像头控制模块(3)发送时钟脉冲,而使摄像头控制模块(3)控制摄像头(1)以数据存储模块(8)存储的时间间隔拍摄煎鸡蛋图像,所述生熟程度检测模块(4)收到该启动信号后根据设定的生熟度开始分析摄像头(1)拍摄的煎鸡蛋图像,若未达到设定的生熟度,则发出信号使摄像头控制模块(3)继续控制摄像头(1)拍摄,若达到设定的生熟度,则经由火力控制模块(7)向火力控制装置(2)发送关火脉冲而结束自动煎鸡蛋过程。4. An automatic fire control device for fried eggs based on the principle of human vision, comprising a camera (1) for simulating human vision and a fire control device (2), characterized in that it also includes a function for setting the raw or cooked eggs degree of control panel (5), and a data storage module (8) for storing the set degree of rawness and ripeness, the data storage module (8) provides clock module (6), camera control module (3) and rawness and ripeness respectively The speed detection module (4) sends out a start signal; the clock module (6) sends a clock pulse to the camera control module (3) according to the start signal, so that the camera control module (3) controls the camera (1) with the data storage module ( 8) The fried egg images are taken at the stored time interval, and the doneness degree detection module (4) starts to analyze the fried eggs images taken by the camera (1) according to the set degree of doneness after receiving the start signal. If the set degree of ripeness is reached, a signal is sent to make the camera control module (3) continue to control the camera (1) to shoot. Fire pulses to end the automatic egg frying process. 5.如权利要求4所述的控制装置,其特征在于上述摄像头控制模块(3)、生熟度检测模块(4)和火力控制模块(7)是以DSP或单片机实现的集成结构。5. The control device according to claim 4, characterized in that the camera control module (3), the doneness detection module (4) and the fire control module (7) are an integrated structure realized by DSP or single-chip microcomputer. 6.如权利要求4所述的控制装置,其特征在于该控制装置还设有光源(11),且该光源(11)设置在灶具的上方。6. The control device according to claim 4, characterized in that the control device is further provided with a light source (11), and the light source (11) is arranged above the cooker. 7.如权利要求4所述的控制装置,其特征在于上述摄像头(1)分辨率在320*480以上。7. The control device according to claim 4, characterized in that the resolution of the camera (1) is above 320*480. 8.如权利要求4所述的控制装置,其特征在于上述控制面板(5)采用的是电容式感应按键。8. The control device according to claim 4, characterized in that the control panel (5) uses capacitive sensing keys.
CN 201110228212 2011-08-10 2011-08-10 Human vision principle-based method and device for automatically controlling egg frying fire Expired - Fee Related CN102406456B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110228212 CN102406456B (en) 2011-08-10 2011-08-10 Human vision principle-based method and device for automatically controlling egg frying fire

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110228212 CN102406456B (en) 2011-08-10 2011-08-10 Human vision principle-based method and device for automatically controlling egg frying fire

Publications (2)

Publication Number Publication Date
CN102406456A CN102406456A (en) 2012-04-11
CN102406456B true CN102406456B (en) 2013-08-21

Family

ID=45909010

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110228212 Expired - Fee Related CN102406456B (en) 2011-08-10 2011-08-10 Human vision principle-based method and device for automatically controlling egg frying fire

Country Status (1)

Country Link
CN (1) CN102406456B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106419540A (en) * 2016-11-09 2017-02-22 芜湖智美网络科技有限公司 Novel egg steamer capable of detecting whether eggs are well cooked or not
CN108827962B (en) * 2018-04-28 2020-03-27 四川大学 Detection method of egg doneness based on light transmission method
CN109480603A (en) * 2018-10-16 2019-03-19 珠海格力电器股份有限公司 Cooking appliance control method and cooking appliance
CN112006525B (en) * 2020-08-11 2022-06-03 杭州九阳小家电有限公司 Burnt food detection method in cooking equipment and cooking equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101901015A (en) * 2009-05-27 2010-12-01 深圳市爱可机器人技术有限公司 Heat control system for cooking device based on machine vision

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2941511B2 (en) * 1991-09-17 1999-08-25 新日本製鐵株式会社 Method for detecting boil in mold
JPH1034305A (en) * 1996-07-23 1998-02-10 Nippon Steel Corp Method for detecting boil in mold for continuous casting
IL173418A (en) * 2006-01-29 2013-10-31 Rafael Advanced Defense Sys Non-uniformity correction of images generated by focal plane arrays of photodetectors

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101901015A (en) * 2009-05-27 2010-12-01 深圳市爱可机器人技术有限公司 Heat control system for cooking device based on machine vision

Also Published As

Publication number Publication date
CN102406456A (en) 2012-04-11

Similar Documents

Publication Publication Date Title
CN103230167B (en) Intelligent integrated kitchen with interaction function
CN109798554B (en) Stove and dry burning prevention control method and device thereof
CN203168474U (en) Integrated kitchen with interactive function
CN109798545B (en) Kitchen range, fire control method and device thereof and storage medium
CN109798551B (en) Stove and dry burning prevention control method and device thereof
CN108758712B (en) Dry burning prevention stove and control method thereof
CN102406456B (en) Human vision principle-based method and device for automatically controlling egg frying fire
CN211260888U (en) Visual gas cooking utensils of firepower
CN204786635U (en) Cooking utensils based on wifi network
CN108954403B (en) Dry burning prevention stove and control method thereof
CN102360185B (en) Method and device for automatically controlling porridge and milk cooking firepower based on human eye vision principle
CN102200298B (en) Cooking range and its intelligent control method
CN109237545A (en) The control method and anti-dry system of anti-dry
CN111637497A (en) Gas stove fire adjusting method and adjusting system
CN103216858B (en) Automatic control method for gas stove
CN114060866A (en) Gas stove temperature measuring device and method
CN118633849A (en) A heating control method and system for a grill
CN206274177U (en) A kind of energy-saving gas furnace of automatic identification cooker
CN218328314U (en) Fume exhaust fan
CN202018067U (en) Cooker
CN203190466U (en) Intelligent gas stove
CN109974040A (en) A gas cooker with a cooking mode selection function
JP4862710B2 (en) Cooker
CN212390436U (en) Device for adjusting brightness of LED lamp of range hood
CN111059579B (en) Residual temperature reminding control method and control system for kitchen range

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130821

Termination date: 20140810

EXPY Termination of patent right or utility model