Storage equipment camera angle adjusting method and device and electronic equipment

By analyzing the histogram data of the target image taken by the storage device camera, combining the sun's height angle and exposure area position information, adjusting the camera angle, the overexposure problem caused by the sun's reflection of the storage device camera is solved, and the shooting quality and applicability are improved.

CN120128801APending Publication Date: 2025-06-10QINGDAO HAIER SPECIAL ICEBOX +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510151942.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-11
Publication Date
2025-06-10

AI Technical Summary

Technical Problem

The excessive exposure problem caused by sunlight reflection in the storage device camera in outdoor environments affects the shooting quality.

Method used

By analyzing the histogram data of the target image, we can determine whether there is an exposure area, and adjust the angle of the camera to reduce exposure problems based on the sun's height angle and location information.

Benefits of technology

It effectively reduces the impact of exposure problems on the target image, improves the shooting quality of the storage device camera, and improves the applicability under different lighting conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120128801A_ABST
    Figure CN120128801A_ABST
Patent Text Reader

Abstract

The invention discloses a storage equipment camera angle adjusting method and device and electronic equipment, and belongs to the technical field of electric appliances. The method comprises the following steps: acquiring a target image shot by a camera of the storage equipment; acquiring histogram data of a target image, and judging whether an exposure area exists in the target image or not according to the histogram data; and if the exposure area exists in the target image, adjusting the angle of the camera of the storage equipment according to the solar altitude at the shooting moment of the target image and the position information corresponding to the exposure area. According to the invention, the shooting quality of the camera of the storage equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the technical field of electrical appliances, and particularly relates to a method, device and electronic device for adjusting the angle of a camera of a storage device. Background Art

[0002] When the storage device is placed in an outdoor environment and sunlight shines on the surface of the goods inside the storage device at a specific angle, and the reflected light coincides with the angle at which the camera of the storage device captures the goods, it may cause the image captured by the camera of the storage device to be overexposed, interfering with the shooting of the camera of the storage device. Summary of the Invention

[0003] This application aims to solve at least one of the technical problems existing in the prior art. For this reason, this application provides a method, device and electronic device for adjusting the angle of a camera of a storage device, improving the shooting quality of the camera of the storage device.

[0004] In a first aspect, this application provides a method for adjusting the angle of a camera of a storage device, the method comprising:

[0005] Obtain a target image captured by a camera of a storage device;

[0006] Obtain histogram data of the target image, and determine whether there is an overexposed area in the target image according to the histogram data;

[0007] If there is an overexposed area in the target image, adjust the angle of the camera of the storage device according to the solar altitude angle at the moment when the target image is captured and the position information corresponding to the overexposed area.

[0008] In the above technical solution, by analyzing the overexposed area in the target image through the histogram of the target image, and then combining the solar altitude angle and the position information of the overexposed area to determine the angle for adjusting the camera of the storage device, not only reduces the influence of the overexposure problem on the target image, improves the shooting quality of the camera of the storage device, but also enhances the applicability of the camera of the storage device under different lighting conditions.

[0009] According to an embodiment of this application, the obtaining the histogram data of the target image includes:

[0010] Segment the target image to obtain a plurality of segmented image regions;

[0011] Obtain the histogram data of each segmented image region.

[0012] In the above technical solution, by segmenting the target image captured by the storage device camera, it is divided into multiple image regions. For each segmented image region, its histogram data is respectively obtained, so as to identify the regions with abnormal exposure, improve the accuracy of exposure detection, and provide a basis for subsequent adjustment of the angle of the storage device camera to improve the shooting quality of the storage device camera.

[0013] According to an embodiment of the present application, determining whether there is an exposure region in the target image according to the histogram data includes:

[0014] According to the histogram data of each segmented image region, determine whether there is an exposure problem in each segmented image region;

[0015] Output the image regions with exposure problems as the exposure regions.

