Method and device for uniformly displaying effective pixels and invalid pixels

By uniformly selecting the initial image pixels and establishing the extraction sequence, the problem of poor image display effect on the special-shaped screen is solved, and the uniformity, stable display and efficient applicability of the image are achieved.

CN116189605BActive Publication Date: 2024-12-17XIAN NOVASTAR TECH
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211634981.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-19
Publication Date
2024-12-17
Estimated Expiration
2042-12-19

AI Technical Summary

Technical Problem

When displaying standard images on special-shaped screens, the problem of insufficient pixel count leads to poor display results. The prior art is difficult to provide a general and stable solution, and the adjustment efficiency is low, so it cannot adapt to various special-shaped screens.

Method used

By obtaining the initial image and display information, uniformly select the pixels of the initial image as the loaded pixels, and establish an extraction sequence to ensure that the first pixel and the A-th pixel are both loaded pixels or are not loaded pixels at the same time, ensuring the effective pixels The uniform distribution of points and invalid pixel points is suitable for image display of special-shaped screens.

Benefits of technology

It realizes uniform and stable display of images on the special-shaped screen, preserves image details as much as possible, improves display accuracy and applicability, simplifies code implementation, and is suitable for the combined display of single-block and multiple special-shaped screens.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116189605B_ABST
    Figure CN116189605B_ABST
Patent Text Reader

Abstract

The present application is applicable to the field of image display technology, and provides a method and device for uniformly displaying valid pixels and invalid pixels, the method comprising: obtaining an initial image and display screen information; uniformly selecting a pixels from A pixels in the i-th row of the initial image as loaded pixels; wherein i is a positive integer not greater than the initial image, A≥a, and a is determined according to the number of pixels of the display screen; the present application provides a general image display method for special-shaped screens, that is, screens with a different number of pixels from the initial image, by uniformly extracting pixels of the original image for any row of the display screen, and limiting the first pixel and the A-th pixel to be both loaded pixels, or not being loaded pixels at the same time, so that the initial image can be displayed uniformly and symmetrically on the special-shaped screen with minimal loss of image details.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of image display technology, and in particular, relates to a method and device for uniformly displaying effective pixels and invalid pixels. Background Art

[0002] In the field of image display, there is a problem that is often overlooked by technicians in this field, namely, how to display a standard image on a special-shaped screen (for example, a fan-shaped screen, a circular screen, a triangular screen, etc. for specific activities, or a rectangular screen but the number of pixels that the screen can carry is less than the number of pixels of a standard image).

[0003] Since this situation is relatively rare, technicians in this field tend to adjust the initial image for a specific special-shaped screen when faced with the problem. On the one hand, this is inefficient, and on the other hand, it cannot be applied to all kinds of special-shaped screens.

[0004] Therefore, how to provide a universal method that can solve the problem of image display on special-shaped screens and have better and more stable display effects has become an issue that the industry urgently needs to consider. Summary of the invention

[0005] The embodiments of the present application provide a method and device for uniformly displaying effective pixels and invalid pixels, which can solve the problem of displaying images on irregular screens.

[0006] In a first aspect, an embodiment of the present application provides a method for uniformly displaying valid pixels and invalid pixels, comprising:

[0007] Acquire an initial image and display screen information; the display screen information includes the number of display pixels on any row of the display screen;

[0008] Among the A pixels in the i-th row of the initial image, a pixels are uniformly selected as the carrying pixels; wherein i is a positive integer not greater than the initial image, A≥a, and a is determined according to the number of pixels of the display screen.

[0009] The above method provides a general image display method for special-shaped screens, that is, screens with a different number of pixels from the initial image. By uniformly extracting pixels of the initial image for any row, and limiting the first pixel and the Ath pixel to be both the loaded pixels, or not being the loaded pixels at the same time, the initial image can be displayed uniformly and symmetrically on the special-shaped screen with minimal loss of image details.

[0010] In a possible implementation manner of the first aspect, among the A pixels in the i-th row of the initial image, the first pixel and the A-th pixel are both the carried pixels, or are not the carried pixels at the same time; among the A pixels in the i-th row of the initial image, the a pixels to be carried are recorded as valid pixels, and the non-valid pixels are recorded as invalid pixels; the valid pixels and the invalid pixels, whichever are smaller in number, are recorded as minority points, and the ones which are larger in number are recorded as majority points;

[0011] The step of uniformly selecting a pixels as loaded pixels from the A pixels in the i-th row of the initial image comprises:

[0012] According to the number of minority points lp and the number of majority points mp, determine the number of groups Pc and the number of groups Pw; where Pc = lp + 1, The result of the floor rounding operation of mp / Pc;

[0013] Establishing an extraction sequence including Pc extraction groups; if the majority of points are the valid pixel points, the extraction group is sequentially composed of at least Pw valid marks and one invalid mark; if the minority of points are the valid pixel points, the extraction group is sequentially composed of at least Pw invalid marks and one valid mark;

[0014] Among the A pixels in the i-th row of the initial image, the first a pixels having the same sequence number as the valid mark in the extraction sequence are sequentially extracted as loaded pixels.

[0015] The above method naturally ensures that the first pixel and the Ath pixel are both the said loaded pixels, or are not the said loaded pixels at the same time, by introducing a relatively small number of grouping numbers Pc whose number of points is greater than 1, and cooperates with the subsequent grouping steps of constructing the extraction sequence and the step of extracting the first a pixels according to the mark; at the same time, through the step of constructing the extraction sequence by grouping, the uniform distribution of valid points and invalid points is naturally guaranteed; this method has the advantages of being simple, efficient, and easy to code, and has a better effect on the uniform display of a single special-shaped screen.

[0016] In a possible implementation manner of the first aspect, mp / Pc is determined to be an integer, and the extraction group satisfies:

[0017] If the majority of points are valid pixel points, the extraction group is composed of Pw valid labels and one invalid label in sequence; if the minority of points are valid pixel points, the extraction group is composed of Pw invalid labels and one valid label in sequence.

[0018] The above method provides a method for displaying the initial image on the special-shaped screen in a strictly uniform manner, under the premise that mp / Pc is an integer, and has higher display accuracy.

[0019] In a possible implementation manner of the first aspect, it is determined that mp / Pc is a non-integer, and the step of establishing an extraction sequence including Pc extraction groups includes:

[0020] According to ds j Determine the jth subsequence of the extraction group, where j is a positive integer not greater than Pc, ds j It is a preset judgment parameter related to j, mp, and Pc.

[0021] Under the premise that mp / Pc is a non-integer, the above method provides a method for displaying the effective pixels in the initial image relatively evenly on the discrete pixels of the screen, which has the advantages of being simple, reliable and easy to encode.

