An IPTV EPG page compatibility method, system and electronic device
By generating and recognizing blocks and key features of screenshot images in the IPTV system, the EPG page is automatically adjusted to adapt to different set-top box models, solving the problem of low EPG page compatibility and achieving an efficient and low-cost compatibility solution.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- XUANCAI INTERACTIVE NETWORK SCI & TECH
- Filing Date
- 2022-12-13
- Publication Date
- 2026-06-23
AI Technical Summary
In existing technologies, the compatibility issues of IPTV's EPG page across different set-top box models result in low compatibility, low reliability, and low efficiency, and require a large amount of manual adjustment and equipment investment.
The user sends a request command to the server, generates a screenshot image and uploads it. The server uses an image recognition module to identify blocks and key features, generates a compatibility EPG code, and automatically adjusts the EPG page to adapt to different set-top box models.
It achieves automatic compatibility of EPG pages across various set-top box models, simplifies the process, improves compatibility, reliability and efficiency, and saves equipment and labor costs.
Smart Images

Figure CN115951880B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of IPTV technology, and in particular to an IPTV EPG page compatibility method, system, and electronic device. Background Technology
[0002] IPTV (Internet Protocol Television) provides service indexes and navigation through EPG (Electrical Program Guide) pages. These EPG pages run on IPTV set-top boxes. Due to the wide variety of set-top box models and the inconsistent versions of CSS (Cascading Style Sheets) supported by different manufacturers, EPG style compatibility issues can easily arise, leading to page errors.
[0003] In the existing technology, after the EPG page is developed, a compatibility adjustment process is specially added. The EPG page needs to be loaded on various set-top boxes. Then, compatibility anomalies are identified manually based on the displayed page, and adjustments are made manually to make the EPG page compatible with these set-top box models.
[0004] However, this method has certain drawbacks: on the one hand, compared to thousands of versions of set-top boxes, only a small sample can be adapted, and it is done manually, resulting in low compatibility, low reliability, and low efficiency; on the other hand, it requires the purchase of multiple models of set-top boxes and consumes a lot of manpower, resulting in a large investment of costs. Summary of the Invention
[0005] To address at least one problem existing in the prior art, the purpose of this application is to provide an IPTV EPG page compatibility method, system, and electronic device. This not only enables EPG pages to automatically achieve compatibility with various set-top box models, simplifying the process, but also effectively improves the applicability, reliability, and efficiency of IPTV EPG page compatibility. Furthermore, it eliminates the need to purchase multiple sets-top box models, saves significant manpower, and substantially reduces costs.
[0006] To achieve the above objectives, the IPTV EPG page compatibility method provided in this application includes:
[0007] The user sends a request instruction to the server; the request instruction includes the set-top box model corresponding to the user;
[0008] In response to the absence of a compatibility EPG code corresponding to the set-top box model in the database on the server side, the user terminal loads the EPG page based on the original EPG code corresponding to the database, takes a screenshot of the EPG page, generates a screenshot image, and uploads it to the server side.
[0009] The server performs block recognition on the screenshot image based on the target image in the database;
[0010] In response to identifying only a local region of the target image from the screenshot image, or in response to the size of the screenshot image being smaller than the size of the target image, the size of the screenshot image is adjusted so that the screenshot image corresponds to the target image and has the same size; and the size adjustment information of the screenshot image is determined;
[0011] Identify key features; the key features include the actual key features of each block in the screenshot image and the target key features of the corresponding block in the target image; the types of key features include at least one of the following: block aspect ratio, block display status, block shadow style, block edge transparency, border line width, and border corner shape;
[0012] In response to the discrepancy between the actual key features and the corresponding target key features, the corresponding discrepancy information is obtained. Based on the size adjustment information, the discrepancy information, and the original EPG code, the compatibility EPG code is generated and stored in the database so that the EPG page for the set-top box model can be deployed based on the compatibility EPG code.
[0013] Furthermore, the method also includes:
[0014] In response to the screenshot image corresponding to the target image and having the same size, the key feature is identified;
[0015] In response to a difference between the actual key features and the corresponding target key features, the difference information is obtained. Based on the difference information and the original EPG code, the compatibility EPG code is generated and stored in the database so that the EPG page for the set-top box model can be deployed based on the compatibility EPG code.
[0016] Furthermore, the method includes:
[0017] In response to identifying only a local region of the target image from the screenshot image, the screenshot image is reduced in size by a preset first size ratio so that the size of the reduced screenshot image is less than or equal to that of the target image;
[0018] Obtain the second size ratio of the target image and the scaled-down screenshot image, and enlarge the screenshot image according to the second size ratio so that the screenshot image corresponds to the target image and has the same size;
[0019] The size adjustment information is generated by multiplying the first size ratio and the second size ratio.
[0020] Furthermore, the method includes:
[0021] Obtain the coordinate information of the blocks in the target image;
[0022] Identify the corresponding block in the screenshot image based on the coordinate information;
[0023] In response to the failure to identify the corresponding block, the display status of the block is determined based on the original EPG code;
[0024] In response to the fact that the display state is hidden, the display state is changed to display.
[0025] Furthermore, the method includes:
[0026] Obtain the length and width in pixels of the block in the screenshot image;
[0027] In response to at least one of the length pixel count and the width pixel count being odd, a first transparency and a second transparency are obtained; the first transparency is the transparency of the corresponding edge pixels of the block in the screenshot image; the second transparency is the transparency of the corresponding edge pixels of the block in the target image.
[0028] Determine the transparency change ratio based on the first transparency and the second transparency;
[0029] In response to the transparency change ratio being greater than a preset ratio threshold, the length or width corresponding to the odd number in the original EPG code is increased by 1px, and then the block is hidden by a 1px border.
[0030] Furthermore, the EPG page is screenshotted using Domtoimage.toJpeg or Html2canvas to generate the screenshot image.
[0031] Furthermore, the screenshot image is uploaded to the server via Ajax, Fetch, or Axios.
[0032] To achieve the above objectives, this application also provides an IPTV EPG page compatible system, including a server and at least one user terminal, wherein,
[0033] The user terminal is used to send a request instruction to the server, the request instruction including the set-top box model corresponding to the user terminal; and in response to the fact that there is no compatibility EPG code corresponding to the set-top box model in the database of the server, the user terminal loads the EPG page based on the original EPG code corresponding to the database, takes a screenshot of the EPG page, generates a screenshot image, and uploads it to the server.
[0034] The server is configured with an image recognition module, which is used to perform block recognition on the received screenshot image based on the target image in the database, and adjust the size of the screenshot image in response to the identification of only a local area block of the target image from the screenshot image, or in response to the size of the screenshot image being smaller than the size of the target image, so that the screenshot image corresponds to the target image and has the same size, and determine the size adjustment information of the screenshot image;
[0035] The server-side is also used to identify key features; the key features include the actual key features of each block in the screenshot image and the target key features of the corresponding block in the target image; the types of the key features include at least one of the following: block aspect ratio, block display status, block shadow style, block edge transparency, border line width, and border corner shape;
[0036] The server also responds to the discrepancy between the actual key features and the corresponding target key features by obtaining the corresponding difference information, generating the compatibility EPG code based on the size adjustment information, the difference information and the original EPG code, and storing it in the database so as to deploy the EPG page of the set-top box model based on the compatibility EPG code.
[0037] To achieve the above objectives, this application also provides an electronic device, including a processor, a memory, and a computer program stored in the memory and executable on the processor. The processor is configured to execute the computer program stored in the memory to implement the IPTV EPG page compatibility method as described above.
[0038] To achieve the above objectives, this application also provides a computer-readable storage medium storing at least one instruction that is loaded and executed by a processor to implement the IPTV EPG page compatibility method as described above.
[0039] This application discloses an IPTV EPG page compatibility method, system, and electronic device. This not only enables EPG pages to automatically achieve compatibility with various set-top box models, simplifying the process, but also effectively improves the applicability, reliability, and efficiency of IPTV EPG page compatibility. Furthermore, it eliminates the need to purchase multiple sets-top box models, saves significant manpower, and substantially reduces costs.
[0040] Other features and advantages of this application will be set forth in the following description and will be apparent in part from the description or may be learned by practicing the application. Attached Figure Description
[0041] The accompanying drawings are provided to further illustrate the present application and form part of the specification. Together with the embodiments of the present application, they serve to explain the present application but do not constitute a limitation thereof. In the drawings:
[0042] Figure 1 This is a flowchart of an IPTV EPG page compatibility method according to an embodiment of this application;
[0043] Figure 2 This is a block diagram of the IPTV EPG page compatibility system according to an embodiment of this application;
[0044] Figure 3 This is a block diagram of an electronic device according to an embodiment of this application. Detailed Implementation
[0045] Embodiments of this application will now be described in more detail with reference to the accompanying drawings. While some embodiments of this application are shown in the drawings, it should be understood that this application can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this application. It should be understood that the drawings and embodiments of this application are for illustrative purposes only and are not intended to limit the scope of protection of this application.
[0046] It should be understood that the steps described in the method embodiments of this application may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this application is not limited in this respect.
[0047] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.
[0048] It should be noted that the concepts of "first" and "second" mentioned in this application are only used to distinguish different devices, modules, units or data, and are not used to limit the order of the functions performed by these devices, modules, units or data or their interdependencies.
[0049] It should be noted that the terms "one" and "multiple" used in this application are illustrative rather than restrictive, and those skilled in the art should understand that, unless explicitly stated otherwise in the context, they should be understood as "one or more". "Multiple" should be understood as two or more.
[0050] The embodiments of this application will now be described in detail with reference to the accompanying drawings.
[0051] Example 1
[0052] Figure 1 The following is a flowchart of the IPTV EPG page compatibility method according to an embodiment of this application, which will be referred to below. Figure 1 This application provides a detailed description of the IPTV EPG page compatibility method.
[0053] In step 101, the user sends a request command to the server.
[0054] It should be noted that the server has a database containing standard images for EPG pages. These standard images, when matched with the corresponding IPTV, become the target images for the EPG pages. The database also includes the original EPG codes or compatible EPG codes for all set-top box models.
[0055] Specifically, before the user's device loads the EPG page for the first time, it sends a request command to the server. The request command includes the user's set-top box model (e.g., E900-S). When the server receives the request command, it checks whether a compatibility EPG code for the corresponding set-top box model already exists in the database. If it does, the server deploys the EPG page for that set-top box model based on the compatibility EPG code; otherwise, it proceeds to step 102.
[0056] In step 102, in response to the absence of a compatibility EPG code for the set-top box model in the server's database, the user terminal loads the EPG page based on the original EPG code in the database, takes a screenshot of the EPG page, generates a screenshot image, and uploads it to the server.
[0057] In other words, when the database does not contain a compatible EPG code for the set-top box model, the client loads the EPG page based on the original EPG code corresponding to the set-top box model. In a specific example, a screenshot of the current EPG page can be taken using Domtoimage.toJpeg (converting a Document Object Model to a JPG image) or Html2canvas (converting HTML to an image). This screenshot can then be uploaded to the server using Ajax (Asynchronous JavaScript and Extensible Markup Language), Fetch (a web development technology), or Axios (an Ajax-I / O system library based on promises for Ajax requests). The server can then adjust the original EPG code based on the screenshot and the target image to generate a compatible EPG code for the set-top box model. This allows the client to subsequently load an EPG page consistent with the target image based on this compatible EPG code.
[0058] In step 103, the server performs block recognition on the screenshot image based on the target image in the database.
[0059] Specifically, the EPG (Electronic Programming Page) project on IPTV features a unique design: the page is divided into multiple blocks. Using the directional keys on the remote, users can first select a block to open the corresponding page, and then choose a specific program within that page, significantly improving selection efficiency. It's important to note that because these blocks are rectangular, a problem in one block only affects the position of other blocks, not their internal layout. This facilitates compatibility adjustments based on AI image recognition. In a specific example, the server is configured with an image recognition module that uses AI image recognition technology to identify the corresponding block in a target image based on the text within the block.
[0060] In step 104, in response to identifying only a local region of the target image from the screenshot image, or in response to the screenshot image being smaller than the target image, the size of the screenshot image is adjusted so that the screenshot image corresponds to the target image and has the same size; and the size adjustment information of the screenshot image is determined.
[0061] In other words, when the screenshot image is too large or too small and cannot be displayed in full screen, the size of the screenshot image needs to be adjusted to match the content and size of the target image, so as to achieve normal display at the image level and thus identify the compatibility at the block level.
[0062] In this embodiment of the application, the method includes: in response to identifying only a local region block of the target image from the screenshot image, reducing the screenshot image by a preset first size ratio so that the size of the reduced screenshot image is less than or equal to that of the target image; obtaining a second size ratio between the target image and the reduced screenshot image, and enlarging the screenshot image according to the second size ratio so that the screenshot image corresponds to the target image and has the same size; and multiplying the first size ratio and the second size ratio to generate size adjustment information.
[0063] Specifically, some set-top boxes cannot display the complete EPG page correctly, causing the EPG page to exceed the display screen. When only a local area of the target image is identified in the screenshot, the page can be scaled using the Scale method to display the normal page. In a specific example, the width of the normal page is 1280px, and the excess part usually does not exceed 10px. In practice, the screenshot image can first be reduced to 50% of its original size (the preset first size ratio). Then, the dimensions of the target image and the reduced screenshot image are obtained through the image recognition module, and the size ratio of the two is 198.45% (the second size ratio). Then, the screenshot image is enlarged by 198.45%, so that the screenshot image is displayed in full screen and the size is the same as the target image, so as to identify the block-level compatibility. In addition, the product of the first size ratio and the second size ratio, i.e., 99.22%, is obtained as size adjustment information and reflected in the compatibility EPG code, so that when the user opens the EPG page later, the page is scaled at 99.22%.
[0064] In step 105, key features are identified.
[0065] The key features include the actual key features of each block in the screenshot image and the target key features of the corresponding block in the target image. The types of key features include at least one of the following: block aspect ratio, block display state, block shadow style, block edge transparency, border line width, and border corner shape. In specific examples, the block display state can include both hidden and shown states; the block shadow style can include both with and without shadow; and the border corner shape can include both right angles and rounded corners.
[0066] In step 106, in response to the difference between the actual key features and the corresponding target key features, the corresponding difference information is obtained. Based on the size adjustment information, the difference information and the original EPG code, a compatibility EPG code is generated and stored in the database so that the EPG page of the set-top box model can be deployed based on the compatibility EPG code.
[0067] In this embodiment of the application, the method includes: obtaining coordinate information of a block in a target image; identifying the corresponding block in the screenshot image based on the coordinate information; determining the display state of the block based on the original EPG code in response to the failure to identify the corresponding block; and changing the display state to display in response to the hidden state.
[0068] In a specific example, after the screenshot image and the target image are aligned in size, the coordinate information of a block in the target image can be obtained. This coordinate information can be a range of region coordinates that has been appropriately enlarged. The corresponding block in the screenshot image can then be identified based on this range of region coordinates. If the block is not identified, it's because the code `visibility:none` is ineffective, causing the block to be hidden. In this case, `opacity:0` can be used instead.
[0069] In this embodiment of the application, the method includes: obtaining the length and width pixel counts of a block in a screenshot image; in response to at least one of the length and width pixel counts being odd, obtaining a first transparency and a second transparency; the first transparency is the transparency of the corresponding edge pixels of the block in the screenshot image; the second transparency is the transparency of the corresponding edge pixels of the corresponding block in the target image; determining the transparency change amount based on the first transparency and the second transparency; in response to the transparency change amount being greater than a change amount threshold, increasing the length or width corresponding to the odd number in the original EPG code by 1px, and then performing a 1px border hiding process on the block.
[0070] Specifically, some set-top boxes have a display issue with odd-numbered pixels. In a specific example, for a 5px*5px block, the transparency of its edge pixels (the outermost 1px) is set to the second transparency (e.g., 0%) in the target image, but it is actually displayed with the first transparency (e.g., 50%). The difference between the first and second transparency (50%) is the amount of transparency change. If the amount of transparency change is greater than the change threshold (which can be a preset value, such as 20%), the block can be replaced with a 6px*6px block, and the 1px border can be hidden to achieve the replacement effect.
[0071] For example, for a 5px*6px block, the opacity of its edge pixels (1px on the side) along its length is set to the second opacity (e.g., 0) in the target image, but is actually displayed as the first opacity (e.g., 50%). If the change in opacity (50%) is greater than the change threshold (e.g., 20%), the block can be replaced with a 6px*6px block, and the 1px border can be hidden to achieve the replacement effect.
[0072] Therefore, the IPTV EPG page compatibility method according to the embodiments of this application can automatically complete the compatibility adjustment of the EPG page when the user first loads the EPG page through the corresponding set-top box, without the need to purchase multiple models of set-top boxes or perform manual adjustments, thus significantly reducing equipment and labor costs. Furthermore, since it enables the EPG page to be automatically compatible with various models of set-top boxes, the process is simplified, thereby effectively improving the applicability, reliability, and efficiency of IPTV EPG page compatibility.
[0073] In this embodiment of the application, the method further includes: in response to the screenshot image corresponding to the target image and having the same size, identifying key features; in response to the difference between the actual key features and the corresponding target key features, obtaining difference information; generating a compatible EPG code based on the difference information and the original EPG code, and storing it in the database, so as to deploy the EPG page of the set-top box model based on the compatible EPG code.
[0074] In other words, if the screenshot image corresponds to the target image and is the same size, key feature recognition can be performed directly. After recognition, if there are differences between the actual key features and the corresponding target key features, a compatible EPG code is generated based on the difference information and the original EPG code. The subsequent EPG page on the user's end is deployed based on this compatible EPG code. Furthermore, if the screenshot image corresponds to the target image and is the same size, and there are no differences between the actual key features and the corresponding target key features, then its original EPG code is used as the compatible EPG code to deploy the EPG page on the user's end.
[0075] In summary, the IPTV EPG page compatibility method according to the embodiments of this application involves the user terminal sending a request command to the server. In response to the server's database not containing a compatible EPG code for the set-top box model, the user terminal loads the EPG page based on the original EPG code in the database, takes a screenshot of the EPG page, generates a screenshot image, and uploads it to the server. The server then performs block recognition on the screenshot image based on the target image in the database. In response to the identification of only a local area block of the target image from the screenshot image, or in response to the screenshot image being smaller than the target image, the size of the screenshot image is adjusted to ensure that the screenshot image corresponds to and is the same size as the target image. The server also determines the size adjustment information of the screenshot image and, by identifying key features, obtains corresponding difference information in response to differences between the actual key features and the corresponding target key features. Based on the size adjustment information, the difference information, and the original EPG code, a compatible EPG code is generated and stored in the database, so that the EPG page for the set-top box model can be deployed based on the compatible EPG code. This not only enables EPG pages to be automatically compatible with various set-top box models, simplifying the process, but also effectively improves the applicability, reliability, and efficiency of IPTV EPG page compatibility. Furthermore, it eliminates the need to purchase multiple sets-top box models, saves significant manpower, and substantially reduces costs.
[0076] Example 2
[0077] Figure 2 This is a block diagram of an IPTV EPG page compatibility system according to an embodiment of this application. (Reference) Figure 2 As shown, the IPTV EPG page compatible system 20 includes a server 21 and at least one user terminal 22.
[0078] User terminal 22 is used to send a request instruction to server terminal 21. The request instruction includes the set-top box model corresponding to user terminal 22. In response to the fact that there is no compatibility EPG code corresponding to the set-top box model in the database of server terminal 21, user terminal 22 loads the EPG page based on the original EPG code in the database, takes a screenshot of the EPG page, generates a screenshot image, and uploads it to server terminal 21.
[0079] Server 21 is configured with an image recognition module that can perform image recognition using AI image recognition technology. Server 21 is used to perform block recognition on received screenshot images based on target images in the database, and in response to identifying only local regions of the target image from the screenshot image, or in response to the screenshot image being smaller than the target image, adjust the size of the screenshot image to make it correspond to the target image and have the same size, and determine the screenshot image size adjustment information.
[0080] The server-side 21 is also used to identify key features; the key features include the actual key features of each block in the screenshot image and the target key features of the corresponding block in the target image; the types of key features include at least one of the following: block aspect ratio, block display status, block shadow style, block edge transparency, border line width, and border corner shape.
[0081] On the server side 21, in response to the difference between the actual key features and the corresponding target key features, the corresponding difference information is obtained. Based on the size adjustment information, the difference information and the original EPG code, a compatibility EPG code is generated and stored in the database so that the EPG page of the set-top box model can be deployed based on the compatibility EPG code.
[0082] It should be noted that the explanation of the IPTV EPG page compatibility method in the above embodiments also applies to the IPTV EPG page compatibility system in this embodiment, and will not be repeated here.
[0083] Example 3
[0084] Figure 3 This is a structural block diagram of an electronic device according to an embodiment of this application. (Reference) Figure 3 As shown, the electronic device 30 includes a processor 31 and a memory 32, as well as a computer program (not shown) stored in the memory 32 and executable on the processor 31. The processor 31 executes the computer program stored in the memory 32 to implement the IPTV EPG page compatibility method described above.
[0085] Example 4
[0086] In one embodiment of this application, a computer-readable storage medium is also provided. This computer-readable storage medium may be included in the system described in the above embodiments, or it may exist independently and not assembled into the system. The computer-readable storage medium carries one or more computer instructions, which, when executed, implement the steps of the IPTV EPG page compatibility method of the above embodiments.
[0087] In embodiments of this application, the computer-readable storage medium can be a non-volatile computer-readable storage medium, such as, but not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this application, the computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0088] It will be understood by those skilled in the art that the above are merely preferred embodiments of this application and are not intended to limit this application. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A method for ensuring EPG page compatibility in IPTV, characterized in that, include: The user sends a request instruction to the server; the request instruction includes the set-top box model corresponding to the user; In response to the absence of a compatibility EPG code corresponding to the set-top box model in the database on the server side, the user terminal loads the EPG page based on the original EPG code corresponding to the database, takes a screenshot of the EPG page, generates a screenshot image, and uploads it to the server side. The server performs block recognition on the screenshot image based on the target image in the database; In response to identifying only a local region of the target image from the screenshot image, or in response to the size of the screenshot image being smaller than the size of the target image, the size of the screenshot image is adjusted so that the screenshot image corresponds to the target image and has the same size; and the size adjustment information of the screenshot image is determined; Identify key features; the key features include the actual key features of each block in the screenshot image and the target key features of the corresponding block in the target image; the types of key features include at least one of the following: block aspect ratio, block display status, block shadow style, block edge transparency, border line width, and border corner shape; In response to the discrepancy between the actual key features and the corresponding target key features, the corresponding discrepancy information is obtained. Based on the size adjustment information, the discrepancy information, and the original EPG code, the compatibility EPG code is generated and stored in the database so that the EPG page of the set-top box model can be deployed based on the compatibility EPG code. Obtain the length and width in pixels of the block in the screenshot image; In response to at least one of the length pixel count and the width pixel count being odd, a first transparency and a second transparency are obtained; the first transparency is the transparency of the corresponding edge pixels of the block in the screenshot image; The second transparency is the transparency of the corresponding edge pixels of the corresponding block in the target image; Determine the transparency change ratio based on the first transparency and the second transparency; In response to the transparency change ratio being greater than a preset ratio threshold, the length or width corresponding to the odd number in the original EPG code is increased by 1px, and then the block is hidden by a 1px border.
2. The IPTV EPG page compatibility method according to claim 1, characterized in that, The method further includes: in response to the screenshot image corresponding to the target image and having the same size, identifying the key features; In response to a difference between the actual key features and the corresponding target key features, the difference information is obtained. Based on the difference information and the original EPG code, the compatibility EPG code is generated and stored in the database so that the EPG page for the set-top box model can be deployed based on the compatibility EPG code.
3. The IPTV EPG page compatibility method according to claim 1, characterized in that, The method includes: In response to identifying only a local region of the target image from the screenshot image, the screenshot image is reduced in size by a preset first size ratio so that the size of the reduced screenshot image is less than or equal to that of the target image; Obtain the second size ratio of the target image and the scaled-down screenshot image, and enlarge the screenshot image according to the second size ratio so that the screenshot image corresponds to the target image and has the same size; The size adjustment information is generated by multiplying the first size ratio and the second size ratio.
4. The IPTV EPG page compatibility method according to claim 2, characterized in that, The method includes: Obtain the coordinate information of the blocks in the target image; Identify the corresponding block in the screenshot image based on the coordinate information; In response to the failure to identify the corresponding block, the display status of the block is determined based on the original EPG code; In response to the fact that the display state is hidden, the display state is changed to display.
5. The IPTV EPG page compatibility method according to any one of claims 1-4, characterized in that, The screenshot image is generated by taking a screenshot of the EPG page using Domtoimage.toJpeg or Html2canvas.
6. The IPTV EPG page compatibility method according to any one of claims 1-4, characterized in that, The screenshot image is uploaded to the server via Ajax, Fetch, or Axios.
7. An IPTV EPG page compatibility system, comprising the IPTV EPG page compatibility method according to any one of claims 1-6, characterized in that, Includes a server and at least one user terminal, wherein, The user terminal is used to send a request instruction to the server, the request instruction including the set-top box model corresponding to the user terminal; and in response to the fact that there is no compatibility EPG code corresponding to the set-top box model in the database of the server, the user terminal loads the EPG page based on the original EPG code corresponding to the database, takes a screenshot of the EPG page, generates a screenshot image, and uploads it to the server. The server is configured with an image recognition module, which is used to perform block recognition on the received screenshot image based on the target image in the database, and adjust the size of the screenshot image in response to the identification of only a local area block of the target image from the screenshot image, or in response to the size of the screenshot image being smaller than the size of the target image, so that the screenshot image corresponds to the target image and has the same size, and determine the size adjustment information of the screenshot image; The server-side is also used to identify key features; the key features include the actual key features of each block in the screenshot image and the target key features of the corresponding block in the target image; the types of the key features include at least one of the following: block aspect ratio, block display status, block shadow style, block edge transparency, border line width, and border corner shape; The server also responds to the discrepancy between the actual key features and the corresponding target key features by obtaining the corresponding difference information, generating the compatibility EPG code based on the size adjustment information, the difference information and the original EPG code, and storing it in the database so as to deploy the EPG page of the set-top box model based on the compatibility EPG code.
8. An electronic device, characterized in that, The device includes a processor, a memory, and a computer program stored in the memory and executable on the processor, characterized in that the processor is configured to execute the computer program stored in the memory to implement the IPTV EPG page compatibility method according to any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The storage medium stores at least one instruction, which is loaded and executed by a processor to implement the IPTV EPG page compatibility method according to any one of claims 1-6.