[0016] In the above technical solution, judging whether there is an exposure problem in each region according to the histogram data of each segmented image region, and outputting the identified regions with exposure problems as exposure regions, improves the efficiency and accuracy of image processing, and provides a basis for subsequent adjustment of the angle of the storage device camera.

[0017] According to an embodiment of the present application, the method further includes:

[0018] Obtain the longitude and latitude information of the storage device;

[0019] Determine the solar altitude angle according to the longitude and latitude information and the shooting time of the target image.

[0020] In the above technical solution, obtaining the longitude and latitude information of the storage device and calculating the solar altitude angle in combination with the shooting time of the target image improves the accuracy of analyzing the lighting conditions, and provides a basis for subsequent adjustment of the angle of the storage device camera to improve the shooting quality of the storage device camera.

[0021] According to an embodiment of the present application, adjusting the angle of the storage device camera according to the solar altitude angle at the shooting time of the target image and the position information corresponding to the exposure region includes:

[0022] Determine the target rotation angle according to the solar altitude angle at the shooting time of the target image and the position information corresponding to the exposure region;

[0023] Adjust the angle of the storage device camera according to the target rotation angle.

[0024] In the above technical solution, the target rotation angle is determined based on the solar altitude angle at the moment of shooting the target image and the position information corresponding to the exposure area, and the angle of the storage device camera is adjusted, which improves the shooting quality of the storage device camera, reduces the exposure problem, and enhances the clarity of the target image.

[0025] According to an embodiment of the present application, determining the target rotation angle according to the solar altitude angle at the moment of shooting the target image and the position information corresponding to the exposure area includes:

[0026] Determine the relative position between the exposure area and the center point of the target image according to the solar altitude angle at the moment of shooting the target image and the position information corresponding to the exposure area;

[0027] Determine the target rotation angle according to the relative position.

[0028] In the above technical solution, the relative position between the exposure area and the image center is determined, the target rotation angle is determined according to the relationship between the solar altitude angle and the relative position, and the storage device camera is adjusted according to the target rotation angle, which optimizes the ability of the storage device to adapt to different lighting conditions and improves the shooting quality of the storage device camera.

[0029] According to an embodiment of the present application, the method further includes:

[0030] Obtain a first image captured by the storage device camera after the angle adjustment, and determine whether there is an exposure area in the first image;

[0031] If there is an exposure area in the first image, continue to adjust the angle of the storage device camera within the adjustable range of the angle of the storage device camera until there is no exposure area in the image captured by the storage device camera after the angle adjustment.

[0032] In the above technical solution, a first image captured by the camera after the angle adjustment is obtained, and it is determined whether there is an exposure area in the image. If there is an exposure area, the angle is continuously adjusted within the adjustable range of the camera, and the shooting and determination steps are repeated until there is no exposure area in the captured image. By adjusting the storage device camera multiple times, the exposure problem in the image is effectively eliminated, and the shooting quality of the storage device camera is improved.

[0033] In a second aspect, the present application provides a device for adjusting the angle of a storage device camera, and the device includes:

[0034] An acquisition unit for acquiring a target image captured by the storage device camera;

[0035] A judgment unit, configured to obtain the histogram data of the target image, and judge whether there is an overexposed area in the target image according to the histogram data;

[0036] An adjustment unit, configured to, if there is an overexposed area in the target image, adjust the angle of the camera of the storage device according to the solar altitude angle at the moment when the target image is captured and the position information corresponding to the overexposed area.

[0037] In the above technical solution, the camera angle adjustment device of the storage device analyzes the overexposed area in the target image through the histogram of the target image, and then combines the solar altitude angle and the position information of the overexposed area to determine the angle of adjusting the camera of the storage device, which not only reduces the influence of the overexposure problem on the target image, improves the shooting quality of the camera of the storage device, but also improves the applicability of the camera of the storage device under different lighting conditions.

[0038] In a third aspect, the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where when the processor executes the computer program, it implements the method for adjusting the angle of the camera of the storage device as described in the first aspect above.

[0039] In a fourth aspect, the present application provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the method for adjusting the angle of the camera of the storage device as described in the first aspect above.

