WO2023185779A1 - Method for identifying article information in refrigerator - Google Patents

Method for identifying article information in refrigerator Download PDF

Info

Publication number
WO2023185779A1
WO2023185779A1 PCT/CN2023/084216 CN2023084216W WO2023185779A1 WO 2023185779 A1 WO2023185779 A1 WO 2023185779A1 CN 2023084216 W CN2023084216 W CN 2023084216W WO 2023185779 A1 WO2023185779 A1 WO 2023185779A1
Authority
WO
WIPO (PCT)
Prior art keywords
item
frame
contour
detection
contour line
Prior art date
Application number
PCT/CN2023/084216
Other languages
French (fr)
Chinese (zh)
Inventor
毕研华
孔令磊
Original Assignee
青岛海尔电冰箱有限公司
海尔智家股份有限公司
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 青岛海尔电冰箱有限公司, 海尔智家股份有限公司 filed Critical 青岛海尔电冰箱有限公司
Publication of WO2023185779A1 publication Critical patent/WO2023185779A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures

Definitions

  • the invention relates to the field of refrigeration devices, and in particular, to a method for identifying item information in a refrigerator.
  • identifying internal items has become a necessary function of smart refrigerators.
  • one or more cameras are installed inside the refrigerator to collect photos of the items in the refrigerator. The collected photos are identified and processed and then sent to the user terminal for viewing by the user. Placing the camera above objects can avoid the problem of objects blocking each other and improve the accuracy of object information recognition.
  • the object of the present invention is to provide a method for identifying item information in a refrigerator.
  • one embodiment of the present invention provides a method for identifying item information in a refrigerator, which includes the steps:
  • the corresponding item is a mirrored item
  • the corresponding item is a real item.
  • the contour lines intersecting the frosted areas of the bird's-eye image are calibrated
  • the contour lines intersect to form a contour frame.
  • each of the detection frames corresponding to an item specifically includes:
  • the detection frame corresponding to each item in the bird's-eye view image is calibrated;
  • the objects in the bird's-eye view image include real objects placed in the bottle holder and mirror objects corresponding to the real objects.
  • the method specifically includes:
  • the contour line is located above the contour frame
  • the corresponding item is a mirrored item
  • the corresponding item is a real item.
  • the method specifically includes:
  • the contour line is located below the contour frame
  • the corresponding item is a real item
  • the corresponding item is a mirrored item.
  • an embodiment of the present invention also provides another method for identifying item information in a refrigerator, including the steps:
  • the corresponding item is a mirrored item
  • the corresponding item is a real item.
  • identifying a contour frame composed of intersecting contour lines in the bird's-eye view image specifically includes:
  • the contour lines intersecting the frosted areas of the bird's-eye image are calibrated
  • the contour lines intersect to form a contour frame.
  • each of the detection frames corresponding to an item specifically includes:
  • the detection frame corresponding to each item in the bird's-eye view image is calibrated;
  • the objects in the bird's-eye view image include real objects placed in the bottle holder and mirror objects corresponding to the real objects.
  • the set threshold is specifically 5% to 10%.
  • the present invention provides a refrigerator in which the lower end of the wall of the bottle holder and the bottom of the bottle holder are frosted.
  • the edge detection algorithm and the Yolo V4 target detection algorithm are used to calibrate the frosting.
  • the contour frame of the area and the detection frame corresponding to the object in the image obtain a contour line and identify the position of the contour line in the contour frame and identify the relative position of the center point of the object detection frame and the contour line, compare whether the two are the same to judge the bird's-eye view image Whether the items detected in the bottle are real items or mirrored items, this can eliminate the interference of mirrored items and improve the accuracy of the recognition algorithm; in addition, when some drinks with a higher height are placed in the bottle holder or the items in the bottle holder are stacked to a certain Height, because the lower end of the bottle holder wall is frosted, it can well avoid the problem that the center point of the object detection frame falls outside the outline frame, causing misjudgment by the recognition algorithm.
  • Figure 1 is a schematic flowchart of a method for identifying item information in a refrigerator in an embodiment of the present invention.
  • Figure 2a is a schematic diagram of the space inside the bottle holder of the refrigerator in Embodiment 1 of the present invention (except for the outline for illustration and the items on adjacent sides, the rest of the content in the figure is omitted).
  • Figure 2b is a schematic flowchart of the method for identifying item information in the refrigerator in Embodiment 1 of the present invention.
  • Figure 3a is a schematic diagram of the space inside the bottle holder of the refrigerator in Embodiment 2 of the present invention (except for the outline for illustration and the items on adjacent sides, the rest of the content in the figure is omitted).
  • Figure 3b is a schematic flowchart of the method for identifying item information in the refrigerator in Embodiment 2 of the present invention.
  • Figure 4a is a schematic diagram of the space inside the bottle holder of the refrigerator in Embodiment 3 of the present invention (except for the outline for illustration and the items on adjacent sides, the rest of the content in the figure is omitted).
  • Figure 4b is a schematic flowchart of the method for identifying item information in the refrigerator in Embodiment 3 of the present invention.
  • Figure 5a is a schematic diagram of the space inside the bottle holder of the refrigerator in Embodiment 4 of the present invention (except for the outline for illustration and the items on adjacent sides, the rest of the content in the figure is omitted).
  • Figure 5b is a schematic flowchart of the method for identifying item information in the refrigerator in Embodiment 4 of the present invention.
  • FIG. 6 is a schematic diagram of the space inside the bottle holder of the refrigerator taken in another embodiment of the present invention.
  • Figure 7 is a schematic flowchart of a method for identifying item information in a refrigerator in another embodiment of the present invention.
  • this article uses terms indicating relative positions in space, such as “upper”, “lower”, “back”, “front”, etc., to describe one unit or feature shown in the drawings relative to another.
  • Spatially relative terms may refer to different orientations of the device in use or operation in addition to the orientation illustrated in the figures. For example, if the device in the diagram is turned over, elements described as “below” or “above” other elements or features would then be oriented “below” or “above” the other elements or features.
  • the exemplary term “below” may encompass both spatial orientations, below and above.
  • the present invention provides a method for identifying item information in a refrigerator, which includes the steps:
  • a camera is installed on the top of the bottle holder, and the objects are photographed from above to obtain a bird's-eye view image.
  • the present invention preferably uses the camera Located at the middle position of the top of the bottle holder.
  • two or more cameras may also be provided in the bottle holder to obtain two or more bird's-eye images of the space inside the bottle holder of the refrigerator taken from different angles.
  • At least one wall of the bottle holder in the refrigerator is a glass surface, which is prone to mirror interference.
  • the area of the glass surface close to the bottom of the bottle holder is frosted to ensure large-capacity and high-height items. While the center point of the detection frame falls within the outline frame, it does not prevent the user from observing the inside of the bottle holder from outside the glass surface of the bottle holder.
  • the 10cm wide area at the lower end of the glass surface is frosted, and the bottom of the bottle holder is also frosted. Matte finish.
  • the present invention uses an edge detection algorithm to identify the edge contours of the bottle holder, and calibrate the contour lines intersecting the frosted areas of the bird's-eye image.
  • the intersection of the contour lines forms an outline frame.
  • this embodiment uses a refrigerator bottle Taking the bottom end of the four wall surfaces of the seat as an example with a 10cm wide frosted area, the calibrated outline frame 1 is a rectangular structure as shown in Figures 2a, 3a, 4a and 5a.
  • edge detection algorithms can be used such as Roberts, Sobel, Currently common algorithms such as Prewitt, Canny, and Log are based on existing technologies and will not be described in detail here.
  • S3 Segment multiple detection frames in the bird's-eye view image, and each detection frame corresponds to an item.
  • the objects in the bottle holder In the non-frosted area of the bottle holder wall, the objects in the bottle holder often cast corresponding shadows in the non-frosted area, that is, mirror objects. Therefore, the objects in the bird's-eye view image captured in the present invention include objects placed on the bottle holder. Real objects in the seat and mirrored objects corresponding to said real objects.
  • the items present in the bird's-eye view image are identified, and the Yolo V4 target detection algorithm is used to calibrate the detection frame 2 corresponding to each item in the bird's-eye view image.
  • the specific content of the Yolo V4 target detection algorithm here is the existing technology, so I won’t go into details here.
  • the outline frame 1 is a square structure, which includes an outline line 11 located above the outline frame, an outline line 12 located below the outline frame, an outline line 13 located on the left side of the outline frame, and an outline line 13 located on the right side of the outline frame.
  • Orientation contour line 14 is a square structure, which includes an outline line 11 located above the outline frame, an outline line 12 located below the outline frame, an outline line 13 located on the left side of the outline frame, and an outline line 13 located on the right side of the outline frame.
  • the selected contour line may be contour line 11, contour line 12, contour line 13 or contour line 14.
  • step S4 the system only obtains the object detection frames on both sides adjacent to the contour line 11, and does not use this as a criterion for the object detection frames on other surfaces.
  • Whether the object identified in the bird's-eye view image is a real object or a mirror image is determined based on whether the relative orientation of the identified center point 3 of the detection frame and the contour line is the same as the orientation of the contour line in the contour frame 1 .
  • step S4 For example, if the contour line 11 is selected in step S4, then in the step "obtain detection frames on both sides adjacent to the contour line", only item a, item b, item c and as shown in Figure 2a are obtained.
  • the detection frame of item d determines whether it is a real item or a mirrored item.
  • the relative position between the center point 3a of the detection frame 2a and the selected contour line 11 is that the center point 3a of the detection frame 2a is located above the contour line 11, and the contour line 11 is located above the contour frame 1, Therefore, the relative orientation of the center point 3a of the detection frame 2a of item a and the contour line 11 is the same as the orientation of the contour line 11 in the contour frame 1, that is, step S61 is executed, and the system determines that item a is a mirrored item.
  • the present invention provides four specific identification methods for items in the bottle holder of the refrigerator, which are described in detail below with four embodiments.
  • the contour line 11 is selected, as shown in Figure 2a, and the identification method ( Figure 2b) includes the steps:
  • S4A1 Select a contour line 11, which is located on the upper edge of the contour frame 1.
  • S5A1 Identify the center point 3 of the detection frame.
  • a step is also included: obtaining the detection frames 2 on both sides adjacent to the contour line 11 .
  • obtaining the detection frames 2 on both sides adjacent to the contour line 11 As shown in Figure 2a, for item a in the figure, because the center point 3a of the detection frame is located above the contour line 11, it is judged that item a is a mirrored item; for item b in the figure, because the center point 3b of the detection frame is located above the contour line 11 Below, it is judged that item b is a real item; for item c in the picture, because the center point 3c of its detection frame is located above the contour line 11, it is judged that item c is a mirror item; for item d in the picture, because the center point of its detection frame 3d is located below the contour line 11, that is, item d is judged to be a real item.
  • the object detection frames on adjacent sides of the contour line 11 obtained in the bird's-eye view can use the object information recognition method in Figure 2b to determine whether the object is a real object or a mirror object.
  • the contour line 12 is selected, as shown in Figure 3a.
  • the identification method ( Figure 3b) includes the steps:
  • S4B1 Select a contour line 12 located at the lower edge of the contour frame 1.
  • S5B1 Identify the center point 3 of the detection frame.
  • a step is also included: obtaining the detection frames 2 on both sides adjacent to the contour line 12 .
  • obtaining the detection frames 2 on both sides adjacent to the contour line 12 As shown in Figure 3a, for item e in the figure, since the center point 3e of its detection frame is located on the contour line 12 Above, it is judged that item e is a real item; for item f in the picture, since the center point 3f of the detection frame is located below the contour line 12, it is judged that item f is a mirror item.
  • the object detection frames on adjacent sides of the contour line 12 obtained in the bird's-eye view can use the object information recognition method in Figure 3b to determine whether the object is a real object or a mirror object.
  • contour line 13 is selected, as shown in Figure 4a, and the identification method ( Figure 4b) includes the steps:
  • S4C1 Select a contour line 13, which is located on the left side of the contour frame 1.
  • S5C1 Identify the center point 3 of the detection frame.
  • a step is also included: obtaining detection frames on both sides adjacent to the contour line 13 .
  • obtaining detection frames on both sides adjacent to the contour line 13 As shown in Figure 4a, for item g in the figure, because the center point 3g of its detection frame is located to the left of the contour line 13, it is judged that item g is a mirrored item; for item h in the figure, because the center point 3h of its detection frame is located on the outline To the right of line 13, it is judged that item h is a real item.
  • the object detection frames on adjacent sides of the contour line 13 obtained in the bird's-eye view can use the object information recognition method in Figure 4b to determine whether the object is a real object or a mirror image.
  • the contour line 14 is selected, as shown in Figure 5a.
  • the identification method ( Figure 5b) includes the steps:
  • S4D1 Select a contour line 14, which is located on the right side of the contour frame 1.
  • S5D1 Identify the center point 3 of the detection frame. .
  • a step is also included: obtaining detection frames on both sides adjacent to the contour line 14 .
  • obtaining detection frames on both sides adjacent to the contour line 14 As shown in Figure 5a, for item i in the figure, since the center point 3i of the detection frame is located on the left side of the contour line 14, it is judged that item i is a real item; for item j in the figure, because the center point 3j of the detection frame is located on the To the right of the contour line 14, it is determined that item j is a mirror image item.
  • the object detection frames on adjacent sides of the contour line 14 obtained in the bird's-eye view can use the object information recognition method in Figure 5b to determine whether the object is a real object or a mirror image.
  • S3 Segment multiple detection frames in the bird's-eye view image, and each detection frame corresponds to an item.
  • the set threshold is 5% to 10%.
  • the invention also provides a refrigerator, which includes a bottle holder, a camera, a memory and a processor.
  • the bottle holder includes a top, a bottom and a wall of the bottle holder, and the camera is located at the middle position of the top of the bottle holder, vertically downward.
  • the bottom of the bottle holder is used to place items. At least one side of the wall of the bottle holder is a glass surface. A 10cm wide area of the glass surface close to the bottom of the bottle holder is frosted. The bottom of the bottle holder is also frosted.
  • the memory stores a computer program that can be run on the processor.
  • the processor executes the program, the steps of the above method for identifying item information in the refrigerator are implemented.
  • the present invention also provides a computer storage medium in which a computer program is stored, and when the computer program is run, the above steps of the method for identifying item information in the refrigerator are executed on the device where the computer storage medium is located.
  • the present invention provides a refrigerator in which the lower end of the bottle holder wall and the bottom of the bottle holder are frosted.
  • the edge detection algorithm and the Yolo V4 target detection algorithm are used to calibrate the frosted area.
  • the contour frame and the detection frame corresponding to the object in the image obtain a contour line and identify the position of the contour line in the contour frame and identify the relative position of the center point of the object detection frame and the contour line, compare whether the two are the same to determine the detection in the bird's-eye view image Whether the received item is a real item or a mirrored item, this eliminates the interference of mirrored items and improves the accuracy of the recognition algorithm; in addition, when some drinks with a higher height are placed in the bottle holder or the items in the bottle holder are stacked to a certain height, Since the lower end of the bottle holder wall is frosted, it can well avoid the problem that the center point of the object detection frame falls outside the outline frame, causing misjudgment by the recognition algorithm.

