Method and device for determining shooting visual angle of camera, refrigerator and computer readable storage medium
By calculating the viewing angle range and intersection of refrigerator cameras, modular configuration of cameras is achieved, which solves the problem of incompatibility between camera configurations of different types of refrigerators and improves the universality and recognition accuracy of cameras in refrigerators.
Patent Information
- Application Number
- CN202410297430.8
- 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
In the existing technology, the shooting area of the refrigerator camera is fixed and cannot adapt to different types of refrigerators, resulting in the image captured by the camera being unable to accurately reflect the actual food storage situation in the drawer area, and the universality is poor.
By obtaining the camera viewing angle ranges of different types of refrigerators, calculating the view angle intersection, and determining the target viewing angle ranges applicable to different types of refrigerators, modular configuration of the camera is achieved.
The universality of the camera configuration has been enhanced, making it applicable to different types of refrigerators, ensuring that the camera can accurately identify and manage food in the refrigerator's refrigerator compartment.
Smart Images

Figure CN120658946A_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 a camera shooting angle, 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 area within the compartment. However, these cameras are typically fixed to the top of the refrigerator compartment, capturing a single area. Consequently, the images captured by the cameras fail to accurately reflect the actual food storage conditions within the drawer area, hindering food management.
[0003] In order to improve the accuracy of images taken by a camera, the relevant technology discloses a method for configuring the camera area of a refrigerator, including: the refrigerator includes a camera device, the camera device has a camera and a driving module for driving the camera to rotate, and the method includes: starting a configuration mode; controlling the driving module to drive the camera to rotate; controlling the camera to capture images during the rotation process, and determining the camera boundary of the refrigerator based on the image captured by the camera; and configuring the camera area of the refrigerator based on the camera boundary.
[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 drive module of each refrigerator type to rotate the camera and control the camera to capture images during rotation. The camera then determines the refrigerator's camera boundary based on the images captured by the camera and configures the refrigerator's camera area based on the camera boundary. As a result, the camera area of a single camera can only meet the needs of one or a few types of refrigerators. The related art cannot modularly configure the camera, resulting in poor universal applicability.
[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 shooting angle of a camera, a refrigerator, and a computer-readable storage medium, so as to modularly configure a camera installed in the refrigerator's refrigeration compartment to enhance universality.
[0009] In some embodiments, the method includes: obtaining the viewing angle range of cameras configured for different types of refrigerators; obtaining the viewing angle intersection based on the viewing angle range of cameras configured for different types of refrigerators; and determining the target viewing angle range applicable to different types of refrigerators based on the viewing angle intersection.
[0010] In some embodiments, the viewing angle range of cameras configured for different types of refrigerators is obtained, including: obtaining the minimum horizontal viewing angle and the maximum horizontal viewing angle of the camera; constructing the horizontal viewing angle range of the camera based on the minimum horizontal viewing angle and the maximum horizontal viewing angle; and / or, obtaining the minimum vertical viewing angle and the maximum vertical viewing angle of the camera; constructing the vertical viewing angle range of the camera based on the minimum vertical viewing angle and the maximum vertical viewing angle.
[0011] In some embodiments, the camera is installed on the top of the refrigerator compartment body, and the minimum horizontal and vertical viewing angles of the camera are obtained in the following manner: the length L of the photographed area along the direction perpendicular to the drawer pulling direction and the width V of the photographed area along the drawer pulling direction are obtained; wherein the photographed area represents the area covered by the camera shooting field of view and the photographed area at least includes the area where the drawer is located; the distance d1 between the center of the camera lens and the front edge of the box liner is obtained; the vertical distance WD between the camera and the photographed area and the distance d2 that the photographed area exceeds the front edge of the box liner are obtained; and the distance d2 between the camera and the photographed area and the front edge of the box liner are calculated. Get the minimum horizontal viewing angle; calculate Get the minimum vertical viewing angle.
[0012] In some embodiments, the maximum horizontal and vertical viewing angles of the camera are obtained as follows: the length L of the photographed area perpendicular to the drawer pulling direction and the width V of the photographed area along the drawer pulling direction are obtained; wherein the photographed area represents the area covered by the camera's field of view when photographing; the distance d1 between the center of the camera lens and the front edge of the box liner is obtained; 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 are obtained; and the distance d2 between the camera and the photographed area and the front edge of the box liner are calculated. Get the maximum horizontal viewing angle; calculate Obtain the maximum vertical viewing angle; where α is the proportional coefficient and 0<α<1.
[0013] In some embodiments, α is determined by the recognition accuracy of the camera and is positively correlated with the recognition accuracy of the camera.
[0014] In some embodiments, the distance d1 between the center of the camera lens and the front edge of the box body is obtained in the following manner: obtain the width value d3 of the vertical beam base; obtain the width value d4 of the camera module; and calculate d1 = d3 + 0.5 × d4.
[0015] In some embodiments, the device includes: an acquisition module configured to obtain the viewing angle range of cameras configured for different types of refrigerators; an analysis module configured to obtain a viewing angle intersection based on the viewing angle range of cameras configured for different types of refrigerators; and a determination module configured to determine a target viewing angle range applicable to different types of refrigerators based on the viewing angle intersection.
[0016] 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 shooting angle when running the program instructions.
[0017] In some embodiments, a refrigerator includes: a refrigerator body; and a device for determining the camera shooting angle as described above, installed on the refrigerator body.
[0018] In some embodiments, the storage medium stores program instructions, and when the program instructions are executed, the computer is used to execute the method for determining the camera shooting angle as described above.
[0019] The method and device for determining the camera shooting angle, refrigerator, and computer-readable storage medium provided by the embodiments of the present disclosure can achieve the following technical effects:
[0020] The disclosed embodiment first obtains the viewing angle ranges of the cameras configured for different types of refrigerators; then, based on the viewing angle ranges of the cameras configured for different types, the viewing angles are intersected; finally, based on the viewing angle intersection, the target viewing angle range applicable to each type of refrigerator is determined. The target viewing angle range thus obtained can be applied to different types of refrigerators, and when configuring cameras for different types of refrigerators, the relevant configuration can be made based on the target viewing angle range. In this way, the disclosed embodiment can achieve modular configuration of cameras installed in refrigerator compartments, enhancing the universality of camera configuration.
[0021] 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
[0022] 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,
[0023] 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;
[0024] Figure 2 is a schematic diagram of a method for determining a camera shooting angle provided by an embodiment of the present disclosure;
[0025] Figure 3 is a schematic diagram of another method for determining a camera shooting angle provided by an embodiment of the present disclosure;
[0026] FIG4( a ) shows a front view of the camera 30 when it is installed on the vertical beam base 102 ;
[0027] FIG4( b ) shows a top view of the camera 30 when it is installed on the vertical beam base 102 ; wherein Y represents a direction perpendicular to the drawer pulling direction;
[0028] Figure 5 is a schematic diagram of a device for determining a camera shooting angle provided by an embodiment of the present disclosure;
[0029] Figure 6 is a schematic diagram of another device for determining a camera shooting angle provided by an embodiment of the present disclosure;
[0030] Figure 7 It is a schematic diagram of a refrigerator provided by an embodiment of the present disclosure.
[0031] Reference numerals:
[0032] 10: Refrigerator box; 20: Drawer; 30: Camera;
[0033] 101: box inner shell; 102: vertical beam base;
[0034] 100: Refrigerator;
[0035] 200(300): a device for determining the camera shooting angle;
[0036] 201: Acquisition module; 202: Analysis module; 203: Determination module;
[0037] 700: processor; 701: memory; 702: communication interface; 703: bus. DETAILED DESCRIPTION
[0038] 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.
[0039] 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.
[0040] Unless otherwise stated, the term "plurality" means two or more.
[0041] 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.
[0042] 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.
[0043] 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.
[0044] 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.
[0045] 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.
[0046] 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.
[0047] Combine Figure 2 As shown, the embodiment of the present disclosure provides a method for determining a camera shooting angle, including:
[0048] S01, the refrigerator obtains the viewing angle range of the camera configured for different types of refrigerators.
[0049] S02: The refrigerator obtains a perspective intersection according to the perspective ranges of cameras configured for different types of refrigerators.
[0050] S03: The refrigerator determines a target viewing angle range applicable to different types of refrigerators based on the intersection of the viewing angles.
[0051] Using the method for determining the camera shooting angle provided by the embodiment of the present disclosure, the embodiment of the present disclosure first obtains the angle ranges of the cameras configured for different types of refrigerators; then, based on the angle ranges of the cameras configured for different types, the angle of view intersection is obtained; finally, based on the angle of view intersection, the target angle range applicable to different types of refrigerators is determined. The target 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 angle range. In this way, the embodiment of the present disclosure can achieve modular configuration of cameras installed in the refrigerator's refrigeration compartment, enhancing the universality of camera configuration.
[0052] Optionally, the camera's viewing angle range includes the camera's horizontal viewing angle range and the camera's vertical viewing angle range. The refrigerator obtains the viewing angle ranges of cameras configured for different types of refrigerators, including:
[0053] The refrigerator obtains the minimum horizontal viewing angle and the maximum horizontal viewing angle of the camera.
[0054] The refrigerator constructs the horizontal viewing angle range of the camera based on the minimum horizontal viewing angle and the maximum horizontal viewing angle. And / or,
[0055] The refrigerator obtains the minimum vertical viewing angle and the maximum vertical viewing angle of the camera.
[0056] The refrigerator constructs the vertical viewing angle range of the camera based on the minimum vertical viewing angle and the maximum vertical viewing angle.
[0057] Thus, when installing a camera in a refrigerator's refrigerator compartment, the camera's minimum and maximum horizontal viewing angles must be determined to define the camera's horizontal viewing range. Similarly, when installing a camera in a refrigerator's refrigerator compartment, the camera's minimum and maximum vertical viewing angles must be determined to define the camera's vertical viewing range. This helps accurately determine the camera's viewing angle range for each refrigerator type, enabling modular camera configuration.
[0058] The horizontal viewing angle range of the camera includes [minimum horizontal viewing angle, maximum horizontal viewing angle], and the vertical viewing angle range of the camera includes [minimum vertical viewing angle, maximum vertical viewing angle].
[0059] FIG4( a ) shows a front view of the camera 30 when it is installed on the vertical beam base 102 .
[0060] based on Figure 1 The installation position structure diagram of the camera 30 shown in FIG4 (a) and FIG4 (b) shows that the refrigerator obtains the minimum horizontal and vertical viewing angles of the camera in the following manner:
[0061] The refrigerator obtains the length L of the photographed area along the direction Y perpendicular to the drawer 20 and the width V of the photographed area along the drawer 20 drawing direction. The photographed area represents the area covered by the field of view of the camera 30 when shooting.
[0062] The refrigerator obtains the distance d1 between the center of the lens of the camera 30 and the front edge of the inner container 101 of the cabinet.
[0063] The refrigerator obtains the vertical distance WD between the camera 30 and the photographed area and the distance d2 that the photographed area exceeds the front edge of the cabinet liner 101.
[0064] As shown in FIG4 (a), the minimum horizontal viewing angle of the camera is represented by ∠p. As an example, since the camera 30 is located at the symmetry axis of the box liner, the photographed area is symmetrical along the symmetry axis of the box liner 101. Therefore, by Ratio it with WD, calculate the arc tangent of the ratio and multiply it by 2 to get the minimum horizontal viewing angle of the camera, that is, the refrigerator calculation Obtain the minimum horizontal viewing angle ∠p. As can be understood, since the drawer is pulled along X and Y is perpendicular to X, ∠p represents the minimum horizontal viewing angle of the camera, regardless of whether the drawer 20 is in the pulled state or the initial unpulled state. The initial unpulled state refers to the state corresponding to the refrigerator door being unopened and the drawer being housed in the refrigerator interior.
[0065] Combine Figure 1 As shown, the captured area includes at least the area where the drawer 20 is located when it is fully extended. Therefore, the minimum vertical viewing angle of the camera 30 represents the angle corresponding to the captured area when the drawer 20 is fully extended. At the minimum vertical viewing angle, the boundary of one side of the captured area coincides with the boundary of the extended end of the drawer 20. That is, the minimum vertical viewing angle is the sum of ∠s and ∠t. The extended end represents the operating end of the drawer during the extended operation.
[0066] As an example, by comparing V-d1-d2 with WD and calculating the inverse tangent of the ratio, ∠s can be obtained. By comparing d1+d2 with WD and calculating the inverse tangent of the ratio, ∠t can be obtained. Finally, the sum of ∠s and ∠t can be used to obtain the minimum vertical viewing angle of the camera 30. That is, by calculating Able to obtain the minimum vertical viewing angle of the camera.
[0067] This allows accurate determination of the minimum horizontal and vertical viewing angles for the camera configured for each refrigerator type. By obtaining the aforementioned parameters L, WD, d1, and d2, and using the aforementioned formulas, the minimum horizontal and vertical viewing angles suitable for each refrigerator type can be calculated. Based on this, the intersection of the viewing angles of the cameras configured for each type is determined, and the target viewing angle range for each refrigerator type is determined based on this intersection. This enables modular configuration of cameras within the refrigerator compartments of different refrigerator types, enhancing the universality of camera configuration.
[0068] Figure 4(b) shows a top view of the camera 30 mounted on the vertical beam base 102. Y represents the direction perpendicular to the drawer's pull-out direction. In Figure 4(b), the ROI (region of interest) represents the area that the camera 30 needs to identify during image capture. The ROI includes at least the area where the drawer 20 is located and a small area surrounding the drawer 20.
[0069] In the embodiment of the present disclosure, for the maximum horizontal viewing angle and the maximum vertical viewing angle, the ratio of the area of the required ROI to the area of the captured area is generally greater than or equal to 50%. R and L R Respectively represent the width of ROI along the drawer pulling direction and the length of ROI perpendicular to the drawer pulling direction. To achieve the ratio of the area of ROI to the area of the captured area to be greater than or equal to 50%, V R and L R At the same time, the following formulas are satisfied:
[0070] and
[0071] In this way, when the camera is shooting, it can ensure that the target in the ROI has a larger effective pixel ratio, avoiding the waste of the field of view of the photographed area.
[0072] To this end, the embodiment of the present disclosure configures a proportional coefficient α. α is determined by the recognition accuracy of the camera and is positively correlated with the recognition accuracy of the camera. positively correlated with; and / or, α and Positive correlation.
[0073] As an example, The smaller it is, the lower the ROI ratio is. The smaller α is, the larger the area covered by the camera 30 during shooting, and the lower the recognition accuracy is. On the contrary, The larger it is, the higher the ROI ratio is. The larger α is, the smaller the area covered by the camera's field of view is, and the higher the recognition accuracy is.
[0074] As another example, The smaller it is, the lower the ROI ratio is. The smaller α is, the larger the area covered by the camera 30 during shooting, and the higher the recognition accuracy is. On the contrary, The larger it is, the higher the ROI ratio is. The larger α is, the smaller the area covered by the camera's field of view is, and the lower the recognition accuracy is.
[0075] Preferably, 0.7≤α<1.
[0076] Based on the above shooting requirement that the ratio of the area of ROI to the area of the captured area is greater than or equal to 50%, the maximum horizontal viewing angle of the camera is
[0077] At the same time, when the field of view coverage area of the photographed area is enlarged according to the proportional coefficient α, the width V of the photographed area along the drawer pulling direction is enlarged in the same proportion to At the same time, V-d1-d2 is proportionally enlarged to And d1+d2 are proportionally enlarged to Therefore, when the scale factor α is configured, the maximum vertical viewing angle is After simplifying the formula, the maximum viewing angle in the vertical direction is obtained as
[0078] As shown in FIG4(b), optionally, the refrigerator obtains the maximum horizontal viewing angle and the maximum vertical viewing angle of the camera in the following manner:
[0079] The refrigerator obtains the length L of the ROI along the drawer 20 pulling direction X and the width V of the photographed area along the drawer pulling direction.
[0080] The refrigerator obtains the distance d1 between the center of the lens of the camera 30 and the front edge of the inner container 101 of the cabinet.
[0081] The refrigerator obtains the vertical distance WD between the camera 30 and the photographed area and the distance d2 that the photographed area exceeds the front edge of the cabinet liner 101.
[0082] Refrigerator calculation Get the maximum horizontal viewing angle.
[0083] Refrigerator calculation Get the maximum vertical viewing angle.
[0084] Where α is the proportional coefficient, 0.7≤α<1.
[0085] In this way, the embodiment of the present disclosure can adaptively configure the maximum horizontal viewing angle and the maximum vertical viewing angle of the camera through the proportional coefficient. At the same time, for different types of refrigerators, by obtaining the above parameters L, WD, d1, d1 and α, and according to the above formula, the maximum horizontal viewing angle and the maximum vertical viewing angle suitable for each type of refrigerator can be obtained. On this basis, according to the viewing angle range of the camera configured for different types, the viewing angle intersection is obtained, and the target viewing angle range suitable for different types of refrigerators is determined based on the viewing angle intersection. This achieves the modular configuration of the camera in the cold storage room of different types of refrigerators and enhances the universality of the camera configuration.
[0086] Optionally, combined Figure 1 and Figure 3As shown, the camera 30 includes a camera module, and the center of the lens of the camera 30 is located at the center of the camera module. Based on the above structural configuration, the refrigerator obtains the distance d1 between the center of the lens of the camera and the front edge of the cabinet 101 in the following manner:
[0087] S11, the refrigerator obtains the width value d3 of the vertical beam base 102.
[0088] S12, the refrigerator obtains a width value d4 of the camera module.
[0089] S13, 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 viewing angle range of the camera configured for different types of refrigerators.
[0091] Combine Figure 5 As shown, an embodiment of the present disclosure provides an apparatus 200 for determining a camera shooting angle, comprising an acquisition module 201, an analysis module 202, and a determination module 203. The acquisition module 201 is configured to obtain the angle of view ranges of cameras configured for different types of refrigerators; the analysis module 202 is configured to obtain an intersection of angles of view based on the angle of view ranges of cameras configured for different types of refrigerators; and the determination module 203 is configured to determine a target angle of view range applicable to different types of refrigerators based on the intersection of angles of view.
[0092] The device 200 for determining the camera shooting angle provided by the embodiment of the present disclosure is conducive to realizing modular configuration of the camera installed in the refrigerator compartment, thereby enhancing the universality of the camera configuration.
[0093] Combine Figure 6 As shown, an embodiment of the present disclosure provides a device 300 for determining a camera shooting angle, including a processor 700 and a memory 701. Optionally, the device 300 may further 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 via 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 shooting 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 shooting 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 7 As 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 shooting angle. The device 200 (300) for determining the camera shooting 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. It can be understood by those skilled in the art that the device 200 (300) for determining the camera shooting 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 shooting angle of a camera.
[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 to implement this embodiment according to actual needs. 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 a camera shooting angle, characterized in that: include: Obtain the viewing angle range of cameras configured for different types of refrigerators; Obtaining the intersection of viewing angles according to the viewing angle ranges of cameras configured for different types of refrigerators; Based on the intersection of viewing angles, the target viewing angle range applicable to different types of refrigerators is determined.
2. The method according to claim 1, characterized in that Get the viewing angles of cameras configured for different types of refrigerators, including: Get the minimum horizontal viewing angle and maximum horizontal viewing angle of the camera; Constructing a horizontal viewing angle range of the camera based on the minimum horizontal viewing angle and the maximum horizontal viewing angle; and / or, Get the minimum vertical viewing angle and maximum vertical viewing angle of the camera; The vertical viewing angle range of the camera is constructed based on the minimum vertical viewing angle and the maximum vertical viewing angle.
3. The method according to claim 2, characterized in that The camera is installed on the top of the refrigerator compartment. The minimum horizontal and vertical viewing angles of the camera are obtained as follows: Obtain the length L of the photographed area perpendicular to the drawer pulling direction and 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 shooting; 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 Get the minimum horizontal viewing angle; calculate Get the minimum vertical viewing angle.
4. The method according to claim 2, characterized in that Use the following method to obtain the maximum horizontal and vertical viewing angles of the camera: Obtain the length L of the photographed area perpendicular to the drawer pulling direction and 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 shooting; 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 Get the maximum horizontal viewing angle; calculate Obtain the maximum vertical viewing angle; Wherein, α is the proportional coefficient and 0<α<1.
5. The method according to claim 4, characterized in that α is determined by the recognition accuracy of the camera and is positively correlated with the recognition accuracy of the camera.
6. The method according to claim 3 or 4, 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.
7. A device for determining a camera shooting angle, characterized in that: include: An acquisition module is configured to obtain the viewing angle range of cameras configured for different types of refrigerators; An analysis module is configured to obtain a perspective intersection based on the perspective ranges of cameras configured for different types of refrigerators; The determination module is configured to determine a target viewing angle range applicable to different types of refrigerators based on the intersection of viewing angles.
8. A device for determining a camera shooting 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 shooting angle according to any one of claims 1 to 6 when running the program instructions.
9. A refrigerator, characterized in that: include: Refrigerator body; The device for determining the camera shooting angle as described in claim 7 or 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 shooting angle according to any one of claims 1 to 6.