[0040] In a fifth aspect, the present application provides a chip, which includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run a program or an instruction to implement the method for adjusting the angle of the camera of the storage device as described in the first aspect above.

[0041] In a sixth aspect, the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, it implements the method for adjusting the angle of the camera of the storage device as described in the first aspect above

[0042] The additional aspects and advantages of the present application will be partially given in the following description, partially become obvious from the following description, or be understood through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The above and / or additional aspects and advantages of the present application will become obvious and easy to understand from the description of the embodiments in conjunction with the following drawings, where:

[0044] Figure 1 is a schematic flowchart of the method for adjusting the angle of the camera of the storage device provided by the embodiment of the present application;

[0045] Figure 2 It is a schematic diagram of segmenting a target image provided by an embodiment of the present application;

[0046] Figure 3 It is a schematic diagram of overexposure of a target image provided by an embodiment of the present application;

[0047] Figure 4 It is a schematic diagram of determining a target rotation angle provided by an embodiment of the present application;

[0048] Figure 5 It is a schematic structural diagram of a camera angle adjustment device for a storage device provided by an embodiment of the present application;

[0049] Figure 6 It is a schematic structural diagram of an electronic device provided by an embodiment of the present application.

[0050] Explanation of reference numerals:

[0051] 500: Camera angle adjustment device for a storage device;

[0052] 501: Acquisition unit; 502: Judgment unit; 503: Adjustment unit;

[0053] 600: Electronic device;

[0054] 601: Processor; 602: Memory. Detailed implementation manners

[0055] Next, the technical solutions in the embodiments of the present application will be clearly described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.

[0056] The terms "first", "second", etc. in the description and claims of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such data used can be interchanged under appropriate circumstances so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same category, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and / or" in the description and claims means at least one of the connected objects, and the character " / ", generally represents an "or" relationship between the associated objects.

[0057] Next, in conjunction with the accompanying drawings, a storage device camera angle adjustment method, device, and electronic device provided by an embodiment of the present application will be described in detail through specific embodiments and their application scenarios.

[0058] The camera angle adjustment method for a storage device provided by an embodiment of the present application. The execution subject of this camera angle adjustment method for the storage device can be an electronic device or a functional module or functional entity in the electronic device that can implement this camera angle adjustment method for the storage device. The electronic devices mentioned in the embodiments of the present application include, but are not limited to, the controller in the storage device, the processor in the storage device, the background server, the cloud server, etc. Hereinafter, taking the electronic device as the execution subject as an example, the camera angle adjustment method for the storage device provided by the embodiments of the present application will be described.

[0059] The storage device in this embodiment can be understood as a generalized refrigerated storage device, including, but not limited to, refrigerators, freezers, display cabinets, beverage cabinets, wine cabinets, cold storage cabinets, and refrigerated vending machines, etc. The storage device has a variety of structural forms and a wide range of applications.

[0060] Figure 1 It is a schematic flowchart of the camera angle adjustment method for the storage device provided by the embodiments of the present application. As Figure 1 shown, this camera angle adjustment method for the storage device includes: step 110, step 120, and step 130.

[0061] Step 110: Obtain a target image captured by the camera of the storage device.

[0062] Capture a target image through the camera of the storage device, and this target image will be used as the basis for subsequent analysis and adjustment.

[0063] Step 120: Obtain the histogram data of the target image, and based on the histogram data, determine whether there is an overexposed area in the target image.

[0064] The histogram of an image is a statistical chart used to represent the number of pixels at each brightness level in the image. In the histogram of an image, the horizontal axis represents different brightness levels, and the vertical axis represents the number of pixels with that brightness level.

[0065] The overexposed area usually refers to the area where the brightness of a part of the image is abnormally high or low due to light problems (too strong or too weak), resulting in the loss of details. In the histogram, if the peak is concentrated at the extreme of the brightness level, it may mean that most pixels are concentrated at these extreme brightness levels, resulting in fewer pixels at the intermediate brightness levels, thus affecting the contrast and details of the image.