Abstract

Disclosed in the present invention is a method for identifying article information in a refrigerator. The method comprises: acquiring an aerial view image, identifying a contour frame which is formed by intersecting contour lines of the aerial view image, and segmenting the contour frame into a plurality of detection frames, wherein each detection frame corresponds to one article; selecting a contour line of the contour frame, and identifying the orientation of the contour line in the contour frame; if a relative orientation of a central point of the detection frame and the contour line is the same as the orientation of the contour line in the contour frame, the article being a mirror image article; and if the relative orientation of the central point of the detection frame and the contour line is opposite to the orientation of the contour line in the contour frame, the article being a real article. By means of the present invention, the interference of a mirror image article can be eliminated, and the accuracy of an identification algorithm is thus improved.

Description

冰箱内物品信息识别方法Method for identifying item information in refrigerator
本申请要求了申请日为2022年03月29日,申请号为202210323179.9,发明名称为“冰箱内物品信息识别方法、冰箱和计算机存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application with an application date of March 29, 2022, an application number of 202210323179.9, and an invention titled "Method for identifying item information in refrigerator, refrigerator and computer storage medium", the entire content of which is incorporated by reference. in this application.
技术领域Technical field
本发明涉及制冷装置领域,尤其涉及一种冰箱内物品信息识别方法。The invention relates to the field of refrigeration devices, and in particular, to a method for identifying item information in a refrigerator.
背景技术Background technique
随着电器智能化的发展,对内部物品进行识别已经是智能冰箱所必需的功能。通常为了实现对冰箱内存放物品的识别,冰箱内部都安装有一个或多个摄像头用于采集冰箱内物品照片,并对采集到的照片进行识别处理后发送到使用终端,以供用户查看。将摄像头设于物品上方可以避免物品互相遮挡的问题,而提高物品信息识别的准确率。With the development of intelligent appliances, identifying internal items has become a necessary function of smart refrigerators. Usually, in order to realize the identification of items stored in the refrigerator, one or more cameras are installed inside the refrigerator to collect photos of the items in the refrigerator. The collected photos are identified and processed and then sent to the user terminal for viewing by the user. Placing the camera above objects can avoid the problem of objects blocking each other and improve the accuracy of object information recognition.
然而,放置于瓶座内部的物品会在瓶座玻璃柜上产生影子,现有摄像头安装在瓶座中间位置方案采集的物品照片往往会出现物品镜像问题,容易将一件物品识别成两件物品,严重影响识别效果。另外,对于瓶座内部放置的一些大容量且具有较高高度的饮品或是瓶座内物品堆叠至一定高度,会导致瓶座内真实物品与其镜像物品不好区分、无法准确识别的问题。However, items placed inside the bottle holder will produce shadows on the bottle holder glass cabinet. Photos of items collected by the existing camera installed in the middle of the bottle holder often have an object mirroring problem, making it easy to identify one item as two items. Seriously affects the recognition effect. In addition, for some large-capacity and high-height drinks placed inside the bottle holder or items in the bottle holder stacked to a certain height, it will cause problems such as difficulty in distinguishing between real items in the bottle holder and their mirror images, and making it impossible to accurately identify them.
发明内容Contents of the invention
本发明的目的在于提供一种冰箱内物品信息识别方法。The object of the present invention is to provide a method for identifying item information in a refrigerator.
为实现上述发明目的之一,本发明一实施方式提供一种冰箱内物品信息识别方法,包括步骤:In order to achieve one of the above-mentioned objects of the invention, one embodiment of the present invention provides a method for identifying item information in a refrigerator, which includes the steps:
获取冰箱瓶座内空间的鸟瞰图像;Obtain a bird's-eye view of the space inside the refrigerator bottle holder;
在所述鸟瞰图像中识别出相交轮廓线组成的轮廓框;Identify a contour frame composed of intersecting contour lines in the bird's-eye view image;
在所述鸟瞰图像中分割出多个检测框,每个所述检测框对应于一个物品;Segment multiple detection frames in the bird's-eye image, each of the detection frames corresponding to an item;
选取一轮廓线,并识别所述轮廓线位于轮廓框的方位;Select a contour line and identify the position of the contour line in the contour frame;
识别所述检测框的中心点;Identify the center point of the detection frame;
若所述检测框的中心点与所述轮廓线相对方位与所述轮廓线位于轮廓框的方位相同,则对应的物品为镜像物品;If the relative orientation of the center point of the detection frame and the contour line is the same as the orientation of the contour line in the contour frame, then the corresponding item is a mirrored item;
若所述检测框的中心点与所述轮廓线相对方位与所述轮廓线位于轮廓框的方位相反,则对应的物品为真实物品。If the relative orientation of the center point of the detection frame and the contour line is opposite to the orientation of the contour line in the contour frame, the corresponding item is a real item.
作为本发明一实施方式的进一步改进,“在所述鸟瞰图像中识别出相交轮廓线组成 的轮廓框”具体包括:As a further improvement of an embodiment of the present invention, "identifying the composition of intersecting contour lines in the bird's-eye view image The "outline box" specifically includes:
利用边缘检测算法,标定出所述鸟瞰图像磨砂区域相交的轮廓线;Using an edge detection algorithm, the contour lines intersecting the frosted areas of the bird's-eye image are calibrated;
所述轮廓线相交组成轮廓框。The contour lines intersect to form a contour frame.
作为本发明一实施方式的进一步改进,“在所述鸟瞰图像中分割出多个检测框,每个所述检测框对应于一个物品”具体包括:As a further improvement of an embodiment of the present invention, "segmenting multiple detection frames in the bird's-eye view image, each of the detection frames corresponding to an item" specifically includes:
利用Yolo V4目标检测算法,标定出所述鸟瞰图像中每个物品所对应的检测框;Using the Yolo V4 target detection algorithm, the detection frame corresponding to each item in the bird's-eye view image is calibrated;
所述鸟瞰图像中的物品包括放置于所述瓶座内的真实物品以及对应于所述真实物品的镜像物品。The objects in the bird's-eye view image include real objects placed in the bottle holder and mirror objects corresponding to the real objects.
作为本发明一实施方式的进一步改进,在“识别所述检测框的中心点”之前还包括步骤:As a further improvement of one embodiment of the present invention, before "identifying the center point of the detection frame", the following steps are also included:
获取与所述轮廓线相邻两侧的检测框。Obtain the detection frames on both sides of the contour line.
作为本发明一实施方式的进一步改进,所述方法具体包括:As a further improvement of one embodiment of the present invention, the method specifically includes:
选取一轮廓线,所述轮廓线位于所述轮廓框的上方;Select a contour line, the contour line is located above the contour frame;
识别所述检测框的中心点;Identify the center point of the detection frame;
若所述检测框的中心点位于所述轮廓线上方,则对应的物品为镜像物品;If the center point of the detection frame is located above the contour line, the corresponding item is a mirrored item;
若所述检测框的中心点位于所述轮廓线下方,则对应的物品为真实物品。If the center point of the detection frame is located below the contour line, the corresponding item is a real item.
作为本发明一实施方式的进一步改进,所述方法具体包括:As a further improvement of one embodiment of the present invention, the method specifically includes:
选取一轮廓线,所述轮廓线位于所述轮廓框的下方;Select a contour line, the contour line is located below the contour frame;
识别所述检测框的中心点;Identify the center point of the detection frame;
若所述检测框的中心点位于所述轮廓线上方,则对应的物品为真实物品;If the center point of the detection frame is located above the contour line, the corresponding item is a real item;
若所述检测框的中心点位于所述轮廓线下方,则对应的物品为镜像物品。If the center point of the detection frame is located below the contour line, the corresponding item is a mirrored item.
为实现上述目的之一,本发明一实施方式还提供另一种冰箱内物品信息识别方法,包括步骤:In order to achieve one of the above objects, an embodiment of the present invention also provides another method for identifying item information in a refrigerator, including the steps:
获取冰箱瓶座内空间的鸟瞰图像;Obtain a bird's-eye view of the space inside the refrigerator bottle holder;
在所述鸟瞰图像中识别出相交轮廓线组成的轮廓框;Identify a contour frame composed of intersecting contour lines in the bird's-eye view image;
在所述鸟瞰图像中分割出多个检测框,每个所述检测框对应于一个物品;Segment multiple detection frames in the bird's-eye image, each of the detection frames corresponding to an item;
若所述检测框和轮廓框的重合面积与所述检测框面积的占比小于设定阈值,则对应的物品为镜像物品;If the ratio of the overlapping area of the detection frame and the outline frame to the area of the detection frame is less than the set threshold, the corresponding item is a mirrored item;
若所述检测框和轮廓框的重合面积与所述检测框面积的占比远大于设定阈值,则对应的物品为真实物品。If the overlap area of the detection frame and the outline frame and the area of the detection frame are much greater than the set threshold, the corresponding item is a real item.
作为本发明一实施方式的进一步改进,“在所述鸟瞰图像中识别出相交轮廓线组成的轮廓框”具体包括:As a further improvement of an embodiment of the present invention, "identifying a contour frame composed of intersecting contour lines in the bird's-eye view image" specifically includes:
利用边缘检测算法,标定出所述鸟瞰图像磨砂区域相交的轮廓线; Using an edge detection algorithm, the contour lines intersecting the frosted areas of the bird's-eye image are calibrated;
所述轮廓线相交组成轮廓框。The contour lines intersect to form a contour frame.
作为本发明一实施方式的进一步改进,“在所述鸟瞰图像中分割出多个检测框,每个所述检测框对应于一个物品”具体包括:As a further improvement of an embodiment of the present invention, "segmenting multiple detection frames in the bird's-eye view image, each of the detection frames corresponding to an item" specifically includes:
利用Yolo V4目标检测算法,标定出所述鸟瞰图像中每个物品所对应的检测框;Using the Yolo V4 target detection algorithm, the detection frame corresponding to each item in the bird's-eye view image is calibrated;
所述鸟瞰图像中的物品包括放置于所述瓶座内的真实物品以及对应于所述真实物品的镜像物品。The objects in the bird's-eye view image include real objects placed in the bottle holder and mirror objects corresponding to the real objects.
作为本发明一实施方式的进一步改进,所述设定阈值具体为5%~10%。As a further improvement of an embodiment of the present invention, the set threshold is specifically 5% to 10%.
与现有技术相比,本发明提供一种冰箱将其瓶座壁面下端以及瓶座底部作磨砂处理,通过获取冰箱瓶座内空间的鸟瞰图像,采用边缘检测算法和Yolo V4目标检测算法标定磨砂区域的轮廓框和图像内物品对应的检测框,获取一轮廓线并识别轮廓线位于轮廓框的方位以及识别物品检测框的中心点与轮廓线的相对方位,比较两者是否相同来判断鸟瞰图像中检测到的物品是真实物品还是镜像物品,以此排除镜像物品的干扰,提高识别算法的准确性;另外,当瓶座内放置一些具有较高高度的饮品或是瓶座内物品堆叠至一定高度,由于瓶座壁面下端作磨砂处理,可以很好地避免该物品检测框的中心点落在轮廓框之外导致识别算法判断失误的问题。Compared with the existing technology, the present invention provides a refrigerator in which the lower end of the wall of the bottle holder and the bottom of the bottle holder are frosted. By obtaining a bird's-eye view of the space inside the bottle holder of the refrigerator, the edge detection algorithm and the Yolo V4 target detection algorithm are used to calibrate the frosting. The contour frame of the area and the detection frame corresponding to the object in the image, obtain a contour line and identify the position of the contour line in the contour frame and identify the relative position of the center point of the object detection frame and the contour line, compare whether the two are the same to judge the bird's-eye view image Whether the items detected in the bottle are real items or mirrored items, this can eliminate the interference of mirrored items and improve the accuracy of the recognition algorithm; in addition, when some drinks with a higher height are placed in the bottle holder or the items in the bottle holder are stacked to a certain Height, because the lower end of the bottle holder wall is frosted, it can well avoid the problem that the center point of the object detection frame falls outside the outline frame, causing misjudgment by the recognition algorithm.
附图说明Description of drawings
图1是本发明一实施方式中一种冰箱内物品信息识别方法的流程示意图。Figure 1 is a schematic flowchart of a method for identifying item information in a refrigerator in an embodiment of the present invention.
图2a是本发明实施例一中拍摄冰箱瓶座内空间的示意简图(除用以说明的轮廓线及相邻两侧的物品外,省略图中其余内容)。Figure 2a is a schematic diagram of the space inside the bottle holder of the refrigerator in Embodiment 1 of the present invention (except for the outline for illustration and the items on adjacent sides, the rest of the content in the figure is omitted).
图2b是本发明实施例一中冰箱内物品信息识别方法的流程示意图。Figure 2b is a schematic flowchart of the method for identifying item information in the refrigerator in Embodiment 1 of the present invention.
图3a是本发明实施例二中拍摄冰箱瓶座内空间的示意简图(除用以说明的轮廓线及相邻两侧的物品外,省略图中其余内容)。Figure 3a is a schematic diagram of the space inside the bottle holder of the refrigerator in Embodiment 2 of the present invention (except for the outline for illustration and the items on adjacent sides, the rest of the content in the figure is omitted).
图3b是本发明实施例二中冰箱内物品信息识别方法的流程示意图。Figure 3b is a schematic flowchart of the method for identifying item information in the refrigerator in Embodiment 2 of the present invention.
图4a是本发明实施例三中拍摄冰箱瓶座内空间的示意简图(除用以说明的轮廓线及相邻两侧的物品外,省略图中其余内容)。Figure 4a is a schematic diagram of the space inside the bottle holder of the refrigerator in Embodiment 3 of the present invention (except for the outline for illustration and the items on adjacent sides, the rest of the content in the figure is omitted).
图4b是本发明实施例三中冰箱内物品信息识别方法的流程示意图。Figure 4b is a schematic flowchart of the method for identifying item information in the refrigerator in Embodiment 3 of the present invention.
图5a是本发明实施例四中拍摄冰箱瓶座内空间的示意简图(除用以说明的轮廓线及相邻两侧的物品外,省略图中其余内容)。Figure 5a is a schematic diagram of the space inside the bottle holder of the refrigerator in Embodiment 4 of the present invention (except for the outline for illustration and the items on adjacent sides, the rest of the content in the figure is omitted).
图5b是本发明实施例四中冰箱内物品信息识别方法的流程示意图。Figure 5b is a schematic flowchart of the method for identifying item information in the refrigerator in Embodiment 4 of the present invention.
图6是本发明另一种实施方式中拍摄的冰箱瓶座内空间的示意简图。FIG. 6 is a schematic diagram of the space inside the bottle holder of the refrigerator taken in another embodiment of the present invention.
图7是本发明另一实施方式中一种冰箱内物品信息识别方法的流程示意图。Figure 7 is a schematic flowchart of a method for identifying item information in a refrigerator in another embodiment of the present invention.
具体实施方式 Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请具体实施方式及相应的附图对本申请技术方案进行清楚、完整地描述。显然,所描述的实施方式仅是本申请一部分实施方式,而不是全部的实施方式。基于本申请中的实施方式,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施方式,都属于本申请保护的范围。In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be clearly and completely described below in conjunction with the specific implementation modes of the present application and the corresponding drawings. Obviously, the described embodiments are only some of the embodiments of the present application, but not all of them. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.
下面详细描述本发明的实施方式,实施方式的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施方式是示例性的,仅用于解释本发明,而不能理解为对本发明的限制。Embodiments of the present invention are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the drawings are exemplary and are only used to explain the present invention and are not to be construed as limitations of the present invention.
为方便说明,本文使用表示空间相对位置的术语来进行描述,例如“上”、“下”、“后”、“前”等,用来描述附图中所示的一个单元或者特征相对于另一个单元或特征的关系。空间相对位置的术语可以包括设备在使用或工作中除了图中所示方位以外的不同方位。例如,如果将图中的装置翻转,则被描述为位于其他单元或特征“下方”或“上方”的单元将位于其他单元或特征“下方”或“上方”。因此,示例性术语“下方”可以囊括下方和上方这两种空间方位。For convenience of explanation, this article uses terms indicating relative positions in space, such as "upper", "lower", "back", "front", etc., to describe one unit or feature shown in the drawings relative to another. A relationship between a unit or a feature. Spatially relative terms may refer to different orientations of the device in use or operation in addition to the orientation illustrated in the figures. For example, if the device in the diagram is turned over, elements described as "below" or "above" other elements or features would then be oriented "below" or "above" the other elements or features. Thus, the exemplary term "below" may encompass both spatial orientations, below and above.
如图1所示,本发明提供一种冰箱内物品信息识别方法,包括步骤:As shown in Figure 1, the present invention provides a method for identifying item information in a refrigerator, which includes the steps:
S1:获取冰箱瓶座内空间的鸟瞰图像。S1: Obtain a bird's-eye view of the space inside the refrigerator bottle holder.
在本实施方式中,摄像头设于所述瓶座顶部,从上方拍摄物品得到鸟瞰图像,为避免瓶座内物品间的相互遮挡而不利于物品信息进行检测识别,所以,本发明优选为将摄像头设于所述瓶座顶部中间位置。In this embodiment, a camera is installed on the top of the bottle holder, and the objects are photographed from above to obtain a bird's-eye view image. In order to avoid mutual occlusion between objects in the bottle holder, which is not conducive to the detection and identification of object information, the present invention preferably uses the camera Located at the middle position of the top of the bottle holder.
当然,在本发明的另一些实施方式中,也可在瓶座内设置两个或更多个摄像头,用于获取两张或更多不同角度拍摄的冰箱瓶座内空间的鸟瞰图像。Of course, in other embodiments of the present invention, two or more cameras may also be provided in the bottle holder to obtain two or more bird's-eye images of the space inside the bottle holder of the refrigerator taken from different angles.
S2:在所述鸟瞰图像中识别出相交轮廓线组成的轮廓框。S2: Identify a contour frame composed of intersecting contour lines in the bird's-eye view image.
在本发明具体实施方式中,冰箱瓶座至少有一壁面为玻璃面,容易产生镜像干扰,具体的,将玻璃面靠近瓶座底部一端区域作磨砂处理,在保证大容量、具有较高高度的物品检测框中心点落在轮廓框里的同时,也不妨碍用户从瓶座玻璃面外侧观察瓶座内部,优选的,本发明中将玻璃面下端10cm宽区域作磨砂处理,瓶座底部也同样作磨砂处理。由于磨砂区域和非磨砂区域具有明显的透光性差异,因此通过摄像头拍摄得到的瓶座底部和瓶座壁面等区域在图像中通常具有较明显的像素灰度差异,能够被检测识别到明显的边缘轮廓线。In the specific embodiment of the present invention, at least one wall of the bottle holder in the refrigerator is a glass surface, which is prone to mirror interference. Specifically, the area of the glass surface close to the bottom of the bottle holder is frosted to ensure large-capacity and high-height items. While the center point of the detection frame falls within the outline frame, it does not prevent the user from observing the inside of the bottle holder from outside the glass surface of the bottle holder. Preferably, in the present invention, the 10cm wide area at the lower end of the glass surface is frosted, and the bottom of the bottle holder is also frosted. Matte finish. Since there is an obvious difference in light transmittance between frosted areas and non-frosted areas, areas such as the bottom of the bottle holder and the wall of the bottle holder captured by the camera usually have obvious pixel grayscale differences in the image, which can be detected and identified. Edge outline.
进一步的,本发明采用边缘检测算法,识别瓶座边缘轮廓线,标定出所述鸟瞰图像磨砂区域相交的轮廓线,所述轮廓线相交组成轮廓框,为更方便说明,本实施方式以冰箱瓶座四个壁面底部端具有10cm宽的磨砂区域为例,则标定出的轮廓框1如图2a、图3a、图4a和图5a所示,为长方形结构。这里,边缘检测算法可以采用诸如Roberts、Sobel、 Prewitt、Canny、Log等目前常见的算法,具体算法内容为现有技术,在此不过多赘述。Furthermore, the present invention uses an edge detection algorithm to identify the edge contours of the bottle holder, and calibrate the contour lines intersecting the frosted areas of the bird's-eye image. The intersection of the contour lines forms an outline frame. For easier explanation, this embodiment uses a refrigerator bottle Taking the bottom end of the four wall surfaces of the seat as an example with a 10cm wide frosted area, the calibrated outline frame 1 is a rectangular structure as shown in Figures 2a, 3a, 4a and 5a. Here, edge detection algorithms can be used such as Roberts, Sobel, Currently common algorithms such as Prewitt, Canny, and Log are based on existing technologies and will not be described in detail here.
S3:在所述鸟瞰图像中分割出多个检测框,每个所述检测框对应于一个物品。S3: Segment multiple detection frames in the bird's-eye view image, and each detection frame corresponds to an item.
在瓶座壁面的非磨砂区域内,瓶座内物品往往会在非磨砂区域投射出相应的影子,即其镜像物品,所以,本发明中拍摄获得的鸟瞰图像中的物品包括放置于所述瓶座内的真实物品以及对应于所述真实物品的镜像物品。In the non-frosted area of the bottle holder wall, the objects in the bottle holder often cast corresponding shadows in the non-frosted area, that is, mirror objects. Therefore, the objects in the bird's-eye view image captured in the present invention include objects placed on the bottle holder. Real objects in the seat and mirrored objects corresponding to said real objects.
具体的,在鸟瞰图像中识别其内存在的物品,利用Yolo V4目标检测算法,标定出所述鸟瞰图像中每个物品所对应的检测框2。这里Yolo V4目标检测算法具体内容为现有技术,在此不过多赘述。Specifically, the items present in the bird's-eye view image are identified, and the Yolo V4 target detection algorithm is used to calibrate the detection frame 2 corresponding to each item in the bird's-eye view image. The specific content of the Yolo V4 target detection algorithm here is the existing technology, so I won’t go into details here.
S4:选取一轮廓线,并识别所述轮廓线位于轮廓框的方位。S4: Select a contour line and identify the position of the contour line in the contour frame.
具体的,所述轮廓框1为四方形结构,其包括位于轮廓框上方位的轮廓线11、位于轮廓框下方位的轮廓线12、位于轮廓框左方位的轮廓线13、以及位于轮廓框右方位的轮廓线14。Specifically, the outline frame 1 is a square structure, which includes an outline line 11 located above the outline frame, an outline line 12 located below the outline frame, an outline line 13 located on the left side of the outline frame, and an outline line 13 located on the right side of the outline frame. Orientation contour line 14.
示例性的,在本发明实施方式中,选取一轮廓线可以是轮廓线11、轮廓线12、轮廓线13或轮廓线14。For example, in the embodiment of the present invention, the selected contour line may be contour line 11, contour line 12, contour line 13 or contour line 14.
S5:识别所述检测框的中心点。S5: Identify the center point of the detection frame.
具体的,在“识别所述检测框的中心点”之前还包括步骤:获取与所述轮廓线相邻的检测框。示例性的,如果在步骤S4中选取轮廓线11,则此时系统只获取与轮廓线11相邻两侧上存在的物品检测框,对于其他面上的物品检测框不以此作判断标准。Specifically, before "identifying the center point of the detection frame", it also includes the step of: obtaining a detection frame adjacent to the contour line. For example, if the contour line 11 is selected in step S4, then the system only obtains the object detection frames on both sides adjacent to the contour line 11, and does not use this as a criterion for the object detection frames on other surfaces.
根据识别的检测框中心点3与轮廓线的相对方位和所述轮廓线位于轮廓框1的方位是否相同来判断鸟瞰图像中识别的物品为真实物品或镜像物品。Whether the object identified in the bird's-eye view image is a real object or a mirror image is determined based on whether the relative orientation of the identified center point 3 of the detection frame and the contour line is the same as the orientation of the contour line in the contour frame 1 .
S61:若所述检测框的中心点与所述轮廓线相对方位与所述轮廓线位于轮廓框的方位相同,则对应的物品为镜像物品。S61: If the relative orientation of the center point of the detection frame and the contour line is the same as the orientation of the contour line in the contour frame, then the corresponding item is a mirror image item.
S62:若所述检测框的中心点与所述轮廓线相对方位与所述轮廓线位于轮廓框的方位相反,则对应的物品为真实物品。S62: If the relative orientation of the center point of the detection frame and the contour line is opposite to the orientation of the contour line in the contour frame, then the corresponding item is a real item.
示例性的,如果在步骤S4中选取轮廓线11,则在步骤“获取与所述轮廓线相邻两侧的检测框”中仅获取如图2a所示的物品a、物品b、物品c和物品d的检测框,判断其为真实物品或镜像物品。对于物品a,其检测框2a的中心点3a与所述选取的轮廓线11的相对方位为检测框2a中心点3a位于轮廓线11的上方位,且轮廓线11位于轮廓框1的上方位,所以物品a检测框2a的中心点3a与轮廓线11的相对方位和轮廓线11位于轮廓框1的方位相同,即执行S61步骤,系统判断物品a为镜像物品。For example, if the contour line 11 is selected in step S4, then in the step "obtain detection frames on both sides adjacent to the contour line", only item a, item b, item c and as shown in Figure 2a are obtained. The detection frame of item d determines whether it is a real item or a mirrored item. For item a, the relative position between the center point 3a of the detection frame 2a and the selected contour line 11 is that the center point 3a of the detection frame 2a is located above the contour line 11, and the contour line 11 is located above the contour frame 1, Therefore, the relative orientation of the center point 3a of the detection frame 2a of item a and the contour line 11 is the same as the orientation of the contour line 11 in the contour frame 1, that is, step S61 is executed, and the system determines that item a is a mirrored item.
同样的,对于图2a中的物品b、物品c和物品d,根据上述的判断方法即可有效判断物品b为真实物品、物品c为镜像物品及物品d为真实物品。Similarly, for item b, item c and item d in Figure 2a, according to the above determination method, it can be effectively determined that item b is a real item, item c is a mirror item and item d is a real item.
这里需要说明的是,对于大容量、具有较高高度的物品,如图2a中物品d,或是瓶 座内有多个物品堆叠在一起至一定高度(图中未示出),其检测框的中心点3d往往会高于瓶座底部的边缘线4,所以在本申请中对瓶座玻璃面下端10cm宽区域作磨砂处理,识别整个鸟瞰图像中的磨砂区域,即标定整个磨砂区域的轮廓框1,可以在保证这类具有较高高度的物品所对应检测框2的中心点落在轮廓框1内的同时,也不会影响用户在瓶座外侧观察瓶座内物品堆放情况。What needs to be explained here is that for items with large capacity and high height, such as item d in Figure 2a, or bottles There are multiple items stacked together to a certain height in the holder (not shown in the figure), and the center point 3d of the detection frame is often higher than the edge line 4 of the bottom of the bottle holder. Therefore, in this application, the lower end of the glass surface of the bottle holder is The 10cm wide area is frosted, and the frosted area in the entire bird's-eye view image is identified, that is, the outline frame 1 of the entire frosted area is calibrated. This ensures that the center point of the detection frame 2 corresponding to such items with higher heights falls within the outline frame 1. At the same time, it will not affect the user's ability to observe the stacking of items in the bottle holder from the outside of the bottle holder.
由于选取的轮廓线不同,本发明给出四种具体的关于冰箱瓶座内物品的识别方法,以下以四种实施例具体说明。Due to different selected contours, the present invention provides four specific identification methods for items in the bottle holder of the refrigerator, which are described in detail below with four embodiments.
实施例一Embodiment 1
在实施例一中,选取轮廓线11,如图2a所示,所述识别方法(图2b)包括步骤:In Embodiment 1, the contour line 11 is selected, as shown in Figure 2a, and the identification method (Figure 2b) includes the steps:
S4A1:选取一轮廓线11,所述轮廓线11位于所述轮廓框1的上边线。S4A1: Select a contour line 11, which is located on the upper edge of the contour frame 1.
S5A1:识别所述检测框的中心点3。S5A1: Identify the center point 3 of the detection frame.
S61A1:若所述检测框的中心点3位于所述轮廓线11上方,则对应的物品为镜像物品。S61A1: If the center point 3 of the detection frame is located above the contour line 11, the corresponding item is a mirrored item.
S62A1:若所述检测框的中心点3位于所述轮廓线11下方,则对应的物品为真实物品。S62A1: If the center point 3 of the detection frame is located below the contour line 11, the corresponding item is a real item.
同样的,在识别所述检测框中心点3之前还包括步骤:获取与所述轮廓线11相邻两侧的检测框2。如图2a,对于图中物品a,由于其检测框中心点3a位于轮廓线11的上方,即判断物品a为镜像物品;对于图中物品b,由于其检测框中心点3b位于轮廓线11的下方,即判断物品b为真实物品;对于图中物品c,由于其检测框中心点3c位于轮廓线11的上方,即判断物品c为镜像物品;对于图中物品d,由于其检测框中心点3d位于轮廓线11的下方,即判断物品d为真实物品。Similarly, before identifying the center point 3 of the detection frame, a step is also included: obtaining the detection frames 2 on both sides adjacent to the contour line 11 . As shown in Figure 2a, for item a in the figure, because the center point 3a of the detection frame is located above the contour line 11, it is judged that item a is a mirrored item; for item b in the figure, because the center point 3b of the detection frame is located above the contour line 11 Below, it is judged that item b is a real item; for item c in the picture, because the center point 3c of its detection frame is located above the contour line 11, it is judged that item c is a mirror item; for item d in the picture, because the center point of its detection frame 3d is located below the contour line 11, that is, item d is judged to be a real item.
在此实施方式中,鸟瞰图中获取的在轮廓线11相邻两侧的物品检测框均可采用图2b中的物品信息识别方法来判断所述物品为真实物品或是镜像物品。In this embodiment, the object detection frames on adjacent sides of the contour line 11 obtained in the bird's-eye view can use the object information recognition method in Figure 2b to determine whether the object is a real object or a mirror object.
实施例二Embodiment 2
在实施例二中,选取轮廓线12,如图3a所示,所述识别方法(图3b)包括步骤:In the second embodiment, the contour line 12 is selected, as shown in Figure 3a. The identification method (Figure 3b) includes the steps:
S4B1:选取一轮廓线12,所述轮廓线12位于所述轮廓框1的下边线。S4B1: Select a contour line 12 located at the lower edge of the contour frame 1.
S5B1:识别所述检测框的中心点3。S5B1: Identify the center point 3 of the detection frame.
S61B1:若所述检测框的中心点3位于所述轮廓线12上方,则对应的物品为真实物品。S61B1: If the center point 3 of the detection frame is located above the contour line 12, the corresponding item is a real item.
S62B1:若所述检测框的中心点3位于所述轮廓线11下方,则对应的物品为镜像物品。S62B1: If the center point 3 of the detection frame is located below the contour line 11, the corresponding item is a mirrored item.
同样的,在识别所述检测框中心点3之前还包括步骤:获取与所述轮廓线12相邻两侧的检测框2。如图3a,对于图中物品e,由于其检测框中心点3e位于轮廓线12的 上方,即判断物品e为真实物品;对于图中物品f,由于其检测框中心点3f位于轮廓线12的下方,即判断物品f为镜像物品。Similarly, before identifying the center point 3 of the detection frame, a step is also included: obtaining the detection frames 2 on both sides adjacent to the contour line 12 . As shown in Figure 3a, for item e in the figure, since the center point 3e of its detection frame is located on the contour line 12 Above, it is judged that item e is a real item; for item f in the picture, since the center point 3f of the detection frame is located below the contour line 12, it is judged that item f is a mirror item.
在此实施方式中,鸟瞰图中获取的在轮廓线12相邻两侧的物品检测框均可采用图3b中的物品信息识别方法来判断所述物品为真实物品或是镜像物品。In this embodiment, the object detection frames on adjacent sides of the contour line 12 obtained in the bird's-eye view can use the object information recognition method in Figure 3b to determine whether the object is a real object or a mirror object.
实施例三Embodiment 3
在实施例三中,选取轮廓线13,如图4a所示,所述识别方法(图4b)包括步骤:In the third embodiment, the contour line 13 is selected, as shown in Figure 4a, and the identification method (Figure 4b) includes the steps:
S4C1:选取一轮廓线13,所述轮廓线13位于所述轮廓框1的左边线。S4C1: Select a contour line 13, which is located on the left side of the contour frame 1.
S5C1:识别所述检测框的中心点3。S5C1: Identify the center point 3 of the detection frame.
S61C1:若所述检测框的中心点3位于所述轮廓线13的左方,则对应的物品为镜像物品。S61C1: If the center point 3 of the detection frame is located to the left of the contour line 13, the corresponding item is a mirror image item.
S62C1:若所述检测框的中心点3位于所述轮廓线13的右方,则对应的物品为真实物品。S62C1: If the center point 3 of the detection frame is located to the right of the contour line 13, the corresponding item is a real item.
同样的,在识别所述检测框中心点3之前还包括步骤:获取与所述轮廓线13相邻两侧的检测框。如图4a,对于图中物品g,由于其检测框的中心点3g位于轮廓线13的左方,即判断物品g为镜像物品;对于图中物品h,由于其检测框的中心点3h位于轮廓线13的右方,即判断物品h为真实物品。Similarly, before identifying the center point 3 of the detection frame, a step is also included: obtaining detection frames on both sides adjacent to the contour line 13 . As shown in Figure 4a, for item g in the figure, because the center point 3g of its detection frame is located to the left of the contour line 13, it is judged that item g is a mirrored item; for item h in the figure, because the center point 3h of its detection frame is located on the outline To the right of line 13, it is judged that item h is a real item.
在此实施方式中,鸟瞰图中获取的在轮廓线13相邻两侧的物品检测框均可采用图4b中的物品信息识别方法来判断所述物品为真实物品或是镜像物品。In this embodiment, the object detection frames on adjacent sides of the contour line 13 obtained in the bird's-eye view can use the object information recognition method in Figure 4b to determine whether the object is a real object or a mirror image.
实施例四Embodiment 4
在实施例四中,选取轮廓线14,如图5a所示,所述识别方法(图5b)包括步骤:In the fourth embodiment, the contour line 14 is selected, as shown in Figure 5a. The identification method (Figure 5b) includes the steps:
S4D1:选取一轮廓线14,所述轮廓线14位于所述轮廓框1的右边线。S4D1: Select a contour line 14, which is located on the right side of the contour frame 1.
S5D1:识别所述检测框的中心点3。。S5D1: Identify the center point 3 of the detection frame. .
S61D1:若所述检测框的中心点3位于所述轮廓线14的左方,则对应的物品为真实物品。S61D1: If the center point 3 of the detection frame is located to the left of the contour line 14, the corresponding item is a real item.
S62D1:若所述检测框的中心点3位于所述轮廓线14的右方,则对应的物品为镜像物品。S62D1: If the center point 3 of the detection frame is located to the right of the contour line 14, the corresponding item is a mirrored item.
同样的,在识别所述检测框的中心点之前还包括步骤:获取与所述轮廓线14相邻两侧的检测框。如图5a,对于图中物品i,由于检测框中心点3i位于所述轮廓线14的左方,即判断物品i为真实物品;对于图中物品j,由于其检测框中心点3j位于所述轮廓线14的右方,即判断物品j为镜像物品。Similarly, before identifying the center point of the detection frame, a step is also included: obtaining detection frames on both sides adjacent to the contour line 14 . As shown in Figure 5a, for item i in the figure, since the center point 3i of the detection frame is located on the left side of the contour line 14, it is judged that item i is a real item; for item j in the figure, because the center point 3j of the detection frame is located on the To the right of the contour line 14, it is determined that item j is a mirror image item.
在此实施方式中,鸟瞰图中获取的在轮廓线14相邻两侧的物品检测框均可采用图5b中的物品信息识别方法来判断所述物品为真实物品或是镜像物品。In this embodiment, the object detection frames on adjacent sides of the contour line 14 obtained in the bird's-eye view can use the object information recognition method in Figure 5b to determine whether the object is a real object or a mirror image.
更进一步的,考虑到识别算法在实际使用的过程中可能会出现识别误差的情况,比 如在图2a中的物品a和物品c太靠近轮廓线11,而导致标定出物品a和物品c的检测框有部分落入轮廓框1内,如图6,检测框2a和3a与轮廓框1有重合区域,从而导致轮廓框的中心点3a和3b距离轮廓线11的距离不到25像素。所以,本发明就可能出现的算法误差情况提出另一种冰箱内物品信息识别方法,如图7所示,包括步骤:Furthermore, considering that recognition errors may occur during the actual use of the recognition algorithm, it is better to For example, in Figure 2a, items a and item c are too close to the contour line 11, causing part of the detection frame to calibrate item a and item c to fall into the outline frame 1. As shown in Figure 6, the detection frames 2a and 3a are not consistent with the outline frame. 1 has an overlapping area, resulting in the center points 3a and 3b of the contour frame being less than 25 pixels away from the contour line 11. Therefore, the present invention proposes another method for identifying item information in the refrigerator based on possible algorithm errors, as shown in Figure 7, including the steps:
S1:获取冰箱瓶座内空间的鸟瞰图像。S1: Obtain a bird's-eye view of the space inside the refrigerator bottle holder.
S2:在所述鸟瞰图像中识别出相交轮廓线组成的轮廓框。S2: Identify a contour frame composed of intersecting contour lines in the bird's-eye view image.
S3:在所述鸟瞰图像中分割出多个检测框,每个所述检测框对应于一个物品。S3: Segment multiple detection frames in the bird's-eye view image, and each detection frame corresponds to an item.
S41’:若所述检测框和轮廓框的重合面积与所述检测框面积的占比小于设定阈值,则对应的物品为镜像物品。S41': If the ratio of the overlapping area of the detection frame and the outline frame to the area of the detection frame is less than the set threshold, the corresponding item is a mirrored item.
S42’:若所述检测框和轮廓框的重合面积与所述检测框面积的占比远大于设定阈值,则对应的物品为真实物品。S42': If the overlap area of the detection frame and the outline frame and the area of the detection frame are much greater than the set threshold, the corresponding item is a real item.
在本实施方式中,所述设定阈值为5%~10%。In this embodiment, the set threshold is 5% to 10%.
本发明还提供一种冰箱,所述冰箱包括瓶座、摄像头以及存储器和处理器。The invention also provides a refrigerator, which includes a bottle holder, a camera, a memory and a processor.
进一步的,所述瓶座包括瓶座顶部、底部和瓶座壁面,所述摄像头设于所述瓶座顶部中间位置,竖直向下设置。Further, the bottle holder includes a top, a bottom and a wall of the bottle holder, and the camera is located at the middle position of the top of the bottle holder, vertically downward.
所述瓶座底部用于放置物品,所述瓶座壁面至少一面为玻璃面,将玻璃面靠近瓶座底部一端10cm宽区域作磨砂处理,瓶座底部也同样作磨砂处理。The bottom of the bottle holder is used to place items. At least one side of the wall of the bottle holder is a glass surface. A 10cm wide area of the glass surface close to the bottom of the bottle holder is frosted. The bottom of the bottle holder is also frosted.
所述存储器存储可在所述处理器上运行的计算机程序,所述处理器执行所述程序时实现上述的冰箱内物品信息识别方法的步骤。The memory stores a computer program that can be run on the processor. When the processor executes the program, the steps of the above method for identifying item information in the refrigerator are implemented.
本发明还提供一种计算机存储介质,其中存储有计算机程序,并且计算机程序运行时导致计算机存储介质的所在设备上执行上述的冰箱内物品信息识别方法的步骤。The present invention also provides a computer storage medium in which a computer program is stored, and when the computer program is run, the above steps of the method for identifying item information in the refrigerator are executed on the device where the computer storage medium is located.
综上所述,本发明提供一种冰箱将其瓶座壁面下端以及瓶座底部作磨砂处理,通过获取冰箱瓶座内空间的鸟瞰图像,采用边缘检测算法和Yolo V4目标检测算法标定磨砂区域的轮廓框和图像内物品对应的检测框,获取一轮廓线并识别轮廓线位于轮廓框的方位以及识别物品检测框的中心点与轮廓线的相对方位,比较两者是否相同来判断鸟瞰图像中检测到的物品是真实物品还是镜像物品,以此排除镜像物品的干扰,提高识别算法的准确性;另外,当瓶座内放置一些具有较高高度的饮品或是瓶座内物品堆叠至一定高度,由于瓶座壁面下端作磨砂处理,可以很好地避免该物品检测框的中心点落在轮廓框之外导致识别算法判断失误的问题。In summary, the present invention provides a refrigerator in which the lower end of the bottle holder wall and the bottom of the bottle holder are frosted. By obtaining a bird's-eye view image of the space inside the refrigerator bottle holder, the edge detection algorithm and the Yolo V4 target detection algorithm are used to calibrate the frosted area. The contour frame and the detection frame corresponding to the object in the image, obtain a contour line and identify the position of the contour line in the contour frame and identify the relative position of the center point of the object detection frame and the contour line, compare whether the two are the same to determine the detection in the bird's-eye view image Whether the received item is a real item or a mirrored item, this eliminates the interference of mirrored items and improves the accuracy of the recognition algorithm; in addition, when some drinks with a higher height are placed in the bottle holder or the items in the bottle holder are stacked to a certain height, Since the lower end of the bottle holder wall is frosted, it can well avoid the problem that the center point of the object detection frame falls outside the outline frame, causing misjudgment by the recognition algorithm.
应当理解,虽然本说明书按照实施方式加以描述,但并非每个实施方式仅包含一个独立的技术方案,说明书的这种叙述方式仅仅是为清楚起见,本领域技术人员应当将说明书作为一个整体,各实施方式中的技术方案也可以经适当组合,形成本领域技术人员可以理解的其他实施方式。 It should be understood that although this specification is described in terms of implementations, not each implementation only contains an independent technical solution. This description of the specification is only for the sake of clarity. Persons skilled in the art should take the specification as a whole and understand each individual solution. The technical solutions in the embodiments can also be appropriately combined to form other embodiments that can be understood by those skilled in the art.
上文所列出的一系列的详细说明仅仅是针对本发明的可行性实施方式的具体说明,并非用以限制本发明的保护范围,凡未脱离本发明技艺精神所作的等效实施方式或变更均应包含在本发明的保护范围之内。 The series of detailed descriptions listed above are only specific descriptions of feasible implementations of the present invention and are not intended to limit the scope of protection of the present invention. Any equivalent implementations or changes that do not depart from the technical spirit of the present invention are All should be included in the protection scope of the present invention.