[0022] In a possible implementation manner of the first aspect, among the A pixels in the i-th row of the initial image, the a pixels to be carried are recorded as valid pixels, and the non-valid pixels are recorded as invalid pixels; the valid pixels and the invalid pixels, whichever are smaller in number, are recorded as minority points, and the ones which are larger in number are recorded as majority points;

[0023] The step of uniformly selecting a pixels as loaded pixels from the A pixels in the i-th row of the initial image comprises:

[0024] Determine the number of temporary valid pixels a according to the number of minority points lp and the number of majority points mp t and the number of temporarily invalid pixels b t ;

[0025] The number of temporary effective pixels a t and the number of temporarily invalid pixels b t The smaller of the two is recorded as the number of temporary minority points lp t , the larger number is recorded as the number of temporary majority points mp t , and calculate the temporary grouping number Pc t and the number of temporary extraction groups Pw t Among them, Pc t =p r +1; mp t / Pc t The result of the floor operation;

[0026] Establishing a temporary extraction sequence of a temporary extraction group;

[0027] Interval processing of valid marks or invalid marks in the temporary extraction sequence to obtain an extraction sequence;

[0028] Among the A pixels in the i-th row of the initial image, the first a pixels having the same sequence number as the valid mark in the extraction sequence are sequentially extracted as loaded pixels.

[0029] The above method introduces temporary valid pixel points, temporary invalid pixel points, temporary majority points and temporary minority points, and cooperates with the subsequent grouping steps of constructing the extraction sequence and the step of extracting the first a pixels according to the mark, so as to naturally ensure that the first pixel and the Ath pixel are both the said loaded pixels, or are not the said loaded pixels at the same time; at the same time, through the step of grouping the extraction sequence, the uniform distribution of valid points and invalid points is naturally guaranteed; this method has the advantages of strong compatibility and easy coding, and has a better effect on the combined display of multiple special-shaped screens.

[0030] In a possible implementation manner of the first aspect, determining mp t / Pc t is an integer, then:

[0031] The step of establishing a temporary extraction sequence of a temporary extraction group comprises:

[0032] Build including PC t A temporary extraction sequence of a temporary extraction group, and any of the temporary extraction groups is composed of Pw t A valid tag and an invalid tag are composed in sequence; or,

[0033] Build including PC t A temporary extraction sequence of a temporary extraction group, and any of the temporary extraction groups is composed of Pw t An invalid tag and a valid tag are composed in sequence.

[0034] The above method provides a method for displaying the initial image on the special-shaped screen in a strictly uniform manner, under the premise that mp / Pc is an integer, and has higher display accuracy.

[0035] In a possible implementation manner of the first aspect, determining mp t / Pc t If is a non-integer, then:

[0036] The step of establishing a temporary extraction sequence of a temporary extraction group comprises:

[0037] according to Determine the jth subsequence of the temporary extraction group, where j is not greater than Pc t A positive integer, is with j, mp t 、Pc t Related preset judgment parameters.

[0038] Under the premise that mp / Pc is a non-integer, the above method provides a method for displaying the effective pixels in the initial image relatively evenly on the discrete pixels of the screen, which has the advantages of being simple, reliable and easy to encode.

[0039] In a second aspect, an embodiment of the present application provides a device for uniformly displaying effective pixels and invalid pixels, comprising:

[0040] An acquisition module, used to acquire an initial image and display screen information; the display screen information includes the number of display pixels on any row of the display screen;

[0041] The extraction module is used to uniformly select a pixels as carrying pixels from the A pixels in the i-th row of the initial image; wherein i is a positive integer not greater than the initial image, A≥a, and a is determined according to the number of pixels of the display screen.

[0042] In a third aspect, an embodiment of the present application provides a terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for uniformly displaying valid pixels and invalid pixels as described in any one of the first aspects above is implemented.

[0043] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the method for uniformly displaying valid pixels and invalid pixels as described in any one of the first aspects above.

[0044] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a terminal device, the terminal device executes the method for uniformly displaying valid pixels and invalid pixels as described in any one of the first aspects above.

[0045] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0047] Figure 1 It is a schematic diagram of a flow chart of a method for uniformly displaying valid pixels and invalid pixels provided in an embodiment of the present application;

[0048] Figure 2 It is a structural schematic diagram of a device for uniformly displaying effective pixels and invalid pixels provided in an embodiment of the present application;

[0049] Figure 3 is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application;

[0050] Figure 4 It is a schematic diagram of the disintegration process provided in an embodiment of the present application.

[0051] Reference numerals:

[0052] Acquisition module 201;

[0053] Extraction module 202;

[0054] Terminal device 30;

[0055] Processor 301;

[0056] Memory 302;

[0057] Computer program 303. DETAILED DESCRIPTION

[0058] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0059] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0060] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0061] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0062] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0063] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0064] In the field of image display, a typical scenario is to customize a light box according to the requirements provided by the customer for use in scenes such as concerts, billboards, etc. Since the customized light box needs to consider scene factors, such as the relatively small size of the handheld light box, the billboard space may not be a standard rectangle, etc., the customized light box may be a special-shaped screen that does not match the picture to be carried. In a similar case, how to carry the initial picture to the special-shaped screen with a better display effect is a technical problem that can be solved by the embodiments of the present application, that is, on the basis of the embodiments of the present application, the effect of uniformly carrying the initial picture to the special-shaped screen can be achieved. The embodiments of the present application will be described in detail below.

[0065] The present application embodiment provides a method for uniformly displaying effective pixels and invalid pixels. Figure 1 As shown, including:

[0066] Step 102, obtaining an initial image and display screen information; the display screen information includes the number of display pixels on any row of the display screen;

[0067] Step 104, uniformly select a pixels from the A pixels in the i-th row of the initial image as the carrying pixels; wherein i is a positive integer not greater than the initial image, A≥a, and a is determined according to the number of pixels of the display screen.

[0068] In an optional implementation, if the number of rows of the initial image is consistent with the number of rows of the display screen, step 104 can be converted to:

[0069] Among the A pixels corresponding to the i-th row of the display screen in the initial image, a pixels are uniformly selected as the carried pixels of the i-th row of the display screen; wherein i is a positive integer not greater than the number of rows of the display screen, A≥a, and a is equal to the number of pixels in the i-th row of the display screen.

[0070] A typical application scenario of this embodiment is image display of a special-shaped LED light box. In this application scenario:

[0071] The LED display screen is made up of boxes connected one by one through a network cable. The premise for the normal display of the screen is to light up a single box normally first. Most of the more common ones are rectangular boxes. With the diversification of application scenarios, non-rectangular boxes have emerged, such as fans, circles, triangles, etc. Such irregular boxes need to be obtained by cutting rectangular boxes. If the best image display effect needs to be presented during the cutting process, the invalid pixels in the loaded area need to be evenly cut off so that the image carried by the remaining valid pixels can be perfectly presented. From the perspective of the most convenient application of hardware and the realization of uniform cutting, it is not easy to achieve, so it is necessary to use the method of this embodiment to ensure the image presentation effect.