[0066] By analyzing the histogram data, it can be determined whether there is an overexposed area in the image. If there is an obvious peak in the higher or lower part of the brightness level in the histogram, and the number of pixels corresponding to this peak is relatively large, it is considered that there is an overexposed area in the image.

[0067] Step 130: If there is an overexposed area in the target image, adjust the angle of the storage device camera according to the solar altitude angle at the moment when the target image is captured and the position information corresponding to the overexposed area.

[0068] The solar altitude angle refers to the angle between the sun's rays and the ground, which determines the incident direction and intensity of sunlight. The solar altitude angle changes with time, location, and season.

[0069] By analyzing the target image, the position information of the overexposed area in the image can be determined, and then it can be converted into the actual position in the field of view of the storage device camera. According to the solar altitude angle and the position information corresponding to the overexposed area, it can be determined how to adjust the angle of the storage device camera to reduce or avoid the overexposed area.

[0070] In the above technical solution, by analyzing the histogram of the target image to find the overexposed area in the target image, and then combining the solar altitude angle and the position information of the overexposed area to determine the angle adjustment of the storage device camera, not only reduces the impact of overexposure problems on the target image, improves the shooting quality of the storage device camera, but also enhances the applicability of the storage device camera under different lighting conditions.

[0071] In an embodiment of the present application, the obtaining the histogram data of the target image includes:

[0072] Segment the target image to obtain a plurality of segmented image regions;

[0073] Obtain the histogram data of each segmented image region.

[0074] It can be understood that image segmentation is the process of dividing an image into several non-overlapping regions, which can be divided based on the similarity of features such as color, texture, and shape. Segmenting the target image can divide the image into smaller, more easily processed and analyzed regions, thereby improving the accuracy of locating the specific position where the overexposure problem occurs.

[0075] For each segmented image region, obtain its histogram data. A histogram is a statistical chart used to represent the number of pixels at each brightness level in an image. By analyzing the histogram of each region, it can be determined whether there is an overexposure problem in that region, and then a more effective angle adjustment strategy for the storage device camera can be formulated according to the specific position or size of these regions.

[0076] In the above technical solution, by segmenting the target image captured by the storage device camera, it is divided into multiple image regions. For each segmented image region, its histogram data is respectively obtained, so as to identify the region with abnormal exposure, improve the accuracy of exposure detection, and provide a basis for subsequent adjustment of the angle of the storage device camera and improvement of the shooting quality of the storage device camera.

[0077] In an embodiment of the present application, the determining whether there is an exposure region in the target image according to the histogram data includes:

[0078] According to the histogram data of each segmented image region, determine whether there is an exposure problem in each segmented image region;

[0079] Output the image region with an exposure problem as the exposure region.

[0080] Judging whether there is an exposure problem in the region according to the histogram data of the segmented image region, and outputting the image region judged to have an exposure problem as the exposure region. The information of the exposure region can be used for subsequent camera angle adjustment or other image processing operations.

[0081] Figure 2 It is a schematic diagram of segmenting the target image provided by an embodiment of the present application. In some embodiments, as Figure 2 shown, the target image is segmented into 9 image regions, and the histogram data of the segmented image regions is obtained. According to the histogram, it can be seen that there are exposure problems in image region 1 and image region 2.

[0082] In the above technical solution, judging whether there is an exposure problem in each region according to the histogram data of each segmented image region, and outputting the identified region with an exposure problem as the exposure region improves the efficiency and accuracy of image processing, and provides a basis for subsequent adjustment of the angle of the storage device camera.

[0083] In an embodiment of the present application, the method further includes:

[0084] Obtain the longitude and latitude information of the storage device;

[0085] Determine the solar altitude angle according to the longitude and latitude information and the shooting time of the target image.

[0086] Optionally, obtain the longitude and latitude information of the storage device through the built-in positioning module of the storage device or other positioning technologies, and obtain the shooting time of the target image through the timestamp when the storage device camera takes a picture or other means.