Claims (10)

  1. 一种冰箱内物品信息识别方法,其特征在于,包括步骤:A method for identifying item information in a refrigerator, which is characterized by including the steps:
    获取冰箱瓶座内空间的鸟瞰图像;Obtain a bird's-eye view of the space inside the refrigerator bottle holder;
    在所述鸟瞰图像中识别出相交轮廓线组成的轮廓框;Identify a contour frame composed of intersecting contour lines in the bird's-eye view image;
    在所述鸟瞰图像中分割出多个检测框,每个所述检测框对应于一个物品;Segment multiple detection frames in the bird's-eye image, each of the detection frames corresponding to an item;
    选取一轮廓线,并识别所述轮廓线位于轮廓框的方位;Select a contour line and identify the position of the contour line in the contour frame;
    识别所述检测框的中心点;Identify the center point of the detection frame;
    若所述检测框的中心点与所述轮廓线相对方位与所述轮廓线位于轮廓框的方位相同,则对应的物品为镜像物品;If the relative orientation of the center point of the detection frame and the contour line is the same as the orientation of the contour line in the contour frame, then the corresponding item is a mirrored item;
    若所述检测框的中心点与所述轮廓线相对方位与所述轮廓线位于轮廓框的方位相反,则对应的物品为真实物品。If the relative orientation of the center point of the detection frame and the contour line is opposite to the orientation of the contour line in the contour frame, the corresponding item is a real item.
  2. 根据权利要求1所述的冰箱内物品信息识别方法,其特征在于,“在所述鸟瞰图像中识别出相交轮廓线组成的轮廓框”具体包括:The method for identifying item information in a refrigerator according to claim 1, wherein "identifying a contour frame composed of intersecting contour lines in the bird's-eye view image" specifically includes:
    利用边缘检测算法,标定出所述鸟瞰图像磨砂区域相交的轮廓线;Using an edge detection algorithm, the contour lines intersecting the frosted areas of the bird's-eye image are calibrated;
    所述轮廓线相交组成轮廓框。The contour lines intersect to form a contour frame.
  3. 根据权利要求2所述的冰箱内物品信息识别方法,其特征在于,“在所述鸟瞰图像中分割出多个检测框,每个所述检测框对应于一个物品”具体包括:The method for identifying item information in a refrigerator according to claim 2, characterized in that "segmenting a plurality of detection frames in the bird's-eye view image, each of the detection frames corresponding to an item" specifically includes:
    利用Yolo V4目标检测算法,标定出所述鸟瞰图像中每个物品所对应的检测框;Using the Yolo V4 target detection algorithm, the detection frame corresponding to each item in the bird's-eye view image is calibrated;
    所述鸟瞰图像中的物品包括放置于所述瓶座内的真实物品以及对应于所述真实物品的镜像物品。The objects in the bird's-eye view image include real objects placed in the bottle holder and mirror objects corresponding to the real objects.
  4. 根据权利要求3所述的冰箱内物品信息识别方法,其特征在于,在“识别所述检测框的中心点”之前还包括步骤:The method for identifying item information in a refrigerator according to claim 3, characterized in that before "identifying the center point of the detection frame", it further includes the step of:
    获取与所述轮廓线相邻两侧的检测框。Obtain the detection frames on both sides of the contour line.
  5. 根据权利要求4所述的冰箱内物品信息识别方法,其特征在于,所述方法具体包括:The method for identifying item information in a refrigerator according to claim 4, wherein the method specifically includes:
    选取一轮廓线,所述轮廓线位于所述轮廓框的上方;Select a contour line, the contour line is located above the contour frame;
    识别所述检测框的中心点;Identify the center point of the detection frame;
    若所述检测框的中心点位于所述轮廓线上方,则对应的物品为镜像物品;If the center point of the detection frame is located above the contour line, the corresponding item is a mirrored item;
    若所述检测框的中心点位于所述轮廓线下方,则对应的物品为真实物品。If the center point of the detection frame is located below the contour line, the corresponding item is a real item.
  6. 根据权利要求5所述的冰箱内物品信息识别方法,其特征在于,所述方法具体包括:The method for identifying item information in a refrigerator according to claim 5, wherein the method specifically includes:
    选取一轮廓线,所述轮廓线位于所述轮廓框的下方; Select a contour line, the contour line is located below the contour frame;
    识别所述检测框的中心点;Identify the center point of the detection frame;
    若所述检测框的中心点位于所述轮廓线上方,则对应的物品为真实物品;If the center point of the detection frame is located above the contour line, the corresponding item is a real item;
    若所述检测框的中心点位于所述轮廓线下方,则对应的物品为镜像物品。If the center point of the detection frame is located below the contour line, the corresponding item is a mirrored item.
  7. 一种冰箱内物品信息识别方法,其特征在于,包括步骤:A method for identifying item information in a refrigerator, which is characterized by including the steps:
    获取冰箱瓶座内空间的鸟瞰图像;Obtain a bird's-eye view of the space inside the refrigerator bottle holder;
    在所述鸟瞰图像中识别出相交轮廓线组成的轮廓框;Identify a contour frame composed of intersecting contour lines in the bird's-eye view image;
    在所述鸟瞰图像中分割出多个检测框,每个所述检测框对应于一个物品;Segment multiple detection frames in the bird's-eye image, each of the detection frames corresponding to an item;
    若所述检测框和轮廓框的重合面积与所述检测框面积的占比小于设定阈值,则对应的物品为镜像物品;If the ratio of the overlapping area of the detection frame and the outline frame to the area of the detection frame is less than the set threshold, the corresponding item is a mirrored item;
    若所述检测框和轮廓框的重合面积与所述检测框面积的占比远大于设定阈值,则对应的物品为真实物品。If the overlap area of the detection frame and the outline frame and the area of the detection frame are much greater than the set threshold, the corresponding item is a real item.
  8. 根据权利要求7所述的冰箱内物品信息识别方法,其特征在于,“在所述鸟瞰图像中识别出相交轮廓线组成的轮廓框”具体包括:The method for identifying item information in a refrigerator according to claim 7, wherein "identifying a contour frame composed of intersecting contour lines in the bird's-eye view image" specifically includes:
    利用边缘检测算法,标定出所述鸟瞰图像磨砂区域相交的轮廓线;Using an edge detection algorithm, the contour lines intersecting the frosted areas of the bird's-eye image are calibrated;
    所述轮廓线相交组成轮廓框。The contour lines intersect to form a contour frame.
  9. 根据权利要求8所述的冰箱内物品信息识别方法,其特征在于,“在所述鸟瞰图像中分割出多个检测框,每个所述检测框对应于一个物品”具体包括:The method for identifying item information in a refrigerator according to claim 8, characterized in that "segmenting a plurality of detection frames in the bird's-eye view image, each of the detection frames corresponding to an item" specifically includes:
    利用Yolo V4目标检测算法,标定出所述鸟瞰图像中每个物品所对应的检测框;Using the Yolo V4 target detection algorithm, the detection frame corresponding to each item in the bird's-eye view image is calibrated;
    所述鸟瞰图像中的物品包括放置于所述瓶座内的真实物品以及对应于所述真实物品的镜像物品。The objects in the bird's-eye view image include real objects placed in the bottle holder and mirror objects corresponding to the real objects.
  10. 根据权利要求7所述的冰箱内物品信息识别方法,其特征在于,所述设定阈值具体为5%~10%。 The method for identifying item information in a refrigerator according to claim 7, wherein the set threshold is specifically 5% to 10%.
