An intelligent code visualization management method, system and terminal
By analyzing the user image and selecting target indicator position and speed difference, dynamically adjusting the display details of code visual graphics, solving the problem of simplified graphics information under complex code architecture, and improving the convenience and clarity of code management.
Patent Information
- Application Number
- CN202510400057.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-01
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2045-04-01
AI Technical Summary
When the code architecture is complex, it is difficult for the prior art to simplify the display of code visual graphics without losing information, making it difficult for users to clearly understand the specific code represented by each visual graphics.
By obtaining the user's user image, determining the user's existence and obtaining the indicator position and speed difference of the selected target, the display device is controlled to enlarge or reduce the detailed or brief information of the visual graphics according to the speed difference, thereby assisting the user in understanding the specific situation of the code.
It realizes the zoom-in display of detailed information when the user selects a visual graphics, and shrinks when unchecked to save space, improving the convenience and clarity of code visualization management.
Smart Images

Figure CN119902758B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of visualization technologies, and particularly to an intelligent code visualization management method, system, and terminal. Background Art
[0002] Code visualization management refers to managing the version, branches, commit history, etc. of code through a graphical interface or visualization tool, making code management more intuitive and convenient.
[0003] In the prior art, visualization technologies are often used to integrate multiple related pieces of code into a single visualization graph, thereby converting the cumbersome code into a tree graph through the visualization graph for display, and further helping staff quickly understand the code architecture and assisting them in quickly locating and searching for code.
[0004] When the code architecture is relatively complex, it is easy to result in a relatively large number of visualization graphs, thereby causing the information displayed in each visualization graph to be relatively brief, and further causing personnel to be unable to clearly understand the specific situation of the code represented by each visualization graph. Summary of the Invention
[0005] In order to improve the convenience of code visualization management and enable a clear understanding of the specific situation of the code represented by each visualization graph, the present invention provides an intelligent code visualization management method, system, and terminal.
[0006] In a first aspect, the present invention provides an intelligent code visualization management method, adopting the following technical solution:
[0007] An intelligent code visualization management method includes:
[0008] Obtain a user image of the user;
[0009] Judge whether there is a user according to the user image;
[0010] When there is a user, obtain a preset indication position of a selection target;
[0011] Determine an indication speed at which the selection target moves according to the indication position;
[0012] Determine a speed difference of the speed within a unit time according to the indication speed;
[0013] When the speed difference is lower than a preset capture threshold, determine an indication number according to the indication position;
[0014] Control a preset display device to magnify and display detailed information of a preset visualization graph according to the indication number;
[0015] When the speed difference is higher than a preset detachment threshold, control the preset display device to shrink and display brief information of the preset visualization graph according to the indication number.
[0016] By adopting the above technical solution, when the user selects and checks a visual graph, the visual graph is enlarged to display the specific information of the code represented by the visual graph, so as to assist the user in understanding the specific situation of the code represented by each visual graph, and when the user cancels the selection, the visual graph is reduced to save the display space, thereby improving the convenience of code visual management.
[0017] Optionally, it further includes:
[0018] When the indication speed is lower than a preset attention threshold, determine the user's visual focus according to the user image;
[0019] Determine the indication distance according to the visual focus and the indication position;
[0020] When the indication distance exceeds a preset visual threshold, determine the visual number according to the visual focus;
[0021] Control a preset display device to enlarge and display the detailed information of a preset visual graph according to the visual number, and determine the graph position of the visual graph according to the visual number;
[0022] Determine the graph distance according to the visual focus and the graph position;
[0023] When the graph distance exceeds a preset visual threshold, control the preset display device to reduce and display the brief information of the preset visual graph according to the visual number.
[0024] By adopting the above technical solution, when the user's attention deviates from the selection mark, judge the user's visual focus according to the user's eye movement condition, so as to enlarge the visual graph at the visual focus, thereby assisting the user in understanding the specific situation of the code represented by each visual graph and improving the convenience of code visual management.
[0025] Optionally, it further includes:
[0026] When the indication distance exceeds a preset visual threshold, determine the number of people according to the user image;
[0027] When the number of people exceeds a preset individual threshold, judge whether the selection mark is moving according to the indication position;
[0028] When the selection mark is moving, determine the operation position of the operator operating the selection mark according to the user image;
[0029] Determine the visual focus based on the operation position.
[0030] By adopting the above technical solution, when multiple persons view the visualization graph, the visualization graph is selected based on the attention of the person who operates and selects the target, thereby reducing the situation where multiple persons interfere with the selection result of the visualization graph.
[0031] Optionally, it further includes a graph display method, and the graph display method includes:
[0032] When the speed difference is lower than a preset capture threshold, determine the ambient light color according to the user image;
[0033] Determine the contrast light color according to the ambient light color;
[0034] Control a preset display device according to the indication number to display a preset visualization graph in the contrast light color, and determine the text color according to the contrast light color;
[0035] Control a preset display device according to the indication number to display the detailed information of a preset visualization graph in the text color.
[0036] By adopting the above technical solution, when the color of the ambient light is similar to the color of the visualization graph, it is likely to cause the situation that the enlarged visualization graph is blurred. Adjust the color of the visualization graph according to the color of the ambient light, thereby improving the contrast between the visualization graph and the environment, and further assisting the user to understand the specific situation of the code represented by each visualization graph.
[0037] Optionally, the graph display method further includes:
[0038] When the speed difference is lower than a preset capture threshold, determine the information length of the detailed information according to the indication number;
[0039] Determine the required area of the visualization graph according to the information length;
[0040] Determine the initial area of the visualization graph according to the indication number;
[0041] Determine the magnification ratio according to the required area and the initial area;
[0042] Control a preset display device according to the indication number to magnify a preset visualization graph according to the magnification ratio.
[0043] By adopting the above technical solution, when the user selects a visualization graph, determine the magnification ratio of the enlarged visualization graph according to the length of the specific information represented by the visualization graph, thereby appropriately magnifying the visualization graph to completely display the specific information of the code.
[0044] Optionally, the graph display method further includes:
[0045] Calculate the difference between the required area and the initial area, and define it as the enlarged area;
[0046] Determine the free area around the visualization graph based on the indication number;
[0047] When the free area is lower than the magnification area, calculate the difference between the magnification area and the free area, and define it as the reduction area;
[0048] Determine the graph area according to the initial area, the free area, and the preset display area;
[0049] Determine the reduction ratio according to the graph area and the reduction area;
[0050] Control the preset display device to synchronously reduce other visualization graphs except the indication number according to the reduction ratio.
[0051] By adopting the above technical solution, when the remaining space around the visualization graph is not enough for the visualization graph to be magnified according to the magnification ratio, control other visualization graphs to be synchronously reduced according to the insufficient part, so as to expand the remaining space around the visualization graph.
[0052] Optionally, it further includes a light shielding method, and the light shielding method includes:
[0053] When the speed difference is lower than the preset capture threshold, obtain the light intensity of the environment;
[0054] When the light intensity is higher than the preset stimulation threshold, determine the user position according to the user image;
[0055] Determine the reflection interval in which the light reflection affects the user according to the user position;
[0056] Determine the incident angle of the light according to the user image;
[0057] When the incident angle falls into the reflection interval, determine the occlusion height required to block the light according to the user position and the incident angle;
[0058] Determine the occlusion number according to the incident angle;
[0059] Control the preset occlusion device to rise according to the occlusion height according to the occlusion number.
[0060] By adopting the above technical solution, when the external light intensity is too high, it is easy to cause the light to be reflected onto the staff and stimulate the eyes of the staff. The light is blocked by the occlusion device, so as to reduce the situation that the light is reflected onto the eyes of the staff.
[0061] Optionally, the light shielding method further includes:
[0062] When the occlusion height is higher than the preset extension threshold, determine the user distance according to the user image;
[0063] Determine the reflection range where the light is reflected onto the user according to the incident angle and the user distance;
[0064] Determine the face area of the user according to the user image and the user distance;
[0065] Determine the offset distance according to the reflection range and the face area;
[0066] Determine the rotation angle according to the offset distance and the user distance;
[0067] Control the rotation of a preset display device according to the rotation angle.
[0068] By adopting the above technical solution, when the incident angle of the light is too large, it is easy to cause the required extension length of the shielding device to be too large, and then cause the situation that the shielding device hinders people. By rotating the display device to adjust the incident angle of the light, the situation where the light reflection affects people can be reduced.
[0069] In a second aspect, the present application provides an intelligent code visualization management system, adopting the following technical solution:
[0070] An intelligent code visualization management system, comprising:
[0071] An acquisition module, configured to acquire a user image, an indication position, and a light intensity;
[0072] A memory, configured to store the program of any one of the above intelligent code visualization management methods;
[0073] A processor, and the program in the memory can be loaded and executed by the processor.
[0074] In a third aspect, the present application provides an intelligent terminal, adopting the following technical solution:
[0075] An intelligent terminal, comprising a memory and a processor, and a computer program capable of being loaded and executed by the processor is stored on the memory, and the computer program is any one of the above intelligent code visualization management methods.
[0076] By adopting the above technical solution, when the user selects and checks a visualization graph, the visualization graph is enlarged to display the specific information of the code represented by the visualization graph, so as to assist the user in understanding the specific situation of the code represented by each visualization graph, and when the user cancels the selection, the visualization graph is reduced to save the display space, thereby improving the convenience of code visualization management.
[0077] In summary, the present application includes at least one of the following beneficial technical effects:
[0078] 1. When the user selects a visualization graph through a selection marker, the visualization graph is enlarged to display the specific information of the code represented by the visualization graph, so as to assist the user in understanding the specific situation of the code represented by each visualization graph, and when the user cancels the selection, the visualization graph is reduced to save the display space, thereby improving the convenience of code visualization management;
[0079] 2. When the user's attention deviates from the selection marker, the visual focus of the user is judged according to the user's eye rotation situation, so as to enlarge the visualization graph at the visual focus, thereby assisting the user in understanding the specific situation of the code represented by each visualization graph and improving the convenience of code visualization management;
[0080] 3. When the color of the ambient light is similar to the color of the visualization graph, it is easy to cause the enlarged visualization graph to be blurred. Adjust the color of the visualization graph according to the color of the ambient light, so as to improve the contrast between the visualization graph and the environment, and thereby assist the user in understanding the specific situation of the code represented by each visualization graph. BRIEF DESCRIPTION OF THE DRAWINGS
[0081] Figure 1 is the flow of an intelligent code visualization management method Figure 1 ;
[0082] Figure 2 is the flow of an intelligent code visualization management method Figure 2 ;
[0083] Figure 3 is the flow of an intelligent code visualization management method Figure 3 ;
[0084] Figure 4 is the flow of a graphic display method Figure 1 ;
[0085] Figure 5 is the flow of a graphic display method Figure 2 ;
[0086] Figure 6 is the flow of a graphic display method Figure 3 ;
[0087] Figure 7 is the flow of a light shielding method Figure 1 ;
[0088] Figure 8 is the flow of a light shielding method Figure 2 . DETAILED DESCRIPTION OF THE INVENTION
[0089] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention will be further described in detail below with reference to 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 used to limit the present invention.
[0090] An embodiment of the present application discloses an intelligent code visualization management method. This method is used to magnify a visualization graph to display the specific information of the code represented by the visualization graph when the user selects and checks the visualization graph, so as to assist the user in understanding the specific situation of the code represented by each visualization graph, and to reduce the visualization graph when the user cancels the selection to save the display space, thereby improving the convenience of code visualization management.
[0091] Refer to Figure 1 , an intelligent code visualization management method, including:
[0092] Step 100: Obtain the user's user image.
[0093] A visualization graph refers to a module graph obtained by integrating multiple related codes for summarizing the code function. The setting method of the visualization graph is selected by the staff according to the actual situation and will not be elaborated here. A display device refers to a device for displaying and operating the visualization graph. Generally, a computer is used as the display device. The display device is selected by the staff according to the actual situation and will not be elaborated here. A user image refers to a picture of the person operating the display device. The user image can be obtained through a camera on the display device. The obtaining method of the user image is selected by the staff according to the actual situation and will not be elaborated here.
[0094] Step 101: Determine whether there is a user according to the user image.
[0095] It can be determined whether there is a user in the user image through image recognition technology. The method for determining the user is common knowledge in the art and will not be elaborated here.
[0096] Step 102: When there is a user, obtain the indicated position of the preset selection target.
[0097] The existence of a user means that someone is operating the display device. A selection target refers to an identifier used to select a visualization graph within the display device system. Generally, a cursor is used as the selection target. The indicated position is the coordinate of the selection target on the display device screen. The obtaining methods of the selection target and its indicated position are selected by the staff according to the actual situation and will not be elaborated here.
[0098] Step 103: Determine the indicated speed of the movement of the selection target according to the indicated position.
[0099] The indicated speed refers to the moving speed of the selected target. The moving distance of the selected target within a unit time can be determined through an indicating device, and then the indicated speed can be calculated. The unit time is selected by the staff according to the actual situation and will not be elaborated here.
[0100] Step 104: Determine the speed difference of the speed within a unit time according to the indicated speed.
[0101] The speed difference refers to the change value of the indicated speed within a unit time, that is, the difference between the current indicated speed and the indicated speed before the unit time. The unit time is selected by the staff according to the actual situation and will not be elaborated here.
[0102] Step 105: When the speed difference is lower than the preset capture threshold, determine the indication number according to the indicated position.
[0103] When the staff needs to select a visualization graph, the staff manipulates the selected target to move to the visualization graph to be selected, and reduces the moving speed of the selected target when the selected target approaches the visualization graph to be selected, resulting in a negative speed difference. The capture threshold refers to the maximum value of the speed difference when the staff moves the selected target close to the visualization graph to be selected. The capture threshold is selected by the staff according to the actual situation and will not be elaborated here.
[0104] The speed difference being lower than the capture threshold represents that the selected target is approaching the visualization graph that the staff needs to select. The indication number refers to the number set manually for distinguishing visualization graphs. Each visualization graph corresponds to an indication number one by one. The indication number can be obtained by querying the graph data table. The graph data table refers to the data table that records the positions of each visualization graph and their corresponding indication numbers. The indication number of the visualization graph closest to the indicated position is obtained by querying from the graph data table.
[0105] Step 106: Control the preset display device to magnify and display the detailed information of the preset visualization graph according to the indication number.
[0106] The detailed information refers to the specific content, functions, branches, etc. of relatively long specific content such as the code represented by the visualization graph. The detailed information is selected by the staff according to the actual situation and will not be elaborated here. When a person selects a visualization graph, the selected visualization graph is magnified through the display device, and the detailed information is displayed in the magnified visualization graph to assist the staff in understanding the specific meaning and function of the code represented by the visualization graph.
[0107] Step 107: When the speed difference is higher than the preset detachment threshold, control the preset display device to reduce and display the brief information of the preset visualization graph according to the indication number.
[0108] When the staff is about to select another visualization graph, it is easy for the staff to increase the moving speed of the selection target, which will lead to an increase in the speed difference. The detachment threshold is the minimum value of the speed difference when the staff is about to select another visualization graph. The detachment threshold is selected by the staff according to the actual situation and will not be elaborated here.
[0109] The abbreviated information refers to the information with a relatively short length such as the name of the code represented by the visualization graph. The abbreviated information is selected by the staff according to the actual situation and will not be elaborated here. When the speed difference is higher than the detachment threshold, it means that the staff is about to select another visualization graph. At this time, the enlarged visualization graph is reduced to reduce the occupancy of the display space of the display device by the visualization graph, and the abbreviated information is displayed to facilitate the staff to view the overall architecture of the program through the connection relationship of the visualization graphs. The display space refers to the space on the display device for information display.
[0110] Refer to Figure 2 , an intelligent code visualization management method, further includes:
[0111] Step 108: When the indication speed is lower than the preset attention threshold, determine the visual focus of the user according to the user image.
[0112] When the attention of the staff is inconsistent with the selection target, it is easy to cause the moving speed of the selection target to decrease. The attention threshold refers to the minimum moving speed of the selection target when the attention of the staff is consistent with the selection target. The attention threshold is selected by the staff according to the actual situation and will not be elaborated here.
[0113] When the indication speed is lower than the attention threshold, it means that the attention of the staff may be inconsistent with the orientation of the selection target. The visual focus refers to the position where the staff's eyes are looking. The visual focus can be obtained by recognizing the rotation of the eyes of the personnel in the user image through image recognition technology. The recognition method of the visual focus is common knowledge in the field and will not be elaborated here.
[0114] Step 109: Determine the indication distance according to the visual focus and the indication position.
[0115] The indication distance refers to the distance between the visual focus and the indication position. The calculation method of the indication distance is common knowledge in the field and will not be elaborated here.
[0116] Step 110: When the indication distance exceeds the preset visual threshold, determine the visual number according to the visual focus.
[0117] The visual threshold refers to the maximum distance value that can be noticed by the staff's vision. The visual threshold is selected by the staff according to the actual situation and will not be elaborated here. When the indicated distance exceeds the visual threshold, it means that it is difficult for the personnel to notice the visualized graph selected by the selection mark at this time, that is, the attention of the staff has deviated from the selection mark. The visual number refers to the indication number of the visualized graph at the visual focus. The determination method of the visual number refers to the determination method of the above-mentioned indication number.
[0118] Step 111: Control the preset display device to enlarge and display the detailed information of the preset visualized graph according to the visual number, and determine the graph position of the visualized graph according to the visual number.
[0119] The graph position refers to the position information of the visualized graph corresponding to the visual number, and the graph position can be obtained by querying from the above-mentioned graph data table.
[0120] Step 112: Determine the graph distance according to the visual focus and the graph position.
[0121] The graph distance refers to the distance between the visual focus and the graph position. The calculation method of the graph distance is common knowledge for those skilled in the art and will not be elaborated here.
[0122] Step 113: When the graph distance exceeds the preset visual threshold, control the preset display device to shrink and display the brief information of the preset visualized graph according to the visual number.
[0123] When the graph distance exceeds the visual threshold, it means that the attention of the personnel has shifted. At this time, the originally enlarged visualized graph is shrunk to save the display area of the display device.
[0124] When the user's attention deviates from the selection mark, judge the user's visual focus according to the user's eye movement situation, so as to enlarge the visualized graph at the visual focus, so as to assist the user to understand the specific situation of the codes represented by each visualized graph and improve the convenience of code visualization management.
[0125] Refer to Figure 3 A method for intelligent code visualization management further includes:
[0126] Step 114: When the indicated distance exceeds the preset visual threshold, determine the number of personnel according to the user image.
[0127] The number of personnel refers to the number of staff members existing in the user image. The number of personnel can be determined by image recognition technology. The determination method of the number of personnel is common knowledge for those skilled in the art and will not be elaborated here.
[0128] Step 115: When the number of personnel exceeds the preset individual threshold, judge whether the selection mark is moving according to the indicated position.
[0129] The single threshold refers to the standard for determining whether there is only one staff member in front of the display device. Generally, the single threshold is set to 1. If the number of people exceeds the single threshold, it means that there are multiple staff members in front of the display device. It is possible to determine whether the selection mark is moving by observing the change in its indicated position. The method for judging the movement of the selection mark is common knowledge in the art and will not be elaborated here.
[0130] Step 116: When the selection mark is moving, determine the operation position of the operator who operates the selection mark based on the user image.
[0131] The movement of the selection mark indicates that a staff member is operating the selection mark at this time. The operation position refers to the position of the staff member who is operating the selection mark. It is possible to identify the operator who is operating the selection mark in the user image through body posture recognition technology, and determine the operation position based on the operator. The method for determining the operation position is common knowledge in the art and will not be elaborated here.
[0132] Step 117: Determine the visual focus based on the operation position.
[0133] When there are multiple staff members in the user image, multiple visual foci are likely to be generated, which may cause multiple corresponding visualization graphs to be enlarged. By judging the operator through the operation of the selection mark, the attention direction of the operator is used as the visual focus.
[0134] Refer to Figure 4 , the graphic display method includes:
[0135] Step 200: When the speed difference is lower than the preset capture threshold, determine the ambient light color based on the user image.
[0136] The ambient light color refers to the color of the ambient light, which can be determined through image recognition technology. The method for determining the ambient light color is common knowledge in the art and will not be elaborated here.
[0137] Step 201: Determine the contrast light color based on the ambient light color.
[0138] The contrast light color refers to the color with the maximum contrast to the ambient light color. The method for determining the contrast light color is common knowledge in the art and will not be elaborated here.
[0139] Step 202: Control the preset display device to display the preset visualization graph in the contrast light color according to the indication number, and determine the text color according to the contrast light color.
[0140] The text color refers to the color with the maximum contrast to the contrast light color selected from the preset font colors. The font colors refer to the colors such as black, white, and red pre-selected by the staff. The method for determining the text color is common knowledge in the art and will not be elaborated here.
[0141] Step 203: Control a preset display device according to the indication number to display the details of a preset visualization graph in text color.
[0142] When the color of the visualization graph is similar to the color of the ambient light, it is likely to cause the boundary of the visualization graph to be blurred. When the text color in the visualization graph is similar to the color of the ambient light, it is likely to cause the text to be blurred. Adjust the color of the visualization graph and its text according to the color of the ambient light, so as to improve the clarity of the visualization graph.
[0143] Refer to Figure 5 , the graph display method further includes:
[0144] Step 204: When the speed difference is lower than a preset capture threshold, determine the information length of the details according to the indication number.
[0145] The information length refers to the length value of the details. The method for determining the information length is common knowledge to those skilled in the art and will not be elaborated here.
[0146] Step 205: Determine the required area of the visualization graph according to the information length.
[0147] The required area refers to the minimum area value of the visualization graph required to display the information of the information length. The method for determining the required area is common knowledge to those skilled in the art and will not be elaborated here.
[0148] Step 206: Determine the initial area of the visualization graph according to the indication number.
[0149] The initial area refers to the total area of the visualization graph when it is not enlarged and displays the brief information. The initial area can be obtained by querying the area data table. The area data table refers to a data table that records the indication numbers of each visualization graph and their corresponding initial areas.
[0150] Step 207: Determine the magnification ratio according to the required area and the initial area.
[0151] The magnification ratio refers to the minimum magnification value required to enlarge the visualization graph with the initial area to the required area. The method for determining the magnification ratio is common knowledge to those skilled in the art and will not be elaborated here.
[0152] Step 208: Control a preset display device according to the indication number to enlarge a preset visualization graph according to the magnification ratio.
[0153] When the visualization graph is selected, enlarge the visualization graph according to the length of the details, so as to reduce the occupancy rate of the enlarged visualization graph on the display space while completely displaying the details.
[0154] Reference Figure 6 , the graphic display method further includes:
[0155] Step 209: Calculate the difference between the required area and the initial area, and define it as the enlarged area.
[0156] The enlarged area is the difference between the required area and the initial area, and the enlarged area shows the area value required for enlarging the visualization graphic.
[0157] Step 210: Determine the free area around the visualization graphic based on the indication number.
[0158] The free area refers to the area value of the largest rectangle that can be accommodated around the visualization graphic. The free area can be determined from the display space through an image recognition model. The method for determining the free area is common knowledge for those skilled in the art and will not be elaborated here.
[0159] Step 211: When the free area is lower than the enlarged area, calculate the difference between the enlarged area and the free area, and define it as the reduced area.
[0160] The free area being lower than the enlarged area means that there is no sufficient space around the visualization graphic for the visualization graphic to be enlarged. The reduced area is the difference between the enlarged area and the free area, and the reduced area shows the area value lacking for the visualization graphic to be enlarged.
[0161] Step 212: Determine the graphic area based on the initial area, the free area, and the preset display area.
[0162] The display area refers to the total area value of the display space. The graphic area refers to the area value of the remaining part in the display space except for the visualization graphic with the indication number. The graphic area can be obtained by subtracting the initial area and the free area from the display area. The method for determining the graphic area is common knowledge for those skilled in the art and will not be elaborated here.
[0163] Step 213: Determine the reduction ratio based on the graphic area and the reduced area.
[0164] The reduction ratio refers to the minimum ratio for reducing the remaining visualization graphic so that the area around the visualization graphic with the indication number is sufficient for the visualization graphic to be enlarged. The method for determining the reduction ratio is common knowledge for those skilled in the art and will not be elaborated here.
[0165] Step 214: Control the preset display device to synchronously reduce other visualization graphics except the one with the indication number according to the reduction ratio.
[0166] When the remaining space around the visualization graphic is not sufficient for the visualization graphic to be enlarged according to the enlargement ratio, control other visualization graphics to be synchronously reduced according to the insufficient part, so as to expand the remaining space around the visualization graphic.
[0167] Reference Figure 7 , the light shielding method includes:
[0168] Step 300: When the speed difference is lower than a preset capture threshold, obtain the light intensity of the environment.
[0169] The light intensity refers to the light intensity value of the ambient light. The method for obtaining the light intensity is selected by the staff according to the actual situation and will not be elaborated here.
[0170] Step 301: When the light intensity is higher than a preset stimulation threshold, determine the user's position according to the user image.
[0171] The stimulation threshold refers to the maximum light intensity value at which the light does not cause irritation to the human eye. The stimulation threshold is selected by the staff according to the actual situation and will not be elaborated here. When the light intensity is higher than the stimulation threshold, it means that the intensity of the ambient light is too high and is likely to irritate the eyes.
[0172] The user's position refers to the position information of the user in the user image. The user's position can be identified through image recognition technology. The method for determining the user's position is common knowledge in the art and will not be elaborated here.
[0173] Step 302: Determine the reflection interval that affects the user according to the user's position.
[0174] The reflection interval refers to the range of incident angle values of the light reflected from the display device to the staff. The method for determining the reflection interval is common knowledge in the art and will not be elaborated here.
[0175] Step 303: Determine the incident angle of the light according to the user image.
[0176] The incident angle refers to the incident angle value when the light shines on the display device. The incident angle can be determined through image recognition technology. The method for determining the incident angle is common knowledge in the art and will not be elaborated here.
[0177] Step 304: When the incident angle falls within the reflection interval, determine the occlusion height required to block the light according to the user's position and the incident angle.
[0178] The occlusion device refers to a device arranged around the display device to block the light shining on the display device. The occlusion device generally uses a light shield arranged around the screen of the display device. The occlusion device is selected by the staff according to the actual situation and will not be elaborated here. When the incident angle falls within the reflection interval, it means that the light reflected from the ambient light shining on the display device is likely to affect the staff. The occlusion height refers to the height value required to block the light shining on the staff through the occlusion device. The occlusion height can be obtained by querying the occlusion data table. The occlusion data table refers to a data table recording different incident angles and their corresponding occlusion heights.
[0179] Step 305: Determine the occlusion number according to the incident angle.
[0180] The occlusion number refers to the number used to distinguish the light-shielding plates of the occlusion device. Each light-shielding plate corresponds one-to-one with the occlusion number. The installation position and installation direction of each light-shielding plate are different. The occlusion number can be obtained by querying the light-shielding data table, which is a data table recording different incident angle intervals and their corresponding occlusion numbers.
[0181] Step 306: Control the preset occlusion device to rise according to the occlusion height.
[0182] When the external light intensity is too high, it is easy to cause light to be reflected onto the staff and stimulate the eyes of the staff. By using the occlusion device to block the light, the situation of light being reflected onto the eyes of the staff can be reduced.
[0183] Refer to Figure 8 , the light shielding method further includes:
[0184] Step 307: When the occlusion height is higher than the preset extension threshold, determine the user distance according to the user image.
[0185] The extension threshold refers to the maximum height that the light-shielding plate can rise. The extension threshold is selected by the staff according to the actual situation and will not be elaborated here. The closer the incident angle is to 90 degrees, the greater the height required for the light-shielding plate to rise. When the occlusion height is higher than the extension threshold, it means that the light-shielding plate cannot rise to the occlusion height, that is, it is difficult to block the light with the light-shielding plate. The user distance refers to the distance value between the user and the screen of the display device. The user distance can be determined by image recognition technology. The method for determining the user distance is well-known common sense to those skilled in the art and will not be elaborated here.
[0186] Step 308: Determine the reflection range of the light reflected onto the user according to the incident angle and the user distance.
[0187] The reflection range refers to the range of the light reflected from the display device on the plane parallel to the screen of the display device and at a distance equal to the user distance. The method for determining the reflection range is well-known common sense to those skilled in the art and will not be elaborated here.
[0188] Step 309: Determine the facial area of the user according to the user image and the user distance.
[0189] The facial area refers to the range of the user's face on the plane parallel to the screen of the display device and at a distance equal to the user distance. The facial area can be determined by image recognition technology. The method for determining the facial area is well-known common sense to those skilled in the art and will not be elaborated here.
[0190] Step 310: Determine the offset distance according to the reflection range and the facial area.
[0191] The offset distance is the minimum distance value required to move the reflection range so that it does not overlap with the face area. The method for determining the offset distance is common knowledge to those skilled in the art and will not be elaborated here.
[0192] Step 311: Determine the rotation angle according to the offset distance and the user distance.
[0193] The rotation angle refers to the angle value for adjusting the orientation of the display device to regulate the incident angle of light, so that the reflection range moves according to the offset distance. The method for determining the rotation angle is common knowledge to those skilled in the art and will not be elaborated here.
[0194] Step 312: Control the rotation of the preset display device according to the rotation angle.
[0195] When the incident angle of light is too close to 90 degrees, it is easy to cause the required extension length of the shielding device to be too large, which may lead to the situation that the shielding device obstructs people. By rotating the display device to adjust the incident angle of light, the situation where the light reflection affects people can be reduced.
[0196] Based on the same inventive concept, an embodiment of the present invention provides an intelligent code visualization management system, including:
[0197] An acquisition module, configured to acquire a user image, an indication position, and light intensity;
[0198] A memory, configured to store a program of any of the above intelligent code visualization management methods;
[0199] A processor, and the program in the memory can be loaded and executed by the processor.
[0200] Based on the same inventive concept, an embodiment of the present invention provides an intelligent terminal, including a memory and a processor, and a computer program capable of being loaded and executed by the processor is stored on the memory, which is any of the above intelligent code visualization management methods.
[0201] Those skilled in the art can clearly understand that for the convenience and conciseness of description, only the above division of each functional module is used as an example. In practical applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working processes of the above-described system, device, and unit can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated here.
[0202] The above are only the preferred embodiments of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions falling within the concept of the present invention belong to the protection scope of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and refinements should also be regarded as within the protection scope of the present invention.
Claims
1. An intelligent code visualization management method, characterized in that: include: Get the user image of the user; Determine whether a user exists based on the user image; When a user is present, the indicated position of a preset selection mark is obtained. The presence of a user indicates that a person is operating the display device. The selection mark refers to an identifier in the display device system for selecting a visual graphic. The indicated position is the coordinate of the selection mark on the screen of the display device. Determine the indicated speed of the selection mark according to the indicated position. The indicated speed refers to the moving speed of the selection mark. The moving distance of the selection mark per unit time can be determined by the indicating device, thereby calculating the indicated speed. Determine the speed difference of the speed within a unit time according to the indicated speed, wherein the speed difference refers to the change value of the indicated speed within a unit time, that is, the difference between the current indicated speed and the indicated speed before the unit time; When the speed difference is lower than the preset capture threshold, the indication number is determined according to the indication position. The capture threshold refers to the maximum value of the speed difference when the staff moves the selection mark close to the visual graphic to be selected. The speed difference lower than the capture threshold represents that the selection mark is close to the visual graphic to be selected by the staff. The indication number refers to a number set manually to distinguish the visual graphics. Each visual graphic corresponds to the indication number one by one. The indication number can be obtained by querying the graphic data table. The graphic data table refers to a data table that records the positions of each visual graphic and its corresponding indication number. The indication number of the visual graphic closest to the indication position is obtained by querying the graphic data table. Controlling a preset display device to enlarge and display detailed information of a preset visualization graphic according to the indication number; When the speed difference is higher than a preset disengagement threshold, the preset display device is controlled to reduce and display the brief information of the preset visualization graphic according to the indication number. The disengagement threshold is the minimum speed difference when the staff is about to select another visualization graphic.
2. The intelligent code visualization management method according to claim 1, characterized in that: Also includes: When the indication speed is lower than a preset attention threshold, the user's visual focus is determined based on the user image. The attention threshold refers to the minimum moving speed of the selection target when the staff's attention is consistent with the selection target; Determine the indication distance based on the visual focus and indication position; When the indicated distance exceeds a preset visual threshold, a visual number is determined according to the visual focus, wherein the visual threshold refers to the maximum distance value that the staff can visually notice; Controlling a preset display device to enlarge and display detailed information of a preset visualization graphic according to the visual number, and determining a graphic position of the visualization graphic according to the visual number; Determine the graphic distance based on the visual focus and graphic position; When the graphic distance exceeds a preset visual threshold, a preset display device is controlled according to the visual number to reduce and display the brief information of the preset visualization graphic.
3. The intelligent code visualization management method according to claim 2, characterized in that: Also includes: When the indicated distance exceeds a preset visual threshold, the number of people is determined based on the user image; When the number of personnel exceeds the preset single threshold, it is determined whether the selection mark is moving according to the indicated position. The single threshold refers to the standard for determining whether there is only one staff member in front of the display device. The single threshold is generally 1. When the selection mark is moving, determining the operation position of the operator who operates the selection mark according to the user image; Determine visual focus based on the location of the action.
4. The intelligent code visualization management method according to claim 1, characterized in that: Also included is a graphic display method, the graphic display method comprising: When the speed difference is lower than a preset capture threshold, determining an ambient light color according to the user image, where the ambient light color refers to the color of the ambient light; Determine a contrast light color according to the ambient light color, wherein the contrast light color refers to a color with the greatest contrast with the ambient light color; Controlling a preset display device to display a preset visual graphic in a contrasting light color according to the indication number, and determining a text color according to the contrasting light color; According to the indication number, the preset display device is controlled to display the detailed information of the preset visualization graphic in text color.
5. The intelligent code visualization management method according to claim 4, characterized in that: The graphic display method further comprises: When the speed difference is lower than a preset capture threshold, the information length of the detailed information is determined according to the indication number; Determine the required area of the visualization graphic based on the information length; Determine the initial area of the visualization figure according to the indicated number; Determine the magnification based on the required area and initial area; According to the indication number, a preset display device is controlled to enlarge the preset visualization graphic according to the magnification.
6. The intelligent code visualization management method according to claim 5, characterized in that: The graphic display method further comprises: Calculate the difference between the required area and the initial area and define it as the enlarged area; Determining a free area around the visualization figure based on the indicated number; When the spare area is lower than the enlarged area, the difference between the enlarged area and the spare area is calculated and defined as the reduced area; Determine the graphic area according to the initial area, the free area and the preset display area; Determine the reduction ratio based on the graphic area and the reduced area; The preset display device is controlled according to the reduction ratio to synchronously reduce other visual graphics except the indication number.
7. The intelligent code visualization management method according to claim 1, characterized in that: Also included is a light shielding method, the light shielding method comprising: When the speed difference is lower than a preset capture threshold, the light intensity of the environment is obtained; When the light intensity is higher than a preset stimulation threshold, the user position is determined based on the user image, where the stimulation threshold refers to the maximum light intensity value at which the light does not stimulate the human eye; Determine the reflection interval where light reflection affects the user based on the user's position; Determine the incident angle of light according to the user image; When the incident angle falls into the reflection range, the shielding height required to shield the light is determined according to the user position and the incident angle; Determine the occlusion number based on the incident angle; According to the shielding number, the preset shielding device is controlled to rise according to the shielding height.
8. The intelligent code visualization management method according to claim 7, characterized in that: The light shielding method further comprises: When the occlusion height is higher than a preset extension threshold, the user distance is determined based on the user image, where the extension threshold refers to the maximum height to which the light-isolating plate can be raised; Determine the reflection range of the light reflected onto the user according to the incident angle and the user distance; Determine a user's face region based on the user image and the user distance; Determine the offset distance based on the reflection range and face area; Determine the rotation angle according to the offset distance and the user distance; The preset display device is controlled to rotate according to the rotation angle.
9. An intelligent code visualization management system, characterized in that: include: An acquisition module, used to acquire user images, indicated positions and light intensity; A memory, used to store a program of an intelligent code visualization management method according to any one of claims 1 to 8; The program in the memory can be loaded and executed by the processor.
10. An intelligent terminal, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and executes an intelligent code visualization management method as claimed in any one of claims 1 to 8.
Citation Information
Patent Citations
Apparatus and method for selecting item using movement of object
CN102566902A
Interaction control method, device, electronic equipment and system based on eye movement tracking
CN119148847A