[0087] In some embodiments, according to the longitude and latitude information and the shooting time of the target image, the calculation formula for determining the solar altitude angle is as follows:

[0088] sin h = sinφsinδ + cosφcosδcos t

[0089] Where φ represents the geographical latitude of the location of the storage device; δ represents the solar declination, which is equal to the latitude of the direct solar point; t represents the local time (hour angle), in hours; and h is the required solar altitude angle.

[0090] In the above technical solution, the longitude and latitude information of the storage device is obtained, and the solar altitude angle is calculated in combination with the shooting time of the target image, improving the accuracy of analyzing the lighting conditions and providing a basis for subsequent adjustment of the camera angle of the storage device and improvement of the shooting quality of the camera of the storage device.

[0091] In an embodiment of the present application, adjusting the angle of the camera of the storage device according to the solar altitude angle at the shooting time of the target image and the position information corresponding to the exposure area includes:

[0092] Determining a target rotation angle according to the solar altitude angle at the shooting time of the target image and the position information corresponding to the exposure area;

[0093] Adjusting the angle of the camera of the storage device according to the target rotation angle.

[0094] When the camera of the storage device takes a picture, the solar altitude angle will affect the distribution of light in the image, and thus affect the exposure of the target image. Figure 3 It is a schematic diagram of overexposure of the target image provided by the embodiment of the present application. As Figure 3 shown, at this solar altitude angle, the reflection angle of the sunlight reflected by the highest commodity horizontal plane in the storage device is consistent with the shooting angle of the camera of the storage device, resulting in overexposure of the image.

[0095] According to the solar altitude angle at the shooting time of the target image and the position information corresponding to the exposure area in the image, the angle that the camera of the storage device needs to rotate (i.e., the target rotation angle) can be determined through calculation and analysis. This process takes into account the influence of sunlight on the camera of the storage device, and realizes reducing or eliminating the exposure problem in the target image by adjusting the angle of the camera of the storage device.

[0096] In the above technical solution, the target rotation angle is determined by the solar altitude angle at the shooting time of the target image and the position information corresponding to the exposure area, and the angle of the camera of the storage device is adjusted, improving the shooting quality of the camera of the storage device, reducing the exposure problem, and enhancing the clarity of the target image.

[0097] In an embodiment of the present application, determining the target rotation angle according to the solar altitude angle at the time of shooting the target image and the position information corresponding to the exposure area includes:

[0098] Determine the relative position between the exposure area and the center point of the target image according to the solar altitude angle at the time of shooting the target image and the position information corresponding to the exposure area;

[0099] Determine the target rotation angle according to the relative position.

[0100] The solar altitude angle is the angle between the light ray directly hitting the ground by the sun and the ground (water) plane. The solar altitude angle at the time of shooting the target image will affect the specific position of the exposure area in the target image.

[0101] The exposure area in the target image can be determined by analyzing the histogram data of the image. The exposure area will appear as an area where pixels with too high (overexposed) or too low (underexposed) brightness are aggregated on the histogram. The center point of the target image is usually the position of the geometric center of the image, that is, at half of the width and height of the image. The relative position between the exposure area and the center point of the target image can be completed by comparing the coordinates of the center of the exposure area (or a representative point) with the center point of the image, and obtaining relative position information such as horizontal offset and vertical offset.

[0102] In some embodiments, the target rotation angle is determined by the following method:

[0103] Figure 4 It is a schematic diagram for determining the target rotation angle provided by an embodiment of the present application. As Figure 4 shown, the dotted line box in the figure is the movable shooting field (range) of the storage device camera, the solid line box is the range of the target image shot by the storage device camera, and N° is the maximum movable angle of the storage device camera.

[0104] Segment the target image to obtain 9 segmented image areas, namely: upper left area, upper middle area, upper right area, left middle area, middle area, right middle area, lower left area, lower middle area and lower right area. Obtain the histogram of each image area respectively, and judge whether there is an exposure problem in the image area according to the histogram.

