Method and device for determining installation inclination angle of camera, refrigerator and computer readable storage medium
By calculating the intersection of the camera installation angles, the problem of camera installation angle adaptation for different types of refrigerators was solved, and modular configuration of cameras on various refrigerators was achieved, which improved the adaptation range and accuracy.
Patent Information
- Application Number
- CN202410297419.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-15
- Publication Date
- 2025-09-16
AI Technical Summary
The existing technology cannot adapt to the camera installation angles of different types of refrigerators, resulting in a relatively limited adaptation range of the camera installation angle configuration.
By obtaining the installation inclination angle ranges of cameras configured for different types of refrigerators, calculating the intersection of the installation inclination angles, and determining the target installation inclination angle ranges applicable to different types of refrigerators, modular configuration of cameras is achieved.
The adaptability range of the camera installation angle configuration has been improved, allowing the camera to be suitable for different types of refrigerators, enhancing the universality and accuracy of the configuration.
Smart Images

Figure CN120655879A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of refrigeration equipment, for example, to a method and device for determining the installation inclination angle of a camera, a refrigerator, and a computer-readable storage medium. Background Art
[0002] With the rapid development of science and technology, refrigerators with refrigeration, freezing, and food management functions are gaining widespread adoption in the smart home appliance sector. To better manage food, refrigerators are equipped with cameras located on the top of the refrigerator compartment to identify the drawer areas within the compartment. However, these cameras are typically fixed to the top of the refrigerator compartment. To prevent the camera from capturing images of objects in other areas of the refrigerator compartment, they are typically installed at an angle toward the door.
[0003] In order to determine the installation angle of the camera, the relevant technology discloses a method for detecting the installation angle of the camera, including the following steps: obtaining a pre-stored standard image, the standard image is an image obtained by photographing a detection object located at a preset position in the accommodating space when the installation position of the camera on the installation surface of the accommodating space is at a standard installation angle; when the camera is installed at the installation position of the installation surface, controlling the camera to photograph the detection object and obtain a detection image; comparing the image 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 for adjusting the installation angle of the camera.
[0004] During the implementation of the embodiments of the present disclosure, it was found that at least the following problems exist in the related art:
[0005] For different types of refrigerators, the related art requires controlling the camera to capture the detection object and obtain the detection image. The image of the detection object is then compared with the standard image to determine whether the camera installation angle deviates and adjust the installation angle. As such, the information for adjusting the camera installation angle determined by the related art can only meet the needs of the refrigerator where the camera is installed and cannot be adapted to different types of refrigerators, thus limiting the scope of adaptation.
[0006] It should be noted that the information disclosed in the above background technology section 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 ordinary technicians in this field. Summary of the Invention
[0007] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical elements or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0008] The embodiments of the present disclosure provide a method and device for determining the camera installation inclination angle, a refrigerator, and a computer-readable storage medium to obtain camera installation angles suitable for different types of refrigerators and improve the adaptation range of the camera installation angle configuration.
[0009] In some embodiments, the method includes: obtaining the installation inclination angle range of cameras configured for different types of refrigerators; obtaining the installation inclination angle intersection based on the installation inclination angle range of cameras configured for different types of refrigerators; and determining the target installation inclination angle range applicable to different types of refrigerators based on the installation inclination angle intersection.
[0010] In some embodiments, the installation inclination range of cameras configured for different types of refrigerators is obtained, including: obtaining the vertical viewing angle of the camera; determining the region of interest (ROI) when the drawer is pulled out to the maximum position and the first region boundary where the ROI is located at the drawer pulling end; determining a photographed area having a first field of view boundary that coincides with the first region boundary; wherein the photographed area represents the area covered by the field of view when the camera is shooting; determining the angle between the first ray and the vertical direction as the first inclination angle; wherein the first ray represents the ray formed by the center of the camera lens and the midpoint of the first field of view boundary of the photographed area; and determining the minimum installation inclination angle based on the vertical viewing angle and the first inclination angle of the camera.
[0011] In some embodiments, obtaining the installation inclination range of cameras configured for different types of refrigerators also includes: determining the second area boundary of the ROI located at the end of the drawer; determining the photographed area having a second field of view boundary that coincides with the second area boundary; determining the angle between the second ray and the vertical direction as the second inclination angle; wherein the second ray represents the ray formed by the center of the camera lens and the midpoint of the second field of view boundary of the photographed area; and determining the maximum installation inclination angle based on the vertical viewing angle of the camera and the second inclination angle.
[0012] In some embodiments, the minimum installation inclination angle is determined based on the vertical viewing angle and the first inclination angle of the camera, including: determining the vertical reference viewing angle based on the vertical viewing angle of the camera; determining the minimum installation inclination angle by subtracting the first inclination angle from the vertical reference viewing angle; determining the maximum installation inclination angle based on the vertical viewing angle and the second inclination angle, including: determining the maximum installation inclination angle by subtracting the vertical reference viewing angle from the second inclination angle.
[0013] In some embodiments, the camera is mounted on the top of the refrigerator compartment, and determining the angle between the first ray and the vertical direction as the first inclination angle includes: obtaining the distance d1 between the center of the camera lens and the front edge of the box liner; obtaining the vertical distance WD between the camera and the photographed area and the distance d2 that the photographed area extends beyond the front edge of the box liner; wherein the photographed area represents the area covered by the field of view of the camera when shooting; and calculating Obtain the first inclination angle.
[0014] In some embodiments, the camera is mounted on the top of the refrigerator compartment, and determining the angle between the second ray and the vertical direction as the second inclination angle includes: obtaining the width V of the photographed area along the drawer pulling direction; wherein the photographed area represents the area covered by the camera's field of view when photographing; obtaining the distance d1 between the camera lens center and the front edge of the cabinet inner liner; obtaining the vertical distance WD between the camera and the photographed area and the distance d2 that the photographed area extends beyond the front edge of the cabinet inner liner; and calculating Obtain a second inclination angle.
[0015] In some embodiments, the device includes a processor and a memory storing program instructions, and the processor is configured to execute the above-mentioned method for determining the camera installation inclination angle when running the program instructions.
[0016] In some embodiments, the refrigerator includes: a refrigerator body; and a device for determining the camera installation inclination angle as described above, installed on the refrigerator body.
[0017] In some embodiments, a computer-readable storage medium stores program instructions, which, when executed, enable a computer to execute the method for determining the camera installation inclination angle as described above.
[0018] The method and device for determining the camera installation inclination angle, refrigerator, and computer-readable storage medium provided by the embodiments of the present disclosure can achieve the following technical effects:
[0019] The disclosed embodiment first obtains the installation tilt angle ranges for cameras configured for different types of refrigerators. Then, based on the installation tilt angle ranges for cameras configured for different types, the intersection of the installation tilt angles is obtained. Finally, based on the intersection of the installation tilt angles, a target installation tilt angle range applicable to different types of refrigerators is determined. The target installation tilt angle range thus obtained can be applied to different types of refrigerators. When configuring cameras for different types of refrigerators, relevant configurations can be made based on the target installation tilt angle range. In this way, the disclosed embodiment can obtain camera installation angles that are suitable for different types of refrigerators, thereby increasing the adaptability range of camera installation angle configurations.
[0020] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] One or more embodiments are exemplarily described by corresponding drawings. These exemplary descriptions and drawings do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements. The drawings do not constitute a scale limitation. In addition,
[0022] Figure 1: is a structural schematic diagram of a refrigerator provided by an embodiment of the present disclosure; wherein X represents the pulling direction of the drawer, and the drawer is pulled to the maximum position along X;
[0023] Figure 2 is a schematic diagram of a method for determining a camera installation inclination angle provided by an embodiment of the present disclosure;
[0024] Figure 3 is a schematic diagram of another method for determining a camera installation inclination angle provided by an embodiment of the present disclosure;
[0025] Figure 4 is a schematic diagram of another method for determining a camera installation inclination angle provided by an embodiment of the present disclosure;
[0026] Figure 5 is a schematic diagram of another method for determining a camera installation inclination angle provided by an embodiment of the present disclosure;
[0027] Figure 6-1 This is a schematic diagram of the angles corresponding to the camera provided by the embodiment of the present disclosure being installed at the minimum installation inclination angle;
[0028] Figure 6-2 This is a schematic diagram of the angles corresponding to the camera provided by the embodiment of the present disclosure being installed at the maximum installation inclination angle;
[0029] Figure 6-3 is a schematic diagram of the ROI and the photographed area provided by an embodiment of the present disclosure;
[0030] Figure 7 is a schematic diagram of a device for determining a camera installation inclination angle provided by an embodiment of the present disclosure;
[0031] Figure 8 is a schematic diagram of another device for determining a camera installation inclination angle provided by an embodiment of the present disclosure;
[0032] Figure 9 It is a schematic diagram of a refrigerator provided by an embodiment of the present disclosure.
[0033] Reference numerals:
[0034] 10: Refrigerator box; 20: Drawer; 30: Camera;
[0035] 101: box inner shell; 102: vertical beam base;
[0036] 100: Refrigerator;
[0037] 200(300): a device for determining the camera installation inclination angle;
[0038] 201: Acquisition module; 202: Analysis module; 203: Determination module;
[0039] 700: processor; 701: memory; 702: communication interface; 703: bus. DETAILED DESCRIPTION
[0040] In order to be able to understand the features and technical content of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The accompanying drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the sake of convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0041] In the description and claims of the embodiments of the present disclosure, as well as in the accompanying drawings, the terms "first," "second," and the like are used to distinguish similar items and are not necessarily used to describe a particular order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate to describe the embodiments of the present disclosure herein. In addition, the terms "including," "having," and any variations thereof are intended to cover non-exclusive inclusions.
[0042] Unless otherwise stated, the term "plurality" means two or more.
[0043] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B means: A or B.
[0044] 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.
[0045] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
[0046] In the embodiments of the present disclosure, smart home appliances refer to home appliance products that are formed by introducing microprocessors, sensor technology, and network communication technology into home appliances. They have the characteristics of intelligent control, intelligent perception, and intelligent application. The operation process of smart home appliances often relies on the application and processing of modern technologies such as the Internet of Things, the Internet, and electronic chips. For example, smart home appliances can realize remote control and management of smart home appliances by users by connecting to electronic devices.
[0047] In the disclosed embodiments, a terminal device refers to an electronic device with a wireless connection function. The terminal device can communicate with the above-mentioned smart home appliances by connecting to the Internet, or can communicate with the above-mentioned smart home appliances directly through Bluetooth, Wi-Fi, etc. In some embodiments, the terminal device is, for example, a mobile device, a computer, or a vehicle-mounted device built into a hover car, or any combination thereof. Mobile devices may include, for example, mobile phones, smart home devices, wearable devices, smart mobile devices, virtual reality devices, etc., or any combination thereof, wherein wearable devices include, for example, smart watches, smart bracelets, pedometers, etc.
[0048] Figure 1 Schematic diagram of the structure of a refrigeration chamber provided by the embodiment of the present disclosure. Figure 1 As shown, the refrigerator includes a refrigerator compartment 10, a camera 30, and a drawer 20. The refrigerator compartment 10 includes a cabinet liner 101 and a vertical beam base 102. The vertical beam base 102 is mounted on the top of the cabinet liner 101. The camera 30 is mounted on the top of the refrigerator compartment 10. The drawer 20 is mounted on the bottom of the refrigerator compartment 10 and can be pulled in and out of the cabinet liner 101 along a pull-out direction. Here, X represents the pull-out direction of the drawer 20. Figure 1 In the embodiment, the drawer 20 is pulled to the maximum position along X. Optionally, the camera 30 is mounted on the vertical beam base 102 and is located at the symmetry axis of the inner liner 101 of the box body.
[0049] Combine Figure 2 As shown, an embodiment of the present disclosure provides a method for determining a camera installation inclination angle, comprising:
[0050] S01, the refrigerator obtains the installation inclination angle range of the camera configured for different types of refrigerators.
[0051] S02: Obtain an intersection of installation inclination angles according to the installation inclination angle ranges of cameras configured for different types of refrigerators.
[0052] S03: The refrigerator determines a target installation inclination angle range applicable to different types of refrigerators based on the intersection of the installation inclination angles.
[0053] Using the method for determining the camera installation inclination angle provided by the embodiment of the present disclosure, the embodiment of the present disclosure first obtains the installation inclination angle range of the camera configured for different types of refrigerators; then, based on the installation inclination angle range of the cameras configured for different types, the installation inclination angle intersection is obtained; finally, based on the installation inclination angle intersection, the target installation inclination angle range applicable to different types of refrigerators is determined. The target installation inclination angle range obtained in this way can be applicable to different types of refrigerators. When configuring cameras for different types of refrigerators, relevant configurations can be made based on the target installation inclination angle range. In this way, the embodiment of the present disclosure can obtain camera installation angles that are suitable for different types of refrigerators, thereby improving the adaptation range of the camera installation angle configuration.
[0054] Combine Figure 6-2 and Figure 6-3 As shown, ROI (region of intresting) represents the area that needs to be identified when the camera 30 is shooting. ROI includes at least the area where the drawer 20 is located and a small area around the drawer 20. When the ROI includes the area where the drawer 20 is located, if the drawer is pulled to the maximum position and the first field of view boundary of the photographed area coincides with the first area boundary of the ROI at the drawer pull-out end, θ is the minimum value of the installation inclination angle. The drawer pull-out end refers to the operating end of the drawer during the pulling operation. At the same time, due to the installation inclination angle θ and The sum of and Therefore, θ = θ min , that is, the embodiment of the present disclosure can calculate θ min The minimum value of the installation inclination angle θ is obtained, where γ represents the angle between the first ray and the horizontal direction.
[0055] Optionally, combined Figure 3 and Figure 6-1 As shown in the figure, the refrigerator obtains the installation inclination range of the camera configured for different types of refrigerators, including:
[0056] S11, the refrigerator obtains the vertical field of view (Fov) of the camera.
[0057] S12, the refrigerator determines the ROI where the drawer is pulled out to the maximum position and the first region boundary where the ROI is located at the drawer pulling end.
[0058] S13: The refrigerator determines a photographed area having a first field of view boundary that coincides with the first area boundary, wherein the photographed area refers to an area covered by the field of view of the camera during photographing.
[0059] S14, the refrigerator determines that the angle between the first ray and the vertical direction is a first inclination angle θ1; wherein the first ray represents a ray formed by the center of the camera lens and the midpoint of the first field of view boundary of the captured area,
[0060] S15, the refrigerator determines the minimum installation inclination angle θ according to the vertical viewing angle Fov of the camera and the first inclination angle θ1 min ,Right now
[0061] Therefore, after obtaining the vertical viewing angle Fov of the camera, the embodiment of the present disclosure determines the ROI under the drawer when it is pulled to the maximum position and the first area boundary of the ROI located at the drawer pulling end, and determines the captured area of the first field of view boundary that coincides with the first area boundary, using the ray formed by the center of the camera lens and the midpoint of the first field of view boundary of the captured area as the first ray. Then, the angle between the first ray and the vertical direction is determined as the first inclination angle θ1. Finally, the minimum installation inclination angle θ is determined based on the vertical viewing angle of the camera and the first inclination angle θ1. min The captured area at least includes the first area boundary of the ROI, ensuring that the field of view captured by the camera at least covers the first area boundary of the ROI.
[0062] Combine Figure 6-2 and Figure 6-3 As shown, ROI represents the area below the drawer when it is pulled to the maximum position. When the ROI includes the area where the drawer 20 is located, if the drawer is pulled to the maximum position and the second field of view boundary of the photographed area coincides with the second area boundary of the ROI at the end of the drawer, θ is the maximum installation inclination angle. The end of the drawer refers to the end opposite to the drawer end during the pulling operation. At the same time, θ = θ max , that is, the embodiment of the present disclosure can calculate θ max Obtain the maximum installation inclination angle θ.
[0063] Optionally, combined Figure 4 and Figure 6-2 As shown, the refrigerator obtains the installation inclination range of the camera configured for different types of refrigerators, and also includes:
[0064] S21, the refrigerator determines that the ROI is located at the second area boundary at the end of the drawer.
[0065] S22: The refrigerator determines a photographed area having a second field of view boundary that coincides with a second area boundary.
[0066] S23, the refrigerator determines that the angle between the second ray and the vertical direction is a second inclination angle θ2; wherein the second ray represents a ray formed by the center of the camera lens and the midpoint of the second field of view boundary of the captured area,
[0067] S24, the refrigerator determines the maximum installation inclination angle θ according to the vertical viewing angle Fov of the camera and the second inclination angle θ2 max ,Right now
[0068] In this way, after obtaining the vertical viewing angle Fov of the camera, the embodiment of the present disclosure determines that the ROI is located at the second area boundary of the drawer pull-out end, and determines the captured area of the second field of view boundary that coincides with the second area boundary, using the ray formed by the camera lens center and the midpoint of the second field of view boundary of the captured area as the second ray. Then, the angle between the second ray and the vertical direction is determined as the second inclination angle θ2. Finally, the maximum installation inclination angle θ is determined based on the vertical viewing angle of the camera and the second inclination angle θ2. max The captured area at least includes the second area boundary of the ROI, ensuring that the field of view captured by the camera at least covers the second area boundary of the ROI.
[0069] Optionally, the refrigerator determines a minimum installation inclination angle according to the vertical viewing angle of the camera and the first inclination angle, including:
[0070] The refrigerator determines the vertical reference viewing angle based on the vertical viewing angle Fov of the camera
[0071] The refrigerator sets the first tilt angle θ1 to the vertical reference viewing angle Make the difference and determine the minimum value of the installation inclination angle;
[0072] The refrigerator determines the maximum installation inclination angle based on the vertical viewing angle of the camera and the second inclination angle, including:
[0073] The refrigerator will be vertical reference viewing angle Differ from the second inclination angle θ2 to determine the maximum installation inclination angle; that is,
[0074] In this way, the disclosed embodiment can calculate the maximum installation inclination angle based on the camera's vertical viewing angle and the second inclination angle, thereby improving the accuracy and flexibility of the installation inclination angle calculation. Furthermore, the calculated maximum installation inclination angle is highly compatible with different types of refrigerators, thereby increasing the adaptability of the camera installation angle configuration.
[0075] Optionally, the refrigerator determines the angle between the first ray and the vertical direction as the first inclination angle θ1, including:
[0076] The refrigerator obtains the distance d1 between the center of the camera lens and the front edge of the cabinet.
[0077] The refrigerator obtains the vertical distance WD between the camera and the photographed area and the distance d2 that the photographed area extends beyond the front edge of the cabinet inner liner; wherein the photographed area represents the area covered by the field of view of the camera when shooting.
[0078] Refrigerator calculation Obtain the first inclination angle θ1. Accordingly,
[0079] This ensures the accuracy of the first inclination angle calculation, which helps improve the accuracy and flexibility of the installation inclination angle calculation. At the same time, the calculated minimum installation inclination angle is highly compatible with different types of refrigerators, increasing the adaptability range of the camera installation angle configuration.
[0080] Optionally, the refrigerator determines the angle between the second ray and the vertical direction as the second inclination angle, including:
[0081] The refrigerator obtains the width V of the photographed area along the drawer pulling direction; wherein the photographed area represents the area covered by the field of view of the camera when shooting.
[0082] The refrigerator obtains the distance d1 between the center of the camera lens and the front edge of the cabinet.
[0083] The refrigerator obtains the vertical distance WD between the camera and the photographed area and the distance d2 between the photographed area and the front edge of the cabinet.
[0084] Refrigerator calculation The second inclination angle θ2 is obtained. Accordingly,
[0085] This ensures the accuracy of the second inclination angle calculation, making the calculated maximum installation inclination angle more adaptable, which helps improve the accuracy and flexibility of the installation inclination angle calculation. At the same time, the calculated maximum installation inclination angle is highly adaptable to different types of refrigerators, increasing the adaptability range of the camera installation angle configuration.
[0086] Optionally, combined Figure 5 As shown, the refrigerator obtains the distance d1 between the center of the camera lens and the front edge of the cabinet body in the following way:
[0087] S31: The refrigerator obtains a width value d3 of the vertical beam base.
[0088] S32: The refrigerator obtains a width value d4 of the camera module.
[0089] S33, the refrigerator calculates d1=d3+0.5×d4.
[0090] In this way, the distance d1 between the center of the camera lens and the front of the refrigerator body can be accurately calculated, which is helpful for accurately calculating the installation angle range of the camera configured for different types of refrigerators.
[0091] Combine Figure 7As shown, an embodiment of the present disclosure provides an apparatus 200 for determining a camera installation inclination angle, comprising an acquisition module 201, an analysis module 202, and a determination module 203. Acquisition module 201 is configured to obtain the installation inclination angle ranges of cameras configured for different types of refrigerators. Analysis module 202 is configured to obtain an installation inclination angle intersection based on the installation inclination angle ranges of cameras configured for different types of refrigerators. Determination module 203 is configured to determine a target installation inclination angle range applicable to different types of refrigerators based on the installation inclination angle intersection.
[0092] The device 200 for determining the camera installation inclination angle provided by the embodiment of the present disclosure is conducive to achieving modular configuration of the camera installed in the refrigerator compartment, thereby enhancing the universality of the camera configuration.
[0093] Combine Figure 8 As shown, an embodiment of the present disclosure provides a device 300 for determining the camera installation inclination angle, including a processor 700 and a memory 701. Optionally, the device 300 may also include a communication interface 702 and a bus 703. The processor 700, the communication interface 702, and the memory 701 may communicate with each other through the bus 703. The communication interface 702 may be used for information transmission. The processor 700 may call the logic instructions in the memory 701 to execute the method for determining the camera installation inclination angle of the above embodiment.
[0094] In addition, the logic instructions in the memory 701 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
[0095] Memory 701, 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 the present disclosure. Processor 700 executes the program instructions / modules stored in memory 701 to perform functional applications and data processing, thereby implementing the method for determining the camera installation inclination angle in the above-mentioned embodiments.
[0096] The memory 701 may include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function; the data storage area may store data generated based on the use of the terminal device. Furthermore, the memory 701 may include high-speed random access memory and non-volatile memory.
[0097] Combine Figure 9As shown, an embodiment of the present disclosure provides a refrigerator 100, comprising: a refrigerator body, and the above-mentioned device 200 (300) for determining the camera installation inclination angle. The device 200 (300) for determining the camera installation inclination angle is installed on the refrigerator body. The installation relationship described here is not limited to placement inside the refrigerator body, but also includes installation connections with other components of the refrigerator 100, including but not limited to physical connections, electrical connections or signal transmission connections, etc. It can be understood by those skilled in the art that the device 200 (300) for determining the camera installation inclination angle can be adapted to a feasible refrigerator body, thereby realizing other feasible embodiments.
[0098] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above-mentioned method for determining the camera installation inclination angle.
[0099] The technical solutions of the embodiments of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiments of the present disclosure. The aforementioned storage medium may be a non-transitory storage medium, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, among other media capable of storing program code.
[0100] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible variations. Unless explicitly required, individual components and functions are optional, and the order of operations may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to also include plural forms. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of one or more associated listings. In addition, when used in this application, the term "comprise" and its variations "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups of these. In the absence of further restrictions, an element defined by the sentence "comprising a..." does not exclude the presence of other identical elements in the process, method or device that includes the element. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments can be referenced to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can be found in the description of the method part.
[0101] Those skilled in the art will appreciate that the units and algorithm steps of each example 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 performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. The technicians will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0102] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units can be merely a logical functional division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, and can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, the functional units in the embodiments of the present disclosure may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0103] The flowcharts and block diagrams in the accompanying drawings show the possible implementation architectures, functions and operations of the systems, methods and computer program products according to the embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment or part of the code, and the module, program segment or part of the code contains one or more executable instructions for implementing the specified logical functions. In some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, or they can sometimes be executed in the opposite order, which can depend 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 boxes can also occur in an order different from that disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, or they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified function or action, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A method for determining the camera installation inclination angle, characterized in that: include: Obtain the installation angle range of cameras configured for different types of refrigerators; Obtaining an installation inclination angle intersection according to installation inclination angle ranges of cameras configured for different types of refrigerators; According to the intersection of the installation inclination angles, the target installation inclination angle range applicable to different types of refrigerators is determined.
2. The method according to claim 1, characterized in that Obtain the camera installation angle ranges for different types of refrigerators, including: Get the vertical viewing angle of the camera; Determine a region of interest (ROI) when the drawer is pulled to its maximum position and a first region boundary where the ROI is located at the drawer pull-out end; Determine a captured area having a first field of view boundary that coincides with a first area boundary; wherein the captured area refers to an area covered by the field of view of the camera when shooting; Determine an angle between the first ray and the vertical direction as a first inclination angle; wherein the first ray represents a ray formed by a lens center of the camera and a midpoint of a first field of view boundary of the captured area; Determine the minimum installation inclination angle based on the vertical viewing angle and the first inclination angle of the camera.
3. The method according to claim 2, characterized in that Obtain the installation angle range of cameras configured for different types of refrigerators, including: Determine that the ROI is located at the second region boundary at the end of the drawer; determining a photographed area having a second field of view boundary that coincides with a second area boundary; Determine an angle between the second ray and the vertical direction as a second inclination angle; wherein the second ray represents a ray formed by a lens center of the camera and a midpoint of a second field of view boundary of the captured area; Determine the maximum installation inclination angle based on the vertical viewing angle and the second inclination angle of the camera.
4. The method according to claim 3, characterized in that Based on the vertical viewing angle and the first inclination angle of the camera, determine the minimum installation inclination angle, including: Determine the vertical reference viewing angle according to the vertical viewing angle of the camera; Take the difference between the first inclination angle and the vertical reference viewing angle to determine the minimum installation inclination angle; Based on the vertical viewing angle and the second inclination angle of the camera, determine the maximum installation inclination angle, including: Take the difference between the vertical reference viewing angle and the second inclination angle to determine the maximum installation inclination angle.
5. The method according to claim 2, characterized in that The camera is installed on the top of the refrigerator compartment, and the angle between the first ray and the vertical direction is determined as the first inclination angle, including: Get the distance d1 between the center of the camera lens and the front edge of the box body; Obtain the vertical distance WD between the camera and the photographed area and the distance d2 from the photographed area beyond the front edge of the box body; calculate Obtain the first inclination angle.
6. The method according to claim 2, characterized in that The camera is installed on the top of the cold storage compartment, and the angle between the second ray and the vertical direction is determined as the second inclination angle, including: Obtain the width V of the photographed area along the drawer pulling direction; wherein the photographed area refers to the area covered by the camera's field of view when photographing; Get the distance d1 between the center of the camera lens and the front edge of the box body; Obtain the vertical distance WD between the camera and the photographed area and the distance d2 from the photographed area beyond the front edge of the box body; calculate Obtain a second inclination angle.
7. The method according to claim 5 or 6, characterized in that: Obtain the distance d1 between the center of the camera lens and the front edge of the cabinet as follows: Get the width value d3 of the vertical beam base; Get the width value d4 of the camera module; Calculate d1=d3+0.5×d4.
8. A device for determining the camera installation inclination angle, comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the method for determining the camera installation inclination angle according to any one of claims 1 to 7 when running the program instructions.
9. A refrigerator, characterized in that: include: Refrigerator body; The device for determining the camera installation inclination angle as described in claim 8 is installed on the refrigerator body.
10. A computer-readable storage medium storing program instructions, characterized in that: When the program instructions are executed, the computer is configured to execute the method for determining the camera installation inclination angle according to any one of claims 1 to 7.