CN113284472B - Screen projection resolution conversion method, device, equipment and storage medium - Google Patents

Screen projection resolution conversion method, device, equipment and storage medium Download PDF

Info

Publication number
CN113284472B
CN113284472B CN202110524314.1A CN202110524314A CN113284472B CN 113284472 B CN113284472 B CN 113284472B CN 202110524314 A CN202110524314 A CN 202110524314A CN 113284472 B CN113284472 B CN 113284472B
Authority
CN
China
Prior art keywords
resolution
value
sending end
data
end data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110524314.1A
Other languages
Chinese (zh)
Other versions
CN113284472A (en
Inventor
李凌
陈锡华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Happycast Technology Co Ltd
Original Assignee
Shenzhen Happycast Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Happycast Technology Co Ltd filed Critical Shenzhen Happycast Technology Co Ltd
Priority to CN202110524314.1A priority Critical patent/CN113284472B/en
Publication of CN113284472A publication Critical patent/CN113284472A/en
Application granted granted Critical
Publication of CN113284472B publication Critical patent/CN113284472B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/04Changes in size, position or resolution of an image
    • G09G2340/0407Resolution change, inclusive of the use of different resolutions for different screen areas

Abstract

The invention relates to the field of data screen projection, and discloses a screen projection resolution conversion method, a device, equipment and a storage medium. The method comprises the following steps: reading a first resolution of data of a sending end and reading a second resolution of a receiving end; judging whether the first resolution is larger than the second resolution; if yes, filtering and deleting the pixels of the sending end data to obtain sending end data with a second resolution; and transmitting the sending end data to the receiving end.

Description

Screen projection resolution conversion method, device, equipment and storage medium
Technical Field
The invention relates to the field of data screen projection, in particular to a screen projection resolution conversion method, device, equipment and storage medium.
Background
The data screen projection is to project different screens of data. In practice, the data itself is of a resolution, and different display states exist for different display screens. Some data can be displayed in different resolutions according to different screens, so that the situation that the resolution of the data is changed on the display screen does not exist. However, in the screen projection process, some data need to be directly acquired from the desktop for the convenience of transmission speed, and then the acquired data are transmitted to the device needing screen projection.
However, in practice, the hardware display resolution of each screen is different, the resolution is not changed, when the display resolution of the transmitting end is higher and the display resolution of the receiving end is lower, the desktop collected data are all high-definition, noise is very little, and direct encoding can result in a high code rate. Therefore, in this situation, a technique for displaying data on the receiving end more smoothly is required.
Disclosure of Invention
The invention mainly aims to solve the technical problem that the display end has excessively high resolution ratio and the display is unsmooth and normal at the receiving end in the screen projection process.
The first aspect of the present invention provides a screen projection resolution conversion method, including:
reading a first resolution of data at a sending end, and reading a second resolution of data at a receiving end;
judging whether the first resolution is larger than the second resolution;
if yes, filtering and deleting the pixels of the sending end data to obtain sending end data with a second resolution;
and transmitting the data of the sending end to the receiving end.
Optionally, in a first implementation manner of the first aspect of the present invention, the determining whether the first resolution is greater than the second resolution includes:
reading a first vertical pixel value and a first horizontal pixel value of the first resolution, and reading a second vertical pixel value and a second horizontal pixel value of the second resolution;
multiplying the first vertical pixel value by the first horizontal pixel value to obtain a first analysis value, and multiplying the second vertical pixel value by the second horizontal pixel value to obtain a second analysis value;
judging whether the first analysis value is larger than the second analysis value;
if so, confirming that the first resolution is greater than the second resolution;
if the first resolution is smaller than the second resolution, the first resolution is confirmed to be smaller than the second resolution.
Optionally, in a second implementation manner of the first aspect of the present invention, the filtering and deleting pixels of the sending end data to obtain sending end data with the second resolution includes:
calculating an excess proportion value of the first analysis value and the second analysis value;
and carrying out two-dimensional filtering and deleting processing on the sending end data according to a preset filtering window and the exceeding proportion value to obtain the sending end data with the second resolution.
Optionally, in a third implementation manner of the first aspect of the present invention, the performing two-dimensional filtering deletion processing on the sending end data according to a preset filtering window and the excess proportion value to obtain sending end data with a second resolution includes:
sequentially reading RGB value matrixes in the data of the sending terminal based on a preset filtering window;
according to the excess proportion value, performing proportion filtering enhancement processing on the RGB value matrix to obtain an RGB value result matrix;
and generating sending end data with a second resolution according to the data of all the RGB value result matrixes.
Optionally, in a fourth implementation manner of the first aspect of the present invention, the performing, according to the excess proportion value, a proportion filtering enhancement process on the RGB value matrix to obtain an RGB value result matrix includes:
randomly deleting the data exceeding the proportional value from the RGB value matrix to obtain a filtered RGB value matrix;
and acquiring enhancement parameters corresponding to the training RGB values based on the neural network, and changing the value of the filtering RGB value matrix according to the enhancement parameters to obtain an RGB value result matrix.
Optionally, in a fifth implementation manner of the first aspect of the present invention, the performing filtering and deleting processing on the pixels of the sending end data to obtain the sending end data with the second resolution further includes:
subtracting the first vertical pixel value from the second vertical pixel value to obtain a first difference value, and subtracting the first horizontal pixel value from the second horizontal pixel value to obtain a second difference value;
and based on the positive and negative of the first difference value and the second difference value, carrying out extraction and deletion processing on the pixels of the sending end data to obtain sending end data with a second resolution.
Optionally, in a sixth implementation manner of the first aspect of the present invention, the performing, based on the negativity of the first difference and the second difference, extraction and deletion processing on the pixels of the sending end data, and obtaining sending end data of a second resolution includes:
judging whether the first difference value is a positive number or not;
if the first difference value is a positive number, dividing the first difference value by the first vertical pixel value to obtain a vertical extraction ratio, and performing vertical extraction deletion processing on the sending end data according to a preset vertical extraction window value and the vertical extraction ratio to obtain sending end data in an intermediate processing state;
judging whether the second difference value is a positive number or not;
if the second difference value is a positive number, dividing the second difference value by the first horizontal pixel value to obtain a horizontal extraction ratio, and performing horizontal extraction deletion processing on the sending end data according to a preset horizontal extraction window value and the horizontal extraction ratio to obtain sending end data with a second resolution ratio;
and if the second difference is not a positive number, determining the sending end data as the sending end data with the second resolution.
A second aspect of the present invention provides a projection resolution conversion apparatus, including:
the reading module is used for reading the first resolution of the data of the sending end and reading the second resolution of the receiving end;
the judging module is used for judging whether the first resolution is greater than the second resolution;
a filtering and deleting module, configured to perform filtering and deleting processing on the pixels of the sending end data if the pixel size is larger than the threshold size, to obtain sending end data with a second resolution;
and the transmission module is used for transmitting the data of the sending end to the receiving end.
A third aspect of the present invention provides a projection resolution converting apparatus, including: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line; the at least one processor calls the instructions in the memory to cause the screen projection resolution conversion apparatus to execute the screen projection resolution conversion method described above.
A fourth aspect of the present invention provides a computer-readable storage medium having stored therein instructions, which, when run on a computer, cause the computer to execute the above-described screen projection resolution conversion method.
In the embodiment of the invention, the pixels of the high-resolution display data are partially deleted and filtered, so that the resolution of the whole display data is reduced under the condition of not losing information data, the stability and the fluency of the display data of a receiving end in the data transmission process are improved, and the effects of quick transmission and smooth display in the screen projection process are realized.
Drawings
FIG. 1 is a diagram illustrating an exemplary screen resolution conversion method according to an embodiment of the present invention;
FIG. 2 is a diagram of another embodiment of a screen resolution conversion method according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating an embodiment of step 1032;
FIG. 4 is a schematic diagram of an embodiment of a projection resolution conversion apparatus according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of another embodiment of a projection resolution conversion apparatus according to an embodiment of the present invention;
fig. 6 is a schematic diagram of an embodiment of a projection resolution conversion apparatus according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a screen projection resolution conversion method, a screen projection resolution conversion device, screen projection resolution conversion equipment and a storage medium.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," or "having," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of understanding, a specific flow of an embodiment of the present invention is described below, and referring to fig. 1, an embodiment of a method for converting a projection resolution according to an embodiment of the present invention includes:
101. reading a first resolution of data of a sending end and reading a second resolution of a receiving end;
in this embodiment, if the display resolution of the transmitting end is 1080P and the display resolution of the receiving end is 720P, then directly transmitting the data collected by the transmitting end to the receiving end would result in the compressed display state and the data could not be displayed well, which would require resolution conversion. It should be noted that the present invention is premised on the fact that the data resolution of the transmitting end is greater than that of the receiving end, and therefore, a step is required to be performed to determine the data display resolutions of the transmitting end and the receiving end.
102. Judging whether the first resolution is greater than the second resolution;
in this embodiment, the determination of the first resolution and the second resolution needs to be analyzed, and the analysis may be performed by directly reading the display resolution of the screen. For example, if the display resolution at the transmitting end is 1920 × 1080 and the display resolution at the receiving end is 1280 × 720, it may be known that the first resolution is greater than the second resolution. In practice, to adapt the resolution, the following may be further processed:
1021. reading a first vertical pixel value and a first horizontal pixel value of a first resolution, and reading a second vertical pixel value and a second horizontal pixel value of a second resolution;
in this embodiment, it should be noted that the resolution is not only 1080P and 720P, but is exemplified by 1080P and 720P. The first vertical pixel value of the first resolution is read as 1080, the first horizontal pixel value is read as 1920, the second vertical pixel value of the second resolution is read as 720, and the second horizontal pixel value is read as 1280.
1022. Multiplying the first vertical pixel value by the first horizontal pixel value to obtain a first analysis value, and multiplying the second vertical pixel value by the second horizontal pixel value to obtain a second analysis value;
in this embodiment, since there is an irregular pixel resolution, in order to improve the adaptation rate, 1920 × 1080 may be equal to 2073600 for the irregular resolution, 2073600 may be determined as the first analysis value, and 1280 × 720 may be equal to 921600, it may be known that 2073600 is greater than 921600, and 921600 may be determined as the second analysis value.
1023. Judging whether the first analysis value is larger than the second analysis value;
in this embodiment, 2073600 is greater than 921600, and it can be known that the first analysis value is greater than the second analysis value.
1024. If so, confirming that the first resolution is greater than the second resolution;
in this embodiment, if the first analysis value is greater than the second analysis value, the first resolution is considered to be greater than the second resolution, i.e., 1920 × 1080 is greater than 1280 × 720.
1025. If the first resolution is smaller than the second resolution, the first resolution is confirmed to be smaller than the second resolution.
In this embodiment, the first resolution is considered to be greater than the second resolution if the first analysis value is less than the second analysis value.
103. If the resolution ratio is larger than the first resolution ratio, performing filtering and deleting processing on the pixels of the sending end data to obtain sending end data with a second resolution ratio;
in this embodiment, to reduce the horizontal axis display resolution to 1280 and the vertical axis pixel resolution to 720 at the sending end of 1920 × 1080 pixels, in a specific process, the following steps may be performed:
1031. subtracting the first vertical pixel value from the second vertical pixel value to obtain a first difference value, and subtracting the first horizontal pixel value from the second horizontal pixel value to obtain a second difference value;
in this embodiment, the difference 360 is subtracted from the first vertical pixel value 1080 and the second vertical pixel value 720, and the difference 640 is subtracted from the first horizontal pixel value 1920 and the second horizontal pixel value 1280.
1032. And based on the positive and negative of the first difference value and the second difference value, extracting and deleting the pixels of the sending end data to obtain the sending end data with the second resolution.
In this embodiment, since 360 and 640 are positive numbers, the pixels in the vertical direction and the horizontal direction need to be deleted until the first resolution is adjusted to the second resolution. In the tuning process shown in fig. 3, the following steps may be performed:
10321. judging whether the first difference is a positive number;
in this embodiment, the reading analysis determines whether the first difference 360 is a positive number, if so, the process proceeds to step 10322, and if not, the process proceeds to step 10323.
10322. If the first difference value is a positive number, dividing the first difference value by the first vertical pixel value to obtain a vertical extraction ratio, and performing vertical extraction deletion processing on the sending end data according to a preset vertical extraction window value and the vertical extraction ratio to obtain sending end data in an intermediate processing state;
in this embodiment, if 360 is a positive number, the division of 360 by 1080 is 33.3%, the vertical extraction window value 30 is 10 pixels extracted and deleted in the vertical direction each time, 1080 ten thousand pixels are in the vertical direction, 10 pixels are deleted by moving 30 each time, pixel extraction is completed, 1080 ten thousand pixels are extracted and deleted, 720 ten thousand pixels are left, and the sending-end data in the intermediate processing state is obtained.
10323. Judging whether the second difference value is a positive number or not;
in this embodiment, the reading determines whether the second difference 640 is a positive number.
10324. If the second difference value is a positive number, dividing the second difference value by the first horizontal pixel value to obtain a horizontal extraction ratio, and performing horizontal extraction and deletion processing on the sending end data according to a preset horizontal extraction window value and the horizontal extraction ratio to obtain sending end data with a second resolution;
in this embodiment, the division of the second difference 640 by the first horizontal pixel value 1920 is 33.3%, the horizontal extraction window value is 90, then 30 pixels are extracted from 90 windows in the horizontal direction 1920 ten thousand, the extraction deletion is performed by traversing 1920 ten thousand pixels from top to bottom, and 1280 thousand pixels remain, the sending-end data in the intermediate processing state is converted into the displaying data of 1280 × 720, and the sending-end data of the second resolution is determined by the data without losing the main data.
10325. And if the second difference is not a positive number, determining the sending end data as the sending end data with the second resolution.
In this embodiment, if the second difference value is-450, which does not belong to a positive number, the transmitting-end data of the intermediate processing state is directly determined as the transmitting-end data of the second resolution.
104. Transmitting the sending end data to the receiving end.
In the present embodiment, the transmitting-end data of the second resolution is transmitted to the receiving-end using an existing transmission protocol, such as TCP/IP protocol or AirPlay protocol.
In the embodiment of the invention, the pixels of the high-resolution display data are partially deleted and filtered, so that the resolution of the whole display data is reduced under the condition of not losing information data, the stability and the fluency of the display data of a receiving end in the data transmission process are improved, and the effects of quick transmission and smooth display in the screen projection process are realized.
Referring to fig. 2, another embodiment of the screen resolution conversion method according to the embodiment of the present invention includes:
201. reading a first resolution of data of a sending end and reading a second resolution of a receiving end;
202. reading a first vertical pixel value and a first horizontal pixel value of a first resolution, and reading a second vertical pixel value and a second horizontal pixel value of a second resolution;
203. multiplying the first vertical pixel value by the first horizontal pixel value to obtain a first analysis value, and multiplying the second vertical pixel value by the second horizontal pixel value to obtain a second analysis value;
204. judging whether the first analysis value is larger than the second analysis value;
205. if yes, confirming that the first resolution is larger than the second resolution;
206. if the first resolution is smaller than the second resolution, determining that the first resolution is smaller than the second resolution;
embodiments 201-206, similar to the first embodiment, are not described herein.
207. If the first analysis value is larger than the second analysis value, calculating an excess proportion value of the first analysis value and the second analysis value;
208. based on a preset filtering window, sequentially reading an RGB value matrix in the data of the sending terminal;
209. randomly deleting the data exceeding the proportional value from the RGB value matrix to obtain a filtered RGB value matrix;
210. acquiring an enhancement parameter corresponding to a neural network training RGB value, and changing the value of a filtering RGB value matrix according to the enhancement parameter to obtain an RGB value result matrix;
211. generating sending end data of a second resolution according to the data of all the RGB value result matrixes;
in 207-211 embodiments, the 2073600 and 921600 calculation equation is (X-Y)/X, where X is the first analysis value and Y is the second analysis value, the calculated lost pixel ratio is 55.5%, the filter window is a 10 × 10 filter window, 55 pixels are lost in the 10 × 10 filter window, and 45 pixels are left, and the lost 55 pixel mode can be freely designed, can be lost in a diamond shape, or can be lost at intervals. The picture can be enhanced according to RGB colors during the loss process, which can be expressed by the following equation:
Figure 769615DEST_PATH_IMAGE001
wherein f (x, y) is a two-dimensional enhancement parameter, k is a filtering parameter, a is a residual proportion, J (R, B, G) is a function representation corresponding to an RGB value matrix, the CNN or RNN is used for training in the training process, the color value size of each pixel is read, then the color value size is fed back to adjustment data, for example, (0, 25, 0) is enhanced to (0, 45, 0), and in the enhancement process, each value is independently enhanced to have corresponding enhancement, so that the pixels are removed under the condition of ensuring that the displayed color sense is not lost. In this embodiment, a two-dimensional filtering manner is adopted for filtering, the missing manner of filtering is k parameter adjustment, and it should be noted that the k parameter may be corrected by using a matrix corresponding manner and using a function.
212. And transmitting the sending end data to the receiving end.
This embodiment is similar to the first embodiment, and will not be described herein.
In the embodiment of the invention, the pixels of the high-resolution display data are partially deleted and filtered, so that the resolution of the whole display data is reduced under the condition of not losing the information data, the stability and the fluency of the display data of a receiving end in the data transmission process are improved, and the effects of quick transmission and smooth display in the screen projection process are realized.
With reference to fig. 4, the method for converting the screen resolution according to the embodiment of the present invention is described above, and the screen resolution converting apparatus according to the embodiment of the present invention is described below, where an embodiment of the screen resolution converting apparatus according to the embodiment of the present invention includes:
a reading module 401, configured to read a first resolution of data at a sending end and read a second resolution of a receiving end;
a determining module 402, configured to determine whether the first resolution is greater than the second resolution;
a filtering and deleting module 403, configured to perform filtering and deleting processing on the pixels of the sending end data if the number of the pixels is greater than the preset threshold, to obtain sending end data with a second resolution;
a transmitting module 404, configured to transmit the sender data to the receiver.
In the embodiment of the invention, the pixels of the high-resolution display data are partially deleted and filtered, so that the resolution of the whole display data is reduced under the condition of not losing the information data, the stability and the fluency of the display data of a receiving end in the data transmission process are improved, and the effects of quick transmission and smooth display in the screen projection process are realized.
Referring to fig. 5, another embodiment of the projection resolution converting apparatus according to the embodiment of the present invention includes:
a reading module 401, configured to read a first resolution of data at a sending end and read a second resolution of a receiving end;
a determining module 402, configured to determine whether the first resolution is greater than the second resolution;
a filtering and deleting module 403, configured to perform filtering and deleting processing on the pixels of the sending end data if the pixel is greater than the threshold, to obtain sending end data with a second resolution;
a transmitting module 404, configured to transmit the sender data to the receiver.
The determining module 402 is specifically configured to:
reading a first resolution of data of a sending end and reading a second resolution of a receiving end;
judging whether the first resolution is larger than the second resolution;
if so, filtering and deleting the pixels of the sending end data to obtain sending end data with a second resolution;
and transmitting the data of the sending end to the receiving end.
Wherein, the filter deleting module 403 includes:
a calculating unit 4031, configured to calculate an excess ratio of the first analysis value to the second analysis value;
a deleting unit 4032, configured to perform two-dimensional filtering and deleting processing on the sender data according to a preset filtering window and the excess proportion value, to obtain sender data with a second resolution.
The deleting unit 4032 is specifically configured to:
sequentially reading RGB value matrixes in the data of the sending terminal based on a preset filtering window;
according to the excess proportion value, performing proportion filtering enhancement processing on the RGB value matrix to obtain an RGB value result matrix;
and generating the sending end data of the second resolution according to the data of all the RGB value result matrixes.
The over-deletion unit 4032 may be further specifically configured to:
randomly deleting the data exceeding the proportional value from the RGB value matrix to obtain a filtered RGB value matrix;
and acquiring enhancement parameters corresponding to the training RGB values based on the neural network, and changing the value of the filtering RGB value matrix according to the enhancement parameters to obtain an RGB value result matrix.
The filtering and deleting module 403 may be further specifically configured to:
subtracting the first vertical pixel value from the second vertical pixel value to obtain a first difference value, and subtracting the first horizontal pixel value from the second horizontal pixel value to obtain a second difference value;
and based on the positive and negative of the first difference value and the second difference value, carrying out extraction and deletion processing on the pixels of the sending end data to obtain sending end data with a second resolution.
The filtering and deleting module 403 may be further specifically configured to:
judging whether the first difference value is a positive number or not;
if the first difference value is a positive number, dividing the first difference value by the first vertical pixel value to obtain a vertical extraction ratio, and performing vertical extraction deletion processing on the sending end data according to a preset vertical extraction window value and the vertical extraction ratio to obtain sending end data in an intermediate processing state;
judging whether the second difference value is a positive number or not;
if the second difference is positive, dividing the second difference by the first horizontal pixel value to obtain a horizontal extraction ratio, and performing horizontal extraction and deletion processing on the sending end data according to a preset horizontal extraction window value and the horizontal extraction ratio to obtain sending end data with a second resolution;
and if the second difference is not a positive number, determining the sending end data as the sending end data with the second resolution.
In the embodiment of the invention, the pixels of the high-resolution display data are partially deleted and filtered, so that the resolution of the whole display data is reduced under the condition of not losing the information data, the stability and the fluency of the display data of a receiving end in the data transmission process are improved, and the effects of quick transmission and smooth display in the screen projection process are realized.
The screen-projection resolution conversion apparatus in the embodiment of the present invention is described in detail in the above view of fig. 4 and fig. 5 as modular functional entities, and the screen-projection resolution conversion apparatus in the embodiment of the present invention is described in detail in the following view of hardware processing.
Fig. 6 is a schematic structural diagram of a screen projection resolution conversion apparatus 600 according to an embodiment of the present invention, which may generate relatively large differences due to different configurations or performances, and may include one or more processors (CPUs) 610 (e.g., one or more processors) and a memory 620, and one or more storage media 630 (e.g., one or more mass storage devices) storing applications 633 or data 632. Memory 620 and storage medium 630 may be, among other things, transitory or persistent storage. The program stored in the storage medium 630 may include one or more modules (not shown), each of which may include a series of instruction operations for the screen-projection resolution conversion apparatus 600. Further, the processor 610 may be configured to communicate with the storage medium 630 and execute a series of instruction operations in the storage medium 630 on the screen-projection resolution conversion apparatus 600.
The screen-casting-based resolution conversion apparatus 600 may also include one or more power supplies 640, one or more wired or wireless network interfaces 650, one or more input-output interfaces 660, and/or one or more operating systems 631, such as Windows Server, mac OS X, unix, linux, freeBSD, and the like. It will be understood by those skilled in the art that the configuration of the screen-projection resolution conversion apparatus shown in fig. 6 does not constitute a limitation on the screen-projection resolution conversion-based apparatus, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be provided.
The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium, and which may also be a volatile computer-readable storage medium, having stored therein instructions, which, when executed on a computer, cause the computer to perform the steps of the screen projection resolution conversion method.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses, and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a portable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (8)

1. A screen projection resolution conversion method is characterized by comprising the following steps:
reading a first resolution of data of a sending end and reading a second resolution of a receiving end;
judging whether the first resolution is larger than the second resolution;
if so, filtering and deleting the pixels of the sending end data to obtain sending end data with a second resolution;
transmitting the sending end data to the receiving end;
wherein the determining whether the first resolution is greater than the second resolution comprises:
reading a first vertical pixel value and a first horizontal pixel value of the first resolution, and reading a second vertical pixel value and a second horizontal pixel value of the second resolution;
multiplying the first vertical pixel value by the first horizontal pixel value to obtain a first analysis value, and multiplying the second vertical pixel value by the second horizontal pixel value to obtain a second analysis value;
judging whether the first analysis value is larger than the second analysis value;
if so, confirming that the first resolution is greater than the second resolution;
if the first resolution is smaller than the second resolution, confirming that the first resolution is smaller than the second resolution;
wherein, the filtering and deleting the pixels of the sending end data to obtain the sending end data with the second resolution further comprises:
subtracting the first vertical pixel value from the second vertical pixel value to obtain a first difference value, and subtracting the first horizontal pixel value from the second horizontal pixel value to obtain a second difference value;
and based on the positive and negative of the first difference value and the second difference value, carrying out extraction and deletion processing on the pixels of the sending end data to obtain sending end data with a second resolution.
2. The screen-projection resolution conversion method according to claim 1, wherein the filtering and deleting the pixels of the sending end data to obtain the sending end data with the second resolution includes:
calculating an excess proportion value of the first analysis value and the second analysis value;
and carrying out two-dimensional filtering and deleting processing on the sending end data according to a preset filtering window and the exceeding proportion value to obtain the sending end data with the second resolution.
3. The screen-projection resolution conversion method according to claim 2, wherein the performing two-dimensional filtering deletion processing on the sending end data according to a preset filtering window and the excess ratio value to obtain sending end data of a second resolution includes:
based on a preset filter window, sequentially reading RGB value matrixes in the data of the sending terminal;
according to the excess proportion value, performing proportion filtering enhancement processing on the RGB value matrix to obtain an RGB value result matrix;
and generating the sending end data of the second resolution according to the data of all the RGB value result matrixes.
4. The screen-projection resolution conversion method of claim 3, wherein the performing a proportional filter enhancement process on the RGB value matrix according to the excess proportion value to obtain an RGB value result matrix comprises:
randomly deleting the data exceeding the proportional value from the RGB value matrix to obtain a filtered RGB value matrix;
and acquiring enhancement parameters corresponding to the training RGB values based on the neural network, and changing the value of the filtering RGB value matrix according to the enhancement parameters to obtain an RGB value result matrix.
5. The screen-projection resolution conversion method according to claim 1, wherein the extracting and deleting the pixels of the sending-end data based on the negativity of the first difference and the negativity of the second difference to obtain sending-end data of a second resolution includes:
judging whether the first difference value is a positive number or not;
if the first difference value is a positive number, dividing the first difference value by the first vertical pixel value to obtain a vertical extraction ratio, and performing vertical extraction deletion processing on the sending end data according to a preset vertical extraction window value and the vertical extraction ratio to obtain sending end data in an intermediate processing state;
judging whether the second difference value is a positive number or not;
if the second difference value is a positive number, dividing the second difference value by the first horizontal pixel value to obtain a horizontal extraction ratio, and performing horizontal extraction deletion processing on the sending end data according to a preset horizontal extraction window value and the horizontal extraction ratio to obtain sending end data with a second resolution ratio;
and if the second difference is not a positive number, determining the sending end data as the sending end data with the second resolution.
6. A screen projection resolution converting apparatus, characterized in that the screen projection resolution converting apparatus comprises:
the reading module is used for reading the first resolution of the data of the sending end and reading the second resolution of the receiving end;
the judging module is used for judging whether the first resolution is greater than the second resolution;
a filtering and deleting module, configured to perform filtering and deleting processing on the pixels of the sending end data if the pixel size is larger than the threshold size, to obtain sending end data with a second resolution;
the transmitting module is used for transmitting the data of the transmitting end to the receiving end;
wherein, the judging module is specifically configured to:
reading a first vertical pixel value and a first horizontal pixel value of the first resolution, and reading a second vertical pixel value and a second horizontal pixel value of the second resolution;
multiplying the first vertical pixel value by the first horizontal pixel value to obtain a first analysis value, and multiplying the second vertical pixel value by the second horizontal pixel value to obtain a second analysis value;
judging whether the first analysis value is larger than the second analysis value;
if so, confirming that the first resolution is greater than the second resolution;
if so, confirming that the first resolution is smaller than the second resolution;
wherein the filtering and deleting module is specifically configured to:
subtracting the first vertical pixel value from the second vertical pixel value to obtain a first difference value, and subtracting the first horizontal pixel value from the second horizontal pixel value to obtain a second difference value;
and based on the positive and negative of the first difference value and the second difference value, carrying out extraction and deletion processing on the pixels of the sending end data to obtain sending end data with a second resolution.
7. A screen projection resolution conversion apparatus characterized by comprising: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line;
the at least one processor invoking the instructions in the memory to cause the screen projection resolution conversion apparatus to perform the screen projection resolution conversion method of any of claims 1-5.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the screen projection resolution conversion method according to any one of claims 1 to 5.
CN202110524314.1A 2021-05-13 2021-05-13 Screen projection resolution conversion method, device, equipment and storage medium Active CN113284472B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110524314.1A CN113284472B (en) 2021-05-13 2021-05-13 Screen projection resolution conversion method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110524314.1A CN113284472B (en) 2021-05-13 2021-05-13 Screen projection resolution conversion method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113284472A CN113284472A (en) 2021-08-20
CN113284472B true CN113284472B (en) 2022-11-18

Family

ID=77278948

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110524314.1A Active CN113284472B (en) 2021-05-13 2021-05-13 Screen projection resolution conversion method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113284472B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116033157B (en) * 2022-05-30 2023-10-20 荣耀终端有限公司 Screen projection method and electronic equipment
CN115567711A (en) * 2022-09-19 2023-01-03 亿航智能设备(广州)有限公司 Desktop image dynamic acquisition method and device and computer readable storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2189106B (en) * 1986-04-14 1990-02-14 Philips Electronic Associated Image display
CN100541604C (en) * 2006-09-12 2009-09-16 普诚科技股份有限公司 Image treatment method and panntographic system
CN105592322B (en) * 2014-09-19 2019-06-28 青岛海尔电子有限公司 A kind of optimization method and device of media data
JP6550816B2 (en) * 2015-03-18 2019-07-31 株式会社リコー INFORMATION PROCESSING APPARATUS, IMAGE FORMING APPARATUS, IMAGE PROCESSING METHOD, AND PROGRAM
CN107093418B (en) * 2017-06-20 2020-12-18 南京中诚签信息科技有限公司 Screen display method, computer equipment and storage medium
CN111708503B (en) * 2020-06-05 2023-06-27 努比亚技术有限公司 Screen projection control method, device and computer readable storage medium
CN112019897B (en) * 2020-08-27 2022-11-08 北京字节跳动网络技术有限公司 Screen projection method and device, electronic equipment and computer readable medium
CN112492233A (en) * 2020-11-27 2021-03-12 西安万像电子科技有限公司 Method and device for adapting resolution of transmitting end and receiving end of image transmission system
CN112672212A (en) * 2020-12-16 2021-04-16 深圳乐播科技有限公司 Video transcoding screen projection method, device and system

Also Published As

Publication number Publication date
CN113284472A (en) 2021-08-20

Similar Documents

Publication Publication Date Title
CN113284472B (en) Screen projection resolution conversion method, device, equipment and storage medium
US6661838B2 (en) Image processing apparatus for detecting changes of an image signal and image processing method therefor
DE112009005418B4 (en) Image processing device
US20060061661A1 (en) Real-time image stabilization
CN108600783B (en) Frame rate adjusting method and device and terminal equipment
KR20010020997A (en) Techniques for displaying complex characters
CN111429357A (en) Training data determination method, video processing method, device, equipment and medium
CN111625211A (en) Screen projection method and device, android device and display device
DE112009002346T5 (en) Processing video data in devices with limited resources
US9996948B2 (en) Image downsampling apparatus and method
JP3028553B2 (en) Image processing apparatus and image processing method
WO2006018789A1 (en) Video processor comprising a sharpness enhancer
US9098895B2 (en) Image processing method and device
CN110740352A (en) SPICE protocol-based difference image display method in video card transparent transmission environment
JPH0758959A (en) Image data processor
DE102012201024B4 (en) A method of processing an image to clarify text in the image
US20130314444A1 (en) Image data transmitting device, image data receiving device, image data transmitting system, image data transmitting method, image data receiving method, transmission image data, and computer product
CN111200693A (en) Image data transmission method, device and system
CN109413445B (en) Video transmission method and device
DE102004058233B4 (en) Cable length detection device and method for a keyboard video mouse switch
CN116030114A (en) Manufacturing method, device, equipment and medium of bioelectrical homologous electronic impression
JP4329429B2 (en) Image transfer apparatus, image transfer method, and image transfer program
US6697429B2 (en) Motion video image transmission system using frame-to-frame comparison processing
JP3252422B2 (en) Image processing device
JPH07221993A (en) Method and device for thinning out color image data, and compressing method for color image data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant