Method and device for displaying aim point, electronic equipment and storage medium
By overlaying the crosshair graphic onto the game screen and dynamically adjusting the crosshair color by acquiring and processing background color features in real time, the problem of the in-game crosshair scheme being difficult to identify in complex backgrounds is solved, thus improving aiming efficiency and gaming experience.
Patent Information
- Application Number
- CN202511523868.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-22
- Publication Date
- 2026-01-02
AI Technical Summary
Existing in-game crosshair solutions, due to their static and preset display attributes, cannot intelligently adapt to dynamically changing game backgrounds. This makes it difficult to distinguish the crosshair when its color is similar to the background color, severely impacting aiming efficiency and the gaming experience.
By overlaying a crosshair graphic onto the application's display screen, the background image of the area where the crosshair graphic is located is acquired in real time, color features are extracted, and a target color is determined according to a preset color processing strategy to create a visual contrast between the crosshair graphic and the background. The display of the crosshair graphic is then updated in real time using the target color.
To ensure that the crosshair remains clearly visible in any complex game scenario by creating a strong visual contrast with the background, significantly improving aiming accuracy and the gaming experience.
Smart Images

Figure CN121243771A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of image display, and in particular to a centering display method and device, an electronic device, and a storage medium. BACKGROUND
[0002] With the popularity of smart TVs, game consoles, and various large-screen display devices, playing games on large-screen devices such as TVs has become one of the mainstream consumption methods. Among them, shooting games occupy an important market share due to their strong immersive and competitive nature. However, unlike displays designed specifically for games, TVs do not provide a physical centering, and players' aiming operations are highly dependent on the virtual centering in the game software or external auxiliary devices, which brings specific technical challenges to large-screen game experience.
[0003] Currently, the most common solution is to use an in-game embedded centering, that is, a game developer directly renders a centering graphic in the software. The display properties such as shape, color, and size of the centering are pre-set during the game development stage, and users can only switch or adjust within the limited options provided by the game.
[0004] However, this in-game embedded centering solution cannot intelligently adapt to dynamically changing game backgrounds due to the staticity and pre-set nature of its display properties, resulting in difficulty in identifying the centering when the centering color is similar to the background color, which seriously affects the aiming efficiency and game experience. SUMMARY
[0005] The present application provides a centering display method, device, electronic device, and storage medium to solve the problem that the in-game embedded centering solution in the prior art cannot intelligently adapt to dynamically changing game backgrounds due to the staticity and pre-set nature of its display properties, resulting in difficulty in identifying the centering when the centering color is similar to the background color, which seriously affects the aiming efficiency and game experience.
[0006] In a first aspect, the present application provides a centering display method, comprising: superimposing a centering graphic on a display screen of an application; real-time acquiring a background image of a region where the centering graphic is located, and extracting color features of the background image; determining a target color according to the color features and a pre-set color processing strategy, the target color being used to form a visual contrast between the centering graphic and the background image; updating the display of the centering graphic using the target color.
[0007] In one possible implementation, the color features include image brightness values, and the determination of the target color according to the color features and the pre-set color processing strategy comprises: determine a target luminance interval to which the image luminance value belongs in a plurality of preset luminance intervals; determine the target color according to a luminance contrast strategy corresponding to the target luminance interval.
[0008] In one possible implementation, the color feature includes an image dominant hue; and the determining the target color according to the color feature and a preset color processing strategy includes: determining a complementary color forming a complementary relationship with the image dominant hue, and determining the complementary color as the target color.
[0009] In one possible implementation, the color feature includes an image saturation value; and the determining the target color according to the color feature and a preset color processing strategy includes: determining a target saturation interval to which the image saturation value belongs in a plurality of preset saturation intervals; determining the target color according to a saturation adjustment strategy corresponding to the target saturation interval.
[0010] In one possible implementation, before the updating and displaying the bullseye pattern in the target color, the method further includes: comparing the target color with a current color of the bullseye pattern to obtain a color difference value; judging whether the color difference value exceeds a preset stability threshold; starting a timer in a case where the color difference value exceeds the stability threshold; performing the updating and displaying the bullseye pattern in the target color in a case where the color difference value continuously exceeds the stability threshold for a preset time length.
[0011] In one possible implementation, the updating and displaying the bullseye pattern in the target color includes: performing interpolation calculation between the current color of the bullseye pattern and the target color based on a color interpolation algorithm to generate a color transition sequence; controlling the bullseye pattern to perform gradual display according to the color transition sequence.
[0012] In one possible implementation, the superimposed displaying the bullseye pattern on the display screen of the application program includes: drawing a bullseye main pattern on the display screen of the application program; drawing a stroke area around the outline of the bullseye main pattern on the display screen, wherein a display color of the stroke area is configured to form contrast with a display color of the bullseye main pattern.
[0013] In a second aspect, the present application provides a center mark display device, comprising: a display module configured to superimpose a center mark graphic on a display screen of an application program; an acquisition module configured to acquire a background image of a region where the center mark graphic is located in real time, and extract a color feature of the background image; a determination module configured to determine a target color according to the color feature and a preset color processing strategy, the target color being used to form a visual contrast between the center mark graphic and the background image; an update module configured to update the display of the center mark graphic by using the target color.
[0014] In a possible implementation, the color feature comprises an image brightness value, and the determination module is specifically configured to: determine a target brightness interval to which the image brightness value belongs among a plurality of preset brightness intervals; and determine the target color according to a brightness contrast strategy corresponding to the target brightness interval.
[0015] In a possible implementation, the color feature comprises an image dominant hue, and the determination module is further configured to: determine a complementary color that forms a complementary relationship with the image dominant hue, and determine the complementary color as the target color.
[0016] In a possible implementation, the color feature comprises an image saturation value, and the determination module is further configured to: determine a target saturation interval to which the image saturation value belongs among a plurality of preset saturation intervals; and determine the target color according to a saturation adjustment strategy corresponding to the target saturation interval.
[0017] In a possible implementation, the device further comprises a comparison module configured to: compare the target color with a current color of the center mark graphic to obtain a color difference value; determine whether the color difference value exceeds a preset stability threshold; start a timer in a case where the color difference value exceeds the stability threshold; perform the step of updating the display of the center mark graphic by using the target color in a case where the color difference value continuously exceeds the stability threshold for a preset time length.
[0018] In a possible implementation, the update module is specifically configured to: perform interpolation calculation between the current color of the center mark graphic and the target color based on a color interpolation algorithm to generate a color transition sequence. The control of the quasi-center pattern is to perform gradient display according to the color transition sequence.
[0019] In one possible implementation, the display module is specifically configured to: draw a quasi-center main pattern on a display screen of an application program; draw a stroke area around the contour of the quasi-center main pattern on the display screen, wherein the display color of the stroke area is configured to form contrast with the display color of the quasi-center main pattern.
[0020] In a third aspect, the present application provides a device, comprising: a processor and a memory, wherein the processor is configured to execute a quasi-center display program stored in the memory to implement the quasi-center display method according to any one of the first aspect.
[0021] In a fourth aspect, the present application provides a storage medium, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the quasi-center display method according to any one of the first aspect.
[0022] The above technical solution provided by the embodiments of the present application has the following advantages compared with the prior art: firstly, by superimposing and displaying the quasi-center pattern on the display screen of the application program, the system-level quasi-center layer independent of the specific game application is established, and the dependence on the in-game embedded quasi-center is eliminated from the root; further, by acquiring the background image of the area where the quasi-center pattern is located in real time and extracting the color features of the background image, the active and real-time perception of the game screen background color is realized; on this basis, the target color is determined according to the color features and the preset color processing strategy, and the color that contrasts most strongly with the current background can be dynamically calculated according to the color contrast principle (such as complementary color, brightness contrast, etc.); finally, the quasi-center pattern is updated by using the target color, so that the quasi-center color can be adjusted adaptively in real time following the background change, thereby ensuring that the quasi-center can remain clear and distinguishable by forming strong visual contrast with the background in any complex game scene, and the accuracy of aiming and the game experience are significantly improved. BRIEF DESCRIPTION OF DRAWINGS
[0023] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and serve to explain the principles of the present application together with the specification.
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the accompanying drawings needed to be used in the embodiments or prior art description will be briefly introduced here. Obviously, for those skilled in the art, other drawings can also be obtained from these drawings without creative labor.
[0025] One or more embodiments are illustrated by way of example in the drawings and described herein in connection with the appended drawings, which are incorporated herein by reference. The same reference numbers in different drawings indicate the same or similar elements.
[0026] Figure 1 An embodiment flow chart of a crosshair display method provided by an embodiment of the present application; Figure 2 An embodiment flow chart of another crosshair display method provided by an embodiment of the present application; Figure 3 An embodiment block diagram of a crosshair display device provided by an embodiment of the present application; Figure 4 A structural schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0027] To make the objectives, technical schemes and advantages of the embodiments of the present application clearer, the technical schemes in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative labor fall within the scope of protection of the present application.
[0028] The following disclosure provides many different embodiments, or examples, for implementing different structures of the present application. For the purpose of simplicity, the components and arrangements of the particular examples are shown in the following description. These are, of course, merely examples and are not intended to limit the present application. Moreover, the present application can be practiced with other structures that depart from these examples. Additionally, the described embodiments are not intended to be limited to the described order of steps, as some steps can be performed in other orders or omitted altogether. Furthermore, words such as "thereon," "thereabove," and "therebelow" are used herein to mean that the element being described is adjacent to or in contact with the element being referenced.
[0029] To solve the technical problem that the in-game crosshair display scheme in the prior art cannot intelligently adapt to the dynamically changing game picture background due to the staticity and presetting of the display attribute of the crosshair, and the crosshair is difficult to identify when the color of the crosshair is similar to the color of the background, which seriously affects the aiming efficiency and the game experience, the present application provides a crosshair display method, which can ensure that the crosshair can be kept clear and identifiable by forming a strong visual contrast with the background in any complex game scene, and significantly improves the accuracy of aiming and the game experience.
[0030] Figure 1 An embodiment flow chart of a crosshair display method provided by an embodiment of the present application. As shown in Figure 1 The method comprises the following steps: Step 101, superimposedly display a centering figure on the display screen of the application program.
[0031] Display screen of the application program: refers to the main visual content generated by the application program such as game program or video player and output to the display device.
[0032] Centering figure: refers to a visual indication mark for aiming operation, and the basic shape can be preset as cross shape, circular shape, point shape or combination thereof.
[0033] Superimposedly display: refers to creating an independent transparent layer with higher display priority in the graphics subsystem or operating system of the display device, and rendering the centering figure on the layer so as to display it on the display screen of the application program.
[0034] In the embodiment of the application, a separate graphics buffer is allocated for drawing the centering figure by calling the graphics superposition layer application program interface provided by the operating system (such as Android, Linux, etc.) or using the hardware superposition function of the graphics processing unit. The system mixes the content of the superposition layer with the frame buffer content of the application program in real time and then outputs it to the display screen. The user can manually turn on or off the centering display function through the system setting menu, remote control shortcut key or gesture, or the system can automatically enable the function when it identifies the game by detecting the application program package name or window attribute in the foreground.
[0035] Step 102, acquire the background image of the area where the centering figure is located in real time, and extract the color feature of the background image.
[0036] Background image: refers to the pixel set in the corresponding area of the display screen of the application program which is located right below the centering figure and is blocked by the centering figure when the centering figure is superimposedly displayed. The area is usually a rectangular or circular sampling area with the center point of the centering figure as the reference.
[0037] Color feature: refers to the numerical index extracted from the background image for quantitatively describing the color attribute thereof, for example, brightness: one of the color visual attributes, indicating the brightness of the color; saturation: one of the color visual attributes, indicating the vividness of the color; dominant color tone: refers to the color phase which dominates in the color distribution of the image.
[0038] In the embodiments of the present application, the system periodically (for example, every frame or every several frames) captures or intercepts the background image of the area where the reticle is located through the frame buffer or the pixel query operation of the graphics interface (such as OpenGL, Vulkan). Then, color analysis is performed on all pixels in the sampling area. The method for extracting color features includes: calculating the average values of the red (R), green (G), and blue (B) components of all pixels, and converting them to the hue, saturation, and lightness (HSL / HSV) color model; the lightness feature can be calculated as the average value of the L component in the HSL model; the saturation feature can be calculated as the average value of the S component in the HSV model; the dominant hue can be obtained by calculating the color histogram and finding its peak value, or using a clustering algorithm such as K-means to determine the most prominent color category.
[0039] Step 103, determining a target color according to the color features and a preset color processing strategy, the target color being used to form visual contrast between the reticle pattern and the background image.
[0040] Color processing strategy: a set of rules or algorithms preset for calculating an optimized color as output according to the input color feature values.
[0041] Target color: the final color value determined for rendering the reticle pattern after color processing strategy calculation.
[0042] In the embodiments of the present application, the color feature values (such as average lightness, average saturation, dominant hue, etc.) extracted in step 102 are input into the predefined color processing strategy logic unit for processing. The strategy can be instantiated as a look-up table (LUT) or a conditional judgment statement. For example, the strategy logic can be defined as: if the background average lightness is greater than a threshold T_high (such as 180), the target color is selected as a low-lightness color (such as lightness < 80); if the background average lightness is less than a threshold T_low (such as 80), the target color is selected as a high-lightness color (such as lightness > 180); if the background lightness is between the two, the target color is selected as a complementary color that is 180 degrees apart from the background dominant hue on the color wheel, and its lightness is adjusted to ensure contrast. Finally, the strategy logic outputs a target color value (usually represented in RGB or HSL values).
[0043] Step 104, updating the display of the reticle pattern using the target color.
[0044] Updating the display: applying new color data to the reticle pattern and refreshing its display effect on the screen.
[0045] In the embodiment of the present application, the graphic rendering engine receives the target color value determined by step 103. Then, the engine re-generates the pixel data of the center-on graphic according to the geometric definition (e.g. vertex data) of the center-on graphic and the new target color. The updated graphic data is written into the overlay layer graphic buffer mentioned in step 101. The display controller then mixes the updated overlay content with the application screen and outputs to the display device, thus completing the real-time update of the center-on color.
[0046] In the application, to achieve smooth transition, step 104 can further include the following steps: based on a color interpolation algorithm, interpolating between the current color of the center-on graphic and the target color to generate a color transition sequence; and controlling the center-on graphic to display gradually according to the color transition sequence.
[0047] Color interpolation algorithm: refers to a mathematical method for calculating a series of intermediate colors between two given color values, commonly linear interpolation in a linear color space (e.g. RGB, HSL). Current color: refers to the color value displayed by the center-on graphic before this update. Target color: refers to the target color value calculated by step 103, which the center-on graphic needs to update to finally. Color transition sequence: refers to a set of color values calculated by the interpolation algorithm, the colors in the sequence start from the current color and gradually change to end with the target color. Gradual display: refers to the display color of the center-on graphic is updated in sequence in multiple display frames according to the color transition sequence, thus producing a smooth and continuous color change visual effect.
[0048] In this scheme, when the center-on color needs to be updated, the system does not immediately switch the color from the current value to the target value, but starts a transition process. Specifically, the system first determines the number of frames required to complete the transition according to the preset transition time (e.g. 200 milliseconds) and the refresh rate of the display device (e.g. 60 frames / second). Then, before rendering each frame, the color interpolation algorithm calculates an intermediate color value between the current color and the target color according to the progress of the current frame. For example, in the RGB color space, linear interpolation is performed on the R, G, and B components respectively. This series of sequentially calculated intermediate color values constitutes the color transition sequence. Finally, the graphic rendering engine uses the corresponding intermediate color of the sequence to draw the center-on graphic in each frame, instead of directly using the target color to draw.
[0049] This scheme effectively avoids the visual flicker caused by the instantaneous jump of the center-on color due to the sudden change of the scene background by introducing the color gradient mechanism, making the color change process smoother and more natural, and significantly improving the visual comfort and the smoothness of user experience.
[0050] The technical scheme provided by the embodiments of the present application firstly establishes a system-level aiming point layer independent of specific game applications by superimposing an aiming point pattern on the display screen of an application program, thereby fundamentally breaking away from the dependence on in-game embedded aiming points; further, the background image of the area where the aiming point pattern is located is acquired in real time, and the color features of the background image are extracted, so as to realize active and real-time sensing of the background color of the game screen; on this basis, the target color is determined according to the color features and a preset color processing strategy, and the color that contrasts most strongly with the current background can be dynamically calculated according to the color contrast principle (such as complementary colors, brightness contrast, etc.); finally, the target color is used to update the display aiming point pattern, so that the aiming point color can be adaptively adjusted in real time following the background change, thereby ensuring that the aiming point can remain clear and distinguishable by forming a strong visual contrast with the background in any complex game scene, and significantly improving the accuracy of aiming and the game experience.
[0051] Optionally, to further enhance the visibility of the aiming point outline, the operation of drawing the aiming point pattern in step 101 can further include the following sub-steps: drawing an aiming point main pattern on the display screen of the application program; and drawing a stroke area around the outline of the aiming point main pattern on the display screen, wherein the display color of the stroke area is configured to form a contrast with the display color of the aiming point main pattern.
[0052] Aiming point main pattern: refers to the main geometric shape part constituting the core aiming mark of the aiming point, for example, the center part of the crosshair, the outer ring of the circle, or the body of the dot-shaped mark. Outline: refers to the closed path formed by the boundary connecting line of the outermost edge of the aiming point main pattern. Stroke area: refers to the annular area formed by extending outward by a certain width in close contact with and around the outline.
[0053] In this scheme, the system graphics engine first draws the aiming point main pattern according to the preset parameters, and then generates the geometry of the stroke area by offsetting outward by a specified pixel distance based on the outline path of the main pattern. The display color of the stroke area forms a strong contrast with the color of the main pattern according to a preset rule, for example, using dark color for the stroke when the main body is bright, or using complementary colors that are 180 degrees apart on the color wheel. The main pattern and the stroke area are rendered separately in the graphics superimposition layer and then combined into the final displayed aiming point pattern.
[0054] This scheme can significantly enhance the clarity of the aiming point outline under complex background textures by adding a stroke area that forms a strong contrast with the main body color, providing double protection for the visibility of the aiming point, and effectively solving the problem of insufficient recognition of a single-color aiming point in a specific background.
[0055] The operation of determining the target color in step 103 can use corresponding processing strategies based on different color features. The following embodiments are described: In the first embodiment, the color feature comprises an image lightness value, and accordingly, the step 103 can comprise the following steps: determining a target lightness interval to which the image lightness value belongs among a plurality of preset lightness intervals; and determining the target color according to a lightness contrast strategy corresponding to the target lightness interval.
[0056] Image lightness value: a value calculated from the background image collected in step 102 to represent the average brightness of the region, which can be obtained by calculating the average value of the brightness (L / V) component of all pixels in the HSL / HSV color model.
[0057] Lightness interval: a plurality of continuous sub-ranges divided in advance within the range of lightness values (such as 0-255), for example, which can be divided into a low lightness interval (such as 0-80), a medium lightness interval (such as 81-180), and a high lightness interval (such as 181-255).
[0058] Target lightness interval: the lightness interval to which the image lightness value specifically belongs.
[0059] Lightness contrast strategy: a color selection rule set in advance for each lightness interval, the core principle of which is to form a strong contrast between the target color and the background lightness.
[0060] In the first embodiment, the specific implementation of step 103 is that the system compares the calculated image lightness value with the boundary values of the plurality of preset lightness intervals, thereby determining the target lightness interval to which it belongs. Subsequently, the system invokes the lightness contrast strategy bound to the target lightness interval. For example, if it is determined that the background belongs to the high lightness interval, the strategy specifies that the target color should be selected from the colors in the low lightness interval (such as dark black, dark blue); conversely, if the background belongs to the low lightness interval, the strategy specifies that the target color should be selected from the colors in the high lightness interval (such as bright yellow, bright white).
[0061] This scheme ensures that there is always a significant light-dark contrast between the center color and the background through simple interval division and contrast strategy, and is particularly suitable for solving the problem of the center color blending into the environment when the background is too bright or too dark, and significantly improves the visibility of the center color in extreme light-dark scenes such as snow and night.
[0062] In the second embodiment, the color feature comprises an image dominant hue, and accordingly, the step 103 can further comprise the following steps: determining a complementary color forming a complementary relationship with the image dominant hue, and determining the complementary color as the target color.
[0063] Image dominant hue: the most representative or dominant hue extracted from the background image.
[0064] Complementary relationship: refers to the relationship between two colors that are 180 degrees apart on the color wheel, which can produce the strongest color contrast effect.
[0065] Complementary color: refers to the color that forms a complementary relationship with the main color of the image.
[0066] In this embodiment, the specific implementation of step 103 is as follows: the system first identifies the main color of the background image through a color clustering algorithm (such as K-means). Then, according to the color model (such as RGB or HSL), the complementary color opposite to the main color on the color wheel is calculated. Finally, the complementary color is directly determined as the target color, or after adjusting its lightness or saturation, it is determined as the target color.
[0067] This scheme uses the complementary color principle in color science, and can generate a center color that forms the strongest color impact with the colorful background (such as green jungle, blue sky), effectively solving the problem of decreased recognition of the center in scenes with bright and rich colors.
[0068] In this embodiment, the specific implementation of step 103 is as follows: the system first identifies the main color of the background image through a color clustering algorithm (such as K-means). Then, according to the color model (such as RGB or HSL), the complementary color opposite to the main color on the color wheel is calculated. Finally, the complementary color is directly determined as the target color, or after adjusting its lightness or saturation, it is determined as the target color.
[0069] Image saturation value: refers to a value calculated from the background image to represent the average color brightness of the region.
[0070] Saturation interval: refers to a plurality of continuous sub-ranges divided in advance in the range of saturation value (such as 0-100%), for example, it can be divided into low saturation interval, medium saturation interval and high saturation interval.
[0071] Target saturation interval: refers to the saturation interval to which the image saturation value specifically falls.
[0072] Saturation adjustment strategy: refers to the color selection rule set in advance for each saturation interval, aiming to optimize the contrast effect by adjusting the brightness of the center color.
[0073] In this embodiment, the specific implementation of step 103 is as follows: the system compares the calculated image saturation value with the preset saturation interval to determine the target saturation interval to which it belongs. Then, the corresponding saturation adjustment strategy is called. For example, if the background saturation is very high (color is bright and chaotic), the strategy specifies that the target color should use a color with low saturation but extreme lightness (such as pure white or pure black) to avoid color conflict; if the background saturation is very low (dark and monotonous), the strategy specifies that the target color should use a bright color with high saturation (such as bright red, bright green) to enhance color contrast.
[0074] This solution optimizes the background color saturation, avoiding the problem of the center color being too fancy in a colorful scene or being equally dull in a dark scene, ensuring that the center stands out in various saturation characteristics.
[0075] To more clearly show the correspondence between color characteristics and processing strategies, i.e., the specific implementation logic of embodiments one, two, and three, the following is summarized by Table 1:
[0076] In summary, the strategies listed in Table 1 ensure that the center can maintain high contrast and easy recognition in various complex scenes through targeted color adaptation.
[0077] Figure 2 Another embodiment of the center display method provided in the present application is shown in the embodiment flowchart. Figure 2 The flowchart shown in Figure 1 Based on the flowchart shown in Step 201, compare the target color with the current color of the center graphic to obtain a color difference value.
[0078] Current color: refers to the color value displayed by the center graphic at the time of this color update judgment.
[0079] Color difference value: a scalar used to quantify the visual or numerical difference between two colors. This value can be obtained by calculating the Euclidean distance or other difference measurement formula of two colors in a specific color space (such as RGB, Lab).
[0080] In the present application, the system obtains the target color calculated by step 103 and the current actual display color of the center, and calculates it through a predefined difference algorithm. For example, in the RGB color space, the square sum of the RGB component difference value of the two colors can be calculated and then taken the square root as the color difference value.
[0081] Step 202, determine whether the color difference value exceeds a preset stability threshold.
[0082] Stability threshold: a pre-set threshold value used to determine whether the color change is significant enough to trigger an update. Its purpose is to filter out color changes caused by minor fluctuations or noise in the picture that are not enough to affect recognition.
[0083] In the present application, the calculated color difference value is compared with the stability threshold. This judgment aims to avoid unnecessary frequent updates. If the difference value does not exceed the threshold, it means that the background color changes slightly and the center color does not need to be adjusted, so the system can skip this update.
[0084] Step 203, start timing in the case where the color difference value exceeds the stability threshold.
[0085] Start timing: refers to starting to record the duration of the state when a certain condition is met (here, the color difference is over limit).
[0086] In the embodiment of the application, when the color difference value exceeds the stability threshold, it indicates that a significant color change has occurred. However, to avoid the center of the screen flickering due to the temporary appearance of interference elements (such as explosion light, lens halo) in the picture, the system does not immediately update, but starts a timer to record the duration of the current color difference state.
[0087] Step 204, in the case where the color difference value continuously exceeds the stability threshold for a preset duration, performing the step of updating the display of the center of the screen pattern with the target color.
[0088] Preset duration: a pre-set time length (such as 100 milliseconds) for determining whether the significant color change is stable and continuous.
[0089] In the embodiment of the application, the system continuously monitors whether the color difference value remains above the stability threshold during the timing process. Only when this state lasts for a preset duration is the color change of the background determined to be stable and persistent, rather than a temporary disturbance. At this time, the system finally triggers step 104 to perform the update operation of the center of the screen color.
[0090] Figure 2 The flowchart shows that by introducing the double judgment mechanism composed of "stability threshold" and "preset duration", the present scheme can effectively distinguish between the persistent color change of the background picture and the transient disturbance. This avoids unnecessary frequent jumping or flickering of the center of the screen color due to temporary flickering of the picture, ensures the stability of the center of the screen display, and significantly improves the visual comfort and user experience.
[0091] Figure 3 An embodiment block diagram of a center of the screen display device provided in the embodiment of the application is shown in the figure. Figure 3 As shown in the figure, the device comprises: A display module 31 for superimposedly displaying a center of the screen pattern on a display picture of an application program; An acquisition module 32 for acquiring a background image of the area where the center of the screen pattern is located in real time, and extracting color features of the background image; A determination module 33 for determining a target color according to the color features and a pre-set color processing strategy, the target color being used to form visual contrast between the center of the screen pattern and the background image; An update module 34 for updating the display of the center of the screen pattern with the target color.
[0092] In a possible implementation, the color feature comprises an image brightness value, and the determining module is specifically configured to: determine a target brightness interval to which the image brightness value belongs from a plurality of preset brightness intervals; determine the target color according to a brightness contrast strategy corresponding to the target brightness interval.
[0093] In a possible implementation, the color feature comprises an image dominant hue, and the determining module is further configured to: determine a complementary color that forms a complementary relationship with the image dominant hue, and determine the complementary color as the target color.
[0094] In a possible implementation, the color feature comprises an image saturation value, and the determining module is further configured to: determine a target saturation interval to which the image saturation value belongs from a plurality of preset saturation intervals; determine the target color according to a saturation adjustment strategy corresponding to the target saturation interval.
[0095] In a possible implementation, the apparatus further comprises a comparing module configured to: compare the target color with a current color of the quasi-center figure to obtain a color difference value; determine whether the color difference value exceeds a preset stability threshold; start timing in a case where the color difference value exceeds the stability threshold; perform the step of updating the quasi-center figure to be displayed by using the target color in a case where the color difference value continuously exceeds the stability threshold for a preset time length.
[0096] In a possible implementation, the updating module is specifically configured to: perform interpolation calculation between the current color of the quasi-center figure and the target color based on a color interpolation algorithm to generate a color transition sequence; control the quasi-center figure to perform gradual display according to the color transition sequence.
[0097] In a possible implementation, the display module is specifically configured to: draw a quasi-center main figure on a display screen of an application program; draw a stroke area around an outline of the quasi-center main figure on the display screen, wherein a display color of the stroke area is configured to form contrast with a display color of the quasi-center main figure.
[0098] The technical scheme provided by the embodiments of the present application firstly establishes a system-level reticle layer independent of a specific game application by superimposing a reticle pattern on a display screen of an application program, thereby getting rid of the dependence on an in-game embedded reticle from the root; further, the background image of the area where the reticle pattern is located is acquired in real time, and the color features of the background image are extracted, so as to realize the active and real-time sensing of the background color of the game screen; on this basis, the target color is determined according to the color features and a preset color processing strategy, and the color that contrasts most strongly with the current background can be dynamically calculated according to the color contrast principle (such as complementary color, brightness contrast, etc.); finally, the display reticle pattern is updated by using the target color, so that the reticle color can be adaptively adjusted in real time following the background change, thereby ensuring that the reticle can remain clear and distinguishable by forming a strong visual contrast with the background in any complex game scene, and the accuracy of aiming and the game experience are significantly improved.
[0099] As shown in Figure 4 The embodiments of the present application provide a device, which comprises a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112 and the memory 113 complete mutual communication through the communication bus 114, The memory 113 is used for storing a computer program; In an embodiment of the present application, the processor 111 is used for executing the program stored in the memory 113, and realizes the reticle display method provided by any one of the preceding method embodiments, which comprises the following steps: Superimposing a reticle pattern on a display screen of an application program; Acquiring a background image of the area where the reticle pattern is located in real time, and extracting color features of the background image; Determining a target color according to the color features and a preset color processing strategy, the target color being used for forming a visual contrast between the reticle pattern and the background image; Updating the display of the reticle pattern by using the target color.
[0100] The embodiments of the present application also provide a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to realize the steps of the reticle display method provided by any one of the preceding method embodiments.
[0101] The device embodiments described above are only schematic, wherein the units described as separate components can or can not be physically separate, and the components displayed as units can or can not be physical units, i.e., they can be located in one place, or distributed on multiple network units. According to actual needs, part or all of the modules can be selected to achieve the purpose of the embodiments of the present application.
[0102] Those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a general hardware platform, and of course can also be implemented by hardware. Based on such an understanding, the technical solutions described above can be embodied in the form of a software product, and the computer software product can be stored in a computer readable storage medium, such as a ROM / RAM, a magnetic disk, or an optical disk, and includes a plurality of instructions used to cause a computer device (such as a personal computer, a server, or a network device) to execute the methods described in each embodiment or some parts of the embodiments.
[0103] It is to be understood that the terminology used herein is for the purpose of describing particular example embodiments only and is not intended to be limiting. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. The terms "comprises", "comprising", "includes", "including" and "has", "having" are inclusive and therefore specify the presence of stated features, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, steps, operations, elements, components, and / or groups thereof. The method steps, processes, and operations described herein are not to be construed as necessarily requiring their occurrence in the particular order in which they are described, unless specifically identified as an order dependent step. It is also to be understood that additional or alternative steps can be employed.
[0104] The above description is merely that of particular embodiments of the application and various modifications can be made without departing from the spirit and scope of the application. Therefore, the present application is not limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for displaying a crosshair, characterized in that, The method includes: Display the crosshair graphic overlaid on the application's screen; The background image of the area where the crosshair graphic is located is acquired in real time, and the color features of the background image are extracted. The target color is determined based on the color features and the preset color processing strategy. The target color is used to create a visual contrast between the crosshair graphic and the background image. The crosshair graphic is updated using the target color.
2. The method according to claim 1, characterized in that, The color features include image brightness values, and determining the target color based on the color features and a preset color processing strategy includes: Among a number of preset brightness ranges, determine the target brightness range to which the image brightness value belongs; The target color is determined based on the brightness contrast strategy corresponding to the target brightness range.
3. The method according to claim 1, characterized in that, The color features include the dominant color tone of the image; determining the target color based on the color features and a preset color processing strategy includes: Identify a complementary color that is complementary to the main color tone of the image, and determine the complementary color as the target color.
4. The method according to claim 1, characterized in that, The color features include image saturation values; determining the target color based on the color features and a preset color processing strategy includes: Among a number of preset saturation ranges, determine the target saturation range to which the image saturation value belongs; The target color is determined based on the saturation adjustment strategy corresponding to the target saturation range.
5. The method according to claim 1, characterized in that, Before updating the display of the crosshair graphic using the target color, the method further includes: The target color is compared with the current color of the crosshair graphic to obtain a color difference value; Determine whether the color difference value exceeds a preset stability threshold; If the color difference value exceeds the stability threshold, a timer is started. If the color difference value continues to exceed the stability threshold for a preset duration, the step of updating the display of the crosshair graphic using the target color is executed.
6. The method according to claim 1, characterized in that, The step of updating the display of the crosshair graphic using the target color includes: Based on a color interpolation algorithm, interpolation calculations are performed between the current color of the crosshair graphic and the target color to generate a color transition sequence; The crosshair graphic is controlled to display a gradient according to the color transition sequence.
7. The method according to claim 1, characterized in that, The method of overlaying a crosshair graphic onto the application's display screen includes: Draw the main graphic of the crosshair on the application's display screen; An outline area is drawn around the contour of the main image of the crosshair on the display screen, wherein the display color of the outline area is configured to contrast with the display color of the main image of the crosshair.
8. A crosshair display device, characterized in that, The device includes: The display module is used to overlay and display the crosshair graphic on the application's display screen; The acquisition module is used to acquire the background image of the area where the crosshair graphic is located in real time and extract the color features of the background image; The determination module is used to determine a target color based on the color features and a preset color processing strategy, wherein the target color is used to create a visual contrast between the crosshair graphic and the background image. An update module is used to update the display of the crosshair graphic using the target color.
9. An electronic device, characterized in that, include: A processor and a memory, the processor being configured to execute a crosshair display program stored in the memory to implement the crosshair display method according to any one of claims 1-7.
10. A storage medium, characterized in that, The storage medium stores one or more programs, which can be executed by one or more processors to implement the crosshair display method according to any one of claims 1-7.