[0072] When the LED screen light points are cropped, it is most convenient to crop invalid pixels, which are usually continuous light points. In this case, the display effect is that the non-cropped area is fully displayed, and the cropped area is not displayed, and the whole screen display effect is not ideal. Or the actual proportion of the individual calculation to be cropped corresponds to the position of the point to be cropped to realize the cropping process. This method has a large workload and a relatively complicated calculation process. It is difficult for individuals to implement and cannot be implemented by general staff. In the image display application scenario of special-shaped LED light boxes, this embodiment mainly solves this situation. The algorithm is used to realize the uniform arrangement of invalid pixels and valid pixels, so as to achieve the best presentation of the whole screen display effect.

[0073] Based on this embodiment, a convenient and user-friendly operating software interface can be provided to meet various needs of actual production, thereby achieving the effect of liberating productivity.

[0074] In the image display application scenario of special-shaped LED light boxes, there are also the following two subdivisions.

[0075] The first case is for the display of a single LED screen. On the basis of the scheme of this embodiment, the relationship between valid pixels and invalid pixels in the data carried in the current data group is calculated to calculate the position relationship of the most evenly loaded current data area in the loaded area with valid pixels, so as to ensure that the remaining valid pixels are the most evenly loaded in the loaded area. For example, if there is a leaf image in the loaded area, when the cropping pixels are uneven, there may be leaf defects, and the textures in the leaves cannot be aligned. If the current algorithm is used to ensure the uniform presentation of the remaining display pixels, the shape of the leaves can be maintained as much as possible. The greater the cropping amount in the loaded area, the higher the leaf compression ratio, and the leaves are presented in the optimal loading mode.

[0076] The first case can achieve the best presentation effect of graphics and patterns in the cabinet (i.e., a single LED screen). When multiple cabinets are spliced ​​together, that is, in the second case, the effect of the entire screen is not the best. Therefore, when imaging the entire screen data, it is not possible to only calculate the relationship between the valid pixels and invalid pixels in the current cabinet. It is also necessary to calculate the position of the valid pixels loaded when the same cabinets are spliced ​​together.

[0077] For example, when achieving uniform loading for a single cabinet screen, the first pixel and the last pixel of a row of the initial image should be ensured to be loaded pixels or unloaded pixels at the same time, so as to achieve a better uniform display effect.

[0078] However, when multiple screens are used in collaboration, if a similar solution is still used, there may be a problem of two (or more) loaded pixels appearing continuously at adjacent locations on the screens or two (or more) pixels being excluded continuously, resulting in the overall display uniformity not being optimal. Therefore, when multiple cabinet screens are used in collaboration to achieve uniform loading, each cabinet in the collaboration can adopt a different strategy.

[0079] In order to implement the above different strategies, when there are three valid pixels left, the current data row can be evenly divided into six parts (considered as having five valid pixels, the actual pixels are 1, 3, 5; 2 and 4 are virtual pixels), and the final arrangement of the valid pixel positions is 1, 3, 5 (in some implementations, it can also be 2, 4, 6), thereby solving the above problem, that is, for a certain screen, its first pixel and the last pixel are valid pixels and invalid pixels, respectively. In the image display application scenario of the special-shaped LED light box, the beneficial effects of this embodiment are:

[0080] When displaying on special-shaped screens, the whole screen is not restricted by the cutting method and physical structure of the light board, and the image in the loaded area is displayed evenly.

[0081] In the actual production process, users will face complex and diverse demands. The software provides users with complete functions to meet their actual needs. It shields the complexity and feasibility of cutting light points for uniform imaging when displaying on special-shaped screens, thus achieving the goal of liberating productivity.

[0082] It is worth noting that the concept of "row" in this embodiment is defined at a specific display screen placement angle (in some cases, corresponding to the viewing angle of the initial image), and the row of the display screen placed at a first angle may be different from the row of the display screen placed at a second angle.

[0083] In some optional embodiments, steps 102 and 104 can be performed on each row of the initial image at a first angle, and then steps 102 and 104 can be performed again at a second angle to achieve uniform dispersion of pixel rows at different angles, thereby obtaining a loaded pixel set (i.e., an output image) that matches the display screen.

[0084] There are many optional ways to specifically execute step 104. In addition to the two grouping-based scattering schemes to be introduced in the subsequent embodiments, there are other optional schemes, such as polling algorithms and other algorithms that can evenly scatter valid pixels and invalid pixels.

[0085] Furthermore, in the implementation method based on grouping and scattering, in addition to the schemes based on the number of minority points plus one and the number of minority points minus one described in the subsequent embodiments, there are also other grouping methods and extraction sequence construction schemes, such as the number of minority points plus three and the number of minority points plus one.

[0086] The beneficial effects of this embodiment are:

[0087] A universal image display method is provided for special-shaped screens, that is, screens with a different number of pixels from the initial image. The method uniformly extracts pixels of the original image for any row of the display screen, and limits the first pixel and the Ath pixel to be both the loaded pixels, or to not be the loaded pixels at the same time, so that the initial image can be displayed uniformly and symmetrically on the special-shaped screen with minimal loss of image details.

[0088] According to the above embodiment, this embodiment will provide an efficient fragmentation solution for a single screen, specifically:

[0089] Among the A pixels in the i-th row of the initial image, the first pixel and the A-th pixel are both the loaded pixels, or are not the loaded pixels at the same time; among the A pixels in the i-th row of the initial image, the a pixels to be loaded are recorded as valid pixels, and the non-valid pixels are recorded as invalid pixels; the valid pixels and the invalid pixels, whichever are smaller in number, are recorded as minority pixels, and the ones which are larger in number are recorded as majority pixels;

[0090] The step of uniformly selecting a pixels as loaded pixels from the A pixels in the i-th row of the initial image comprises:

[0091] According to the number of minority points lp and the number of majority points mp, determine the number of groups Pc and the number of groups Pw; where Pc = lp + 1, The result of the floor rounding operation of mp / Pc;

[0092] Establishing an extraction sequence including Pc extraction groups; if the majority of points are the valid pixel points, the extraction group is sequentially composed of at least Pw valid marks and one invalid mark; if the minority of points are the valid pixel points, the extraction group is sequentially composed of at least Pw invalid marks and one valid mark;

[0093] Among the A pixels in the i-th row of the initial image, the first a pixels having the same sequence number as the valid mark in the extraction sequence are sequentially extracted as loaded pixels.

[0094] Similarly, in the case where the number of rows of the initial image is the same as the number of rows of the display screen, the solution of this embodiment can be converted to:

[0095] Among the A pixels in the initial image corresponding to the i-th row of the display screen, the first pixel and the A-th pixel are both the carried pixels, or are not the carried pixels at the same time; among the A pixels in the initial image corresponding to the i-th row of the display screen, the a pixels to be carried to the i-th row of the display screen are recorded as valid pixels, and the non-valid pixels are recorded as invalid pixels; the valid pixels and the invalid pixels, whichever are smaller in number, are recorded as minority pixels, and the ones which are larger in number are recorded as majority pixels;

[0096] The step of uniformly selecting a pixels from a pixels in the initial image corresponding to the i-th row of the display screen as the loaded pixels of the i-th row of the display screen comprises:

[0097] Determine the number of minority points lp, the number of majority points mp, the number of groups Pc, and the number of groups Pw; where Pc = lp + 1, The result of the floor rounding operation of mp / Pc;

[0098] Establishing an extraction sequence including Pc extraction groups; if the majority of points are the valid pixel points, the extraction group is sequentially composed of at least Pw valid marks and one invalid mark; if the minority of points are the valid pixel points, the extraction group is sequentially composed of at least Pw invalid marks and one valid mark;

[0099] For example, assuming that the first row of the display screen has 7 pixels, and the number of pixels of the initial image corresponding to the first row of the display image is 10, then the number of valid points is 7, the number of invalid points is 3, and the valid points are the majority points, and the invalid points are the minority points, that is:

[0100] mp=7

[0101] lp=3

[0102] thereby:

[0103] Pc=lp+1=4

[0104]

[0105] In this example, the extraction sequence includes 4 extraction groups, each of which includes at least 1 valid marker and 1 invalid marker;

[0106] The above example can also be applied to the case where the number of lines of the initial image is inconsistent with the number of lines of the display screen.

[0107] Among the A pixels in the initial image corresponding to the i-th row of the display screen, the first a pixels having the same serial number as the valid mark in the extraction sequence are extracted in sequence as the loaded pixels of the i-th row of the display screen.

[0108] Continuing the above extraction sequence, the extraction sequence includes 4 extraction groups, each extraction group includes at least 1 valid mark and 1 invalid mark. The valid mark is recorded as 1 and the invalid mark is recorded as 0. Assuming that the extraction sequence is 11011011010, the 10 pixels in the i-th row of the initial image (or, the i-th row of the display screen in the initial image, these two concepts can be replaced in some cases), the 1st, 2nd, 4th, 5th, 7th, 8th, and 10th pixels are extracted as loaded pixels.

[0109] Based on this embodiment, in a preferred implementation, the construction of the extraction sequence needs to consider whether there is a remainder in mp / Pc, so as to better achieve uniform dispersion of valid pixels and invalid pixels;

[0110] In this embodiment:

[0111] Determine mp / Pc is an integer, then the extraction group satisfies:

[0112] If the majority of points are valid pixel points, the extraction group is composed of Pw valid labels and one invalid label in sequence; if the minority of points are valid pixel points, the extraction group is composed of Pw invalid labels and one valid label in sequence.

[0113] This part provides a method for displaying the initial image on a special-shaped screen in a strictly uniform manner, under the premise that mp / Pc is an integer, with higher display accuracy.

[0114] Further, it is determined that mp / Pc is a non-integer, and the step of establishing an extraction sequence including Pc extraction groups includes:

[0115] According to ds j Determine the jth subsequence of the extraction group, where j is a positive integer not greater than Pc, ds j It is a preset judgment parameter related to j, mp, and Pc.

[0116] In a preferred embodiment, when mp / Pc is a non-integer:

[0117] The step of establishing an extraction sequence including Pc extraction groups comprises:

[0118] If ds k is not less than 0.5, and the majority of points are valid pixel points, then the j-th extraction group is set to be a subsequence consisting of Pw+1 valid markers and one invalid marker in sequence;

[0119] If ds j is not less than 0.5, and the minority points are the valid pixel points, then the j-th extraction group is set to be a subsequence consisting of Pw+1 invalid markers and one valid marker in sequence;

[0120] If ds j is less than 0.5, and the majority of points are valid pixels, then the j-th extraction group is set to be a subsequence consisting of Pw valid markers and one invalid marker in sequence;

[0121] If ds j is less than 0.5, and the minority points are the valid pixel points, then the j-th extraction group is set to be a subsequence consisting of Pw invalid marks and one valid mark in sequence;

[0122] Where j is a positive integer not greater than Pc, ds j It is a preset judgment parameter related to j, mp, and Pc.

[0123] As a preferred example but not a limitation, ds j satisfy:

[0124]

[0125] Among them, sl = mp%, % is the remainder symbol; It is the sum of the numbers of elements from the 1st extraction group to the jth extraction group.

[0126] This part provides a method for displaying the effective pixels in the initial image relatively evenly on discrete pixels of the screen, under the premise that mp / Pc is a non-integer. It has the advantages of being simple, reliable and easy to encode.

[0127] Figure 4 The schematic diagram of the disintegration process of this embodiment is shown. The parameters will be substituted below to explain this embodiment in more detail.

[0128] In the first example, assuming that the first row of the display screen has 7 pixels, and the number of pixels of the initial image corresponding to the first row of the display image is 10, then the number of valid points is 7, the number of invalid points is 3, and the valid points are the majority points, and the invalid points are the minority points, that is:

[0129] mp=7

[0130] lp=3

[0131] thereby:

[0132] Pc=lp+1=4

[0133]

[0134] In this example, the extraction sequence includes 4 extraction groups, each of which includes at least 1 valid marker and 1 invalid marker;

[0135] In this example, mp / Pc is not an integer, so ds should be considered. j Construct the extraction sequence, specifically:

[0136] Since sl=p%Pc=3, sl / =3 / 4;

[0137] For the first extraction group, Then the first extraction group is composed of 2 valid marks and 1 invalid mark arranged in sequence. Let 1 be a valid mark and 0 be an invalid mark, then the first extraction group is 110;

[0138] For the second extraction group, Then the second extraction group is 110;

[0139] For the third extraction group, Then the third extraction group is 10;

[0140] For the 4th extraction group, Then the fourth extraction group is 110;

[0141] Therefore, the extracted sequence is 11011010110, that is, the first mark of the extracted sequence is 1 (valid mark), the second mark is 1 (valid mark), the third mark is 0 (invalid mark), and so on.

[0142] Since the number of groups Pc=lp+1 in the above process, and each extracted group includes 1 minority point, which is equivalent to introducing an additional minority point, in this example, the execution process of step 104 extracts the first 7 pixels with the same valid tag sequence number, then the eleventh tag 0 in the extraction sequence is naturally discarded, that is, the additionally introduced minority point is discarded;

[0143] That is, in this example, among the 10 pixels of the initial image corresponding to the first row of the display image, the pixels numbered 1, 2, 4, 5, 7, 9, and 10 are sequentially extracted as the loaded pixels of the first row of the display screen;