[0105] Specifically, control the storage device camera to rotate in the opposite direction of the relative position between the exposure area and the center point of the target image, and the rotation range is within the maximum movable angle N° of the storage device camera. Increase step by step with an angle change of 1°, until there is no longer an exposure problem in the target photo shot by the storage device camera, and determine the angle of rotation of the storage device camera as the target rotation angle.

[0106] Taking the upper left area having an exposure problem as an example, the current upper left area is the exposure area. AsFigure 4 As shown by the arrow in the figure, the storage device camera rotates in the opposite direction to the relative position of the exposure area and the center point of the target image. When the upper left area is the exposure area, the rotation direction of the storage device camera is lower right, and the rotation range is within the maximum movable angle N° of the storage device camera, increasing step by step with an angle change of 1° until there is no longer an exposure problem in the target photo taken by the storage device camera. At this time, the rotation angle of the storage device camera is the target rotation angle.

[0107] In the above technical solution, the relative position between the exposure area and the image center is determined, and based on the relationship between the solar altitude angle and the relative position, the target rotation angle is determined, and the storage device camera is adjusted according to the target rotation angle, optimizing the ability of the storage device to adapt to different lighting conditions and improving the shooting quality of the storage device camera.

[0108] In an embodiment of the present application, the method further includes:

[0109] Obtain a first image taken by the storage device camera after angle adjustment, and determine whether there is an exposure area in the first image;

[0110] If there is an exposure area in the first image, continue to adjust the angle of the storage device camera within the adjustable angle range of the storage device camera until there is no exposure area in the image taken by the storage device camera after angle adjustment.

[0111] After completing the adjustment of the storage device camera, take a new target image as the first image and determine whether there is an exposure area in the first image. If there is an exposure area in the first image, it means that the currently adjusted storage device camera has not completely eliminated the exposure problem.

[0112] Within the adjustable angle range of the storage device camera, continue to adjust the angle of the storage device camera. The selection of the new angle can be based on various factors such as the position, size, shape of the exposure area, and the solar altitude angle. Adjust the storage device camera based on this new angle and take another image for analysis again. Repeat the above steps until there is no longer an exposure area in the taken image.

[0113] Optionally, during the adjustment process, gradually narrow the adjustment angle interval or step size, so as to more finely adjust the rotation angle of the storage device camera.

[0114] In the above technical solution, the first image captured by the camera after angle adjustment is obtained, and it is determined whether there is an overexposed area in the image. If there is an overexposed area, the angle of the camera is continuously adjusted within the adjustable range of the camera angle, and the shooting and judgment steps are repeated until there is no overexposed area in the captured image. By adjusting the storage device camera multiple times, the overexposure problem in the image is effectively eliminated, and the shooting quality of the storage device camera is improved.

[0115] In the method for adjusting the angle of the storage device camera provided by the embodiment of the present application, the execution subject may be a device for adjusting the angle of the storage device camera. In the embodiment of the present application, taking the device for adjusting the angle of the storage device camera to execute the method for adjusting the angle of the storage device camera as an example, the device for adjusting the angle of the storage device camera provided by the embodiment of the present application is described.

[0116] Figure 5 It is a schematic structural diagram of the device for adjusting the angle of the storage device camera provided by the embodiment of the present application. As Figure 5 shown, the device 500 for adjusting the angle of the storage device camera includes:

[0117] An acquisition unit 501, configured to acquire a target image captured by the storage device camera;

[0118] A judgment unit 502, configured to acquire histogram data of the target image, and determine whether there is an overexposed area in the target image according to the histogram data;

[0119] An adjustment unit 503, configured to, if there is an overexposed area in the target image, adjust the angle of the storage device camera according to the solar altitude angle at the time when the target image is captured and the position information corresponding to the overexposed area.

[0120] Optionally, the judgment unit 502 is configured to:

[0121] Segment the target image to obtain a plurality of segmented image regions;