PCT/CN2023/084216 2022-03-29 2023-03-28 Method for identifying article information in refrigerator WO2023185779A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210323179.9 2022-03-29
CN202210323179.9A CN114882348A (en) 2022-03-29 2022-03-29 Method for identifying information of articles in refrigerator, refrigerator and computer storage medium

Publications (1)

Publication Number Publication Date
WO2023185779A1 true WO2023185779A1 (en) 2023-10-05

Family

ID=82669865

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/084216 WO2023185779A1 (en) 2022-03-29 2023-03-28 Method for identifying article information in refrigerator

Country Status (2)

Country Link
CN (1) CN114882348A (en)
WO (1) WO2023185779A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114882348A (en) * 2022-03-29 2022-08-09 青岛海尔电冰箱有限公司 Method for identifying information of articles in refrigerator, refrigerator and computer storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107665336A (en) * 2017-09-20 2018-02-06 厦门理工学院 Multi-target detection method based on Faster RCNN in intelligent refrigerator
KR20190100519A (en) * 2018-02-07 2019-08-29 계명대학교 산학협력단 Pedestrian detecting method and apparatus at night using deep neural networks and saliency maps
CN110738125A (en) * 2019-09-19 2020-01-31 平安科技(深圳)有限公司 Method, device and storage medium for selecting detection frame by using Mask R-CNN
CN112001339A (en) * 2020-08-27 2020-11-27 杭州电子科技大学 Pedestrian social distance real-time monitoring method based on YOLO v4
CN113076907A (en) * 2021-04-16 2021-07-06 青岛海尔电冰箱有限公司 Method for identifying information of articles in refrigerator, refrigerator and computer storage medium
CN113536891A (en) * 2021-05-10 2021-10-22 新疆爱华盈通信息技术有限公司 Pedestrian traffic statistical method, storage medium and electronic equipment
CN114882348A (en) * 2022-03-29 2022-08-09 青岛海尔电冰箱有限公司 Method for identifying information of articles in refrigerator, refrigerator and computer storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107665336A (en) * 2017-09-20 2018-02-06 厦门理工学院 Multi-target detection method based on Faster RCNN in intelligent refrigerator
KR20190100519A (en) * 2018-02-07 2019-08-29 계명대학교 산학협력단 Pedestrian detecting method and apparatus at night using deep neural networks and saliency maps
CN110738125A (en) * 2019-09-19 2020-01-31 平安科技(深圳)有限公司 Method, device and storage medium for selecting detection frame by using Mask R-CNN
CN112001339A (en) * 2020-08-27 2020-11-27 杭州电子科技大学 Pedestrian social distance real-time monitoring method based on YOLO v4
CN113076907A (en) * 2021-04-16 2021-07-06 青岛海尔电冰箱有限公司 Method for identifying information of articles in refrigerator, refrigerator and computer storage medium
CN113536891A (en) * 2021-05-10 2021-10-22 新疆爱华盈通信息技术有限公司 Pedestrian traffic statistical method, storage medium and electronic equipment
CN114882348A (en) * 2022-03-29 2022-08-09 青岛海尔电冰箱有限公司 Method for identifying information of articles in refrigerator, refrigerator and computer storage medium