[0144] In the second example, assuming that the first row of the display screen has 23 pixels, the number of pixels of the initial image corresponding to the first row of the display image is 60, then the number of valid points is 23, the number of invalid points is 37, and the valid points are the minority points, and the invalid points are the majority points, that is:

[0145] mp=37

[0146] lp=23

[0147] thereby:

[0148] Pc=lp+1=24

[0149]

[0150] In this example, the extraction sequence includes 24 extraction groups, each of which includes at least 1 valid marker and 1 invalid marker;

[0151] In this example, mp / Pc is not an integer, so ds should be considered. j Construct the extraction sequence, specifically:

[0152] Since sl=p%Pc=13, sl / =13 / 24;

[0153] For the first extraction group, The first extraction group is composed of 2 invalid tags and 1 valid tag arranged in sequence. Let 1 be a valid tag and 0 be an invalid tag. Then the first extraction group is 001. This process is recorded as 001 (group 1, 13 / 24, +1), and other extraction groups are identified by reference. That is, the numbers before the brackets represent the invalid tag and valid tag sequence of the jth extraction group. The first item in the brackets is used to identify the group number j, and the second item is used to identify ds j , the third item is used to identify the number of invalid tags, +1 refers to 2 invalid tags of Pw+1, +0 refers to 1 invalid tag of Pw, we can get:

[0154] 001(Group 1, 13 / 24, +1), 01(Group 2, -1+26 / 24=2 / 24, +0), 001(Group 3, -1+39 / 24, +1), 01(Group 4, -2+52 / 24, +0), 001(Group 5, -2+65 / 24, +1), 01(Group 6, -3+78 / 24=6 / 24, +0), 001(Group 7, -3+91 / 24=19 / 24, +1), 01(Group 8,-4+104 / 24=8 / 24,+0),001(Group 9,-4+117 / 24=21 / 24,+1),01(Group 10,-5+130 / 24=10 / 24,+0),001(Group 11,-5+143 / 24=23 / 24,+1),001(Group 12,-6+156 / 24=12 / 24,+1),01(Group 13,-7+169 / 24=1 / 24,+ 0),001(group 14,-7+182 / 24=14 / 24,+1),01(group 15,-8+195 / 24=3 / 24,+0),001(group 16,-8+208 / 24=16 / 24,+1),01(group 17,-9+221 / 24=5 / 24,+0),001(group 18,-9+234 / 24=18 / 24,+1),01(group 19,-10+247 / 24=7 / 24,+0), 001(group 20,-10+260 / 24=20 / 24,+1), 01(group 21,-11+273 / 24=9 / 24,+0), 001(group 22,-11+286 / 24=22 / 24,+1), 01(group 23,-12+299 / 24=11 / 24,+0), 001(group 24,-12+312 / 24=24 / 24,+1).

[0155] When the first 23 valid pixels are extracted, the valid mark 1 in group 24 is discarded, and the introduced minority points are naturally excluded.

[0156] It can be seen from the above examples that no matter whether the valid pixels are the majority or the minority, by using the steps of this embodiment, it can be naturally achieved that the first pixel and the Ath pixel are both the loaded pixels, or are not the loaded pixels at the same time; it can also naturally achieve a uniform distribution of valid pixels and invalid pixels, which is why this embodiment has the advantages of simplicity, efficiency, and easy coding.

[0157] The following is a pseudo-code flow corresponding to this embodiment from the perspective of programming. Specifically, the scattering algorithm includes:

[0158] 1. Calculate the number of valid points (m) and invalid points (n) in the current row

[0159] 2. Determine whether the current row data is in positive or reverse order

[0160] 3. Compare the quantitative relationship between m and n

[0161] 3.1, m is equal to n, the data are arranged in order;

[0162] 3.2. The larger the data, the morePoint, and the smaller the data, the lessPoint;

[0163] lessPoint+1 is used as the number of groups partCount;

[0164] morePoint / partCount = number of groups partwidth;

[0165] morePoint%partCount=remaindersplitLeft;

[0166] 4.1 When the remainder is empty, insert it cyclically according to the number of data groups (number of groups, morepoint type + one lessPoint type)

[0167] 4.2 When the remainder is not empty, splitLeft / partCount = group average value douFunction; the current number of groups needs to be changed according to the group average value calculation; determine whether the current number of groups has changed based on the group average value superposition;

[0168] Insert data in a loop according to the data group (morepoint type + one lessPoint type in the current group)

[0169] 5. Follow the above steps to get an evenly arranged type sequence, and renumber it in the order of step 2 to use as the coordinates.

[0170] According to any of the above embodiments, this embodiment will provide a reliable dispersing solution for multiple screens. Compared with the dispersing solution for a single screen provided in the previous embodiment, this embodiment adds some processes, but provides a better display effect for the connection of multiple screens. Specifically:

[0171] Among the A pixels in the i-th row of the initial image, the a pixels to be loaded are recorded as valid pixels, and the invalid pixels are recorded as invalid pixels; the valid pixels and the invalid pixels with a smaller number are recorded as minority pixels, and the invalid pixels with a larger number are recorded as majority pixels;

[0172] The step of uniformly selecting a pixels as loaded pixels from the A pixels in the i-th row of the initial image comprises:

[0173] Determine the number of temporary valid pixels a according to the number of minority points lp and the number of majority points mp t and the number of temporarily invalid pixels b t ;

[0174] The number of temporary effective pixels a t and the number of temporarily invalid pixels b t The smaller of the two is recorded as the number of temporary minority points lp t , the larger number is recorded as the number of temporary majority points mp t , and calculate the temporary grouping number Pc t and the number of temporary extraction groups Pw t Among them, Pc t =p t +1; mp t / Pc t The result of the floor operation;

[0175] Establishing a temporary extraction sequence of a temporary extraction group;

[0176] Interval processing of valid marks or invalid marks in the temporary extraction sequence to obtain an extraction sequence;

[0177] Among the A pixels in the i-th row of the initial image, the first a pixels having the same sequence number as the valid mark in the extraction sequence are sequentially extracted as loaded pixels.

[0178] In a preferred embodiment, the steps of this embodiment can be specifically as follows:

[0179] If the temporary majority point is the temporary valid pixel point, then establish a t At least Pw t A temporary extraction sequence of a temporary extraction group consisting of a valid mark and an invalid mark in sequence;

[0180] If the temporary minority point is the temporary valid pixel point, then establish a t At least Pw t A temporary extraction sequence of a temporary extraction group consisting of an invalid mark and a valid mark in sequence;

[0181] If the majority of points are valid pixel points, the invalid mark intervals in the temporary extraction sequence are processed as valid marks to obtain an extraction sequence;

[0182] If the minority of points are valid pixel points, the valid mark intervals in the temporary extraction sequence are processed as invalid marks to obtain an extraction sequence;

