Method, device and computer-readable storage medium for generating adjustment parameters
By generating curved adjustment parameters, distinguishing between target and non-target adjustment ranges, the problem of low adjustment efficiency in the prior art is solved, and a fast and accurate adjustment effect is achieved.
Patent Information
- Application Number
- CN202111496647.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-07
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2041-12-07
AI Technical Summary
During the functional adjustment process of existing electrical and electronic products, there are shortcomings in terms of rapid reaching the target adjustment range and synchronous and precise adjustment, resulting in low adjustment efficiency.
By generating curved adjustment parameters, distinguishing between target adjustment range and non-target adjustment range, setting more adjustment points in the target range, and setting fewer adjustment points in the non-target range, so as to quickly skip the non-target range and improve adjustment efficiency.
It quickly skips the non-target adjustment range during product adjustment, improves adjustment efficiency, and enables the product to reach the target adjustment range faster and more accurately.
Smart Images

Figure CN114442495B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a method and device for generating an adjustment parameter and a computer-readable storage medium. Background Art
[0002] The electrical and electronic products currently available on the market need to be adjusted during use, but the current adjustment method is relatively extensive, and there are deficiencies in achieving rapid target adjustment range and synchronous precise adjustment. Common examples of functional adjustment are as follows: home televisions have volume adjustment, display brightness and contrast adjustment; air conditioners have temperature adjustment; industrial microscopes have focal length adjustment; motors and speed change systems have speed adjustment, etc. In actual use, the product to be used generally has a suitable target adjustment range (i.e., setting range), and this target adjustment range may have a certain fluctuation range due to objective conditions. The similar adjustment process of current products on the market uses graded linear adjustment. The disadvantage of this method is that the speed of coarse adjustment to the target adjustment range is not ideal, and the efficiency of adjusting the product is low in actual applications. Summary of the invention
[0003] The embodiments of the present invention provide a method and device for generating an adjustment parameter and a computer-readable storage medium, aiming to solve the technical problem of how to improve the efficiency of adjusting a product.
[0004] An embodiment of the present invention provides a method for generating an adjustment parameter, and the method for generating an adjustment parameter comprises the following steps:
[0005] Obtaining a first number of adjustment points and a second number of adjustment points, wherein the first number of adjustment points corresponds to a target adjustment range, the second number of adjustment points corresponds to a non-target adjustment range, the first number of adjustment points is greater than or equal to a preset number, and the second number of adjustment points is less than a preset number;
[0006] Obtain a first target curve corresponding to the first number of adjustment points, and obtain a second target curve corresponding to the second number of adjustment points, the first target curve consisting of first continuous points with a slope less than or equal to a preset slope, and the second target curve consisting of second continuous points with a slope greater than a preset slope.
[0007] The target adjustment range is associated with the first continuous point according to the first target curve, and the non-target adjustment range is associated with the second continuous point according to the second target curve, so as to obtain an adjustment parameter for selecting the adjustment range.
[0008] In one embodiment, the step of obtaining a first target curve corresponding to the first number of adjustment points and the step of obtaining a second target curve corresponding to the second number of adjustment points include:
[0009] Determining whether the first target curve and the second target curve exist in preset curves;
[0010] When the first target curve and the second target curve exist in the curve, the first target curve and the second target curve are acquired.
[0011] In one embodiment, the step of determining whether the first target curve and the second target curve exist in the preset curves includes:
[0012] determining whether there are a number of the first consecutive points in the curve corresponding to the number of the first adjustment points, and determining whether there are a number of the second consecutive points in the curve corresponding to the number of the second adjustment points;
[0013] When the first continuous point exists in the curve and the second continuous point exists in the curve, the line segment where the first continuous point is located in the curve is used as the first target curve, and the line segment where the second continuous point is located in the curve is used as the second target curve.
[0014] In one embodiment, the step of obtaining the number of first adjustment points and the number of second adjustment points includes:
[0015] Get the adjustment range;
[0016] Determining the target adjustment range and the non-target adjustment range in the adjustment range;
[0017] The first number of adjustment points is acquired according to the target adjustment range, and the second number of adjustment points is determined according to the non-target adjustment range.
[0018] In one embodiment, the adjustment range includes the focal length range of the lens of the two-dimensional microscope.
[0019] In one embodiment, the adjustment range includes the contrast of the display screen, a brightness value range, a volume value range, and a color vividness range.
[0020] In one embodiment, the step of determining the target adjustment range and the non-target adjustment range in the adjustment range includes:
[0021] The target adjustment range whose application times are greater than or equal to the preset times is determined in the adjustment range, and the non-target adjustment range whose application times are less than the preset times is determined in the adjustment range.
[0022] In one embodiment, after the step of associating the target adjustment range with the first continuous point according to the first target curve and associating the non-target adjustment range with the second continuous point according to the second target curve to obtain an adjustment parameter for selecting the adjustment range, the method further includes:
[0023] When the regeneration instruction is received, the first number of adjustment points and the second number of adjustment points are generated according to the parameters carried by the generation instruction, and the steps of obtaining the first target curve corresponding to the first number of adjustment points and obtaining the second target curve corresponding to the second number of adjustment points are returned to execute.
[0024] An embodiment of the present invention also provides a device for generating adjustment parameters, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, it implements the various steps of the method for generating adjustment parameters as described above.
[0025] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for generating adjustment parameters as described above are implemented.
[0026] In the technical solution of this embodiment, the device for generating adjustment parameters obtains the first number of adjustment points and the second number of adjustment points, the first number of adjustment points corresponds to the target adjustment range, the second number of adjustment points corresponds to the non-target adjustment range, the first number of adjustment points is greater than or equal to the preset number, and the second number of adjustment points is less than the preset number; obtains the first target curve corresponding to the first number of adjustment points, and obtains the second target curve corresponding to the second number of adjustment points, the first target curve is composed of first continuous points with a slope less than or equal to the preset slope, and the second target curve is composed of second continuous points with a slope greater than the preset slope. The target adjustment range is associated with the first continuous points according to the first target curve, and the non-target adjustment range is associated with the second continuous points according to the second target curve, so as to obtain the adjustment parameters for selecting the adjustment range. Since the existing adjustment parameters are generated based on straight lines, the number of adjustment points corresponding to each adjustment range is constant, and therefore, the target adjustment range and the non-target adjustment range are not distinguished. The present invention uses a curve to generate adjustment parameters, wherein a smaller number of adjustment points is set in the non-target adjustment range, and a larger number of adjustment points is set in the target adjustment range. In this way, when the adjustment parameters are used to control the product, the non-target adjustment range can be quickly skipped, thereby improving the efficiency of adjusting the product. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 paying creative work.
[0028] Figure 1 A schematic diagram of the hardware architecture of a device for generating adjustment parameters according to an embodiment of the present invention;
[0029] Figure 2 It is a flow chart of a first embodiment of a method for generating adjustment parameters of the present invention;
[0030] Figure 2A A reference diagram of a first embodiment of a method for generating adjustment parameters of the present invention;
[0031] Figure 2B A reference diagram of a first embodiment of a method for generating adjustment parameters of the present invention;
[0032] Figure 2C A reference diagram of a first embodiment of a method for generating adjustment parameters of the present invention;
[0033] Figure 3 This is a detailed flow chart of step S20 of the second embodiment of the method for generating adjustment parameters of the present invention;
[0034] Figure 4 This is a detailed flow chart of step S10 of the third embodiment of the method for generating adjustment parameters of the present invention;
[0035] Figure 5 This is a detailed flow chart of step S10 of the fourth embodiment of the method for generating adjustment parameters of the present invention;
[0036] Figure 6 FIG. 5 is a flow chart of a fifth embodiment of a method for generating adjustment parameters of the present invention. DETAILED DESCRIPTION
[0037] In order to better understand the above technical solution, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0038] The main solution of the present invention is: the generating device of the adjustment parameter obtains the first adjustment point quantity and the second adjustment point quantity, the first adjustment point quantity corresponds to the target adjustment range, the second adjustment point quantity corresponds to the non-target adjustment range, the first adjustment point quantity is greater than or equal to the preset quantity, and the second adjustment point quantity is less than the preset quantity; obtains the first target curve corresponding to the first adjustment point quantity, and obtains the second target curve corresponding to the second adjustment point quantity, the first target curve is composed of first continuous points with a slope less than or equal to the preset slope, and the second target curve is composed of second continuous points with a slope greater than the preset slope. The target adjustment range is associated with the first continuous points according to the first target curve, and the non-target adjustment range is associated with the second continuous points according to the second target curve, so as to obtain the adjustment parameter for selecting the adjustment range.
[0039] Since the existing adjustment parameters are generated based on straight lines, the number of adjustment points corresponding to each adjustment range is constant, and therefore, the target adjustment range and the non-target adjustment range are not distinguished. The present invention uses a curve to generate adjustment parameters, wherein a smaller number of adjustment points is set in the non-target adjustment range, and a larger number of adjustment points is set in the target adjustment range. In this way, when the adjustment parameters are used to control the product, the non-target adjustment range can be quickly skipped, thereby improving the efficiency of adjusting the product.
[0040] As an implementation method, the generating device of the adjustment parameter can be as follows: Figure 1 .
[0041] The embodiment of the present invention relates to a device for generating adjustment parameters, which includes: a processor 101, such as a CPU, a memory 102, and a communication bus 103. The communication bus 103 is used to realize connection and communication between these components.
[0042] The memory 102 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. Figure 1 , the memory 103 as a computer-readable storage medium may include a detection program; and the processor 101 may be used to call the detection program stored in the memory 102 and perform the following operations:
[0043] Obtaining a first number of adjustment points and a second number of adjustment points, wherein the first number of adjustment points corresponds to a target adjustment range, the second number of adjustment points corresponds to a non-target adjustment range, the first number of adjustment points is greater than or equal to a preset number, and the second number of adjustment points is less than a preset number;
[0044] Obtain a first target curve corresponding to the first number of adjustment points, and obtain a second target curve corresponding to the second number of adjustment points, the first target curve consisting of first continuous points with a slope less than or equal to a preset slope, and the second target curve consisting of second continuous points with a slope greater than a preset slope.
[0045] The target adjustment range is associated with the first continuous point according to the first target curve, and the non-target adjustment range is associated with the second continuous point according to the second target curve, so as to obtain an adjustment parameter for selecting the adjustment range.
[0046] In one embodiment, the processor 101 may be used to call the detection program stored in the memory 102 and perform the following operations:
[0047] Determining whether the first target curve and the second target curve exist in preset curves;
[0048] When the first target curve and the second target curve exist in the curve, the first target curve and the second target curve are acquired.
[0049] In one embodiment, the processor 101 may be used to call the detection program stored in the memory 102 and perform the following operations:
[0050] determining whether there are a number of the first consecutive points in the curve corresponding to the number of the first adjustment points, and determining whether there are a number of the second consecutive points in the curve corresponding to the number of the second adjustment points;
[0051] When the first continuous point exists in the curve and the second continuous point exists in the curve, the line segment where the first continuous point is located in the curve is used as the first target curve, and the line segment where the second continuous point is located in the curve is used as the second target curve.
[0052] In one embodiment, the processor 101 may be used to call the detection program stored in the memory 102 and perform the following operations:
[0053] Get the adjustment range;
[0054] Determining the target adjustment range and the non-target adjustment range in the adjustment range;
[0055] The first number of adjustment points is acquired according to the target adjustment range, and the second number of adjustment points is determined according to the non-target adjustment range.
[0056] In one embodiment, the processor 101 may be used to call the detection program stored in the memory 102 and perform the following operations:
[0057] The target adjustment range whose application times are greater than or equal to the preset times is determined in the adjustment range, and the non-target adjustment range whose application times are less than the preset times is determined in the adjustment range.
[0058] In one embodiment, the processor 101 may be used to call the detection program stored in the memory 102 and perform the following operations:
[0059] When the regeneration instruction is received, the first number of adjustment points and the second number of adjustment points are generated according to the parameters carried by the generation instruction, and the steps of obtaining the first target curve corresponding to the first number of adjustment points and obtaining the second target curve corresponding to the second number of adjustment points are returned to execute.
[0060] In the technical solution of this embodiment, the device for generating adjustment parameters obtains the first number of adjustment points and the second number of adjustment points, the first number of adjustment points corresponds to the target adjustment range, the second number of adjustment points corresponds to the non-target adjustment range, the first number of adjustment points is greater than or equal to the preset number, and the second number of adjustment points is less than the preset number; obtains the first target curve corresponding to the first number of adjustment points, and obtains the second target curve corresponding to the second number of adjustment points, the first target curve is composed of first continuous points with a slope less than or equal to the preset slope, and the second target curve is composed of second continuous points with a slope greater than the preset slope. The target adjustment range is associated with the first continuous points according to the first target curve, and the non-target adjustment range is associated with the second continuous points according to the second target curve, so as to obtain the adjustment parameters for selecting the adjustment range. Since the existing adjustment parameters are generated based on straight lines, the number of adjustment points corresponding to each adjustment range is constant, and therefore, the target adjustment range and the non-target adjustment range are not distinguished. The present invention uses a curve to generate adjustment parameters, wherein a smaller number of adjustment points is set in the non-target adjustment range, and a larger number of adjustment points is set in the target adjustment range. In this way, when the adjustment parameters are used to control the product, the non-target adjustment range can be quickly skipped, thereby improving the efficiency of adjusting the product.
[0061] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0062] Reference Figure 2 , Figure 2 The first embodiment of the method for generating adjustment parameters of the present invention comprises the following steps:
[0063] Step S10, obtaining the first number of adjustment points and the second number of adjustment points, wherein the first number of adjustment points corresponds to the target adjustment range, the second number of adjustment points corresponds to the non-target adjustment range, the first number of adjustment points is greater than or equal to a preset number, and the second number of adjustment points is less than a preset number.
[0064] In this embodiment, the target adjustment range is an ideal range for adjusting and controlling the product, and the non-target adjustment range is an ideal range for adjusting and controlling the product. The first adjustment point number is the number of adjustment points for selecting optional gear values within the target adjustment range, and the second adjustment point number is the number of adjustment points for selecting optional gear values within the non-target range. For example, the volume adjustment range of the product is AC, and users often use the BC range in AC when adjusting the product. In this case, the range BC can be used as the above-mentioned target adjustment range, and AB can be used as the non-target adjustment range. If the first adjustment point number is 100, it is determined that there are 100 adjustment points for selecting gear values within the target adjustment range for the user to choose from, so as to adjust and control the volume of the product. The corresponding relationship between the second adjustment point number and the non-target adjustment range is similar. It is easy to understand that the second adjustment point number is less than the first adjustment point number. The purpose is to quickly skip the gear value in the non-target adjustment range when adjusting the product volume.
[0065] Step S20, obtaining a first target curve corresponding to the first number of adjustment points, and obtaining a second target curve corresponding to the second number of adjustment points, the first target curve consisting of first continuous points with a slope less than or equal to a preset slope, and the second target curve consisting of second continuous points with a slope greater than a preset slope.
[0066] In this embodiment, the first target curve is determined based on the number of first adjustment points and the target adjustment range, and the second target curve is determined based on the number of second adjustment points and the non-target adjustment range, for example: the interval corresponding to the target adjustment range is used as the horizontal coordinate value of the first target curve, and the continuous point interval corresponding to the number of first adjustment points is selected in the vertical coordinate as the vertical coordinate value of the first target curve. The second target curve is obtained in the same way.
[0067] Step S30: associating the target adjustment range with the first continuous point according to the first target curve, and associating the non-target adjustment range with the second continuous point according to the second target curve, so as to obtain adjustment parameters for selecting the adjustment range.
[0068] In this embodiment, the first continuous points are points on the first target curve, and the second continuous points are points on the second target curve. The number of the first continuous points depends on the number of gear values to be set in the target adjustment range, that is, the number of first adjustment points, and the number of the second continuous points depends on the number of gear values to be set in the non-target adjustment range, that is, the number of second adjustment points. The first target curve and the second target curve are both selected from the preset curves.
[0069] The electrical and electronic products currently available on the market need to be adjusted during use, but the current adjustment method is relatively extensive, and there are deficiencies in achieving rapid target area and synchronous precise adjustment. Common examples of functional adjustment are as follows: household televisions have volume adjustment, display brightness and contrast adjustment; air conditioners have temperature adjustment; industrial microscopes have focal length adjustment; motors and speed change systems have speed adjustment, etc. In actual use, the product to be used generally has a suitable target range (i.e., setting range), and this target range may have a certain fluctuation range due to objective conditions. There are currently two types of similar adjustment processes for products on the market: one is to use linear adjustment, that is, to divide the adjustment process into n equal parts, and each adjustment action realizes a pitch adjustment, and realizes the adjustment process 1 / n, so as to realize the adjustment function in this way. The disadvantage of this method is that the adjustment process is slow, and after reaching the target range, there is no way to fine-tune within the target range to find a more accurate target point. The other method uses graded linear adjustment, and each level of the adjustment process is divided into n equal parts, and each adjustment action realizes a pitch adjustment, and realizes the adjustment process 1 / n, so as to realize a certain level of adjustment function in this way. Usually, the coarse adjustment function is used to achieve rapid adjustment to reach the target area; it is converted to the fine adjustment function to achieve precise adjustment in a small range. The adjustment function unit can be implemented using independent coarse adjustment mechanisms and fine adjustment mechanisms; it can also be electronically set to coarse adjustment or fine adjustment by switching the coarse adjustment and fine adjustment switches; and the motor rotation arc or speed corresponding to an adjustment pitch is set in the program. The disadvantages of this method are: coarse adjustment to the target range is faster than the first method, but it is still not ideal; from coarse adjustment to fine adjustment, a switching action is required (such as using a switch button, or switching from a coarse adjustment mechanism to a fine adjustment mechanism); within the fine adjustment range, the adjustment accuracy is fixed.
[0070] Optionally, in order to solve the above system problems, the present invention provides a method for generating adjustment parameters, which mainly achieves the goal of fast + precise control. The curve function is introduced into the target adjustment system; the target working area of the adjustment system is set in the flat area of the curve slope, so as to achieve the fine adjustment under the condition of equal single pitch adjustment; the non-target working area in the adjustment stroke is set in the part with steep curve slope, so as to achieve the rapid execution of the adjustment action under the condition of equal single pitch adjustment, so as to achieve the goal of fast adjustment. In addition to the above advantages, the system has the following functions: setting the curve storage library; setting the curve parameter editing function and the drag editing function; setting the initial target working area range; setting the number of adjustment sections; setting single-step adjustment or continuous adjustment; executing the adjustment action; in the actual adjustment process, if the target working area initially set has deviations, a new target area can be directly set or selected; or return to the initial target setting position for resetting; saving the settings of the applicable adjustment parameters for subsequent calls; the hardware implementation of this system can be a mechanism unit, such as a servo motor; or an electronic unit, such as an analog circuit or a digital circuit or a single-chip microcomputer / CPU. From the above description, it can be seen that there is still no method for generating adjustment parameters on the market. Based on the above analysis, a method for generating adjustment parameters of the present invention is finally developed.
[0071] Optionally, the present invention provides a method for generating an adjustment parameter. To explain the purpose, implementation scheme and effect of the present invention in detail, the present invention is described in detail below.
[0072] It should be understood that the embodiments described herein are only used to explain the present invention, and the content of the present invention is not limited thereto. The method for generating the adjustment parameters of the present invention is introduced into the two-dimensional microscopic measurement system.
[0073] The system includes:
[0074] 1. Microscope lens;
[0075] 2. Lens focal length adjustment stepper motor;
[0076] 3. Computer control and display terminal;
[0077] 4. Shift and focus keyboard.
[0078] The workpiece to be measured has a certain thickness, the two-dimensional microscope has a fixed focal length, and the focusing displacement system has an initial position and a maximum displacement position.
[0079] According to the "flow chart of a method for generating adjustment parameters", the following steps are included:
[0080] First: Set the workpiece thickness, lens initial position --- fixed value, lens focal length --- fixed value, the system calculates the target working height of the lens; consider the workpiece warpage, surface roughness and other parameters, appropriately relax the lens target working range; get the target working area to be set;
[0081] Second: Set the number of adjustment sections, such as 100. That is, the value range of X is 1-99, and the number jumps by 1 for each section;
[0082] Third: Set the adjustment curve, select the target curve function from the curves to be selected in the system. Function curve slope (the tangent slope reflects the corresponding system response change for each pitch adjustment);
[0083] Fourth: Perform the adjustment action preliminarily to confirm that the out-of-focus area can be skipped in the process of adjusting fewer pitches; the focus area can be finely adjusted with more graded sections;
[0084] Fifth: If it meets the requirements, save this adjustment mode; if not, return and repeat the adjustment process.
[0085] In the above case, the regulated unit is a servo motor. In the implementation case, the regulated unit can also be a digital circuit: such as the contrast adjustment of a TV, the adjustable range is 1024 levels, that is, 216. Through the patented adjustment method, the undesirable working area can be quickly skipped to reach the target working range; and after fine debugging, the target working adjustment section number can be found.
[0086] Further, the specific beneficial effects can be referred to Figure 2A , Figure 2B as well as Figure 2C .
[0087] Figure 2A Displays the linear relationship between drive command and execution action in linear regulation and graded linear regulation modes;
[0088] Figure 2B It is shown as a method of generating adjustment parameters;
[0089] Figure 2C Shown is a flow chart of a method for generating an adjustment parameter;
[0090] Contents of the picture:
[0091] 1. Linear regulation mode relationship;
[0092] 2. Rough adjustment linear adjustment mode relationship;
[0093] 3. Fine-tune the linear adjustment mode relationship;
[0094] 4. Patent regulation model relationship;
[0095] 5. Patented regulation mode target area;
[0096] 6. Patented adjustment mode to quickly skip areas.
[0097] In the technical solution of this embodiment, since the existing adjustment parameters are generated based on straight lines, the number of adjustment points corresponding to each adjustment range is consistent, and therefore, the target adjustment range and the non-target adjustment range are not distinguished. The present invention uses a curve to generate adjustment parameters, wherein a smaller number of adjustment points is set in the non-target adjustment range, and a larger number of adjustment points is set in the target adjustment range. In this way, when using the adjustment parameters to control the product, the non-target adjustment range can be quickly skipped, thereby improving the efficiency of adjusting the product.
[0098] Reference Figure 3 , Figure 3 This is a second embodiment of the method for generating adjustment parameters of the present invention, based on the first embodiment, step S20 includes:
[0099] Step S21, determining whether the first target curve and the second target curve exist in preset curves.
[0100] Step S22: when the first target curve and the second target curve exist in the curve, obtain the first target curve and the second target curve.
[0101] In this embodiment, the first target curve is obtained by selecting a similar curve based on the number of first adjustment points and the target adjustment range in a preset curve, and the second target curve is obtained by selecting a similar curve based on the number of second adjustment points and the non-target adjustment range in a preset curve.
[0102] Optionally, for the selection of continuous points, a preset continuous point layout method may be used, wherein the preset continuous point layout method is associated with a target curve including a first target curve and a second target curve. When the target curve is determined in the preset curve based on the first target curve and the second target curve, the first continuous point and the second continuous point may be determined based on the continuous point layout method corresponding to the target curve, thereby avoiding the occurrence of unreasonable adjustment methods. For example, if the non-target adjustment range is 10-50, and only five continuous points are set for correspondence, if the continuous points are randomly selected, the non-target adjustment range corresponding to the first four continuous points may be 10-20. At this time, the last adjustment point directly corresponds to 50, which is obviously unreasonable. Therefore, when determining the target curve based on the first target curve and the second target curve, the first continuous point corresponding to the target curve is associated with the target adjustment range, and the second continuous point corresponding to the target curve is associated with the non-target adjustment range.
[0103] Optionally, it is determined whether there are a number of the first continuous points in the curve corresponding to the number of the first adjustment points, and it is determined whether there are a number of the second continuous points in the curve corresponding to the number of the second adjustment points; when the first continuous points exist in the curve and the second continuous points exist in the curve, the line segment in the curve where the first continuous points are located is used as the first target curve, and the line segment in the curve where the second continuous points are located is used as the second target curve.
[0104] In the technical solution of this embodiment, when a preset curve is used to generate adjustment parameters, the preset curve can make the adjustment parameters more standardized compared to a randomly generated curve. Furthermore, by limiting the slope of the curve, the parameter value corresponding to each adjustment point corresponding to the target adjustment range and its adjacent adjustment points can be changed less than too much, thereby achieving fine adjustment of the product. On the contrary, the parameter value corresponding to each adjustment point corresponding to the non-target adjustment range and its adjacent adjustment points can be changed less than too little. It is easy to understand that the first target curve and the second target curve are continuous curves. Therefore, a target curve containing the first target curve and the second target curve can be found in the preset curve to obtain the first target curve and the second target curve.
[0105] Reference Figure 4 , Figure 4 The third embodiment of the method for generating adjustment parameters of the present invention is based on any one of the first to second embodiments, and step S10 includes:
[0106] Step S11, obtaining the adjustment range.
[0107] In this embodiment, the adjustment range refers to the upper limit and lower limit corresponding to the adjustment parameters of the product. For example, the adjustment parameters include 120 consecutive points, where if the first point corresponds to the minimum value of the adjustment range and the 120th point corresponds to the maximum value of the adjustment range, when the adjustment range value corresponding to the first point is 0 and the adjustment range value corresponding to the 120th point is 100, the adjustment range is determined to be 0-100.
[0108] Optionally, the adjustment range includes the focal length range of the lens of the two-dimensional microscope.
[0109] Optionally, the adjustment range includes the contrast of the display screen, a brightness value range, a volume value range, and a color vividness range.
[0110] Step S12, determining the target adjustment range and the non-target adjustment range in the adjustment range.
[0111] Step S13: acquiring the first adjustment point quantity according to the target adjustment range, and determining the second adjustment point quantity according to the non-target adjustment range.
[0112] In this embodiment, the target adjustment range and the non-target adjustment range may be determined by manual input or directly acquired by a machine.
[0113] In the technical solution of this embodiment, the user can customize the target adjustment range and the non-target adjustment range, and can also directly customize the number of first adjustment points and the number of second adjustment points. Compared with the existing method of generating adjustment parameters, the flexibility of generating adjustment parameters is improved.
[0114] Reference Figure 5 , Figure 5 The fourth embodiment of the method for generating adjustment parameters of the present invention is based on any one of the first to third embodiments, and step S12 includes:
[0115] Step S121, determining the target adjustment range whose application times are greater than or equal to a preset number of times in the adjustment range, and determining the non-target adjustment range whose application times are less than a preset number of times in the adjustment range.
[0116] Optionally, the above-mentioned application times can be determined based on the user's control adjustment information of the product. For example, if the user adjusts the control to A and B more often each time, the target adjustment range can be set to AB, and the remaining adjustment range can be judged as a non-target adjustment range.
[0117] Optionally, the above-mentioned number of applications is determined based on big data collected from each user's control and adjustment of the same type of product.
[0118] In the technical solution of this embodiment, the target adjustment range and the non-target adjustment range can be determined based on big data to determine the number of times the user uses the adjustment range of the product, so that the target adjustment range and the non-target adjustment range are more suitable for the user, thereby improving the user experience.
[0119] Reference Figure 6 , Figure 6 The fifth embodiment of the method for generating adjustment parameters of the present invention is based on any one of the first to fourth embodiments, and after step S30, further includes:
[0120] Step S40, when the regeneration instruction is received, the first number of adjustment points and the second number of adjustment points are generated according to the parameters carried by the generation instruction, and the steps of obtaining the first target curve corresponding to the first number of adjustment points and obtaining the second target curve corresponding to the second number of adjustment points are returned to execute.
[0121] In the technical solution of this embodiment, the user can input corresponding parameters multiple times to generate new adjustment parameters. If the user is not satisfied with the current adjustment parameters, they can be adjusted in time, thereby improving the user experience.
[0122] To achieve the above objectives, an embodiment of the present invention further provides a device for generating adjustment parameters, the device for generating adjustment parameters comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the various steps of the method for generating adjustment parameters as described above when executing the computer program.
[0123] To achieve the above objective, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various steps of the method for generating adjustment parameters as described above are implemented.
[0124] 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 network configuration product program implemented in one or more computer-usable computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0125] The present invention is described with reference to flowcharts and / or block diagrams of methods, apparatus (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 generate 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.
[0126] 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.
[0127] 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.
[0128] It should be noted that in the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claim. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names.
[0129] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0130] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for generating an adjustment parameter, characterized in that: The method for generating the adjustment parameters comprises the following steps: Obtaining an adjustment range; wherein the adjustment range includes a focal length range of a lens of a secondary microscope, and / or a contrast, brightness value range, volume value range, and color vividness range of a display screen; Determining a target adjustment range and a non-target adjustment range in the adjustment range; Acquire a first number of adjustment points according to the target adjustment range, and determine a second number of adjustment points according to the non-target adjustment range, wherein the first number of adjustment points corresponds to the target adjustment range, the second number of adjustment points corresponds to the non-target adjustment range, the first number of adjustment points is greater than or equal to a preset number, and the second number of adjustment points is less than a preset number; Obtaining a first target curve corresponding to the first number of adjustment points, and obtaining a second target curve corresponding to the second number of adjustment points, wherein the first target curve is composed of first continuous points having a slope less than or equal to a preset slope, and the second target curve is composed of second continuous points having a slope greater than a preset slope; The target adjustment range is associated with the first continuous point according to the first target curve, and the non-target adjustment range is associated with the second continuous point according to the second target curve, so as to obtain an adjustment parameter for selecting the adjustment range.
2. The method for generating adjustment parameters according to claim 1, characterized in that: The step of obtaining a first target curve corresponding to the first number of adjustment points and obtaining a second target curve corresponding to the second number of adjustment points includes: Determining whether the first target curve and the second target curve exist in preset curves; When the first target curve and the second target curve exist in the curve, the first target curve and the second target curve are acquired.
3. The method for generating adjustment parameters according to claim 2, characterized in that: The step of determining whether the first target curve and the second target curve exist in the preset curves includes: determining whether there are a number of the first consecutive points in the curve corresponding to the number of the first adjustment points, and determining whether there are a number of the second consecutive points in the curve corresponding to the number of the second adjustment points; When the first continuous point exists in the curve and the second continuous point exists in the curve, the line segment where the first continuous point is located in the curve is used as the first target curve, and the line segment where the second continuous point is located in the curve is used as the second target curve.
4. The method for generating adjustment parameters according to claim 1, characterized in that: The step of determining the target adjustment range and the non-target adjustment range in the adjustment range comprises: The target adjustment range whose application times are greater than or equal to the preset times is determined in the adjustment range, and the non-target adjustment range whose application times are less than the preset times is determined in the adjustment range.
5. The method for generating adjustment parameters according to claim 1, characterized in that: After the step of associating the target adjustment range with the first continuous point according to the first target curve, and associating the non-target adjustment range with the second continuous point according to the second target curve to obtain an adjustment parameter for selecting an adjustment range, the method further includes: When the regeneration instruction is received, the first number of adjustment points and the second number of adjustment points are generated according to the parameters carried by the generation instruction, and the steps of obtaining the first target curve corresponding to the first number of adjustment points and obtaining the second target curve corresponding to the second number of adjustment points are returned to execute.
6. A device for generating an adjustment parameter, characterized in that: The device for generating the adjustment parameters includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method for generating the adjustment parameters as claimed in any one of claims 1 to 5 when executing the computer program.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for generating adjustment parameters according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Control method and device of electrical equipment, storage medium and processor
CN110377197A
Method and device for generating display parameter curve, mobile terminal and storage medium
CN110971761A