CN113284472A - 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
CN113284472A
CN113284472A CN202110524314.1A CN202110524314A CN113284472A CN 113284472 A CN113284472 A CN 113284472A CN 202110524314 A CN202110524314 A CN 202110524314A CN 113284472 A CN113284472 A CN 113284472A
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.)
Granted
Application number
CN202110524314.1A
Other languages
Chinese (zh)
Other versions
CN113284472B (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Artificial Intelligence (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Biomedical Technology (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Image Processing (AREA)
  • Controls And Circuits For Display Device (AREA)

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 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.

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
And 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 such a case, 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 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.
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;
and if so, confirming that the first resolution is smaller than the second resolution.
Optionally, in a second 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 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 the sending end data of the 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 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.
A second aspect of the present invention provides a screen 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, 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 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 implementation of step 1032 in an embodiment of the present invention;
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 detailed flow of an embodiment of the present invention is described below, and referring to fig. 1, an embodiment of a screen resolution conversion method in 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 can be known that the first resolution is greater than the second resolution. In practice, to adapt the resolution, the following process may be further adopted:
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, in order to improve the fitting rate due to the presence of irregular pixel resolution, 1920 × 1080 may be equal to 2073600, 2073600 may be determined as the first analysis value, 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 for the irregular resolution.
1023. Judging whether the first analysis value is larger than the second analysis value;
in this embodiment, 2073600 is greater than 921600, it is 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 so, confirming that the first resolution is 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 so, performing filtering and deleting processing on the pixels of the sending end data to obtain sending end data with a second resolution;
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 as 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 is a positive number;
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 ten thousand pixels remain, the sending-end data in the intermediate processing state is converted into the display data of 1280 × 720, and the main data is not lost, and the sending-end data of the second resolution is determined according to the 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 in 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 by using the 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 so, confirming that the first resolution is greater than the second resolution;
206. if so, confirming that the first resolution is smaller than the second resolution;
the embodiments 201-206 are similar to the first embodiment, and 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 enhancement parameters corresponding to the neural network training RGB values, and changing the values of the filtered RGB value matrix according to the enhancement parameters 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 the 207-211 embodiment, the calculation equations 2073600 and 921600 are (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 pixels 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 training process uses CNN or RNN training, the color value size of each pixel is read, and then the color value size is fed back to adjustment data, for example, (0, 25, 0) is enhanced to (0, 45, 0), in the enhancement process, each value is independently enhanced with corresponding enhancement, and it is ensured that the pixel is removed without losing the color sense of display. In this embodiment, a two-dimensional filtering method is adopted for filtering, the loss method of filtering is k parameter adjustment, and it should be noted that k parameters can be corrected by using a matrix corresponding method and using a function.
212. 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 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 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.
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. 5, another embodiment of the screen resolution conversion 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 filtering deletion 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 deletion processing on the sender data according to a preset filtering window and the excess ratio value, so as to obtain the sender data with the 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 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, transient 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-projection-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 run 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: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
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 (10)

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;
and transmitting the data of the sending end to the receiving end.
2. The screen-projection resolution conversion method of claim 1, 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;
and if so, confirming that the first resolution is smaller than the second resolution.
3. The screen-projection resolution conversion method according to claim 2, 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.
4. The screen-projection resolution conversion method of claim 3, wherein the performing two-dimensional filtering and deleting processing on the sending end data according to a preset filtering window and the excess proportion value to obtain sending end data of 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 the sending end data of the second resolution according to the data of all the RGB value result matrixes.
5. The screen-projection resolution conversion method of claim 4, wherein the performing a proportional filtering 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.
6. The screen-projection resolution conversion method according to claim 2, 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.
7. The screen-projection resolution conversion method according to claim 6, 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 the sending end data of the 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 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.
8. 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;
and the transmission module is used for transmitting the data of the sending end to the receiving end.
9. 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 invokes the instructions in the memory to cause the screen projection resolution conversion apparatus to perform the screen projection resolution conversion method of any one of claims 1-7.
10. 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 7.
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 true CN113284472A (en) 2021-08-20
CN113284472B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116033157A (en) * 2022-05-30 2023-04-28 荣耀终端有限公司 Screen projection method and electronic equipment
CN116052585A (en) * 2023-01-03 2023-05-02 西安诺瓦星云科技股份有限公司 Method, device, system and storage medium for adjusting resolution of LED display screen
WO2024061087A1 (en) * 2022-09-19 2024-03-28 亿航智能设备(广州)有限公司 Dynamic collection method and device for desktop image, and computer-readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4868764A (en) * 1986-04-14 1989-09-19 U.S. Philips Corporation Image encoding and decoding method and apparatus
CN101145336A (en) * 2006-09-12 2008-03-19 普诚科技股份有限公司 Image processing method and scaling system
CN105592322A (en) * 2014-09-19 2016-05-18 青岛海尔电子有限公司 Method and device for optimizing media data
US20160277635A1 (en) * 2015-03-18 2016-09-22 Ricoh Company, Ltd. Information processing apparatus, image forming apparatus, image processing method, and non-transitory computer-readable medium
CN107093418A (en) * 2017-06-20 2017-08-25 努比亚技术有限公司 A kind of screen display method, computer equipment and storage medium
CN111708503A (en) * 2020-06-05 2020-09-25 努比亚技术有限公司 Screen projection control method and device and computer readable storage medium
CN112019897A (en) * 2020-08-27 2020-12-01 北京字节跳动网络技术有限公司 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

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4868764A (en) * 1986-04-14 1989-09-19 U.S. Philips Corporation Image encoding and decoding method and apparatus
CN101145336A (en) * 2006-09-12 2008-03-19 普诚科技股份有限公司 Image processing method and scaling system
CN105592322A (en) * 2014-09-19 2016-05-18 青岛海尔电子有限公司 Method and device for optimizing media data
US20160277635A1 (en) * 2015-03-18 2016-09-22 Ricoh Company, Ltd. Information processing apparatus, image forming apparatus, image processing method, and non-transitory computer-readable medium
CN107093418A (en) * 2017-06-20 2017-08-25 努比亚技术有限公司 A kind of screen display method, computer equipment and storage medium
CN111708503A (en) * 2020-06-05 2020-09-25 努比亚技术有限公司 Screen projection control method and device and computer readable storage medium
CN112019897A (en) * 2020-08-27 2020-12-01 北京字节跳动网络技术有限公司 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

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张顺利等: "一种由低分辨率投影重建高分辨率图像的方法", 《咸阳师范学院学报》 *
赵瑜等: "基于时序彩色原理提高LCoS显示分辨率的方法", 《现代显示》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116033157A (en) * 2022-05-30 2023-04-28 荣耀终端有限公司 Screen projection method and electronic equipment
CN116033157B (en) * 2022-05-30 2023-10-20 荣耀终端有限公司 Screen projection method and electronic equipment
WO2024061087A1 (en) * 2022-09-19 2024-03-28 亿航智能设备(广州)有限公司 Dynamic collection method and device for desktop image, and computer-readable storage medium
CN116052585A (en) * 2023-01-03 2023-05-02 西安诺瓦星云科技股份有限公司 Method, device, system and storage medium for adjusting resolution of LED display screen

Also Published As

Publication number Publication date
CN113284472B (en) 2022-11-18

Similar Documents

Publication Publication Date Title
CN113284472B (en) Screen projection resolution conversion method, device, equipment and storage medium
EP3576046A1 (en) Image super-resolution method and apparatus, and computer readable storage medium
US8462218B2 (en) Real-time image stabilization
DE112009005418B4 (en) Image processing device
EP1631078B1 (en) Video display control apparatus and method
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
WO2012080713A1 (en) Method and system for encoding display data
CN111625211A (en) Screen projection method and device, android device and display device
JP5364264B2 (en) Location detection of block defect using neural network
EP3240291A1 (en) Content providing apparatus, display apparatus and control method therefor
JP2022002376A (en) Image processing apparatus, image processing method, and program
EP0452066A2 (en) Video signal processing apparatus
US20150254815A1 (en) Image downsampling apparatus and method
CN114339305A (en) Virtual desktop image processing method and related device
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
CN110740352A (en) SPICE protocol-based difference image display method in video card transparent transmission environment
JPH0758959A (en) Image data processor
CN111200693A (en) Image data transmission method, device and system
CN112565766A (en) Video transmission method, device and storage medium
CN109413445B (en) Video transmission method and device
CN107666610A (en) Desktop video content analysis method
CN107948652B (en) Method and equipment for image conversion
DE102004058233B4 (en) Cable length detection device and method for a keyboard video mouse switch

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