[0183] Among the A pixels in the initial image corresponding to the i-th row of the display screen, the first a pixels having the same serial number as the valid mark in the extraction sequence are extracted in sequence as the loaded pixels of the i-th row of the display screen.

[0184] Based on this embodiment, in a preferred embodiment, the construction of the extraction sequence needs to consider mp t / Pc t Whether there is a remainder, so as to better achieve uniform dispersion of valid pixels and invalid pixels;

[0185] In this embodiment:

[0186] Determine MP t / Pc t is an integer, then:

[0187] The step of establishing a temporary extraction sequence of a temporary extraction group comprises:

[0188] Build including PC t A temporary extraction sequence of a temporary extraction group, and any of the temporary extraction groups is composed of Pw t A valid tag and an invalid tag are composed in sequence; or,

[0189] Build including PC t A temporary extraction sequence of a temporary extraction group, and any of the temporary extraction groups is composed of Pw t An invalid tag and a valid tag are composed in sequence.

[0190] For mp t / Pc t When is an integer, in a preferred embodiment:

[0191] If the temporary majority point is the temporary valid pixel point, then establish a t At least Pw tThe steps of temporarily extracting a temporary extraction sequence of a temporary extraction group consisting of a valid mark and an invalid mark in sequence include:

[0192] Build including PC t A temporary extraction sequence of a temporary extraction group, and any of the temporary extraction groups is composed of Pw t A valid mark and an invalid mark are composed in sequence;

[0193] If the temporary minority point is the temporary valid pixel point, then establish a t At least Pw t The steps of temporarily extracting a temporary extraction sequence of a temporary extraction group consisting of an invalid mark and a valid mark in sequence include:

[0194] Build including PC t A temporary extraction sequence of a temporary extraction group, and any of the temporary extraction groups is composed of Pw t An invalid tag and a valid tag are composed in sequence.

[0195] This part is in mp t / Pc t On the premise that the value is an integer, a method for displaying the initial image on a special-shaped screen in a strictly uniform manner is provided, which has higher display accuracy.

[0196] Determine MP t / Pc t If is a non-integer, then:

[0197] The step of establishing a temporary extraction sequence of a temporary extraction group comprises:

[0198] according to Determine the jth subsequence of the temporary extraction group, where j is not greater than Pc t A positive integer, is with j, mp t 、Pc t Related preset judgment parameters.

[0199] For mp t / Pc t When is a non-integer, in a preferred embodiment:

[0200] If the temporary majority point is the temporary valid pixel point, then establish a t At least Pw t The steps of temporarily extracting a temporary extraction sequence of a temporary extraction group consisting of a valid mark and an invalid mark in sequence include:

[0201] like is not less than 0.5, and the temporary majority point is the temporary valid pixel point, then the jth temporary extraction group is set to be composed of Pw t + A subsequence consisting of 1 valid token and one invalid token;

[0202] like is less than 0.5, and the temporary majority point is the temporary valid pixel point, then the jth temporary extraction group is set to be composed of Pw t A subsequence consisting of a valid tag and an invalid tag in sequence;

[0203] If the temporary minority point is the temporary valid pixel point, then establish a t At least Pw t The steps of temporarily extracting a temporary extraction sequence of a temporary extraction group consisting of an invalid mark and a valid mark in sequence include:

[0204] like is not less than 0.5, and the temporary minority point is the temporary valid pixel point, then the jth temporary extraction group is set to be composed of Pw t + a subsequence consisting of 1 invalid token and one valid token;

[0205] like is less than 0.5, and the temporary minority point is the temporary valid pixel point, then the jth temporary extraction group is set to be composed of Pw t A subsequence consisting of an invalid tag and a valid tag in sequence;

[0206] Where j is not greater than Pc t A positive integer, is with j, mp t 、Pc t Related preset judgment parameters;

[0207] As a preferred example and not a limitation, satisfy:

[0208]

[0209] Among them, sl t =p t % t , % is the remainder symbol; is the sum of the numbers of elements from the first temporary extraction group to the jth temporary extraction group.

[0210] This part provides a method for displaying the effective pixels in the initial image relatively evenly on discrete pixels of the screen, under the premise that mp / Pc is a non-integer. It has the advantages of being simple, reliable and easy to encode.

[0211] Similarly, parameters will be substituted below to explain this implementation in more detail.

[0212] Assuming that the first row of the display screen has 7 pixels, and the number of pixels of the initial image corresponding to the first row of the display image is 12, then the number of valid points is 7, the number of invalid points is 3, and the valid points are the majority points, and the invalid points are the minority points, that is:

[0213] mp=7

[0214] lp=5

[0215] thereby:

[0216] mp t = t =2×lp-1=9

[0217] lp t = t =p-lp+1=3

[0218] Pc t =p t +1=4

[0219]

[0220] In this example, the temporary extraction sequence includes 4 temporary extraction groups, each of which includes at least 2 invalid markers and 1 valid marker;

[0221] In this example, mp t / Pc t If it is not an integer, then Construct a temporary extraction sequence, specifically:

[0222] Due to sl t =p t % t =1,sl t / t =1 / 4;

[0223] For the first extraction group, Then the first temporary extraction group is composed of 2 invalid marks and 1 valid mark arranged in sequence, and 1 is a valid mark and 0 is an invalid mark, then the first extraction group is 001;

[0224] For the second extraction group, Then the second temporary extraction group is 0001;

[0225] For the third extraction group, Then the third temporary extraction group is 001;

[0226] For the 4th extraction group, Then the fourth temporary extraction group is 001;

[0227] Therefore, the temporary extraction sequence is 0010001001001, that is, the first mark of the extraction sequence is 0 (invalid mark), the second mark is 0 (invalid mark), the third mark is 1 (valid mark), and so on.

[0228]

[0229]

[0230] Referring to the above table, the marks with serial numbers 1, 2, 4, 5, 6, 8, 9, 11, and 12 in the temporary extraction sequence are invalid marks, and their intervals are processed as valid marks, that is, the marks with serial numbers 2, 5, 8, and 11 are processed as valid marks, thereby obtaining the extraction sequence: 0110101101101;

[0231] Similarly, the 13th mark 1 in the extraction sequence is naturally discarded, and the 2nd, 3rd, 5th, 7th, 8th, 10th, and 11th pixels of the initial image corresponding to the 12 pixels of the 1st row of the display image are sequentially extracted as the carrying pixels of the 1st row of the display screen;

[0232] In a preferred embodiment:

[0233] If the majority of points are valid pixel points, the 2xth invalid mark in the temporary extraction sequence is processed as a valid mark to obtain an extraction sequence; wherein x is any positive integer not greater than half of the number of invalid marks in the temporary extraction sequence;

[0234] If the minority points are the valid pixel points, the 2yth valid mark in the temporary extraction sequence is processed as an invalid mark to obtain an extraction sequence; wherein y is any positive integer not greater than half of the number of valid marks in the temporary extraction sequence;