[0122] Acquire histogram data of each segmented image region.

[0123] Optionally, the judgment unit 502 is configured to:

[0124] Determine whether there is an overexposure problem in each segmented image region according to the histogram data of each segmented image region;

[0125] Output the image region with an overexposure problem as the overexposed area.

[0126] Optionally, the device 500 for adjusting the angle of the storage device camera further includes:

[0127] A determination unit, configured to:

[0128] Obtain the longitude and latitude information of the storage device;

[0129] Determine the solar altitude angle according to the longitude and latitude information and the shooting time of the target image.

[0130] Optionally, the adjustment unit 503 is configured to:

[0131] Determine a target rotation angle according to the solar altitude angle at the shooting time of the target image and the position information corresponding to the exposure area;

[0132] Adjust the angle of the camera of the storage device according to the target rotation angle.

[0133] Optionally, the determining the target rotation angle according to the solar altitude angle at the shooting time of the target image and the position information corresponding to the exposure area includes:

[0134] Determine the relative position between the exposure area and the center point of the target image according to the solar altitude angle at the shooting time of the target image and the position information corresponding to the exposure area;

[0135] Determine the target rotation angle according to the relative position.

[0136] Optionally, the adjustment unit 503 is further configured to:

[0137] Obtain a first image captured by the camera of the storage device after the angle adjustment, and determine whether there is an exposure area in the first image;

[0138] If there is an exposure area in the first image, continue to adjust the angle of the camera of the storage device within the adjustable range of the angle of the camera of the storage device until there is no exposure area in the image captured by the camera of the storage device after the angle adjustment.

[0139] In the above technical solution, the angle adjustment device of the storage device camera analyzes the exposure area in the target image through the histogram of the target image, and then combines the solar altitude angle and the exposure area position information to determine the angle for adjusting the camera of the storage device, which not only reduces the influence of the exposure problem on the target image, improves the shooting quality of the storage device camera, but also enhances the applicability of the storage device camera under different lighting conditions.

[0140] The energy-saving device of the storage device in the embodiments of the present application may be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device may be a controller of the storage device, a processor on the main control board, a screen terminal device on the storage device, a cloud server, etc., and the embodiments of the present application do not make specific limitations.

[0141] The camera angle adjustment device of the storage device in the embodiments of the present application can be a device with an operating system. The operating system can be the Microsoft (Windows) operating system, the Android operating system, the IOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.

[0142] The camera angle adjustment device of the storage device provided by the embodiments of the present application can implement each process implemented by the above-mentioned camera angle adjustment method embodiments of the storage device. To avoid repetition, it will not be elaborated here.

[0143] In some embodiments, as Figure 6 shown, the embodiments of the present application further provide an electronic device 600, including a processor 601, a memory 602, and a computer program stored on the memory 602 and executable on the processor 601. When the program is executed by the processor 601, it implements each process of the above-mentioned camera angle adjustment method embodiments of the storage device and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.

[0144] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

[0145] The embodiments of the present application further provide a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements each process of the above-mentioned camera angle adjustment method embodiments of the storage device and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.

[0146] Wherein, the processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory ROM, random access memory RAM, magnetic disks, or optical discs, etc.

[0147] The embodiments of the present application further provide a computer program product, including a computer program, which implements the above-mentioned camera angle adjustment method when executed by a processor.

[0148] Wherein, the processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory ROM, random access memory RAM, magnetic disks, or optical discs, etc.

[0149] Another embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is configured to run programs or instructions to implement each process of the above embodiment of the method for adjusting the camera angle of the storage device, and can achieve the same technical effects. To avoid repetition, details are not described herein again.

[0150] It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, system chip, chip system, or system-on-chip.

[0151] It should be noted that in this document, the terms "include", "comprise", or any other variation thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device that includes a series of elements includes not only those elements but also other elements not expressly listed, or elements that are inherent to such process, method, article, or device. Without further limitation, an element defined by the phrase "including a..." does not exclude the existence of additional identical elements in the process, method, article, or device that includes the element. In addition, it should be pointed out that the methods and devices in the embodiments of the present application are not limited to performing functions in the order shown or discussed. They may also include performing functions in a substantially simultaneous manner or in a reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0152] Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases, the former is a better implementation. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions for causing a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present application.

