Method, server and shooting equipment for improving camera imaging reflection
By detecting the brightness distortion area and abnormal light source location in the camera, dynamically adjust the camera lens angle, solve the problem of image data distortion caused by environmental light abnormalities, and realize the clear and balanced imaging of the reflective conditions.
Patent Information
- Application Number
- CN202011077334.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-10
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2040-10-10
AI Technical Summary
The prior art is difficult to maintain the clarity and brightness of camera imaging when ambient light is abnormal, especially in the case of reflection, resulting in image data distortion and misidentification.
By obtaining the picture and angle of the camera, detect the distortion of the brightness, determine the position of the abnormal light source, and generate the angle of the steering gear to adjust the command, and dynamically adjust the camera lens angle to avoid the abnormal light source.
The angle of the camera lens is adaptive when the ambient light is abnormal, ensuring the delicate, clear and brightness of the image, and avoiding the image data distortion and misunderstanding.
Smart Images

Figure CN114339024B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a method, a server and a shooting device for improving camera imaging reflection. Background Art
[0002] This section is intended to provide a background or context to the embodiments of the invention recited in the claims. No admission is made that the description herein is prior art by inclusion in this section.
[0003] In the past decade, cloud computing has been the most widely used computing service. With the rapid development of the Internet of Things, more and wider devices are connected to the network to work together, such as autonomous driving and smart supermarkets. Some IoT applications may require fast responses, and some may generate massive amounts of data, which will bring huge load pressure to the network. The network limitations of cloud computing have promoted the emergence of edge computing. Benefiting from its inherent advantages of being close to the data generation end, it has more real-time and faster data processing capabilities and lower network bandwidth requirements, and has therefore been rapidly developed and put into practical use.
[0004] Smart new retail, which is closely related to people's lives, uses the Internet, Internet of Things, big data, artificial intelligence and other technologies to optimize the relationship between goods, users and payments, and provide customers with a faster, better and more convenient shopping experience. Its actual application scenarios enable edge computing to be used. For example, smart shelf edge detection, smart out-of-stock detection, smart display detection, customer flow statistics, etc., all require edge computing devices to provide fast real-time data response. As an important link in the data collection and calculation of smart new retail terminals, the performance of AI Camera (artificial intelligence camera) is crucial, especially the clarity of image data, which often affects the accuracy of algorithm reasoning. Digital shelves are an important part of smart new retail business. Being able to capture delicate, clear and balanced brightness images of shelf products is a necessary prerequisite for algorithm reasoning, which puts forward basic requirements for the ambient light of the camera: high color temperature, cool color, normal light intensity, uniform lighting, etc. However, in reality, some factors (such as reflection of the target being photographed) often make it impossible to collect correct target image data information, and even lead to misidentification.
[0005] In order to solve the problem of image data distortion caused by reflective shooting, the traditional technical means is to create an environment that is conducive to the business scene as much as possible when deploying the camera (for example, adjusting the camera's posture and the light source in the business scene) or perform post-image processing (such as multi-level sampling, backlight compensation, etc.) to suppress strong light, etc. After the angle is fixed after manual deployment, it cannot meet the needs of light source changes, so the angle adjustment must be adjusted on-site manually, which consumes a lot of manpower and time costs and cannot meet real-time requirements; although image post-processing technology can suppress strong light, different algorithms can only solve a certain defect problem in a targeted manner and are not universal, and reflective shooting has lost the target feature data from the source of the image. Summary of the invention
[0006] The embodiment of the present invention provides a method for improving camera imaging reflection, so as to obtain a delicate, clear, and brightly balanced image when the ambient light is abnormal. The method comprises:
[0007] Get the current picture taken by the camera and the current shooting angle;
[0008] When a brightness distortion area is detected in the current captured image, position information of the brightness distortion area is determined; and position information of the abnormal light source is determined according to the current shooting angle and the position information of the brightness distortion area.
[0009] Generate a first steering gear angle adjustment command according to the position information of the abnormal light source;
[0010] A first servo angle adjustment command is sent to a control unit of the camera; the control unit is used to control the servo connected to the camera to rotate a first angle corresponding to the first servo angle adjustment command according to the first servo angle adjustment command; the rotation of the servo drives a connecting rod connected to one end of the servo shaft to rotate the first angle, and the rotation of the connecting rod drives a camera lens connected to the other end of the connecting rod to rotate the first angle.
[0011] The embodiment of the present invention further provides a method for improving camera imaging reflection, so as to obtain a delicate, clear, and brightly balanced image when the ambient light is abnormal. The method comprises:
[0012] The control unit of the camera receives the first servo angle adjustment command, and sends the first servo angle adjustment command to the servo connected to the camera;
[0013] The servo rotates a first angle corresponding to the first servo angle adjustment command according to the first servo angle adjustment command; the rotation of the servo drives a connecting rod connected to one end of the servo shaft to rotate the first angle, and the rotation of the connecting rod drives a camera lens connected to the other end of the connecting rod to rotate the first angle.
[0014] The embodiment of the present invention further provides a server for improving camera imaging reflection, so as to obtain a delicate, clear, and brightly balanced image when the ambient light is abnormal. The server includes:
[0015] An acquisition unit is used to acquire the current picture taken by the camera and the current shooting angle;
[0016] A detection unit, configured to determine the position information of the brightness distortion area when detecting that the current captured image has a brightness distortion area; and determine the position information of the abnormal light source according to the current shooting angle and the position information of the brightness distortion area;
[0017] A first processing unit, used for generating a first steering gear angle adjustment command according to the position information of the abnormal light source;
[0018] A sending unit is used to send a first servo angle adjustment command to a control unit of the camera; the control unit is used to control the servo connected to the camera to rotate a first angle corresponding to the first servo angle adjustment command according to the first servo angle adjustment command; the rotation of the servo drives a connecting rod connected to one end of the servo shaft to rotate the first angle, and the rotation of the connecting rod drives a camera lens connected to the other end of the connecting rod to rotate the first angle.
[0019] The embodiment of the present invention further provides a shooting device for improving the reflection of camera imaging, so as to obtain a delicate, clear and brightly balanced image when the ambient light is abnormal. The shooting device includes:
[0020] The camera comprises a control unit for receiving a first servo angle adjustment command and sending the first servo angle adjustment command to a servo connected to the camera;
[0021] The servo is used to rotate a first angle corresponding to the first servo angle adjustment command according to the first servo angle adjustment command; the rotation of the servo drives a connecting rod connected to one end of the servo shaft to rotate the first angle, and the rotation of the connecting rod drives a camera lens connected to the other end of the connecting rod to rotate the first angle.
[0022] An embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method for improving camera imaging reflection when executing the computer program.
[0023] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for executing the above-mentioned method for improving camera imaging reflection.
[0024] In an embodiment of the present invention, a solution for improving camera imaging reflection includes: a server and a shooting device, when working: the shooting device shoots an image of a target area at a preset time interval, and sends the shot image to the server for the server to analyze and obtain monitoring results of the target area (for example, the status of goods on shelves in a supermarket, such as whether they are out of stock, etc.); during the monitoring and analysis process, the server will detect whether the image meets the analysis requirements, and then perform the following steps to improve the camera imaging reflection: obtain the current picture taken by the camera and the current shooting angle; when detecting that there is an area with brightness distortion in the current picture, determine the position information of the brightness distortion area; determine the position information of the abnormal light source according to the current shooting angle and the position information of the brightness distortion area; according to the position information of the abnormal light source, Generate a first servo angle adjustment command; send the first servo angle adjustment command to the control unit of the camera; then, the shooting device takes action according to the first servo angle adjustment command: the control unit of the camera receives the first servo angle adjustment command, and sends the first servo angle adjustment command to the servo connected to the camera; the servo rotates a first angle corresponding to the first servo angle adjustment command according to the first servo angle adjustment command; the rotation of the servo drives a connecting rod connected to one end of the servo shaft to rotate the first angle, and the rotation of the connecting rod drives a camera lens connected to the other end of the connecting rod to rotate the first angle, thereby achieving adaptive adjustment of the camera lens angle when the ambient light is abnormal, and still obtaining a delicate, clear, and brightness-balanced image, thereby ensuring the collection of correct target image data information. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0026] Figure 1 It is a schematic diagram of the structure of a system for improving camera imaging reflection according to an embodiment of the present invention;
[0027] Figure 2 It is a schematic flow chart of a method for improving camera imaging reflection applied to a server in an embodiment of the present invention;
[0028] Figure 3 It is a schematic flow chart of a method for improving camera imaging reflection applied to a shooting device in an embodiment of the present invention;
[0029] Figure 4 A schematic diagram of the structure of a server for improving camera imaging reflection in an embodiment of the present invention;
[0030] Figure 5 It is a schematic diagram of the three-dimensional structure of a photographing device for improving camera imaging reflection in an embodiment of the present invention;
[0031] Figure 6 It is a schematic diagram of the top view of the structure of a shooting device for improving camera imaging reflection in an embodiment of the present invention;
[0032] Figure numerals: 1. Servo; 11. Driving shaft; 2. Connecting rod; 21. Connecting ring; 22. Ring structure; 3. Lens base; 4. Lens; 5. Lens base plate; 01. Server; 02. Shooting device; 011. Acquisition unit; 012. Detection unit; 013. First processing unit; 014. Sending unit. DETAILED DESCRIPTION
[0033] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.
[0034] The inventors have found that there are currently two solutions to solve the problem of image data distortion caused by reflective photography. The following describes these two solutions and their disadvantages:
[0035] Solution 1: Manual deployment adjustment: When deploying the camera, conduct a field survey of the on-site environment to confirm whether the environmental conditions required for normal operation are met, and create as good ambient light conditions as possible. If the ambient light cannot be improved, adjust the camera's working position to avoid adverse factors such as strong light and backlight.
[0036] The disadvantage of this solution is that the camera's posture and ambient light are adjusted during deployment, which can indeed ensure the normal operation of the camera to a large extent, but the key to the problem lies precisely in the immutability of its posture. Once the ambient light changes or the camera's posture changes due to loose ball joints, external force collisions, etc., the camera will lose its framing area and cannot work properly. At this time, only personnel can be sent to the site to redeploy and adjust. Such shortcomings are naturally obvious, consuming huge manpower and time costs, and cannot meet real-time requirements. It is very likely that the supermarket will stop the normal business of some shelves for a long time. This is an emergency that is absolutely not allowed for large supermarkets, and it directly causes great economic losses.
[0037] Solution 2: Image post-processing technology: Image processing is relatively mature at present. Methods such as multi-level sampling, background light compensation, extended dynamic range double exposure, and white peak inversion are all commonly used methods.
[0038] The disadvantage of this solution 2 is that the image post-processing technology can indeed effectively deal with the distortion caused by highlights, backlighting, etc. in the image. For example, the white peak inversion (HLI) method, in simple terms, is to invert or transition the pixels in the highlight area of the image through a certain algorithm to make the overall look more natural. For the out-of-stock display business in a supermarket environment, these algorithms naturally cannot reflect their actual use value. In scenes shot with reflections or backlighting, the real information of the original image has been lost, and our focus is precisely on how to avoid adverse environmental conditions and obtain all scene information when such local brightness is too concentrated or even backlighting makes normal photography impossible.
[0039] Through the technical problems discovered by the above inventors, it is not difficult to find that there is actually a big pain point for cameras in smart retail business: the existing business scenarios require that cameras can not only complete the smart retail business normally, but also have the ability to ensure the continuation of business to the greatest extent when the ambient light or even the camera's posture is abnormal. However, under the existing industry conditions, when cameras encounter such emergencies, they can often only be handled by manual rescue, which not only causes great losses to customers, but also has a great impact on customers' trust.
[0040] In view of the problem of image data distortion caused by reflective shooting and the pain points of existing processing solutions, the embodiment of the present invention proposes a solution to effectively improve camera imaging reflection, thereby achieving real-time adaptive angle adjustment and effectively avoiding the adverse effects of reflection. The solution to improve camera imaging reflection is described in detail below.
[0041] like Figure 1As shown, the system for improving camera imaging reflection proposed in the embodiment of the present invention includes: a server 01 and a shooting device 02. When working: the shooting device shoots an image of a target area at a preset time interval, and sends the shot image to the server for the server to analyze and obtain the monitoring result of the target area (for example, the status of goods on the shelves in a supermarket, such as whether they are out of stock, etc.); during the monitoring and analysis process, the server will detect whether the image meets the analysis requirements, and then perform the following steps to improve the camera imaging reflection: obtain the current picture taken by the camera and the current shooting angle; when detecting that there is a brightness distortion area in the current picture, determine the position information of the brightness distortion area; determine the position information of the abnormal light source according to the current shooting angle and the position information of the brightness distortion area; determine the position information of the abnormal light source according to the position information of the abnormal light source The first servo angle adjustment command is generated by the positioning information; the first servo angle adjustment command is sent to the control unit of the camera; then, the shooting device acts according to the first servo angle adjustment command: the control unit of the camera receives the first servo angle adjustment command, and sends the first servo angle adjustment command to the servo connected to the camera; the servo rotates the first angle corresponding to the first servo angle adjustment command according to the first servo angle adjustment command; the rotation of the servo drives the connecting rod connected to one end of the servo shaft to rotate the first angle, and the rotation of the connecting rod drives the camera lens connected to the other end of the connecting rod to rotate the first angle, thereby realizing that when the ambient light is abnormal, the camera lens angle can be adaptively adjusted, and a delicate, clear, and brightly balanced image can still be obtained, ensuring the collection of correct target image data information. The following is a detailed introduction to each part of improving the reflection of camera imaging.
[0042] Figure 2 FIG. 1 is a flow chart of a method for improving camera imaging reflection applied to a server in an embodiment of the present invention. Figure 2 As shown, the method comprises the following steps:
[0043] Step 101: Obtain the current picture taken by the camera and the current shooting angle;
[0044] Step 102: when it is detected that there is a brightness distortion area in the current captured image, determining the position information of the brightness distortion area; determining the position information of the abnormal light source according to the current shooting angle and the position information of the brightness distortion area;
[0045] Step 103: generating a first steering engine angle adjustment command according to the position information of the abnormal light source;
[0046] Step 104: Send a first servo angle adjustment command to a control unit of the camera; the control unit is used to control the servo connected to the camera to rotate a first angle corresponding to the first servo angle adjustment command according to the first servo angle adjustment command; the rotation of the servo drives a connecting rod connected to one end of the servo shaft to rotate the first angle, and the rotation of the connecting rod drives a camera lens connected to the other end of the connecting rod to rotate the first angle.
[0047] The method for improving camera imaging reflection applied to a server provided by an embodiment of the present invention realizes adaptive adjustment of the camera lens angle when the ambient light is abnormal, and still obtains a delicate, clear, and brightness-balanced image, thereby ensuring the collection of correct target image data information.
[0048] In a specific implementation, the position information of the brightness distortion area may be the position information of the center of the brightness distortion area, further improving the accuracy of determining the position information of the abnormal light source, thereby further improving the accuracy of acquiring the correct target image data information. Based on this, determining the position information of the abnormal light source according to the current shooting angle and the position information of the brightness distortion area may include: determining the position information of the abnormal light source according to the current shooting angle and the position information of the center of the brightness distortion area, and at the same time, the position information of the abnormal light source may be the position information of the abnormal light source relative to the camera lens.
[0049] During specific implementation, the first steering gear angle adjustment command may include the angle at which the steering gear needs to rotate, and the direction of rotation.
[0050] The inventor also discovered a technical problem: sometimes, the position of the camera changes greatly. For example, due to long-term use or environmental influences, the angle deviation of the camera is particularly large, which makes it impossible to obtain a picture or an incomplete picture. Therefore, since the inventor discovered the above technical problem, he proposed the following solution to adjust the camera.
[0051] In one embodiment, the method for improving camera imaging reflection may further include:
[0052] Compare the current shooting angle to the angle when the camera was initially deployed;
[0053] When it is found that the deviation between the current shooting angle and the angle when the camera is initially deployed exceeds a preset angle, a second servo angle adjustment command is generated;
[0054] Send the second servo angle adjustment command to the camera's control unit.
[0055] In specific implementation, when a significant change in the camera's posture is detected, the server adjusts the camera in time through the second servo angle adjustment command to ensure the normal operation of the shooting equipment. That is, when the camera's posture is abnormal, the camera lens angle is adaptively adjusted, so that a delicate, clear, and brightly balanced image can still be obtained, ensuring that the correct target image data information is collected.
[0056] The following is a solution proposed by the inventor to improve the adjustment and rotation accuracy.
[0057] In one embodiment, the plane where the connecting rod connecting the camera and the steering gear is located is perpendicular to the plane where the camera lens is located.
[0058] When implementing it, Figure 6 As shown, the connecting ring 21 provided at one end of the connecting rod near the steering gear is drivingly connected to the driving shaft 11 of the steering gear, and the end away from the steering gear is a ring structure 22, and the plane where the ring structure is located is perpendicular to the plane where the connecting rod part is located. The plane where the connecting rod connecting the camera and the steering gear is located is perpendicular to the plane where the camera lens is located, which can ensure the accuracy of the rotation angle, thereby improving the accuracy of the camera imaging reflection.
[0059] In order to facilitate understanding of how the present invention is implemented, Figure 5 and Figure 6 , and then introduce the shooting equipment.
[0060] like Figure 5 and Figure 6 As shown, the servo 1 can be regarded as a transmission mechanism, which rotates a corresponding angle (±5°) after receiving a command (a first servo angle adjustment command and a second servo angle adjustment command); the connecting rod realizes motion transmission, and transmits the rotation of the servo drive shaft to the lens component (a combination of a lens base 3, a lens 4, and a lens base plate 5, which is a main component of the camera); the lens base 3 mainly contains the photosensitive element of the lens, which completes the imaging; the lens base plate 5 connects the lens 4 and the camera main board (the camera main board is arranged on the lens base plate 5, and the camera main board can be the control unit of the camera mentioned in this article).
[0061] During specific implementation, the servo is connected to the camera mainboard in the form of an interface. The camera uses image processing technology to identify the approximate direction of the highlight area in the picture (the position information of the brightness distortion area), and directly sends a rotation angle command to the servo (the first servo angle adjustment command. Based on this, the function of the server of the present invention can be set in the camera mainboard (control unit)). The servo drives the lens to rotate a certain angle (the angle corresponding to the first servo angle adjustment command) through the connecting rod structure.
[0062] When implementing it, Figure 5 and Figure 6The working process of improving the camera imaging reflective shooting equipment is as follows: the connecting ring 21 at the first end of the connecting rod is connected to the driving shaft 11 of the servo by screws, and the large arm of the connecting rod is in a pendulum shape as a whole, and its plane is perpendicular to the plane of the integrated annular structure 22 at the end. There are two threaded through holes on both sides of the annular structure at the end of the connecting rod, which are connected to the camera lens base plate by screws. When the servo rotates a certain angle in a small amplitude, the camera lens rotates the same small angle at the same time. When the servo 1 rotates at a small angle, it drives the connecting rod 2 to swing, and then drives the entire lens base plate 5 to rotate at the same angle, so as to achieve small angle adjustment of the camera lens.
[0063] The solution for improving camera imaging reflection provided by the embodiment of the present invention can be applied to image capture of shelves in supermarkets, and then monitor the position and status of goods on the shelves, etc. Of course, it can also be applied to other scenarios, such as entrance detection at a railway station entrance, etc.
[0064] The method for improving camera imaging reflection applied to a server provided by the embodiment of the present invention can also be directly applied to a control unit inside a camera in a shooting device.
[0065] The following is an overall introduction to how the present invention is implemented: After the camera is deployed, it will ensure that the shelf is in the center of the picture and record the working angle of the servo at this time. In normal operation, the camera will first perform an overall analysis after taking a picture. When an area with highlight distortion is found, the approximate center position of the highlight area is first calculated, and then the position of the strong light source relative to the camera lens is analyzed. The server sends a command to the camera to adjust the servo angle to avoid strong light, thereby ensuring the normal completion of smart retail business. This method can effectively solve the embarrassing situation that traditional cameras are helpless in the face of strong light scenes, and is an effective solution.
[0066] In summary, the solution provided by the embodiment of the present invention realizes the adjustment of the camera lens angle within a small angle range through the servo linkage mechanism. When strong light or backlight appears within the shooting range of the lens, the lens angle can be adjusted to reduce the impact on the smart retail business, and all real information in the shooting scene can be obtained to the greatest extent. Therefore, the servo rotation drives the linkage to swing and then drives the camera lens to rotate slightly, and finally avoids abnormal light sources such as strong light sources and backlight sources.
[0067] The embodiment of the present invention also provides a method for improving camera imaging reflection applied to a shooting device, as described in the following embodiment. Since the principle of solving the problem by this method is similar to that of the method for improving camera imaging reflection applied to a server, the implementation of this method can refer to the implementation of the method for improving camera imaging reflection applied to a server, and the repeated parts will not be repeated.
[0068] Figure 3FIG. 1 is a flow chart of a method for improving camera imaging reflection applied to a shooting device in an embodiment of the present invention. Figure 3 As shown, the method comprises the following steps:
[0069] Step 201: The control unit of the camera receives a first servo angle adjustment command, and sends the first servo angle adjustment command to the servo connected to the camera;
[0070] Step 202: The servo rotates a first angle corresponding to the first servo angle adjustment command according to the first servo angle adjustment command; the rotation of the servo drives a connecting rod connected to one end of the servo shaft to rotate the first angle, and the rotation of the connecting rod drives a camera lens connected to the other end of the connecting rod to rotate the first angle.
[0071] In one embodiment, the method for improving camera imaging reflection may further include:
[0072] The control unit of the camera receives the second servo angle adjustment command and sends the second servo angle adjustment command to the servo;
[0073] The servo rotates a second angle corresponding to the second servo angle adjustment command according to the second servo angle adjustment command; the rotation of the servo drives a connecting rod connected to one end of the servo shaft to rotate the second angle, and the rotation of the connecting rod drives a camera lens connected to the other end of the connecting rod to rotate the second angle.
[0074] In one embodiment, Figure 6 As shown, the plane where the connecting rod connecting the camera and the servo is located is perpendicular to the plane where the camera lens is located.
[0075] The embodiment of the present invention also provides a server for improving camera imaging reflection, as described in the following embodiment. Since the principle of solving the problem by the server is similar to the method for improving camera imaging reflection applied to the server, the implementation of the server can refer to the implementation of the method for improving camera imaging reflection applied to the server, and the repeated parts will not be repeated.
[0076] Figure 4 FIG. 1 is a schematic diagram of the structure of a server for improving camera imaging reflection in an embodiment of the present invention. Figure 4 As shown, the server includes:
[0077] The acquisition unit 011 is used to acquire the current picture taken by the camera and the current shooting angle;
[0078] The detection unit 012 is used to determine the position information of the brightness distortion area when detecting that there is a brightness distortion area in the current captured image; and determine the position information of the abnormal light source according to the current shooting angle and the position information of the brightness distortion area;
[0079] The first processing unit 013 is used to generate a first steering engine angle adjustment command according to the position information of the abnormal light source;
[0080] The sending unit 014 is used to send a first servo angle adjustment command to the control unit of the camera; the control unit is used to control the servo connected to the camera to rotate a first angle corresponding to the first servo angle adjustment command according to the first servo angle adjustment command; the rotation of the servo drives the connecting rod connected to one end of the servo shaft to rotate the first angle, and the rotation of the connecting rod drives the camera lens connected to the other end of the connecting rod to rotate the first angle.
[0081] In one embodiment, the server for improving camera imaging reflection may further include:
[0082] A comparison unit, used to compare the current shooting angle with the angle when the camera was initially deployed;
[0083] The second processing unit generates a second servo angle adjustment command when it is found that the deviation between the current shooting angle and the angle when the camera is initially deployed exceeds a preset angle;
[0084] The sending unit is also used to send the second servo angle adjustment command to the control unit of the camera.
[0085] The embodiment of the present invention also provides a shooting device for improving camera imaging reflection, as described in the following embodiment. Since the principle of the shooting device to solve the problem is similar to the method for improving camera imaging reflection applied to the server, the implementation of the shooting device can refer to the implementation of the method for improving camera imaging reflection applied to the server, and the repeated parts will not be repeated.
[0086] Figure 5 FIG. 1 is a schematic diagram of a three-dimensional structure of a photographing device for improving camera imaging reflection in an embodiment of the present invention. Figure 5 As shown, the shooting device includes:
[0087] The camera (composed of a lens base 3, a lens 4 and a lens base plate 5) includes a control unit for receiving a first servo angle adjustment command and sending the first servo angle adjustment command to a servo connected to the camera;
[0088] The servo 1 is used to rotate a first angle corresponding to the first servo angle adjustment command according to the first servo angle adjustment command; the rotation of the servo drives the connecting rod 2 connected to one end of the servo shaft to rotate the first angle, and the rotation of the connecting rod drives the camera lens connected to the other end of the connecting rod to rotate the first angle.
[0089] In one embodiment, the control unit of the camera may also be used to receive a second servo angle adjustment command and send the second servo angle adjustment command to the servo;
[0090] The servo is also used to rotate a second angle corresponding to the second servo angle adjustment command according to the second servo angle adjustment command; the rotation of the servo drives the connecting rod connected to one end of the servo shaft to rotate the second angle, and the rotation of the connecting rod drives the camera lens connected to the other end of the connecting rod to rotate the second angle.
[0091] In one embodiment, the plane where the connecting rod connecting the camera and the steering gear is located is perpendicular to the plane where the camera lens is located.
[0092] An embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method for improving camera imaging reflection when executing the computer program.
[0093] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for executing the above-mentioned method for improving camera imaging reflection.
[0094] The solution for improving camera imaging reflection provided by the embodiment of the present invention realizes adaptive adjustment of the camera lens angle when the ambient light is abnormal, and still obtains a delicate, clear, and brightness-balanced image, thereby ensuring the collection of correct target image data information.
[0095] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0096] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0097] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0098] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0099] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for improving camera imaging reflection, characterized in that: The method is applied to a server for improving camera imaging reflection, and the method comprises: Obtain the current picture and the current shooting angle sent by the camera; the picture is a picture of the target area taken by the camera at a preset time interval, so that the server can analyze and obtain the monitoring result of the target area, and the monitoring result is the status of the goods on the shelves in the supermarket; When a brightness distortion area is detected in the current captured image, the position information of the center of the brightness distortion area is determined by image processing technology; the position information of the abnormal light source is determined according to the current shooting angle and the position information of the center of the brightness distortion area; the position information of the abnormal light source is the position information of the abnormal light source relative to the camera lens; Generate a first steering gear angle adjustment command according to the position information of the abnormal light source; A first servo angle adjustment command is sent to a control unit of the camera; the control unit is used to control the servo connected to the camera to rotate a first angle corresponding to the first servo angle adjustment command according to the first servo angle adjustment command; the rotation of the servo drives a connecting rod connected to one end of the servo shaft to rotate the first angle, and the rotation of the connecting rod drives a camera lens connected to the other end of the connecting rod to rotate the first angle, so as to realize adaptive adjustment of the camera lens angle when abnormal ambient light occurs.
2. The method for improving camera imaging reflection as claimed in claim 1, characterized in that: Also includes: Compare the current shooting angle to the angle when the camera was initially deployed; When it is found that the deviation between the current shooting angle and the angle when the camera is initially deployed exceeds a preset angle, a second servo angle adjustment command is generated; Send the second servo angle adjustment command to the camera's control unit.
3. The method for improving camera imaging reflection as claimed in claim 1, characterized in that: The plane where the connecting rod connecting the camera and the steering gear is located is perpendicular to the plane where the camera lens is located.
4. A method for improving camera imaging reflection, characterized in that: The method is applied to a shooting device for improving camera imaging reflection, and the method comprises: The control unit of the camera receives a first servo angle adjustment command sent by a server for improving the camera imaging reflection, and sends the first servo angle adjustment command to the servo connected to the camera; the server is used to obtain the current picture taken by the camera and the current shooting angle; when it is detected that there is an area with brightness distortion in the current picture, the position information of the center of the brightness distortion area is determined by image processing technology; the position information of the abnormal light source is determined according to the current shooting angle and the position information of the center of the brightness distortion area; the first servo angle adjustment command is generated according to the position information of the abnormal light source; the first servo angle adjustment command is sent to the control unit of the camera; the picture is a picture of the target area taken by the shooting device at a preset time interval, so that the server can analyze and obtain the monitoring result of the target area, and the monitoring result is the status of the goods on the shelves in the supermarket; the position information of the abnormal light source is the position information of the abnormal light source relative to the camera lens; The servo rotates a first angle corresponding to the first servo angle adjustment command according to the first servo angle adjustment command; the rotation of the servo drives a connecting rod connected to one end of the servo shaft to rotate the first angle, and the rotation of the connecting rod drives a camera lens connected to the other end of the connecting rod to rotate the first angle, so as to achieve adaptive adjustment of the camera lens angle when abnormal ambient light occurs.
5. The method for improving camera imaging reflection as claimed in claim 4, characterized in that: Also includes: The control unit of the camera receives the second servo angle adjustment command and sends the second servo angle adjustment command to the servo; The servo rotates a second angle corresponding to the second servo angle adjustment command according to the second servo angle adjustment command; the rotation of the servo drives a connecting rod connected to one end of the servo shaft to rotate the second angle, and the rotation of the connecting rod drives a camera lens connected to the other end of the connecting rod to rotate the second angle.
6. The method for improving camera imaging reflection as claimed in claim 4, characterized in that: The plane where the connecting rod connecting the camera and the servo is located is perpendicular to the plane where the camera lens is located.
7. A server for improving camera imaging reflection, characterized in that: include: An acquisition unit, used to acquire the current captured image and the current shooting angle sent by the shooting device; The pictures are pictures of the target area taken by the camera at preset time intervals, and the server is used to analyze and obtain monitoring results of the target area, and the monitoring results are the status of the goods on the shelves in the supermarket; A detection unit, configured to determine the position information of the center of the brightness distortion area by image processing technology when detecting that there is a brightness distortion area in the current captured image; determine the position information of the abnormal light source according to the current shooting angle and the position information of the center of the brightness distortion area; the position information of the abnormal light source is the position information of the abnormal light source relative to the camera lens; A first processing unit, used for generating a first steering gear angle adjustment command according to the position information of the abnormal light source; A sending unit is used to send a first servo angle adjustment command to a control unit of the camera; the control unit is used to control the servo connected to the camera to rotate a first angle corresponding to the first servo angle adjustment command according to the first servo angle adjustment command; the rotation of the servo drives a connecting rod connected to one end of the servo shaft to rotate the first angle, and the rotation of the connecting rod drives a camera lens connected to the other end of the connecting rod to rotate the first angle, so as to realize adaptive adjustment of the camera lens angle when abnormal ambient light occurs.
8. The server for improving camera imaging reflection as claimed in claim 7, characterized in that: Also includes: A comparison unit, used to compare the current shooting angle with the angle when the camera was initially deployed; The second processing unit generates a second servo angle adjustment command when it is found that the deviation between the current shooting angle and the angle when the camera is initially deployed exceeds a preset angle; The sending unit is also used to send the second servo angle adjustment command to the control unit of the camera.
9. A shooting device for improving camera imaging reflection, characterized in that: include: The camera comprises a control unit, which is used to receive a first servo angle adjustment command sent by a server for improving camera imaging reflection, and send the first servo angle adjustment command to a servo connected to the camera; the server is used to obtain a current picture taken by the camera and a current shooting angle; when a brightness distortion area is detected in the current picture, the position information of the center of the brightness distortion area is determined by image processing technology; the position information of an abnormal light source is determined according to the current shooting angle and the position information of the center of the brightness distortion area; and the first servo angle adjustment command is generated according to the position information of the abnormal light source; The first servo angle adjustment command is sent to the control unit of the camera; the picture is a picture of the target area taken by the shooting device at a preset time interval, so that the server can analyze and obtain the monitoring result of the target area, and the monitoring result is the status of the goods on the shelf in the supermarket; the position information of the abnormal light source is the position information of the abnormal light source relative to the camera lens; The servo is used to rotate a first angle corresponding to the first servo angle adjustment command according to the first servo angle adjustment command; the rotation of the servo drives a connecting rod connected to one end of the servo shaft to rotate the first angle, and the rotation of the connecting rod drives a camera lens connected to the other end of the connecting rod to rotate the first angle, so as to realize adaptive adjustment of the camera lens angle when abnormal ambient light occurs.
10. The shooting device for improving camera imaging reflection as claimed in claim 9, characterized in that: The control unit of the camera is also used to receive a second steering gear angle adjustment command and send the second steering gear angle adjustment command to the steering gear; The servo is also used to rotate a second angle corresponding to the second servo angle adjustment command according to the second servo angle adjustment command; the rotation of the servo drives the connecting rod connected to one end of the servo shaft to rotate the second angle, and the rotation of the connecting rod drives the camera lens connected to the other end of the connecting rod to rotate the second angle.
11. The shooting device for improving camera imaging reflection as claimed in claim 9, characterized in that: The plane where the connecting rod connecting the camera and the servo is located is perpendicular to the plane where the camera lens is located.
12. A computer 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 computer program, the method according to any one of claims 1 to 6 is implemented.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program for executing the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Video monitoring device capable of automatically avoiding strong light reflection
CN106303391A
Visual parking space detection method capable of eliminating influence of ground strong reflected light
CN111462522A