[0235] The beneficial effects of this embodiment are:

[0236] By introducing temporary valid pixel points, temporary invalid pixel points, temporary majority points and temporary minority points, and cooperating with the subsequent grouping steps of constructing an extraction sequence and the step of extracting the first a pixels according to the mark, it is naturally ensured that the first pixel and the Ath pixel are both the loaded pixels, or are not the loaded pixels at the same time; at the same time, through the step of grouping and constructing the extraction sequence, the uniform distribution of valid points and invalid points is naturally ensured; this method has the advantages of strong compatibility and easy coding, and has a better effect on the combined display of multiple special-shaped screens.

[0237] The following is a pseudo-code flow corresponding to this embodiment from the perspective of programming. Specifically, the whole screen scattering algorithm includes:

[0238] 1. If the valid point or invalid point is 1, the scattering algorithm is called directly;

[0239] 2. The smaller party subtracts 1 as a supplementary point;

[0240] 3.1 When the valid point is smaller than the invalid point, the temporary invalid point = invalid point - (valid point - 1); the temporary valid point = valid point + (valid point - 1);

[0241] Call the scattering algorithm to obtain type sorting and process the interval valid points as invalid points

[0242] 3.2 When the valid point is greater than the invalid point, the temporary valid point = valid point - (invalid point - 1); the temporary invalid point = invalid point + (invalid point - 1);

[0243] Call the scattering algorithm to obtain type sorting and process the invalid interval points as valid points

[0244] 4. Follow the above steps to get an evenly arranged type sequence, and renumber it in the order of step 2 to use as the coordinates.

[0245] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0246] Corresponding to the method for uniformly displaying effective pixels and invalid pixels described in the above embodiment, Figure 2 A structural block diagram of a device for uniformly displaying effective pixels and invalid pixels provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0247] Reference Figure 2 , the device comprises:

[0248] The acquisition module 201 is used to acquire an initial image and display screen information; the display screen information includes the number of display pixels on any row of the display screen;

[0249] The extraction module 202 is used to uniformly select a pixels as carrying pixels from the A pixels in the i-th row of the initial image; wherein i is a positive integer not greater than the initial image, A≥a, and a is determined according to the number of pixels of the display screen.

[0250] Specifically:

[0251] Among the A pixels in the i-th row of the initial image, the first pixel and the A-th pixel are both the loaded pixels, or are not the loaded pixels at the same time; among the A pixels in the i-th row of the initial image, the a pixels to be loaded are recorded as valid pixels, and the non-valid pixels are recorded as invalid pixels; the valid pixels and the invalid pixels, whichever are smaller in number, are recorded as minority pixels, and the ones which are larger in number are recorded as majority pixels;

[0252] The extraction module 202 includes:

[0253] The first submodule is used to determine the number of groups Pc and the number of groups Pw according to the number of minority points lp and the number of majority points mp; wherein Pc=lp+1, The result of the floor rounding operation of mp / Pc;

[0254] The second submodule is used to establish an extraction sequence including Pc extraction groups; if the majority of points are the valid pixel points, the extraction group is composed of at least Pw valid marks and one invalid mark in sequence; if the minority of points are the valid pixel points, the extraction group is composed of at least Pw invalid marks and one valid mark in sequence;

[0255] The third submodule is used to extract the first a pixels having the same sequence number as the valid mark in the extraction sequence among the A pixels in the i-th row of the initial image as the carrying pixels in sequence.

[0256] Determine mp / Pc is an integer, then the extraction group satisfies:

[0257] If the majority of points are valid pixel points, the extraction group is composed of Pw valid labels and one invalid label in sequence; if the minority of points are valid pixel points, the extraction group is composed of Pw invalid labels and one valid label in sequence.

[0258] The second submodule includes:

[0259] A non-integer unit is used to determine that mp / Pc is a non-integer. Then, the step of establishing an extraction sequence including Pc extraction groups includes:

[0260] According to ds j Determine the jth subsequence of the extraction group, where j is a positive integer not greater than Pc, ds j It is a preset judgment parameter related to j, mp, and Pc.

[0261] Alternatively, among the A pixels in the i-th row of the initial image, the a pixels to be loaded are recorded as valid pixels, and the invalid pixels are recorded as invalid pixels; the valid pixels and the invalid pixels, whichever are smaller in number, are recorded as minority pixels, and the ones which are larger in number are recorded as majority pixels;

[0262] The extraction module 202 includes:

[0263] The fourth submodule is used to determine the number of temporary valid pixels a according to the number of minority points lp and the number of majority points mp t and the number of temporarily invalid pixels b t ;

[0264] The fifth submodule is used for:

[0265] The number of temporary effective pixels a t and the number of temporarily invalid pixels b t The smaller of the two is recorded as the number of temporary minority points lp t , the larger number is recorded as the number of temporary majority points mp t , and calculate the temporary grouping number Pc t and the number of temporary extraction groups Pw t Among them, Pc t =p r +1; mp t / Pc t The result of the floor operation;

[0266] Establishing a temporary extraction sequence of a temporary extraction group;

[0267] Interval processing of valid marks or invalid marks in the temporary extraction sequence to obtain an extraction sequence;

[0268] The sixth submodule is used to extract the first a pixels having the same sequence number as the valid mark in the extraction sequence among the A pixels in the i-th row of the initial image as the carrying pixels in sequence.

[0269] The fifth submodule comprises:

[0270] Unit 3 is used to determine mp t / Pc t is an integer, then:

[0271] Build including PC t A temporary extraction sequence of a temporary extraction group, and any of the temporary extraction groups is composed of Pw t A valid tag and an invalid tag are composed in sequence; or,

[0272] Build including PC t A temporary extraction sequence of a temporary extraction group, and any of the temporary extraction groups is composed of Pw t An invalid tag and a valid tag are composed in sequence.

[0273] Unit 4 is used to determine mpt / Pc t If is a non-integer, then:

[0274] according to Determine the jth subsequence of the temporary extraction group, where j is not greater than Pc t A positive integer, is with j, mp t 、Pc t Related preset judgment parameters.

[0275] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0276] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0277] The present application also provides a terminal device, such as Figure 3 As shown, the terminal device 30 includes: at least one processor 301, a memory 302, and a computer program 303 stored in the memory and executable on the at least one processor, and the processor implements the steps in any of the above-mentioned method embodiments when executing the computer program.