Also Published As

Publication number Publication date
CN114882348A (en) 2022-08-09

Similar Documents

Publication Publication Date Title
CN106952402B (en) A kind of data processing method and device
US10330377B2 (en) Refrigeration appliance comprising a camera module
BE1026263A9 (en) SYSTEM AND METHOD FOR DETERMINING A LOCATION FOR PLACING A PACKAGE
WO2022217928A1 (en) Method for identifying information of article in refrigerator, refrigerator, and computer storage medium
CN107749268B (en) Screen detection method and equipment
TWI485650B (en) Method and arrangement for multi-camera calibration
WO2023185779A1 (en) Method for identifying article information in refrigerator
WO2022217927A1 (en) Method for identifying article information in refrigerator, and refrigerator and computer storage medium
WO2019033574A1 (en) Electronic device, dynamic video face recognition method and system, and storage medium
EP2998671A1 (en) Refrigerator and control method for the same
WO2022217935A1 (en) Method for identifying item information inside refrigerator, and refrigerator
CN108596187B (en) Commodity purity detection method and display cabinet
US20120155713A1 (en) Method and system for position determination using image deformation
CN109670390A (en) Living body face recognition method and system
US20210366315A1 (en) Method of displaying price tag information, apparatus, and shelf system
WO2023193752A1 (en) Method for identifying article information in refrigerator, and refrigerator
US11113680B2 (en) Self-service checkout counter checkout
WO2023185280A1 (en) Method for identifying article information in refrigerator bottle holder, and refrigerator
CN111160450A (en) Fruit and vegetable weighing method based on neural network, storage medium and device
CN110766646A (en) Display rack shielding detection method and device and storage medium
WO2021091481A1 (en) System for object identification and content quantity estimation through use of thermal and visible spectrum images
CN110326032A (en) Image identification system, image-recognizing method and storage medium
WO2023125491A1 (en) Specific-contour-food management method, storage medium, and refrigerator
WO2023109151A1 (en) Method for identifying information of item in refrigerator, and refrigerator
CN109600598B (en) Image processing method, image processing device and computer readable recording medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23778144

Country of ref document: EP

Kind code of ref document: A1