Method and device for determining installation inclination angle of camera for shooting inner container area and refrigerator
By combining the inner liner structure and the camera's perspective, and using a three-dimensional coordinate system and the law of cosines to calculate the camera's installation tilt angle, the problem of ambient light intensity affecting the accuracy of the camera's installation angle was solved. This improved the food recognition rate in the refrigerator's inner liner area and enabled a modular design for the camera.
Patent Information
- Application Number
- CN202410644284.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2025-11-25
AI Technical Summary
In existing technologies, the installation angle adjustment of refrigerator cameras depends on the ambient light intensity, which leads to inaccurate calculation of the installation tilt angle and affects the camera's food management function.
By combining the internal structure with the camera's real-time and minimum viewing angles, the camera's installation tilt range is determined, eliminating the influence of ambient light intensity on the calculation. A three-dimensional coordinate system and the law of cosines are used to calculate the viewing angle boundary line, ensuring the modular design of the camera.
The accuracy of the camera's installation tilt angle has been improved, the image recognition rate of food in the refrigerator's inner liner area has been enhanced, and a modular design for the camera has been achieved.
Smart Images

Figure CN121012983A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of refrigeration equipment technology, such as a method and apparatus for determining the installation tilt angle of a camera for capturing the inner liner area, and a refrigerator. Background Technology
[0002] Currently, with the rapid development of science and technology, refrigerators with refrigeration, freezing, and food management functions are widely used in the field of smart home appliances. To better manage food, refrigerators are equipped with cameras on the top of the refrigerator compartment to identify the food storage conditions. However, the drawers in the refrigerator compartment are arranged from top to bottom, and users may pull out multiple drawers at the same time. In this case, the camera installed on the top of the refrigerator compartment can only capture images of the food in the topmost drawer that has been pulled out, and cannot capture images of the food in other drawers. The shooting range is relatively limited, which is not conducive to food management.
[0003] To determine the installation angle of a camera, a method for detecting the installation angle of a camera is disclosed in the related technology, including the following steps: acquiring a pre-stored standard image, wherein the standard image is an image of a detection object located at a preset position in the accommodating space when the camera is installed at a standard installation angle on the mounting surface of the accommodating space; after the camera is installed at the mounting position on the mounting surface, controlling the camera to capture the detection object and acquire a detection image; comparing the images of the detection object in the standard image and the detection image to determine whether there is a deviation in the installation angle of the camera; if so, outputting information to adjust the installation angle of the camera.
[0004] In the process of implementing the embodiments of this disclosure, at least the following problems were found in the related art:
[0005] The information on adjusting the installation angle of the camera output by the relevant technology is indirectly obtained based on the detection image captured by the camera. Since the clarity of the image captured by the camera is affected by the intensity of the ambient light, the above information indirectly determined will be affected by factors such as the intensity of the ambient light, resulting in inaccurate judgment of the installation tilt angle deviation and affecting the accuracy of the refrigerator camera installation tilt angle calculation.
[0006] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this application, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention
[0007] To provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. This summary is not intended as a general commentary, nor is it intended to identify key / important components or describe the scope of protection of these embodiments, but rather as a prelude to the detailed description that follows.
[0008] This disclosure provides a method, apparatus, and refrigerator for determining the installation tilt angle of a camera for capturing the inner liner area, thereby eliminating the influence of ambient light intensity on the calculation of the installation tilt angle and improving the accuracy of determining the installation tilt angle of the refrigerator camera.
[0009] In some embodiments, the refrigerator includes: a cabinet; a door rotatably mounted on the front side of the cabinet via a door rotation axis, with a bracket rotation axis disposed at the end of the door away from the door rotation axis; a camera bracket rotatably mounted on the door via a bracket rotation axis; and a camera mounted on the camera bracket. The method includes: obtaining a real-time viewing angle and a minimum viewing angle of the camera along a set direction; wherein the set direction includes a horizontal direction or a vertical direction, and the real-time viewing angle and the minimum viewing angle are determined based on the inner liner structure; determining a viewing angle deviation in the set direction based on the real-time viewing angle and the minimum viewing angle of the camera along the set direction; and obtaining a range of installation tilt angles of the camera along the set direction based on the real-time viewing angle and the viewing angle deviation of the camera along the set direction.
[0010] In some embodiments, obtaining the installation tilt angle range of the camera along a set direction based on the real-time viewing angle of the camera along a set direction and the viewing angle deviation in the set direction includes: determining that the sum of the real-time viewing angle of the camera along the set direction and the viewing angle deviation in the set direction is the maximum value of the installation tilt angle in the set direction; determining that the difference between the real-time viewing angle of the camera along the set direction and the viewing angle deviation in the set direction is the minimum value of the installation tilt angle in the set direction; and determining the installation tilt angle range of the camera along the set direction based on the maximum value of the installation tilt angle in the set direction and the minimum value of the installation tilt angle in the set direction.
[0011] In some embodiments, obtaining the real-time viewing angle and the minimum viewing angle of the camera along a set direction includes: determining the area to be identified, the maximum identification area corresponding to the area to be identified, and the lens position of the center of the camera lens; determining the center point of the first side and the center point of the second side of the area to be identified as a first reference position and a second reference position, respectively; the first side represents the side that is farthest from the door rotation axis along the direction associated with the set direction, and the second side represents the side that is closest to the door rotation axis along the direction associated with the set direction; wherein, the horizontal direction is associated with the thickness direction of the box, and the vertical direction is associated with the width direction of the box; determining the center point of the third side and the center point of the fourth side of the maximum identification area as a third reference position and a fourth reference position, respectively; the third side represents the side that is farthest from the door rotation axis along the direction associated with the set direction, and the fourth side represents the side that is closest to the door rotation axis along the direction associated with the set direction; determining the minimum viewing angle of the camera along the set direction based on the lens position and the first and second reference positions; determining the maximum viewing angle of the camera along the set direction based on the lens position and the third and fourth reference positions, and configuring the real-time viewing angle of the camera along the set direction based on the minimum and maximum viewing angles along the set direction.
[0012] In some embodiments, determining the minimum viewing angle of the camera along a set direction based on the lens position and a first reference position and a second reference position includes: determining a first viewing angle boundary line based on the lens position and the first reference position; determining a second viewing angle boundary line based on the lens position and the second reference position; and determining the angle between the first viewing angle boundary line and the second viewing angle boundary line as the minimum viewing angle of the camera along the set direction. Determining the maximum viewing angle of the camera along the set direction based on the lens position and a third reference position and a fourth reference position includes: determining a third viewing angle boundary line based on the lens position and the third reference position; determining a fourth viewing angle boundary line based on the lens position and the fourth reference position; and determining the angle between the third viewing angle boundary line and the fourth viewing angle boundary line as the maximum viewing angle of the camera along the set direction.
[0013] In some embodiments, determining the angle between the first viewpoint boundary line and the second viewpoint boundary line as the minimum viewing angle of the camera along a set direction includes: calculating Where A, B, and C represent the lens coordinates of the lens position, the first coordinate of the first reference position, and the second coordinate of the second reference position, respectively, FOV. min This indicates the minimum field of view of the camera along a set direction.
[0014] In some embodiments, determining the angle between the third-view boundary line and the fourth-view boundary line as the maximum field of view of the camera along a set direction includes: calculating Where B' and C' represent the third coordinate of the third reference position and the fourth coordinate of the fourth reference position, respectively, FOV maxThis indicates the maximum field of view of the camera along the set direction.
[0015] In some embodiments, determining the center point of the first side and the center point of the second side of the area to be identified as the first reference position and the second reference position, respectively, includes: constructing a three-dimensional coordinate system with the intersection of the door rotation axis and a set straight line as the origin, the box width direction towards the area to be identified as the X-axis, the box thickness direction away from the box as the Y-axis, and the gravity direction as the Z-axis; setting a straight line to represent the line passing through the center point of the first side and the center point of the second side; and obtaining the box width W. box and the maximum width W of the region to be identified along the X-axis ROI ; Obtain the box thickness D box And the maximum thickness D of the region to be identified along the Y-axis ROI When the direction is set to horizontal, according to (0.5W) box +0.5W ROI ,0,D box -0.5D ROI ), determine the first coordinate B of the first reference position, according to (0.5W box -0.5W ROI ,0,D box -0.5D ROI ), determine the second coordinate C of the second reference position; when the direction is set to vertical, according to (0.5W box ,0,D box -D ROI ), determine the first coordinate B of the first reference position, according to (0.5W box ,0,D box ), determine the second coordinate C of the second reference position.
[0016] In some embodiments, determining the center points of the third and fourth sides of the maximum recognition area as the third and fourth reference positions, respectively, includes: obtaining the ratio coefficient k between the maximum recognition area and the area to be recognized; when the setting direction is horizontal, according to (0.5W) box / k+0.5W ROI / k,0,D box -0.5D ROI ), determine the third coordinate B' of the third reference position, according to (0.5W box / k-0.5W ROI / k,0,D box -0.5D ROI ), determine the fourth coordinate C' of the fourth reference position; when the direction is set to vertical, according to (0.5W box / k,0,D box -D ROI), determine the third coordinate B' of the third reference position, according to (0.5W box / k,0,D box ), determine the fourth coordinate C' of the fourth reference position.
[0017] In some embodiments, the apparatus includes a processor and a memory storing program instructions, the processor being configured to, when executing the program instructions, perform the method described above for determining the camera mounting tilt angle for capturing an inner liner area.
[0018] In some embodiments, the refrigerator includes: a cabinet; a door rotatably mounted on the front side of the cabinet via a door rotation axis, with a bracket rotation axis disposed at the end of the door away from the door rotation axis; a camera bracket rotatably mounted on the door via a bracket rotation axis; a camera mounted on the camera bracket; and a device for determining the camera mounting angle for capturing images of the inner liner area, as described above, mounted on the door.
[0019] The method, apparatus, and refrigerator for determining the installation tilt angle of a camera to capture the inner liner area provided in this disclosure can achieve the following technical effects:
[0020] This embodiment combines the inner shell structure with the minimum and real-time viewing angles of the camera along a set direction to determine the installation tilt angle. This method does not calculate the installation tilt angle based on the captured image, thus eliminating the influence of ambient light intensity on the tilt angle calculation and improving the accuracy of the camera's installation tilt angle determination. Simultaneously, this method provides a general calculation approach for determining the installation tilt angle, which is beneficial for realizing modular camera design.
[0021] The above general description and the description below are exemplary and illustrative only and are not intended to limit this application. Attached Figure Description
[0022] One or more embodiments are illustrated by way of example with reference to the accompanying drawings. These illustrations and drawings do not constitute a limitation on the embodiments. Elements having the same reference numerals in the drawings are shown as similar elements. The drawings are not to be scaled. And wherein:
[0023] Figure 1 This is a top view of a refrigerator body and door provided in an embodiment of this disclosure;
[0024] Figure 2 This is a front view of a refrigerator body provided in an embodiment of this disclosure;
[0025] Figure 3 This is a schematic diagram of the region to be identified and the maximum identification region provided in the embodiments of this disclosure;
[0026] Figure 4 This is a top view of a camera from a horizontal perspective, provided in an embodiment of this disclosure;
[0027] Figure 5 This is a top view of a camera from a vertical perspective, provided in an embodiment of this disclosure;
[0028] Figure 6 This is a schematic diagram of a method for determining the camera mounting tilt angle for capturing the inner liner area, provided in an embodiment of this disclosure;
[0029] Figure 7 This is a schematic diagram of another method for determining the camera mounting tilt angle for capturing the inner liner area, provided in an embodiment of this disclosure;
[0030] Figure 8 This is a schematic diagram of another method for determining the camera mounting tilt angle for capturing the inner liner area, provided in an embodiment of this disclosure;
[0031] Figure 9 This is a schematic diagram of another method for determining the camera mounting tilt angle for capturing the inner liner area, provided in an embodiment of this disclosure;
[0032] Figure 10 This is a schematic diagram of another method for determining the camera mounting tilt angle for capturing the inner liner area, provided in an embodiment of this disclosure;
[0033] Figure 11 This is a schematic diagram of another method for determining the camera mounting tilt angle for capturing the inner liner area, provided in an embodiment of this disclosure;
[0034] Figure 12 This is a schematic diagram of another device provided in this disclosure for determining the camera mounting tilt angle for capturing the inner liner area.
[0035] Figure label:
[0036] 10: Cabinet body; 20: Door; 30: Camera bracket;
[0037] 101: Inner liner; 201: Camera;
[0038] 20a: Door body rotation axis; 20b: Support frame rotation axis;
[0039] 300: A device for determining the camera's viewing angle for photographing the inner liner area;
[0040] 301: Processor; 302: Memory;
[0041] 303: Communication interface; 304: Bus. Detailed Implementation
[0042] To provide a more detailed understanding of the features and technical content of the embodiments of this disclosure, the implementation of the embodiments of this disclosure will be described in detail below with reference to the accompanying drawings. The accompanying drawings are for illustrative purposes only and are not intended to limit the embodiments of this disclosure. In the following technical description, for ease of explanation, several details are used to provide a full understanding of the disclosed embodiments. However, one or more embodiments may still be implemented without these details. In other cases, well-known structures and devices may be simplified in their depiction to simplify the drawings.
[0043] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this disclosure described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion.
[0044] Unless otherwise stated, the term "multiple" means two or more.
[0045] In this embodiment of the disclosure, the character " / " indicates that the objects before and after it are in an "or" relationship. For example, A / B means: A or B.
[0046] The term "and / or" describes an association between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or A and B.
[0047] The term "correspondence" can refer to an association or binding relationship. The correspondence between A and B means that there is an association or binding relationship between A and B.
[0048] Combination Figure 1 As shown, this embodiment of the present disclosure provides a refrigerator, including a cabinet 10, a door 20, a camera bracket 30, and a camera 201. The door 20 is mounted on the front side of the cabinet 10 via a door rotation axis 20a. A bracket rotation axis 20b is provided at the end of the door 20 away from the door rotation axis 20a. The camera bracket 30 is rotatably mounted on the door 40 via the bracket rotation axis 20b. The camera 201 is mounted on the camera bracket 30.
[0049] The cabinet 10 is equipped with an inner liner 101, which includes one or more shelves and a refrigerator compartment located below the shelves. The refrigerator compartment has one or more drawers. These drawers can be pulled out to their maximum position along the thickness of the cabinet.
[0050] Optionally, there are two doors 20. The two doors 20 are symmetrically arranged on the front side of the housing 10 along the central axis of the housing thickness. The bracket rotation shaft 20b is installed at the end of either door 20 furthest from the door rotation shaft 20a. This allows the inner liner area to be identified by a camera installed on either door.
[0051] Combination Figure 3 As shown, when camera 201 takes a picture, camera 201 is associated with the area to be identified. The area to be identified refers to the area that camera 201 needs to identify when taking a picture. The area to be identified includes the inner liner area and the surrounding area of the inner liner area. The inner liner area includes the shelf area and the refrigerator compartment area located below the shelf area. The shelf area includes one or more shelves, and the refrigerator compartment area includes one or more drawers. The maximum thickness of the area to be identified along the thickness direction of the cabinet is equal to the thickness of the inner liner area along the cabinet direction. It should be noted that the surrounding area of the inner liner area can be an area extending beyond the inner liner area along the width direction of the cabinet.
[0052] The camera 201 is also associated with a maximum recognition area. The maximum recognition area refers to the recognition area obtained by magnifying the area to be recognized along the width of the housing, with the area to be recognized as the reference area. Furthermore, the ratio of the area to be recognized to the area of the maximum recognition area is greater than the area ratio and less than 1. Specifically, the area ratio is greater than or equal to 0.7. Preferably, the area ratio is 0.7.
[0053] In one specific embodiment, combined with Figure 1 and Figure 2 As shown, the thickness of the housing 10 is H. box And the box width W box The maximum width of the area to be identified along the width direction of the box is W. ROI The maximum thickness of the area to be identified along the thickness direction of the box is D. ROI The maximum thickness of the region to be identified along the vertical direction is H. ROI .
[0054] Combination Figure 1 As shown, the maximum opening angle of the door 20 is α, and the angle between the camera bracket 30 and the door 20 is the real-time installation tilt angle β. The distance between the door rotation axis 20a and the bracket rotation axis 20b is x. The distance between the bracket rotation axis 20b and the center of the camera lens is y.
[0055] In another specific embodiment, to ensure the area recognition function of the camera, the viewing angle of the camera in the horizontal or vertical direction should not be too large. If the viewing angle of the camera in the horizontal or vertical direction is too large, the target to be recognized in the area to be recognized will be too small, resulting in a low pixel ratio of the target and a decrease in the recognition rate of the camera. To this end, this embodiment configures a ratio coefficient k between the maximum recognition area and the area to be recognized, and calculates the maximum viewing angle of the camera in the horizontal or vertical direction based on the ratio coefficient k, thereby ensuring the recognition rate of the camera.
[0056] It should be noted that the scaling factor k represents the maximum width W of the area to be identified along the width direction of the box. ROI The ratio of the maximum width of the maximum recognition area along the width direction of the box, or the maximum thickness H of the area to be recognized along the vertical direction. ROI The ratio of the maximum thickness of the maximum recognition area in the vertical direction to the maximum thickness of the maximum recognition area. The scaling factor k is determined by the area ratio. As an example, when the area ratio is 0.7, k is greater than or equal to 0.7 and less than 1.
[0057] Based on the above refrigerator structural configuration, combined with Figure 6 As shown, this disclosure provides a method for determining the installation tilt angle of a camera for capturing the inner liner area, including:
[0058] S01, the refrigerator obtains the real-time viewing angle and the minimum viewing angle along the set direction from the camera. The set direction includes either a horizontal or vertical direction, and the real-time and minimum viewing angles are determined based on the inner liner structure.
[0059] S02, the refrigerator determines the viewing angle deviation in the set direction based on the real-time viewing angle of the camera along the set direction and the minimum viewing angle along the set direction.
[0060] S03, the refrigerator obtains the installation tilt angle range of the camera along the set direction based on the real-time viewing angle of the camera along the set direction and the viewing angle deviation along the set direction.
[0061] The method for determining the installation tilt angle of a camera in the inner liner area, as provided in this disclosure, obtains the real-time viewing angle and the minimum viewing angle of the camera along a set direction. Based on these parameters, a viewing angle deviation in the set direction is determined. Furthermore, the range of the installation tilt angle along the set direction is obtained based on the real-time viewing angle and the deviation. Thus, this disclosure combines the inner liner structure with the minimum and real-time viewing angles of the camera along the set direction to determine the installation tilt angle. This method does not calculate the installation tilt angle based on the captured image, eliminating the influence of ambient light intensity on the tilt angle calculation and improving the accuracy of the camera installation tilt angle determination. Simultaneously, this method provides a general calculation approach for determining the installation tilt angle, which is beneficial for modular camera design.
[0062] Combination Figure 1 As shown, the camera's horizontal field of view is equal to the minimum horizontal field of view (HFOV). min In the case where the camera's horizontal viewing angle changes based on the aforementioned minimum viewing angle, the camera's real-time horizontal viewing angle HFOV fluctuates with ΔHFOV as the first viewing angle bias, where ΔHFOV = 0.5 * (HFOV - HFOV) min Accordingly, the installation tilt angle β1 of the camera along the horizontal direction is based on the real-time viewing angle HFOV along the horizontal direction as the first reference tilt angle, and fluctuates with ΔHFOV as the angle deviation, that is, HFOV-ΔHFOV≤β1≤HFOV+ΔHFOV is the angle deviation fluctuation.
[0063] Based on the above technical concept, the camera's vertical viewing angle is equal to the minimum vertical viewing angle (VFOV). min In the case where the camera's vertical viewing angle changes based on the aforementioned minimum viewing angle, the camera's real-time vertical viewing angle VFOV fluctuates with a second viewing angle bias of ΔVFOV, where ΔVFOV = 0.5 * (VFOV - VFOV) min Accordingly, the camera's vertical mounting tilt angle β2 is based on the real-time vertical viewing angle VFOV as the second reference tilt angle, and fluctuates with ΔVFOV as the angle deviation, i.e., VFOV-ΔVFOV≤β2≤VFOV+ΔVFOV is the angle deviation fluctuation.
[0064] Based on the above embodiments, combined with Figure 7 As shown, the refrigerator obtains the installation tilt angle range of the camera along the set direction based on the real-time viewing angle of the camera along the set direction and the viewing angle deviation along the set direction, including:
[0065] S11, the refrigerator determines that the sum of the real-time viewing angle of the camera along the set direction and the viewing angle deviation along the set direction is the maximum value of the installation tilt angle along the set direction.
[0066] S12, the refrigerator determines the difference between the real-time viewing angle of the camera along the set direction and the viewing angle deviation along the set direction as the minimum value of the installation tilt angle along the set direction.
[0067] S13, the refrigerator determines the range of the camera's installation tilt angle along the set direction based on the maximum and minimum installation tilt angles of the set direction.
[0068] Thus, this embodiment of the present disclosure can determine the installation tilt angle in a set direction by combining the inner shell structure and the minimum and real-time viewing angles of the camera along the set direction. This determination method does not calculate the installation tilt angle based on the captured image, thereby eliminating the influence of ambient light intensity on the installation tilt angle calculation and improving the accuracy of the camera's installation tilt angle determination. At the same time, this determination method provides a general calculation approach for determining the installation tilt angle, which is beneficial for realizing the modular design of the camera.
[0069] Optionally, combined Figure 8 As shown, the refrigerator obtains the real-time viewing angle and the minimum viewing angle along the set direction from the camera, including:
[0070] S21, the refrigerator determines the area to be identified, the maximum identification area corresponding to the area to be identified, and the lens position of the center of the camera lens.
[0071] S22, the refrigerator determines the center point of the first side and the center point of the second side of the area to be identified as the first reference position and the second reference position, respectively; the first side represents the side that is furthest from the door rotation axis along the set associated direction, and the second side represents the side that is closest to the door rotation axis along the set associated direction. The horizontal direction is associated with the thickness direction of the refrigerator body, and the vertical direction is associated with the width direction of the refrigerator body.
[0072] S23, the refrigerator determines the center point of the third side and the center point of the fourth side of the maximum recognition area as the third reference position and the fourth reference position, respectively; the third side represents the side that is farthest from the door rotation axis along the set direction association direction, and the fourth side represents the side that is closest to the door rotation axis along the set direction association direction.
[0073] S24, the refrigerator determines the minimum viewing angle of the camera along the set direction based on the lens position and the first reference position and the second reference position.
[0074] S25, the refrigerator determines the maximum viewing angle of the camera along the set direction based on the lens position and the third and fourth reference positions, and configures the real-time viewing angle of the camera along the set direction based on the minimum and maximum viewing angles along the set direction.
[0075] In this step, the real-time viewing angle of the camera along the set direction is configured based on the minimum and maximum viewing angles along the set direction, including: configuring the real-time viewing angle of the camera along the set direction to be greater than or equal to the minimum viewing angle of the camera along the set direction and less than or equal to the maximum viewing angle of the camera along the set direction.
[0076] Thus, in this embodiment, after determining the area to be identified, the corresponding maximum identification area, and the lens position, the center points of the first and second sides of the area to be identified are determined as the first and second reference positions, respectively. The center points of the third and fourth sides of the maximum identification area are also determined as the third and fourth reference positions, respectively. Subsequently, this embodiment determines the minimum field of view and minimum angle of view corresponding to the minimum viewing angle based on the lens position and the first and second reference positions to ensure that the area to be identified is covered as much as possible within the minimum field of view. Similarly, it determines the maximum field of view and maximum angle of view corresponding to the maximum viewing angle based on the lens position and the third and fourth reference positions to ensure that the area to be identified is covered as much as possible within the maximum field of view, while simultaneously obtaining a suitable-sized and high-pixel identification target through the area to be identified. Therefore, this embodiment, by combining the inner liner structure, the area to be identified, and the maximum identification area to determine the minimum and maximum viewing angles of the camera's setting direction, ensures that the area to be identified is basically covered within the camera's field of view, while also ensuring that a suitable-sized and high-pixel identification target is obtained. This improves the accuracy of determining the camera's installation tilt angle and, consequently, the recognition rate of food images within the inner liner area.
[0077] In this embodiment of the disclosure, Figure 4 This is a top view of a camera from a horizontal perspective, provided in an embodiment of this disclosure.
[0078] Where A represents the center position of the camera lens. B1 represents the first reference position of the area to be identified, and C1 represents the second reference position of the area to be identified. The first reference position is the center point of the first side of the area to be identified, and the second reference position is the center point of the second side of the area to be identified. The first side represents the side that is furthest from the door rotation axis 20a in the thickness direction of the housing, and the second side represents the side that is closest to the door rotation axis 20a in the thickness direction of the housing.
[0079] B1' represents the third reference position of the maximum recognition area, and C1' represents the fourth reference position of the maximum recognition area. The third reference position is the center point of the third side, and the fourth reference position is the center point of the fourth side of the area to be recognized. The third side represents the side that is furthest from the door rotation axis 20a in the thickness direction of the enclosure, and the fourth side represents the side that is closest to the door rotation axis 20a in the thickness direction of the enclosure.
[0080] In this embodiment of the disclosure, FOV min FOV represents the minimum field of view of a camera along a set direction. max HFOV indicates the maximum field of view of the camera along a set direction. min and HFOV max VFOV represents the minimum and maximum field of view of the camera along the horizontal direction. min and VFOV max These represent the minimum and maximum angles of view of the camera along the vertical direction, respectively.
[0081] Among them, FOV min HFOV min Or VFOV min FOV max HFOV max Or VFOV max .
[0082] Example 1: Combining Figure 4 As shown, when the set direction is horizontal, the refrigerator determines the minimum viewing angle of the camera along the set direction based on the lens position and the first and second reference positions, including:
[0083] The refrigerator determines the first viewpoint boundary line AB1 based on the lens position A and the first reference position B1.
[0084] The refrigerator determines the second viewpoint boundary line AC1 based on the lens position A and the second reference position C1.
[0085] The angle between the first-view boundary line AB1 and the second-view boundary line AC1 is determined by the refrigerator as the minimum field of view (HFOV) of the camera in the horizontal direction. min .
[0086] Figure 5 This is a top view of a camera from a vertical perspective, provided in an embodiment of this disclosure.
[0087] Where A represents the center position of the camera lens. B2 represents the first reference position of the area to be identified, and C2 represents the second reference position of the area to be identified. The first reference position is the center point of the first side of the area to be identified, and the second reference position is the center point of the second side of the area to be identified.
[0088] B2' represents the third reference position of the maximum recognition area, and C2' represents the fourth reference position of the maximum recognition area. The third reference position is the center point of the third side of the maximum recognition area, and the fourth reference position is the center point of the fourth side of the maximum recognition area.
[0089] Example 2: Combination Figure 5As shown, when the set direction is vertical, the refrigerator determines the minimum viewing angle of the camera along the set direction based on the lens position and the first and second reference positions, including:
[0090] The refrigerator determines the first viewpoint boundary line AB2 based on the lens position A and the first reference position B2.
[0091] The refrigerator determines the second viewpoint boundary line AC2 based on the lens position A and the second reference position C2.
[0092] The angle between the first-view boundary line AB2 and the second-view boundary line AC2 is defined as the minimum field of view (VFOV) of the camera in the vertical direction. min .
[0093] Based on the above embodiments one and two, combined with Figure 9 As shown, the refrigerator determines the minimum viewing angle of the camera along a set direction based on the lens position and the first and second reference positions, including:
[0094] S31, the refrigerator determines the boundary line of the first viewpoint based on the position of the lens and the first reference position.
[0095] S32, the refrigerator determines the boundary line of the second viewpoint based on the position of the lens and the second reference position.
[0096] S33, the refrigerator determines the angle between the boundary line of the first viewpoint and the boundary line of the second viewpoint as the minimum viewing angle of the camera along the set direction.
[0097] Thus, in this embodiment, a first viewing angle boundary line is determined based on the lens position and a first reference position, and a second viewing angle boundary line is determined based on the lens position and a second reference position. The angle formed by the first and second viewing angle boundary lines is the minimum viewing angle of the camera along a set direction, and the first field of view corresponding to the minimum viewing angle is the minimum field of view. Therefore, the first field of view can cover most of the area to be identified, which is beneficial for improving the recognition rate of food images within the inner lining area.
[0098] Example 3: Combination Figure 8 As shown, when the set direction is horizontal, the refrigerator determines the maximum viewing angle of the camera along the set direction based on the lens position and the third and fourth reference positions, including:
[0099] The refrigerator determines the third-view boundary line AB1' based on the lens position A and the third reference position B1'.
[0100] The refrigerator determines the fourth viewpoint boundary line AC1' based on the lens position A and the fourth reference position C1'.
[0101] The angle between the third-view boundary line AB1' and the fourth-view boundary line AC1' is determined by the refrigerator as the maximum horizontal field of view (HFOV) of the camera. max .
[0102] Example 4: Combination Figure 5 As shown, when the set direction is vertical, the refrigerator determines the maximum viewing angle of the camera along the set direction based on the lens position and the third and fourth reference positions, including:
[0103] The refrigerator determines the third-view boundary line AB2' based on the lens position A and the third reference position B2'.
[0104] The refrigerator determines the fourth viewpoint boundary line AC2' based on the lens position A and the fourth reference position C2'.
[0105] The angle between the third-view boundary line AB2' and the fourth-view boundary line AC2' is determined by the refrigerator as the maximum field of view (VFOV) of the camera in the vertical direction. max .
[0106] Based on the above embodiments three and four, combined with Figure 10 As shown, the refrigerator determines the maximum viewing angle of the camera along a set direction based on the lens position and the third and fourth reference positions, including:
[0107] S34, the refrigerator determines the boundary line of the third perspective based on the position of the lens and the third reference position.
[0108] S35, the refrigerator determines the fourth perspective boundary line based on the lens position and the fourth reference position.
[0109] S36, the refrigerator determines the angle between the boundary line of the third view and the boundary line of the fourth view as the maximum field of view of the camera along the set direction.
[0110] Thus, in this embodiment, a third viewpoint boundary line is determined based on the lens position and a third reference position, and a fourth viewpoint boundary line is determined based on the lens position and a fourth reference position. The angle formed by the third and fourth viewpoint boundary lines is the maximum viewing angle of the camera along a set direction. Simultaneously, the second field of view corresponding to the maximum viewing angle is the maximum field of view. Thus, the second field of view can essentially cover the area to be identified. Furthermore, this embodiment can obtain a target of suitable size and high pixel count through the maximum identification area.
[0111] Optionally, the refrigerator determines the angle between the boundary line of the first viewpoint and the boundary line of the second viewpoint as the minimum viewing angle of the camera along a set direction, including:
[0112] calculate
[0113] Where A, B, and C represent the lens coordinates of the lens position, the first coordinate of the first reference position, and the second coordinate of the second reference position, respectively, FOV. min This indicates the minimum field of view of the camera along a set direction.
[0114] It should be noted that, when the direction is set to horizontal, B and C are B1 and C1 in Example 1, respectively, and the FOV is... min That is, HFOV min With the direction set as vertical, B and C are B2 and C2 in Example 2, respectively, and FOV min That is, VFOV min .
[0115] Thus, after determining the lens coordinates of the lens position, the first coordinates of the first reference position, and the second coordinates of the second reference position, the embodiments of this disclosure can determine... and The coordinates of each element are determined, and then, based on the law of cosines, the angle between the boundary lines of the first and second viewpoints can be calculated, thus calculating the minimum viewing angle of the camera along the set direction. In this embodiment, the minimum viewing angle of the camera along the set direction can be accurately calculated based on the law of cosines, further improving the recognition rate of food images within the inner liner area.
[0116] In a specific implementation, combined with Figure 4 As shown, the minimum field of view (HFOV) of the camera along the horizontal direction. min for:
[0117]
[0118] Combination Figure 5 As shown, the minimum field of view (VFOV) of the camera along the vertical direction. min for:
[0119]
[0120] Optionally, the refrigerator determines the angle between the third-view boundary line and the fourth-view boundary line as the maximum field of view of the camera along a set direction, including:
[0121] calculate
[0122] Where B' and C' represent the third coordinate of the third reference position and the fourth coordinate of the fourth reference position, respectively, FOV max This indicates the maximum field of view of the camera along the set direction.
[0123] It should be noted that, when the direction is set to horizontal, B' and C' are B1' and C1' in Embodiment 3, respectively, and the FOV... maxThat is, HFOV max When the direction is set to vertical, B' and C' are B2' and C2' in Example 4, respectively, and FOV max That is, VFOV max .
[0124] Thus, after determining the lens coordinates of the lens position, the third coordinates of the third reference position, and the fourth coordinates of the fourth reference position, the embodiments of this disclosure can determine... and The coordinates of each element are determined, and then, based on the law of cosines, the angle between the boundary lines of the third and fourth perspectives can be determined, thus calculating the maximum viewing angle of the camera along the set direction. In this embodiment, the maximum viewing angle of the camera along the set direction can be accurately calculated based on the law of cosines, further improving the recognition rate of food images within the inner liner area.
[0125] In a specific implementation, combined with Figure 4 As shown, the maximum field of view (HFOV) of the camera along the horizontal direction. max for:
[0126]
[0127] Combination Figure 5 As shown, the maximum field of view (VFOV) of the camera along the vertical direction. max for:
[0128]
[0129] Optionally, combined Figure 11 As shown, the refrigerator determines the center point of the first side and the center point of the second side of the area to be identified as the first reference position and the second reference position, respectively, including:
[0130] S41, the refrigerator constructs a three-dimensional coordinate system with the intersection of the door rotation axis and the set straight line as the origin, the width direction of the refrigerator body towards the area to be identified as the X-axis, the thickness direction of the refrigerator body away from the refrigerator body as the Y-axis, and the direction of gravity as the Z-axis. The set straight line represents a straight line passing through the center point of the first side and the center point of the second side.
[0131] Combination Figure 1 and Figure 2 , Figure 11As shown in this embodiment, a three-dimensional coordinate system is constructed with the intersection of the door's rotation axis and a set straight line as the origin, the width direction of the box towards the area to be identified as the X-axis, the thickness direction of the box away from the box as the Y-axis, and the gravity direction as the Z-axis. By constructing this three-dimensional coordinate system with the width direction of the box towards the area to be identified as the X-axis, the thickness direction of the box away from the box as the Y-axis, and the gravity direction as the Z-axis, the ordinates of the first and third reference positions are both zero, and the ordinates of the second and fourth reference positions are also zero, thereby reducing... and This reduces computational complexity while ensuring the accuracy of viewpoint calculations.
[0132] S42, the refrigerator obtains its cabinet width W. box and the maximum width W of the region to be identified along the X-axis ROI .
[0133] S43, the refrigerator obtains the cabinet thickness D. box And the maximum thickness D of the region to be identified along the Y-axis ROI .
[0134] S44, when the refrigerator is set to horizontal, according to (0.5W) box +0.5W ROI ,0,D box -0.5D ROI ), determine the first coordinate B of the first reference position, according to (0.5W box -0.5W ROI ,0,D box -0.5D ROI ), determine the second coordinate C of the second reference position.
[0135] Combination Figure 4 As shown, in this step, the first coordinate B includes either B1 or B2, and the second coordinate C includes either C1 or C2. To ensure that the area to be identified is basically covered within the field of view of the camera, when the direction is set to horizontal, the horizontal coordinate of the first coordinate B1 of the first reference position is W. box With W ROI The average of the sum values, and the x-coordinate of the second coordinate C1 of the second reference position is W. box With W ROI The average of the differences; simultaneously, due to the center point of the first side of the region to be identified, the vertical coordinates of the first coordinate B1 and the second coordinate C1 are both W. box With 0.5W ROI The difference.
[0136] S45, when the refrigerator is set to the vertical direction, according to (0.5W) box ,0,D box), determine the first coordinate B of the first reference position, according to (0.5W box ,0,D box -D ROI ), determine the second coordinate C of the second reference position.
[0137] Combination Figure 5 As shown, in this step, to ensure that the area to be identified is basically covered within the field of view of the camera, when the direction is set to vertical, the horizontal coordinates of the first coordinate B2 of the first reference position and the second coordinate C2 of the second reference position are both 0.5W. box And the vertical coordinate of the first coordinate B2 of the second reference position is D. box The vertical coordinate of the second coordinate C2 is D. box With D ROI The difference.
[0138] Thus, by constructing a three-dimensional coordinate system in the manner described above and determining the first coordinate B and the second coordinate C accordingly, the present disclosure embodiment can reduce... and This reduces computational complexity, lowers the computational difficulty of the minimum perspective, and improves the accuracy of the minimum perspective calculation.
[0139] Optionally, combined Figure 3 As shown, the refrigerator determines the center points of the third and fourth sides of the maximum recognition area as the third and fourth reference positions, respectively, including:
[0140] The refrigerator obtains the ratio coefficient k between the maximum recognition area and the area to be recognized.
[0141] When the refrigerator is set to horizontal, according to (0.5W) box / k+0.5W ROI / k,0,D box -0.5D ROI ), determine the third coordinate B' of the third reference position, according to (0.5W box / k-0.5W ROI / k,0,D box -0.5D ROI ), determine the fourth coordinate C' of the fourth reference position.
[0142] When the refrigerator is set to vertical, according to (0.5W) box / k,0,D box -D ROI ), determine the third coordinate B' of the third reference position, according to (0.5W box / k,0,D box ), determine the fourth coordinate C' of the fourth reference position.
[0143] In this step, when the area to be identified is magnified by a scaling factor k to obtain the maximum recognition area, the W in the abscissas of the third coordinate B' and the fourth coordinate C' is... box and W ROI All updates are based on the scaling factor k. Combined with... Figure 4 and Figure 5 As shown, the third coordinate B' includes either B1' or B2', and the fourth coordinate C' includes either C1' or C2'.
[0144] Thus, by constructing a three-dimensional coordinate system in the manner described above and determining the third coordinate B' and the fourth coordinate C' accordingly, the present disclosure embodiment can reduce... and This reduces computational complexity, lowers the computational difficulty of the maximum field of view, and improves the accuracy of the maximum field of view calculation.
[0145] Optionally, combined Figure 1 As shown, the refrigerator determines the lens position at the center of the camera lens, including:
[0146] The refrigerator obtains the maximum door opening angle α and the real-time installation tilt angle β between the camera bracket and the door.
[0147] The refrigerator obtains the distance x between the center of the camera lens and the rotation axis of the door, and the distance y between the rotation axis of the bracket and the center of the camera lens.
[0148] The refrigerator determines the lens coordinates A of the center of the camera lens based on (xcosα+ycos(β-180°+α),xsinα+ysin(β-180°+α),0).
[0149] Thus, in this embodiment, after determining the maximum opening angle α of the door, the distance x between the center of the camera lens and the rotation axis of the door, the distance y between the rotation axis of the bracket and the center of the camera lens, and the real-time installation tilt angle β between the camera bracket and the door, the projection of the x-axis to the X-axis can be obtained through xcosα, and the projection of the y-axis to the X-axis can be obtained through ycos(β-180°+α). The abscissa of lens coordinate A can be obtained by summing the two X-axis projections. Simultaneously, the projection of the x-axis to the Y-axis can be obtained through xsinα, and the projection of the y-axis to the Y-axis can be obtained through ysin(β-180°+α). The ordinate of lens coordinate A can be obtained by summing the two Y-axis projections, while the ordinate of lens coordinate A is zero. Therefore, this embodiment can determine lens coordinate A based on the three structural parameters: the maximum opening angle α of the door, the real-time installation tilt angle β between the camera bracket and the door, and the distance x between the center of the camera lens and the rotation axis of the door, ensuring the accuracy of lens position calculation and improving the accuracy of minimum and maximum viewing angle calculations.
[0150] Combination Figure 12As shown, this disclosure provides an apparatus 300 for determining the installation tilt angle of a camera for capturing an inner liner area, including a processor 301 and a memory 302. Optionally, the apparatus 300 may further include a communication interface 303 and a bus 304. The processor 301, communication interface 303, and memory 302 can communicate with each other via the bus 304. The communication interface 303 can be used for information transmission. The processor 301 can call logical instructions in the memory 302 to execute the method described above for determining the installation tilt angle of a camera for capturing an inner liner area.
[0151] Furthermore, the logic instructions in the aforementioned memory 302 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium.
[0152] The memory 302, as a computer-readable storage medium, can be used to store software programs and computer-executable programs, such as program instructions / modules corresponding to the methods in the embodiments of this disclosure. The processor 301 executes functional applications and data processing by running the program instructions / modules stored in the memory 302, that is, it implements the method for determining the camera mounting tilt angle for capturing the inner lining area in the above embodiments.
[0153] The memory 302 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the terminal device. Furthermore, the memory 302 may include high-speed random access memory and may also include non-volatile memory.
[0154] This disclosure provides a refrigerator, including a cabinet, a door, a camera bracket, a camera, and the aforementioned device 300 for determining the camera's mounting angle for capturing images of the inner liner area. The door is rotatably mounted on the front side of the cabinet via a door rotation axis, with a bracket rotation axis located at the end of the door away from the door rotation axis. The camera bracket is rotatably mounted on the door via the bracket rotation axis. The camera is mounted on the camera bracket. The device 300 for determining the camera's mounting angle for capturing images of the inner liner area is mounted on the door. The mounting relationship described herein is not limited to placement inside the door, but also includes installation and connection with other components of the refrigerator, including but not limited to physical connections, electrical connections, or signal transmission connections. Those skilled in the art will understand that the device 300 for determining the camera's mounting angle for capturing images of the inner liner area can be adapted to feasible product bodies to achieve other feasible embodiments.
[0155] This disclosure provides a computer-readable storage medium storing computer-executable instructions configured to perform the above-described method for determining the camera mounting tilt angle for capturing an inner liner area.
[0156] The technical solutions of this disclosure can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes one or more instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in this disclosure. The aforementioned storage medium can be a non-transitory storage medium, such as a USB flash drive, external hard drive, read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk, etc., and other media capable of storing program code.
[0157] The foregoing description and accompanying drawings fully illustrate embodiments of this disclosure to enable those skilled in the art to practice them. Other embodiments may include structural, logical, electrical, procedural, and other changes. The embodiments represent only possible variations. Individual components and functions are optional unless explicitly required, and the order of operation may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. Moreover, the terminology used in this application is for describing embodiments only and is not intended to limit the claims. As used in the description of embodiments and claims, the singular forms “a,” “an,” and “the” are intended to equally include the plural forms unless the context clearly indicates otherwise. Similarly, the term “and / or” as used in this application means including one or more of the associated listed items and all possible combinations thereof. Additionally, when used in this application, the term "comprise" and its variations "comprises" and / or "comprising" refer to the presence of stated features, integrals, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof. Without further limitations, an element defined by the phrase "comprises a..." does not exclude the presence of other identical elements in the process, method, or apparatus that includes said element. In this document, each embodiment may focus on the differences from other embodiments, and similar or identical parts between embodiments can be referred to mutually. For methods, products, etc., disclosed in the embodiments, if they correspond to the method section disclosed in the embodiments, the relevant parts can be referred to the description of the method section.
[0158] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of this disclosure. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0159] The methods and products (including but not limited to devices and equipment) disclosed in the embodiments herein can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For instance, the division of units may be merely a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the shown or discussed units may be through some interfaces, and the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected to implement this embodiment according to actual needs. Furthermore, the functional units in the embodiments of this disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0160] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than that shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. In the descriptions corresponding to the flowcharts and block diagrams in the accompanying drawings, the operations or steps corresponding to different blocks may also occur in a different order than disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. Each block in a block diagram and / or flowchart, and combinations of blocks in a block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
Claims
1. A method for determining the installation tilt angle of a camera for capturing the inner liner area of a refrigerator, characterized in that the refrigerator... include: Box; The door is rotatably mounted on the front side of the box via a door rotation axis, and a bracket rotation axis is provided at the end of the door away from the door rotation axis; The camera bracket can be rotatably mounted on the door via a bracket rotation axis; The camera is mounted on a camera bracket; the method includes: The camera obtains the real-time viewing angle and the minimum viewing angle along a set direction; wherein, the set direction includes the horizontal or vertical direction, and the real-time viewing angle and the minimum viewing angle are determined based on the inner shell structure. The angle deviation in the set direction is determined based on the real-time viewing angle of the camera along the set direction and the minimum viewing angle along the set direction. Based on the real-time viewing angle of the camera along the set direction and the viewing angle deviation along the set direction, the installation tilt angle range of the camera along the set direction is obtained.
2. The method according to claim 1, characterized in that, Based on the real-time viewing angle of the camera along the set direction and the viewing angle deviation along the set direction, the installation tilt angle range of the camera along the set direction is obtained, including: The sum of the real-time viewing angle of the camera along the set direction and the viewing angle deviation along the set direction is the maximum value of the installation tilt angle along the set direction. The difference between the real-time viewing angle of the camera along the set direction and the viewing angle deviation along the set direction is the minimum value of the installation tilt angle along the set direction. Based on the maximum and minimum installation tilt angles in the set direction, the range of installation tilt angles of the camera along the set direction is determined.
3. The method according to claim 1, characterized in that, Obtain the real-time viewing angle and minimum viewing angle of the camera along a set direction, including: Determine the area to be identified, the maximum recognition area corresponding to the area to be identified, and the lens position of the center of the camera lens; The center points of the first side and the second side of the area to be identified are determined as the first reference position and the second reference position, respectively; the first side represents the side that is farthest from the door rotation axis along the set direction association direction, and the second side represents the side that is closest to the door rotation axis along the set direction association direction; wherein, the horizontal direction is associated with the box thickness direction, and the vertical direction is associated with the box width direction; The center points of the third and fourth sides of the maximum recognition area are determined as the third reference position and the fourth reference position, respectively; the third side represents the side that is farthest from the door rotation axis along the set direction association direction, and the fourth side represents the side that is closest to the door rotation axis along the set direction association direction. Based on the lens position and the first and second reference positions, determine the minimum angle of view of the camera along the set direction; Based on the lens position and the third and fourth reference positions, determine the maximum viewing angle of the camera along the set direction, and configure the real-time viewing angle of the camera along the set direction based on the minimum and maximum viewing angles along the set direction.
4. The method according to claim 3, characterized in that, Based on the lens position and the first and second reference positions, determine the minimum viewing angle of the camera along a set direction, including: Determine the boundary line of the first viewpoint based on the camera position and the first reference position; Determine the boundary line of the second viewpoint based on the camera position and the second reference position; The angle between the boundary line of the first viewpoint and the boundary line of the second viewpoint is determined as the minimum field of view of the camera along the set direction. Based on the lens position and the third and fourth reference positions, determine the maximum viewing angle of the camera along the set direction, including: Determine the boundary line of the third-view perspective based on the camera position and the third reference position; Determine the boundary line of the fourth perspective based on the camera position and the fourth reference position; The angle between the boundary line of the third view and the boundary line of the fourth view is determined as the maximum field of view of the camera along the set direction.
5. The method according to claim 4, characterized in that, Determine the angle between the boundary line of the first viewpoint and the boundary line of the second viewpoint as the minimum field of view of the camera along a set direction, including: Where A, B, and C represent the lens coordinates of the lens position, the first coordinate of the first reference position, and the second coordinate of the second reference position, respectively, FOV. min This indicates the minimum field of view of the camera along a set direction.
6. The method according to claim 4, characterized in that, The angle between the third-view boundary line and the fourth-view boundary line is determined as the maximum field of view of the camera along the set direction, including: Where B' and C' represent the third coordinate of the third reference position and the fourth coordinate of the fourth reference position, respectively, FOV max This indicates the maximum field of view of the camera along the set direction.
7. The method according to claim 6, characterized in that, Determine the center points of the first and second sides of the region to be identified as the first and second reference positions, respectively, including: A three-dimensional coordinate system is constructed with the intersection of the door's rotation axis and the set straight line as the origin, the width direction of the box towards the area to be identified as the X-axis, the thickness direction of the box away from the box as the Y-axis, and the direction of gravity as the Z-axis; the set straight line represents the straight line passing through the center point of the first side and the center point of the second side. Obtain the box width W box and the maximum width W of the region to be identified along the X-axis ROI ; Obtain the box thickness D box And the maximum thickness D of the region to be identified along the Y-axis ROI ; When the direction is set to horizontal, according to (0.5W) box +0.5W ROI ,0,D box -0.5D ROI ), determine the first coordinate B of the first reference position, according to (0.5W box -0.5W ROI ,0,D box -0.5D ROI ), determine the second coordinate C of the second reference position; When the direction is set to vertical, according to (0.5W) box ,0,D box -D ROI ), determine the first coordinate B of the first reference position, according to (0.5W box ,0,D box ), determine the second coordinate C of the second reference position.
8. The method according to claim 7, characterized in that, The center points of the third and fourth sides of the largest recognition region are determined as the third and fourth reference positions, respectively, including: Obtain the ratio k between the maximum recognition area and the area to be recognized; When the direction is set to horizontal, according to (0.5W box / k+0.5W ROI / k,0,D box -0.5D ROI ), determine the third coordinate B' of the third reference position, according to (0.5W box / k-0.5W ROI / k,0,D box -0.5D ROI ), determine the fourth coordinate C' of the fourth reference position; When the direction is set to vertical, according to (0.5W) box / k,0,D box -D ROI ), determine the third coordinate B' of the third reference position, according to (0.5W box / k,0,D box ), determine the fourth coordinate C' of the fourth reference position.
9. A device for determining the mounting tilt angle of a camera for capturing an inner liner area, comprising a processor and a memory storing program instructions, characterized in that, The processor is configured to, when running the program instructions, perform the method for determining the camera mounting tilt angle for capturing the inner liner area as described in any one of claims 1 to 8.
10. A refrigerator, characterized in that, include: Box; The door is rotatably mounted on the front side of the box via a door rotation axis, and a bracket rotation axis is provided at the end of the door away from the door rotation axis; The camera bracket can be rotatably mounted on the door via a bracket rotation axis; The camera is mounted on a camera bracket; The device for determining the camera mounting angle for capturing the inner liner area as described in claim 9 is installed on the door body.