[0278] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0279] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0280] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0281] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0282] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0283] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0284] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0285] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for uniformly displaying effective pixels and invalid pixels, characterized in that: include: Acquire an initial image and display screen information; the display screen information includes the number of display pixels on any row of the display screen; Among the A pixels in the i-th row of the initial image, a pixels are uniformly selected as the loaded pixels; wherein i is a positive integer not greater than the initial image, A≥a, and a is determined according to the number of pixels of the display screen; Among the A pixels in the i-th row of the initial image, the first pixel and the A-th pixel are both the loaded pixels, or are not the loaded pixels at the same time; among the A pixels in the i-th row of the initial image, the a pixels to be loaded are recorded as valid pixels, and the non-valid pixels are recorded as invalid pixels; the valid pixels and the invalid pixels, whichever are smaller in number, are recorded as minority pixels, and the ones which are larger in number are recorded as majority pixels; The step of uniformly selecting a pixels as loaded pixels from the A pixels in the i-th row of the initial image comprises: According to the number of minority points lp and the number of majority points mp, determine the number of groups Pc and the number of groups Pw; where Pc = lp + 1, The result of the floor rounding operation of mp / Pc; Establishing an extraction sequence including Pc extraction groups; if the majority of points are the valid pixel points, the extraction group is sequentially composed of at least Pw valid marks and one invalid mark; if the minority of points are the valid pixel points, the extraction group is sequentially composed of at least Pw invalid marks and one valid mark; Extracting the first a pixels of the A pixels in the i-th row of the initial image, which have the same sequence number as the valid mark in the extraction sequence, as loaded pixels in sequence; Alternatively, among the A pixels in the i-th row of the initial image, the a pixels to be loaded are recorded as valid pixels, and the invalid pixels are recorded as invalid pixels; the valid pixels and the invalid pixels, whichever are smaller in number, are recorded as minority pixels, and the ones which are larger in number are recorded as majority pixels; The step of uniformly selecting a pixels as loaded pixels from the A pixels in the i-th row of the initial image comprises: Determine the number of temporary valid pixels a according to the number of minority points lp and the number of majority points mp t and the number of temporarily invalid pixels b t ; The number of temporary effective pixels a t and the number of temporarily invalid pixels b t The smaller of the two is recorded as the number of temporary minority points lp t , the larger number is recorded as the number of temporary majority points mp t , and calculate the temporary grouping number Pc t and the number of temporary extraction groups Pw t Among them, Pc t =lp t +1; mp t / Pc t The result of the floor operation; Establishing a temporary extraction sequence of a temporary extraction group; Interval processing of valid marks or invalid marks in the temporary extraction sequence to obtain an extraction sequence; Among the A pixels in the i-th row of the initial image, the first a pixels having the same sequence number as the valid mark in the extraction sequence are sequentially extracted as loaded pixels.

2. The method for uniformly displaying effective pixels and invalid pixels as claimed in claim 1, characterized in that: Sure mp / P c is an integer, then the extraction group satisfies: If the majority of points are valid pixel points, the extraction group is sequentially composed of Pw valid markers and one invalid marker; if the minority of points are valid pixel points, the extraction group is sequentially composed of Pw invalid markers and one valid marker.

3. The method for uniformly displaying effective pixels and invalid pixels as claimed in claim 1, characterized in that: Sure mp / P c is a non-integer, the step of establishing an extraction sequence including Pc extraction groups comprises: According to ds j Determine the jth subsequence of the extraction group, where j is a positive integer not greater than Pc, ds j It is a preset judgment parameter related to j, mp, and Pc.

4. The method for uniformly displaying effective pixels and invalid pixels as claimed in claim 1, characterized in that: Determine MP t / Pc t is an integer, then: The step of establishing a temporary extraction sequence of a temporary extraction group comprises: Build including PC t A temporary extraction sequence of a temporary extraction group, and any of the temporary extraction groups is composed of Pw t A valid tag and an invalid tag are composed in sequence; or, Build including PC t A temporary extraction sequence of a temporary extraction group, and any of the temporary extraction groups is composed of Pw t An invalid tag and a valid tag are composed in sequence.

5. The method for uniformly displaying effective pixels and invalid pixels as claimed in claim 1, characterized in that: Determine MP t / Pc t is a non-integer, then: The step of establishing a temporary extraction sequence of a temporary extraction group comprises: according to Determine the jth subsequence of the temporary extraction group, where j is not greater than Pc t A positive integer, is with j, mp t 、Pc t Related preset judgment parameters.

6. A device for uniformly displaying effective pixels and invalid pixels, characterized in that: include: An acquisition module, used to acquire an initial image and display screen information; the display screen information includes the number of display pixels on any row of the display screen; An extraction module, configured to uniformly select a pixels from the A pixels in the i-th row of the initial image as loaded pixels; wherein i is a positive integer not greater than the initial image, A≥a, and a is determined according to the number of pixels of the display screen; Among the A pixels in the i-th row of the initial image, the first pixel and the A-th pixel are both the loaded pixels, or are not the loaded pixels at the same time; among the A pixels in the i-th row of the initial image, the a pixels to be loaded are recorded as valid pixels, and the non-valid pixels are recorded as invalid pixels; the valid pixels and the invalid pixels, whichever are smaller in number, are recorded as minority points, and the ones which are larger in number are recorded as majority points; the extraction module includes: The first submodule is used to determine the number of groups Pc and the number of groups Pw according to the number of minority points lp and the number of majority points mp; wherein Pc=lp+1, The result of the floor rounding operation of mp / Pc; The second submodule is used to establish an extraction sequence including Pc extraction groups; if the majority of points are the valid pixel points, the extraction group is composed of at least Pw valid marks and one invalid mark in sequence; if the minority of points are the valid pixel points, the extraction group is composed of at least Pw invalid marks and one valid mark in sequence; The third submodule is used to extract the first a pixels having the same sequence number as the valid mark in the extraction sequence from the A pixels in the i-th row of the initial image as the loaded pixels in sequence; Alternatively, among the A pixels in the i-th row of the initial image, the a pixels to be carried are recorded as valid pixels, and the invalid pixels are recorded as invalid pixels; the valid pixels and the invalid pixels, whichever are smaller in number, are recorded as minority pixels, and the ones which are larger in number are recorded as majority pixels; the extraction module includes: The fourth submodule is used to determine the number of temporary valid pixels a according to the number of minority points lp and the number of majority points mp t and the number of temporarily invalid pixels b t ; The fifth submodule is used to set the number of temporary effective pixels a t and the number of temporarily invalid pixels b t The smaller of the two is recorded as the number of temporary minority points lpt, and the larger one is recorded as the number of temporary majority points mpt, and the temporary grouping number Pc is calculated t and the number of temporary extraction groups Pw t Among them, Pc t =lp t +1; mp t / Pc t rounding down the result of the operation; establishing a temporary extraction sequence of the temporary extraction group; processing the valid marks or invalid marks in the temporary extraction sequence at intervals to obtain an extraction sequence; The sixth submodule is used to extract the first a pixels having the same sequence number as the valid mark in the extraction sequence among the A pixels in the i-th row of the initial image as the carrying pixels in sequence.

7. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 5 is implemented.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Screen configuration method and device of display screen, storage medium and processor

    CN114489537A