3D camera temperature control method and system
By introducing the concept of projection ratio into 3D structured light cameras and adjusting the projection time in real time according to the internal temperature, the problem of equipment instability in high temperature environments is solved, and response flexibility and equipment lifespan are improved.
Patent Information
- Application Number
- CN202410705062.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-03
AI Technical Summary
When existing 3D structured light cameras work in high-temperature environments, the electronic components are unstable, resulting in data transmission errors or loss. The temperature control system is relatively simple and cannot flexibly respond to different working conditions, affecting user experience and equipment lifespan.
By introducing the concept of input ratio, the maximum allowed input ratio is determined in real time based on the internal temperature of the camera, and the response mode is selected based on the allowed value, such as no response, immediate response or sleep, to adjust the camera's working mode to avoid high temperature damage.
It improves the response flexibility of 3D cameras in high-temperature environments, extends the service life of equipment, and reduces user waiting time.
Smart Images

Figure CN118276381B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of 3D imaging structured light cameras, and in particular to a 3D camera temperature control method and system. Background Art
[0002] With the rapid development of various optical sensors, the limitations of two-dimensional scanning measurement in certain scenarios have led to an increasing demand for three-dimensional scanning measurement. The application of three-dimensional scanning measurement has become more and more extensive, and 3D structured light measurement has become an outstanding representative of three-dimensional measurement systems with its high precision and high density. 3D structured light cameras generally use a structure of several industrial visible light cameras + projectors (also called optical machines, and no distinction is made between the two later). The measurement principle of this system is to first use a projector to project the designed grating coding pattern onto the surface of the measured object, which is then synchronously collected by the camera. A phase unpacking algorithm is performed on the collected grating image group, and the phase information is used to complete the matching of pixel homonymous points. Finally, the triangulation reconstruction method is used to complete the three-dimensional point cloud reconstruction of the measured object.
[0003] The optical engine in the 3D structured light cameras currently on the market usually uses a light source (such as a laser or LED) to generate structured light. When the optical engine projects a grid pattern, it generates heat, which not only increases the temperature of the chip inside the optical engine, but also increases the temperature of other components of the 3D structured light camera. Generally speaking, the optical engine in a 3D structured light camera is the main device that generates heat. If the camera continues to work, it also means that the optical engine will generate projection work during the process, which will cause the temperature of the electronic components and optical engine chips inside the 3D camera to continue to rise. High temperature may cause some electronic components to work unstably, thereby causing data transmission errors or losses, affecting the accuracy of the data; if it is in a high temperature environment for a long time, some key components such as the optical engine DMD chip may be damaged, shortening the life of the equipment.
[0004] In order to extend the life of key components such as optical machines as much as possible, the heat dissipation design of 3D structured light cameras is an indispensable and crucial link. The main strategies for coping methods on the market are: ① Install heat sinks or radiators around key components to improve heat dissipation efficiency; ② Use fan equipment to reduce the internal temperature and effectively remove heat; ③ Try to reduce the power consumption of the optical machine and reduce heat generation. The 3D structured light camera products on the market often combine the above methods. They will equip the 3D structured light camera with a fan and a temperature control system. The system can obtain the temperature values of the optical machine and other key components in real time based on the temperature sensor, so as to automatically adjust the fan speed. However, these temperature control strategies are relatively simple at present. For some working conditions, even if the fan performance of the 3D camera is turned to the maximum during operation, the temperature of the 3D camera may still exceed the acceptable range. At this time, in order to avoid the temperature rising and burning the chip or affecting the hardware life, the 3D camera can only be forced not to work until its temperature reaches a safe temperature. However, this will bring some problems to users. For example, if the user needs the 3D camera to work while waiting for the temperature to drop to a safe temperature, the control system has forcibly turned off the camera function, so the user can only wait, and it is unpredictable how long to wait. Therefore, how to provide a new method to solve the problem of inflexible camera control is a current research direction. Summary of the invention
[0005] The present invention provides a 3D camera temperature control method and system, which are used to solve the above-mentioned problem of inflexible camera control.
[0006] A 3D camera temperature control method, the method comprising: in response to a user's request, obtaining the current internal temperature of the camera; determining the currently allowed maximum projection ratio based on the current internal temperature of the camera; wherein the currently allowed maximum projection ratio is the maximum projection ratio allowed under the current internal temperature of the camera; wherein the projection ratio represents the ratio of the camera's continuous projection time to the total camera power-on time within a working cycle; and determining to execute one of the following response modes based on the currently allowed maximum projection ratio: not responding to the user's request, responding to the user's request immediately, or responding to the user's request after a period of sleep.
[0007] In one of the embodiments, before determining the currently allowed maximum exposure ratio based on the current internal temperature of the camera, the method further includes: determining whether the current internal temperature of the camera is in a preset danger range based on the current internal temperature of the camera; determining the currently allowed maximum exposure ratio based on the current internal temperature of the camera includes: in a case where it is determined that the current internal temperature of the camera is in a preset danger range based on the current internal temperature of the camera, determining the currently allowed maximum exposure ratio based on the current internal temperature of the camera and different preset exposure ratio thresholds corresponding to at least two temperatures in the preset danger range.
[0008] In one of the embodiments, the currently allowed maximum vote share is determined based on the current internal temperature of the camera and different preset vote share thresholds corresponding to at least two temperatures in the preset danger zone, including: determining a linear equation of vote share and camera temperature based on a first preset vote share threshold and a second preset vote share threshold; wherein the first preset vote share threshold is a vote share preset by a user for the minimum temperature in the preset danger zone; the second preset vote share threshold is a vote share preset by a user for the preset temperature threshold in the preset danger zone; and the current internal temperature of the camera is substituted into the linear equation to determine the currently allowed maximum vote share.
[0009] In one of the embodiments, it is characterized in that the determination to execute one of the following response modes based on the currently allowed maximum projection ratio is: not responding to the user's request, responding to the user's request immediately, and responding to the user's request after a period of sleep, including: when the currently allowed maximum projection ratio is less than 0 or equal to 0, not responding to the request; or, when the currently allowed maximum projection ratio is greater than 0, based on the currently allowed maximum projection ratio and the actual projection ratio in the current working cycle of the camera, determining to respond to the request immediately or to respond to the request after a period of sleep; wherein the actual projection ratio in the current working cycle of the camera is the ratio of the camera's continuous projection time to the actual total power-on time of the camera in the current working cycle.
[0010] In one of the embodiments, the determination of whether to respond to the request immediately or to respond to the request after sleeping for a period of time based on the currently allowed maximum vote-taking ratio and the actual vote-taking ratio in the current working cycle of the camera includes: when the actual vote-taking ratio in the current working cycle of the camera is less than the currently allowed maximum vote-taking ratio, responding to the request immediately; or, when the actual vote-taking ratio in the current working cycle of the camera is greater than or equal to the currently allowed maximum vote-taking ratio, determining a target sleep time interval based on the currently allowed maximum vote-taking ratio, and forcing the camera to sleep for the target sleep time interval before responding to the request.
[0011] In one of the embodiments, determining the target sleep time interval based on the currently allowed maximum projection ratio includes: determining the minimum total power-on time required for the current cycle based on the ratio of the continuous projection time required for the optical projection to the currently allowed maximum projection ratio; subtracting the difference between the minimum total power-on time required for the current cycle and the continuous projection time required for the optical projection from the current actual sleep time to determine the target sleep time interval; wherein the current actual sleep time is the time interval from the current time to the end of the previous projection.
[0012] In one of the embodiments, before determining whether to respond to the request immediately or to respond to the request after sleeping for a period of time based on the currently allowed maximum projection ratio and the actual projection ratio in the current working cycle of the camera, the method further includes: determining the actual projection ratio in the current working cycle of the camera based on the ratio of the continuous projection time required by the current camera to the actual total power-on time of the current cycle; wherein the actual total power-on time of the current cycle includes the current actual sleep time and the continuous projection time required by the current camera; wherein the current actual sleep time is the time interval from the current time to the end of the previous projection.
[0013] In one of the embodiments, the method further includes: setting the fan to a corresponding preset speed based on the temperature range in which the current internal temperature of the camera is located; and determining, based on the current internal temperature of the camera, that the current internal temperature of the camera is in a preset safety range or a warning range, determining that the current maximum allowed projection ratio is 100%.
[0014] The present invention also provides a 3D camera temperature control system, the system comprising: a receiving module, used to obtain the current internal temperature of the camera in response to a user's request; a first determining module, used to determine the currently allowed maximum projection ratio based on the current internal temperature of the camera; wherein the currently allowed maximum projection ratio is the maximum projection ratio allowed under the current internal temperature of the camera; wherein the projection ratio represents the ratio of the camera's continuous projection time to the total camera power-on time within a working cycle; and a second determining module, used to determine to execute one of the following response modes based on the currently allowed maximum projection ratio: not responding to the user's request, responding to the user's request immediately, or responding to the user's request after a period of sleep.
[0015] A computer device comprises a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the above-mentioned 3D camera temperature control method.
[0016] A storage medium storing computer-readable instructions, wherein when the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the above-mentioned 3D camera temperature control method.
[0017] The above-mentioned 3D camera temperature control method and system introduce the projection ratio into the control process, and determine the currently allowed maximum projection ratio based on the current internal temperature of the camera, so that when the current internal temperature of the camera is in a dangerous range, the currently allowed maximum projection ratio can be determined in real time based on the current internal temperature of the camera, so that according to the currently allowed maximum projection ratio, a corresponding response can be adaptively given (not responding to the request, responding to the request immediately, or responding to the request after forcing the camera to sleep for a period of time), instead of directly not responding when the temperature is in the dangerous range, thereby increasing the flexibility of the 3D camera in responding to user requests. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A schematic diagram of a method for setting the fan speed in different temperature ranges provided in the prior art;
[0019] Figure 2 A schematic diagram of the control process of a temperature control system provided in the prior art;
[0020] Figure 3 One of the flowcharts of a 3D camera temperature control method provided in an embodiment;
[0021] Figure 4 The second flowchart of the 3D camera temperature control method provided in one embodiment;
[0022] Figure 5 A schematic diagram of fan speeds and preset optical machine maximum input ratio thresholds corresponding to different temperatures provided in an embodiment;
[0023] Figure 6 The third flowchart of the 3D camera temperature control method provided in one embodiment;
[0024] Figure 7 is a structural block diagram of a 3D camera temperature control system provided in an embodiment;
[0025] Figure 8 A schematic diagram of an electronic device provided in one embodiment. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0027] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the present invention should be understood by people with ordinary skills in the field to which the present invention belongs. The "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0028] In order to facilitate understanding, the inventive concept of the present invention is first introduced.
[0029] The 3D camera temperature control system proposed in the present invention installs one or more temperature monitoring modules and fans at key components inside the 3D structured light camera. The temperature control system will be turned on when the 3D structured light camera system is turned on, and can obtain the corresponding temperature value in real time, and then change the fan speed and adjust the projection ratio of the optical machine inside the camera according to the current temperature value and the current state of the fan.
[0030] Normally, the temperature control system of a 3D structured light camera will set several key temperature thresholds based on the temperature resistance information of the camera's internal components. Generally, two thresholds are set: threshold 1 and threshold 2. If the temperature is less than threshold 1, it means the temperature is in a safe range. If the temperature value is between threshold 1 and threshold 2, it means the temperature is in a warning range. If the temperature value is greater than threshold 2, it means the temperature is in a dangerous range. Figure 1 The figure shows the fan speed setting method for different temperature ranges in the traditional camera fan control system. Figure 2 The control process of the corresponding temperature control system is as follows: Figure 2 As shown, the following steps are included:
[0031] Step 201, receiving a user's request.
[0032] The user's request may be a request for the user to request the camera to project related content.
[0033] Step 202, in response to a user's request, obtain one or more current internal temperature values of the camera, determine the current system temperature range, and set the corresponding fan speed.
[0034] Specifically, combined Figure 1 It can be seen that the fan speed setting process is as follows: if the current temperature current_temp is in the safe range and the fan speed is not in the speed 1 case, the fan speed is set to speed 1; if the current temperature current_temp is in the warning range and the fan speed is not in the speed 2 case, the fan speed is set to speed 2; if the current temperature current_temp is in the dangerous range and the fan speed is not in the speed 3 case, the fan speed is set to speed 3.
[0035] Step 203, control the optical machine to work according to the temperature range to complete data collection.
[0036] Specifically, step 203 includes:
[0037] Step 2031, if the current temperature current_temp is in the safe range or the warning range, the optical projection is completed according to the user's request, the corresponding data collection is completed, and then the user request task is ended; or, step 2032, if the current temperature current_temp is in the dangerous range, the camera does not need to respond to the user's request, does not perform camera operation and data collection, and directly ends the user request task.
[0038] Combined with the above Figure 2 It can be seen that the above temperature control strategy is relatively sensitive to the selection of threshold 2. If the temperature threshold 2 is set too low, the internal temperature of the camera will easily enter the dangerous range, which will cause the camera to enter the unresponsive stage prematurely. At this time, the user's request will be directly ignored and the camera will not work. In this state, the user cannot judge in time when the camera can respond to the work request normally, which affects the camera usage experience; if the temperature threshold 2 is set too high, it may cause the temperature to be too high during the operation process, and the life of key components will be reduced or even burned out due to high temperature. Therefore, the above temperature control strategy puts forward higher requirements on the rationality of threshold selection. The standard of threshold selection varies from person to person and depends on project experience, which directly affects the sensitivity of the 3D camera to respond to user requests.
[0039] In view of this, the present invention proposes a 3D camera temperature control method, which introduces a projection ratio in the control process, and determines the currently allowed maximum projection ratio based on the current internal temperature of the camera, so that when the current internal temperature of the camera is in a dangerous range, the currently allowed maximum projection ratio can be determined in real time based on the current internal temperature of the camera, so that according to the currently allowed maximum projection ratio, a corresponding response can be adaptively given (not responding to the request, responding to the request immediately, or responding to the request after forcing the camera to sleep for a period of time), instead of directly not responding when the temperature is in the dangerous range, thereby increasing the flexibility of the 3D camera in responding to user requests.
[0040] The 3D camera temperature control method and system of the present invention will be described below with reference to the accompanying drawings.
[0041] Figure 3 A flow chart of a 3D camera temperature control method provided in an embodiment of the present application, the method can be executed by a 3D camera temperature control system, wherein the control device can be a computer device.
[0042] like Figure 3 As shown, in one embodiment, a 3D camera temperature control method is proposed, which may specifically include the following steps:
[0043] Step 310, in response to a user's request, obtaining the current internal temperature of the camera.
[0044] The user's request may be a request for the user to request the camera to project related content.
[0045] Step 320: Determine the maximum allowable projection ratio based on the current internal temperature of the camera.
[0046] The currently allowed maximum projection ratio is the maximum projection ratio allowed under the current internal temperature of the camera; the projection ratio indicates the ratio of the camera's continuous projection time to the total camera power-on time within a working cycle.
[0047] Among them, the total camera power-on time includes the camera's continuous projection time and sleep time. It can be understood that the optical machine projection process in the camera is the main heat source. Its projection ratio during actual work is an important factor affecting the temperature of the optical machine. The optical machine projection ratio refers to the ratio of the actual operation or working time of the optical machine to the total camera power-on time in a specific time period. If the total monitoring time is 10 seconds, if the optical machine projection time is 2 seconds within these 10 seconds, then the projection ratio is 20%. If the optical machine has been working for ten seconds, then the projection ratio is 100%. In the same time period, the larger the optical machine projection ratio, the faster its temperature rises.
[0048] It can be understood that when the camera receives the user's request, it may have been a while since the last projection. The temperature inside the camera has been initially adjusted by the fan cooling and has decreased since the end of the last projection. Therefore, it can directly respond to the user's request; the camera may have just completed the last projection, and the temperature inside the camera is still high. Therefore, it is not easy to directly respond to the user's request at this time. However, directly setting the temperature threshold based on the existing technology and determining whether to respond to the user's request or not based on the temperature threshold may easily affect the camera's usage experience or cause damage to key components, and the response to the user's request is not flexible enough. Therefore, in this application, the currently allowed maximum projection ratio is introduced to address this problem. The maximum projection ratio is related to the current internal temperature of the camera, and can give an adaptive and flexible response based on the current internal temperature of the camera. It can choose to sleep for a period of time based on the currently allowed maximum projection ratio before responding to the user's request.
[0049] Step 330, based on the currently allowed maximum vote ratio, determine to execute one of the following response modes: do not respond to the user's request, respond to the user's request immediately, or respond to the user's request after a period of sleep.
[0050] It can be understood that the temperature control of the 3D camera can be achieved by adopting different response modes.
[0051] The 3D camera temperature control method provided by the present invention introduces the projection ratio in the control process, and determines the currently allowed maximum projection ratio based on the current internal temperature of the camera, so that when the current internal temperature of the camera is in a dangerous range, the currently allowed maximum projection ratio can be determined in real time based on the current internal temperature of the camera, so that a corresponding response (not responding to the request, responding to the request immediately, or responding to the request after forcing the camera to sleep for a period of time) can be adaptively given according to the currently allowed maximum projection ratio, instead of directly not responding when the temperature is in the dangerous range, thereby increasing the flexibility of the 3D camera in responding to user requests.
[0052] In one of the embodiments, before determining the currently allowed maximum exposure ratio based on the current internal temperature of the camera, the method further includes: determining whether the current internal temperature of the camera is in a preset danger interval based on the current internal temperature of the camera; accordingly, determining the currently allowed maximum exposure ratio based on the current internal temperature of the camera includes: in a case where it is determined that the current internal temperature of the camera is in a preset danger interval based on the current internal temperature of the camera, determining the currently allowed maximum exposure ratio based on the current internal temperature of the camera and different preset exposure ratio thresholds corresponding to at least two temperatures in the preset danger interval.
[0053] It is understandable that the user can set different exposure ratio thresholds for different temperatures. In particular, different exposure ratio thresholds can be set for different temperatures in the danger zone, so that the exposure ratio can change with the change of temperature. In this way, the current maximum exposure ratio allowed is determined by combining the real-time internal temperature of the camera (the current internal temperature of the camera corresponding to the user's request) with the exposure ratio thresholds set by the user for different temperatures in the preset danger zone (different preset exposure ratio thresholds corresponding to at least two temperatures in the preset danger zone), thereby determining a real-time current maximum exposure ratio allowed.
[0054] In one embodiment, if Figure 4 As shown, the method of determining the currently allowed maximum exposure ratio based on the current internal temperature of the camera and different preset exposure ratio thresholds corresponding to at least two temperatures in the preset danger zone includes the following steps:
[0055] Step 410: Determine a linear equation of the shot ratio and the camera temperature based on the first preset shot ratio threshold and the second preset shot ratio threshold.
[0056] Among them, the first preset investment ratio threshold is the investment ratio preset by the user for the minimum temperature in the preset danger zone; the second preset investment ratio threshold is the investment ratio preset by the user for the preset temperature threshold in the preset danger zone.
[0057] In one embodiment, the second preset investment ratio threshold is 0, that is, according to two points ( , 0) and ( , ) Determine the following linear equation:
[0058] ,in, represents the first preset investment ratio threshold, represents the temperature of the camera, represents the minimum temperature in the preset danger zone, Indicates the preset temperature threshold in the preset danger zone.
[0059] For ease of understanding, you can combine Figure 5 The schematic diagram of the fan speed corresponding to different temperatures and the preset optical machine maximum investment ratio threshold is shown to understand the determination process of the above linear equation.
[0060] Step 420: Substitute the current internal temperature of the camera into the linear equation to determine the currently allowed maximum projection ratio.
[0061] Combined with the above step 410, the current internal temperature of the camera Substituting the temperature into the linear equation t , the currently allowed maximum investment ratio is: , Indicates the current internal temperature of the camera.
[0062] Figure 5 The schematic diagram of the fan speed and the preset maximum optical machine input ratio threshold value corresponding to different temperatures provided by the present invention. Figure 5 As shown, when the internal temperature of the camera is between 0 and the preset threshold T0 ( ), indicating that the temperature is in a safe range, set the fan speed to speed 1, and set the maximum optical machine projection ratio threshold to 100%; when the internal temperature of the camera is between the preset threshold T0 and the preset threshold T1 ( ), set the fan speed to speed 2, speed 2 is greater than speed 1, and set the maximum projection ratio threshold of the optical machine to 100%; when the internal temperature of the camera is greater than the preset threshold T1 ( ), indicating that the temperature is in the dangerous range, the fan speed is set to speed 3, speed 3 is greater than speed 2, and the maximum optical machine input ratio threshold corresponding to the preset threshold T1 is set to , the optical machine maximum input ratio threshold corresponding to the preset temperature threshold T2 in the preset danger interval is set to 0.
[0063] In one embodiment, if Figure 6 As shown, the above step 330 includes the following steps:
[0064] Step 610: If the currently allowed maximum investment ratio is less than 0 or equal to 0, do not respond to the request.
[0065] Combined with the above formula corresponding to the currently allowed maximum investment ratio and Figure 5 It can be seen that the current maximum allowed projection ratio is less than 0 or equal to 0, which means that the current internal temperature of the camera is greater than the preset temperature threshold in the preset danger zone, indicating that the temperature process may cause damage to the camera. Therefore, the request may not be responded to.
[0066] Step 620: When the currently allowed maximum projection ratio is greater than 0, based on the currently allowed maximum projection ratio and the actual projection ratio in the current working cycle of the camera, determine whether to respond to the request immediately or to respond to the request after sleeping for a period of time.
[0067] The actual projection ratio in the current working cycle of the camera is: the ratio of the continuous projection time of the camera to the actual total power-on time of the camera in the current working cycle.
[0068] The actual total power-on time of the camera includes the camera continuous projection time and the actual sleep time. The actual sleep time is the sleep time interval between the current projection end time and the previous projection end time. The camera continuous projection time can be understood as the continuous projection time required by the current camera.
[0069] In one of the embodiments, before determining whether to respond to the request immediately or respond to the request after sleeping for a period of time based on the currently allowed maximum projection ratio and the actual projection ratio in the current working cycle of the camera, it includes: determining the actual projection ratio in the current working cycle of the camera based on the ratio of the continuous projection time required by the current camera to the actual total power-on time of the current cycle.
[0070] The continuous projection time required by the current camera is the continuous projection time required by the current camera to perform optical projection to complete the user's request. The actual total startup time of the current cycle includes the current actual sleep time and the continuous projection time required by the current camera.
[0071] The current actual sleep time is the time interval from the current time to the end of the previous projection. It can be understood that when responding to the user's request, it is considered that the camera has completed the previous projection and entered the current projection, and before responding to the user's request, the previous projection may have just ended, or may have ended for a period of time. Therefore, the actual sleep time of this application can be determined based on the time interval from the current time to the end of the previous projection (actual sleep time), and the actual projection ratio of the camera in the current working cycle can be determined based on the actual sleep time.
[0072] In one embodiment, the calculation formula corresponding to the actual projection ratio in the current working cycle of the camera is: ; Among them, t_project represents the continuous projection time required by the current camera, Indicates the current actual sleep time, pre_timestamp indicates the timestamp of the previous projection end, and current_timestamp indicates the current timestamp. Among them, t_project can be determined based on the number of stripe patterns n required to be projected in the user's request and the projection frequency F (HZ) of each stripe pattern, for example, t_project= .
[0073] It can be understood that the longer the time interval between the end of the last projection of the camera and the current one, the longer the actual dormant time of the camera, the smaller the actual projection ratio in the current working cycle of the camera, and the lower the current internal temperature of the camera, the larger the current maximum projection ratio allowed, and the greater the possibility that the actual projection ratio in the current working cycle of the camera is less than the current maximum projection ratio allowed, and the user's request can be responded to immediately. The shorter the time interval between the end of the last projection of the camera and the current one, the shorter the actual dormant time of the camera, the larger the actual projection ratio in the current working cycle of the camera, the higher the current internal temperature of the camera, and the smaller the current maximum projection ratio allowed, and it is expected that the actual projection ratio in the current working cycle of the camera is less than the current maximum projection ratio allowed. Therefore, when the actual projection ratio in the current working cycle of the camera is greater than or equal to the current maximum projection ratio allowed, the target dormant time interval can be determined based on the current maximum projection ratio allowed, and the camera can be forced to sleep after the target dormant time interval, and then the request can be responded to, thereby increasing the dormant time of the camera in the current cycle, and avoiding continuous response to the user's request when the time from the end of the last projection is short and the current internal temperature of the camera is high, resulting in excessive temperature and damage to the camera.
[0074] Therefore, in the above step 620, "determining whether to respond to the request immediately or to respond to the request after sleeping for a period of time based on the currently allowed maximum vote-taking ratio and the actual vote-taking ratio in the current working cycle of the camera" can specifically include: when the actual vote-taking ratio in the current working cycle of the camera is less than the currently allowed maximum vote-taking ratio, respond to the request immediately; or, when the actual vote-taking ratio in the current working cycle of the camera is greater than or equal to the currently allowed maximum vote-taking ratio, determine the target sleep time interval based on the currently allowed maximum vote-taking ratio, and respond to the request after forcing the camera to sleep for the target sleep time interval.
[0075] In one embodiment, the expression corresponding to the target sleep time interval is:
[0076] , where t_project represents the continuous projection time required by the current camera; Indicates the minimum total startup time required for the current cycle; Indicates the actual sleep time. Indicates the current maximum allowed projection ratio, pre_timestamp indicates the timestamp when the previous projection ended, and current_timestamp indicates the current timestamp.
[0077] In one of the embodiments, the method further includes: setting the fan to a corresponding preset speed based on the temperature range in which the current internal temperature of the camera is located; and determining, based on the current internal temperature of the camera, that the current internal temperature of the camera is in a preset safety range or a warning range, determining that the current maximum allowed projection ratio is 100%.
[0078] Wherein, the setting of the fan to a corresponding preset speed based on the temperature range of the current internal temperature of the camera includes: when it is determined based on the current internal temperature of the camera that the internal temperature is in a safe range, the fan speed is set to a first speed; or, when it is determined based on the current internal temperature of the camera that the internal temperature is in a warning range, the fan speed is set to a second speed; the second speed is greater than the first speed; or, when it is determined based on the current internal temperature of the camera that the internal temperature is in a dangerous range, the fan speed is set to a third speed; the third speed is greater than the second speed. Specifically, the above specific methods can refer to Figure 5 , for the sake of brevity, it will not be repeated here.
[0079] In one of the embodiments, after responding to the user's request, the camera completes the optical-mechanical projection and data acquisition tasks, updates the value of pre_timestamp to the current system timestamp, and then ends the user request task.
[0080] The 3D camera temperature control system provided by the present invention is described below. The 3D camera temperature control system described below corresponds to the 3D camera temperature control method described above.
[0081] Figure 7 This is a schematic block diagram of a 3D camera temperature control system provided by the present invention. Figure 7 As shown, the 3D camera temperature control system provided by the present invention includes:
[0082] The receiving module 710 is used to obtain the current internal temperature of the camera in response to a user's request;
[0083] The first determination module 720 is used to determine the currently allowed maximum projection ratio based on the current internal temperature of the camera; wherein the currently allowed maximum projection ratio is the maximum projection ratio allowed under the current internal temperature of the camera; wherein the projection ratio represents the ratio of the camera's continuous projection time to the total camera power-on time within a working cycle;
[0084] The second determination module 730 is used to determine, based on the currently allowed maximum vote share, to execute one of the following response methods: not responding to the user's request, responding to the user's request immediately, or responding to the user's request after a period of sleep.
[0085] The 3D camera temperature control system provided by the present invention introduces the projection ratio in the control process, and determines the currently allowed maximum projection ratio based on the current internal temperature of the camera, so that when the current internal temperature of the camera is in a dangerous range, the currently allowed maximum projection ratio can be determined in real time based on the current internal temperature of the camera, so that a corresponding response (not responding to the request, responding to the request immediately, or responding to the request after forcing the camera to sleep for a period of time) can be adaptively given according to the currently allowed maximum projection ratio, instead of directly not responding when the temperature is in the dangerous range, thereby increasing the flexibility of the 3D camera in responding to user requests.
[0086] In one embodiment, a computer device is proposed, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: in response to a user's request, obtaining a current internal temperature of a camera; determining a currently allowed maximum projection ratio based on the current internal temperature of the camera; wherein the currently allowed maximum projection ratio is the maximum projection ratio allowed under the current internal temperature of the camera; wherein the projection ratio indicates the ratio of the continuous projection time of the camera to the total power-on time of the camera within a working cycle; and determining to execute one of the following response modes based on the currently allowed maximum projection ratio: not responding to the user's request, responding to the user's request immediately, or responding to the user's request after a period of sleep.
[0087] Figure 8 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 8 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the 3D camera temperature control method provided by the present invention, and the 3D camera temperature control method includes: in response to a user's request, obtaining the current internal temperature of the camera; based on the current internal temperature of the camera, determining the current maximum allowable projection ratio; wherein the current maximum allowable projection ratio is the maximum allowable projection ratio under the current internal temperature of the camera; wherein the projection ratio indicates the ratio of the camera's continuous projection time to the total camera startup time within a working cycle; based on the current maximum allowable projection ratio, determining to execute one of the following response modes: not responding to the user's request, responding to the user's request immediately, and responding to the user's request after a period of sleep.
[0088] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0089] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the 3D camera temperature control method provided by the present invention, wherein the 3D camera temperature control method includes: in response to a user's request, obtaining the current internal temperature of the camera; based on the current internal temperature of the camera, determining the currently allowed maximum projection ratio; wherein the currently allowed maximum projection ratio is the maximum projection ratio allowed under the current internal temperature of the camera; wherein the projection ratio represents the proportion of the camera's continuous projection time to the total camera power-on time within a working cycle; based on the currently allowed maximum projection ratio, determining to execute one of the following response methods: not responding to the user's request, responding to the user's request immediately, and responding to the user's request after a period of sleep.
[0090] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute the 3D camera temperature control method provided by the present invention, wherein the 3D camera temperature control method includes: in response to a user's request, obtaining the current internal temperature of the camera; based on the current internal temperature of the camera, determining the currently allowed maximum projection ratio; wherein the currently allowed maximum projection ratio is the maximum projection ratio allowed under the current internal temperature of the camera; wherein the projection ratio represents the ratio of the camera's continuous projection time to the total camera power-on time within a working cycle; based on the currently allowed maximum projection ratio, determining to execute one of the following response methods: not responding to the user's request, responding to the user's request immediately, or responding to the user's request after a period of sleep.
[0091] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0092] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0093] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A 3D camera temperature control method, characterized in that: The method comprises: In response to a user's request, obtaining a current internal temperature of the camera; Determining the currently allowed maximum projection ratio based on the current internal temperature of the camera, comprising: determining the currently allowed maximum projection ratio based on the current internal temperature of the camera and different preset projection ratio thresholds corresponding to at least two temperatures in the preset danger interval, when the current internal temperature of the camera is determined to be in a preset danger interval; wherein the currently allowed maximum projection ratio is the maximum projection ratio allowed under the current internal temperature of the camera; wherein the projection ratio indicates the ratio of the camera's continuous projection time to the total camera power-on time within a working cycle; Based on the currently allowed maximum vote ratio, determine to execute one of the following response modes: do not respond to the user's request, respond to the user's request immediately, or respond to the user's request after a period of sleep.
2. The 3D camera temperature control method according to claim 1, characterized in that: Before determining the currently allowed maximum projection ratio based on the current internal temperature of the camera, the method further includes: Based on the current internal temperature of the camera, it is determined whether the current internal temperature of the camera is in a preset danger range.
3. The 3D camera temperature control method according to claim 2, characterized in that: The determining the currently allowed maximum exposure ratio based on the current internal temperature of the camera and different preset exposure ratio thresholds corresponding to at least two temperatures in the preset danger zone includes: Based on a first preset shot ratio threshold and a second preset shot ratio threshold, a linear equation of the shot ratio and the camera temperature is determined; wherein the first preset shot ratio threshold is a shot ratio preset by a user for the minimum temperature in the preset danger interval; and the second preset shot ratio threshold is a shot ratio preset by a user for the preset temperature threshold in the preset danger interval; The current internal temperature of the camera is substituted into the linear equation to determine the currently allowed maximum exposure ratio.
4. The 3D camera temperature control method according to any one of claims 1 to 3, characterized in that: The determining to execute one of the following response modes based on the currently allowed maximum vote ratio: not responding to the user's request, responding to the user's request immediately, and responding to the user's request after a period of sleep, includes: If the currently allowed maximum vote share is less than 0 or equal to 0, do not respond to the request; or When the currently allowed maximum projection ratio is greater than 0, determine whether to respond to the request immediately or to respond to the request after sleeping for a period of time based on the currently allowed maximum projection ratio and the actual projection ratio in the current working cycle of the camera; wherein the actual projection ratio in the current working cycle of the camera is the ratio of the camera's continuous projection time to the actual total power-on time of the camera in the current working cycle.
5. The 3D camera temperature control method according to claim 4, characterized in that: The determining, based on the currently allowed maximum projection ratio and the actual projection ratio in the current working cycle of the camera, to respond to the request immediately or to respond to the request after sleeping for a period of time includes: When the actual exposure ratio in the current working cycle of the camera is less than the currently allowed maximum exposure ratio, respond to the request immediately; or, when the actual exposure ratio in the current working cycle of the camera is greater than or equal to the currently allowed maximum exposure ratio, determine the target sleep time interval based on the currently allowed maximum exposure ratio, and force the camera to sleep after the target sleep time interval, and respond to the request.
6. The 3D camera temperature control method according to claim 5, characterized in that: The determining of the target sleep time interval based on the currently allowed maximum input ratio includes: Determine the minimum total power-on time required for the current cycle based on the ratio of the continuous projection time required by the current camera to the currently allowed maximum projection ratio; The target sleep time interval is determined by subtracting the difference between the minimum total power-on time required for the current cycle and the continuous projection time required for the current camera from the current actual sleep time; wherein the current actual sleep time is the time interval from the current time to the end of the previous projection.
7. The 3D camera temperature control method according to claim 4, characterized in that: Before determining to respond to the request immediately or to respond to the request after sleeping for a period of time based on the currently allowed maximum projection ratio and the actual projection ratio in the current working cycle of the camera, the method further includes: Determine the actual projection ratio of the camera in the current working cycle based on the ratio of the continuous projection time required by the current camera to the actual total power-on time of the current cycle; The actual total power-on time of the current cycle includes the current actual sleep time and the continuous projection time required by the current camera; wherein the current actual sleep time is the time interval from the current time to the end of the previous projection.
8. The 3D camera temperature control method according to claim 1, characterized in that: The method further comprises: Based on the temperature range in which the current internal temperature of the camera is located, the fan is set to a corresponding preset speed; and based on the current internal temperature of the camera, if it is determined that the current internal temperature of the camera is in a preset safety range or a warning range, the currently allowed maximum projection ratio is determined to be 100%.
9. A 3D camera temperature control system, characterized in that: The system comprises: A receiving module, used for obtaining the current internal temperature of the camera in response to a user's request; The first determination module is used to determine the currently allowed maximum projection ratio based on the current internal temperature of the camera, including: when it is determined that the current internal temperature of the camera is in a preset danger interval based on the current internal temperature of the camera, determining the currently allowed maximum projection ratio based on the current internal temperature of the camera and different preset projection ratio thresholds corresponding to at least two temperatures in the preset danger interval; wherein the currently allowed maximum projection ratio is the maximum projection ratio allowed under the current internal temperature of the camera; wherein the projection ratio represents the ratio of the camera's continuous projection time to the total camera power-on time within a working cycle; The second determination module is used to determine to execute one of the following response modes based on the currently allowed maximum vote ratio: not responding to the user's request, responding to the user's request immediately, and responding to the user's request after a period of sleep.
10. A computer device comprising a memory and a processor, wherein the memory stores computer-readable instructions, characterized in that: When the computer-readable instructions are executed by the processor, the processor is caused to perform the 3D camera temperature control method according to any one of claims 1 to 7.