[0153] The embodiments of the present application have been described above with reference to the accompanying drawings. However, the present application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Those of ordinary skill in the art, under the inspiration of the present application and without departing from the spirit and scope protected by the claims of the present application, can still make many forms, all of which fall within the protection scope of the present application.

[0154] In the description of this specification, the descriptions referring to terms such as "one embodiment", "some embodiments", "schematic embodiments", "examples", "specific examples", or "some examples" etc. mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in a suitable manner in any one or more embodiments or examples.

[0155] Although the embodiments of the present application have been shown and described, those of ordinary skill in the art can understand that various changes, modifications, substitutions, and variations can be made to these embodiments without departing from the principles and purposes of the present application, and the scope of the present application is defined by the claims and their equivalents.

Claims

1. A method for adjusting the camera angle of a storage device, characterized in that: include: Obtain the target image captured by the camera of the storage device; Acquire histogram data of the target image, and determine whether there is an exposed area in the target image according to the histogram data; If there is an exposure area in the target image, the angle of the camera of the storage device is adjusted according to the solar altitude angle at the time of shooting the target image and the position information corresponding to the exposure area.

2. The method for adjusting the camera angle of a storage device according to claim 1, characterized in that: The acquiring the histogram data of the target image comprises: Segmenting the target image to obtain a plurality of segmented image regions; Get the histogram data for each segmented image region.

3. The method for adjusting the camera angle of a storage device according to claim 2, characterized in that: The step of determining whether there is an exposed area in the target image according to the histogram data includes: Determine whether each segmented image region has an exposure problem according to the histogram data of each segmented image region; The image region having the exposure problem is output as the exposure region.

4. The method for adjusting the camera angle of a storage device according to claim 1, characterized in that: The method further comprises: Obtaining the longitude and latitude information of the storage device; The solar altitude angle is determined according to the longitude and latitude information and the shooting time of the target image.

5. The method for adjusting the camera angle of a storage device according to claim 1, characterized in that: The step of adjusting the angle of the camera of the storage device according to the solar altitude angle at the time of capturing the target image and the position information corresponding to the exposure area includes: Determining a target rotation angle according to the solar altitude angle at the time of capturing the target image and the position information corresponding to the exposure area; According to the rotation angle of the target, the angle of the camera of the storage device is adjusted.

6. The method for adjusting the camera angle of a storage device according to claim 5, characterized in that: The step of determining the target rotation angle according to the solar altitude angle at the time of capturing the target image and the position information corresponding to the exposure area comprises: Determine the relative position of the exposure area and the center point of the target image according to the solar altitude angle at the time of capturing the target image and the position information corresponding to the exposure area; According to the relative position, a target rotation angle is determined.

7. The method for adjusting the camera angle of a storage device according to claim 5, characterized in that: The method further comprises: Acquire a first image captured by the camera of the storage device after the angle is adjusted, and determine whether there is an exposed area in the first image; If there is an exposed area in the first image, the angle of the storage device camera continues to be adjusted within the adjustable angle range of the storage device camera until there is no exposed area in the image taken by the storage device camera after the angle adjustment.

8. A camera angle adjustment device for a storage device, characterized in that: An acquisition unit, used to acquire a target image captured by a camera of the storage device; A judging unit, configured to obtain histogram data of the target image, and judge whether there is an exposed area in the target image according to the histogram data; An adjustment unit is used to adjust the angle of the camera of the storage device according to the solar altitude angle at the time of shooting the target image and the position information corresponding to the exposure area if there is an exposure area in the target image.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the storage device camera angle adjustment method as described in any one of claims 1-7 is implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for adjusting the camera angle of a storage device as described in any one of claims 1 to 7 is implemented.