Layout display method and device of film name index page and storage equipment
By analyzing the user search instructions and the number of focus movement steps, optimizing the layout of the video name index page, the problem of low video retrieval efficiency in the existing technology is solved, and a more efficient video retrieval experience is achieved.
Patent Information
- Application Number
- CN202411198670.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-12-20
AI Technical Summary
The layout of the index bar of the existing video search device causes the user to move the focus multiple times to select the required text, resulting in low retrieval efficiency and affecting the search speed.
By analyzing the user's search instructions, determining the initial position of the focus and the layout of the index page, dividing the index area, combining the number of focus movement steps and the number of times the movie name is used, the index page display is optimized, and the precise layout and display are accurately arranged to improve the user's selection efficiency.
It realizes the accurate setting of the focus position of the video retrieval device, improves the efficiency and speed of video retrieval, and improves the user's retrieval experience.
Smart Images

Figure CN119166912A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of film retrieval technology, and in particular to a layout display method, device and storage device for a film name index page. Background Art
[0002] Currently, when users search for movies on a TV, they often enter the first letters of the pinyin in a movie search device (such as a remote control) to obtain different characters, and then arrange all the characters in an index bar in descending order of the number of times the corresponding characters are used in the names of different movies. The focus of the movie search device is set by default to be at the first column / first row of the index bar, and the index bar is then displayed on a display device on the TV (such as a display screen) so that the user can select the desired text by moving the focus.
[0003] However, it is found in practice that the layout of the existing index bar usually only considers the number of times the movie name corresponding to different characters is used. Once the characters that the user needs to select are ranked at the back of the index bar, the user needs to move the focus of the movie search device multiple times before selecting the characters that the user needs, which easily leads to low efficiency of movie search and affects the search speed. It can be seen that it is particularly important to propose a new layout display scheme for the movie name index page to improve the efficiency of movie search. Summary of the invention
[0004] The present invention provides a layout and display method, device and storage device for a film name index page, which can achieve accurate setting of the focus position, and can combine the focus movement steps and its position to achieve accurate layout and display of the index page, which is beneficial to improving film retrieval efficiency and retrieval speed.
[0005] In order to solve the above technical problems, the first aspect of the present invention discloses a layout display method of a movie name index page, which is applied to a network attached storage device storing movies, and the network attached storage device is communicatively connected to a display device, and the display device is used to display and play the movies. The method includes:
[0006] Analyze the search command triggered by the user through the film search device on the TV end to obtain at least one keyword, each of which corresponds to the number of times a film name is used;
[0007] According to the page layout information of the pre-constructed index page, a reference index grid satisfying a preset focus moving condition is determined from all index grids included in the index page, and an initial focus position of the film retrieval device is obtained;
[0008] According to the page layout information of the index page and the initial position of the focus, the index page is divided into at least one index area, each of the index areas corresponds to a focus movement step number;
[0009] The first page display information of the index page is determined according to the number of focus movement steps corresponding to all the index areas and the number of times the movie names corresponding to all the keywords are used, and the first page display information is displayed through the display device.
[0010] As an optional implementation, in the first aspect of the present invention, the page layout information includes the number of index grids and the positions of the corresponding index grids in the index page, and each of the index grids is used to place the corresponding keywords for the user to index;
[0011] And, dividing the index page to obtain at least one index area according to the page layout information of the index page and the initial location of the focus includes:
[0012] Determine a reference index grid corresponding to the initial position of the focus as an index area;
[0013] According to the initial position of the focus and the page layout information of the index page, analyzing the number of steps required for the focus to move from the reference index grid to each of the index grids, and obtaining the number of focus movement steps corresponding to each of the index grids;
[0014] According to the focus movement step numbers corresponding to all the index grids, all the index grids with the same corresponding focus movement step numbers in all the index grids are divided into the same index area.
[0015] As an optional implementation, in the first aspect of the present invention, the position of each of the index cells in the index page includes the row where each of the index cells is located in the index page and / or the column where each of the index cells is located in the index page;
[0016] And, analyzing the number of steps required for the focus to move from the initial position to each of the index grids according to the initial position of the focus and the page layout information, and obtaining the number of focus movement steps corresponding to each of the index grids, comprises:
[0017] For each of the index grids, when the index grid is the reference index grid, the number of focus movement steps corresponding to the reference index grid is determined to be zero;
[0018] When the index grid is not the reference index grid, calculating the difference between the row where the focus is located and the row where the index grid is located, and obtaining the row difference corresponding to the index grid;
[0019] Calculate the difference between the column where the focus is located and the column where the index grid is located, and obtain the column difference corresponding to the index grid;
[0020] The row difference value corresponding to the index grid and the column difference value corresponding to the index grid are accumulated as the focus moving steps corresponding to the index grid.
[0021] As an optional implementation, in the first aspect of the present invention, determining the first page display information of the index page according to the number of focus movement steps corresponding to all the index areas and the number of times the movie names corresponding to all the keywords are used includes:
[0022] Sorting all the index areas according to the focus movement steps corresponding to all the index areas to obtain the movement step sequence corresponding to all the index areas;
[0023] Sorting all the keywords according to the usage counts of the movie titles corresponding to all the keywords to obtain the usage count sequence corresponding to all the keywords;
[0024] According to the ascending order of the moving step numbers corresponding to all the index regions and the descending order of the usage times corresponding to all the keywords, all the index regions are matched with all the keywords to obtain all the matching keywords matching each of the index regions;
[0025] The first page display information of the index page is determined according to all matching keywords that match all the index areas.
[0026] As an optional implementation manner, in the first aspect of the present invention, determining the first page display information of the index page according to all matching keywords matching all the index areas includes:
[0027] Analyzing the moving direction of each index grid contained in each index area relative to the focus of the film retrieval device according to the page layout information, and obtaining the moving direction of the focus of each index grid;
[0028] Acquire the user's movement habit for the focus, the movement habit including the number of habitual movements corresponding to each movement direction of the focus;
[0029] For each index region, a mapping relationship between all the index cells of the index region and all the matching keywords of the index region is established according to the descending order of the number of habitual movements corresponding to the focus movement directions of all the index cells of the index region and the descending order of the number of usages corresponding to all the matching keywords in the index region, and a target mapping relationship corresponding to the index region is obtained, so that each index cell of the index region is uniquely mapped to a corresponding matching keyword;
[0030] According to the target mapping relationship corresponding to each of the index regions, all matching keywords matching the index region are arranged in the corresponding index grid of the index region to obtain the regional arrangement result of the index region;
[0031] Determine the regional layout results of all the index regions as the first page display information of the index page.
[0032] As an optional embodiment, in the first aspect of the present invention, the method further comprises:
[0033] Counting the number of index grids contained in each of the index areas in all the index areas to obtain a total number of index grids;
[0034] Comparing the total index grid number with the number of all the keywords to obtain a quantity comparison result;
[0035] When the quantity comparison result indicates that the number of the keywords is less than or equal to the total number of index grids, triggering the execution of the operation of matching all the index regions with all the keywords in ascending order of the number of movement steps corresponding to all the index regions and in descending order of the number of times of use corresponding to all the keywords to obtain all the matching keywords that match each of the index regions;
[0036] When the quantity comparison result indicates that the number of the keywords is greater than the total number of index grids, keywords whose number is equal to the total number of index grids are screened out from all the keywords according to the descending order of the number of times used corresponding to all the keywords, and the operation of matching all the index areas with all the keywords according to the ascending order of the number of moving steps corresponding to all the index areas and the descending order of the number of times used corresponding to all the keywords is triggered to obtain all matching keywords that match each index area.
[0037] As an optional implementation, in the first aspect of the present invention, the search instruction includes an instruction for the user to input an initial letter to search for a movie;
[0038] And, the method further comprises:
[0039] Analyzing the keyword selection instruction triggered by the user through the first page display information to obtain the target keyword selected by the user and corresponding to the first letter;
[0040] According to the target keyword, all target movie names containing the target keyword are screened from all movie names stored in the NAS device;
[0041] Extracting all adjacent words adjacent to the target keyword from all words contained in each target movie title;
[0042] The second page display information of the index page in the current time period is determined according to the usage counts of the movie names corresponding to all the adjacent characters of all the target movie names.
[0043] The second aspect of the present invention discloses a layout display device for a film name index page, which is applied to a network attached storage device storing films, and the network attached storage device is communicatively connected to a display device, and the display device is used to display and play the films, and the device includes:
[0044] An analysis module, used to analyze a search instruction triggered by a user through a film search device on a TV end, and obtain at least one keyword, each of which corresponds to a number of times a film name is used;
[0045] A determination module, configured to determine a reference index grid that satisfies a preset focus movement condition from all index grids included in the index page according to page layout information of the pre-constructed index page, and obtain an initial location of the focus of the film retrieval device;
[0046] A division module, configured to divide the index page into at least one index area according to the page layout information of the index page and the initial position of the focus, each of the index areas corresponding to a focus movement step number;
[0047] The determination module is further configured to determine the first page display information of the index page according to the number of focus movement steps corresponding to all the index areas and the number of times the movie names corresponding to all the keywords are used;
[0048] A display module is used to display the first page display information through the display device.
[0049] As an optional implementation, in the second aspect of the present invention, the page layout information includes the number of index grids and the positions of the corresponding index grids in the index page, and each of the index grids is used to place the corresponding keywords for the user to index;
[0050] Furthermore, the division module divides the index page into at least one index area according to the page layout information of the index page and the initial location of the focus, specifically including:
[0051] Determine a reference index grid corresponding to the initial position of the focus as an index area;
[0052] According to the initial position of the focus and the page layout information of the index page, analyzing the number of steps required for the focus to move from the reference index grid to each of the index grids, and obtaining the number of focus movement steps corresponding to each of the index grids;
[0053] According to the focus movement step numbers corresponding to all the index grids, all the index grids with the same corresponding focus movement step numbers in all the index grids are divided into the same index area.
[0054] As an optional implementation, in the second aspect of the present invention, the position of each of the index cells in the index page includes the row where each of the index cells is located in the index page and / or the column where each of the index cells is located in the index page;
[0055] Furthermore, the division module analyzes the number of steps required for the focus to move from the initial position to each of the index cells according to the initial position of the focus and the page layout information, and obtains the number of focus movement steps corresponding to each of the index cells, specifically including:
[0056] For each of the index grids, when the index grid is the reference index grid, the number of focus movement steps corresponding to the reference index grid is determined to be zero;
[0057] When the index grid is not the reference index grid, calculating the difference between the row where the focus is located and the row where the index grid is located, and obtaining the row difference corresponding to the index grid;
[0058] Calculate the difference between the column where the focus is located and the column where the index grid is located, and obtain the column difference corresponding to the index grid;
[0059] The row difference value corresponding to the index grid and the column difference value corresponding to the index grid are accumulated as the focus moving steps corresponding to the index grid.
[0060] As an optional implementation, in the second aspect of the present invention, the determination module determines the first page display information of the index page according to the number of focus movement steps corresponding to all the index areas and the number of times the movie names corresponding to all the keywords are used, specifically including:
[0061] Sorting all the index areas according to the focus movement steps corresponding to all the index areas to obtain the movement step sequence corresponding to all the index areas;
[0062] Sorting all the keywords according to the usage counts of the movie titles corresponding to all the keywords to obtain the usage count sequence corresponding to all the keywords;
[0063] According to the ascending order of the moving step numbers corresponding to all the index regions and the descending order of the usage times corresponding to all the keywords, all the index regions are matched with all the keywords to obtain all the matching keywords matching each of the index regions;
[0064] The first page display information of the index page is determined according to all matching keywords that match all the index areas.
[0065] As an optional implementation, in the second aspect of the present invention, the determination module determines the first page display information of the index page according to all matching keywords matching all the index areas, specifically including:
[0066] Analyzing the moving direction of each index grid contained in each index area relative to the focus of the film retrieval device according to the page layout information, and obtaining the moving direction of the focus of each index grid;
[0067] Acquire the user's movement habit for the focus, the movement habit including the number of habitual movements corresponding to each movement direction of the focus;
[0068] For each index region, a mapping relationship between all the index cells of the index region and all the matching keywords of the index region is established according to the descending order of the number of habitual movements corresponding to the focus movement directions of all the index cells of the index region and the descending order of the number of usages corresponding to all the matching keywords in the index region, and a target mapping relationship corresponding to the index region is obtained, so that each index cell of the index region is uniquely mapped to a corresponding matching keyword;
[0069] According to the target mapping relationship corresponding to each of the index regions, all matching keywords matching the index region are arranged in the corresponding index grid of the index region to obtain the regional arrangement result of the index region;
[0070] Determine the regional layout results of all the index regions as the first page display information of the index page.
[0071] As an optional implementation, in the second aspect of the present invention, the device further includes:
[0072] A statistical module, used for counting the number of index grids contained in each of the index areas in all the index areas, to obtain the total number of index grids;
[0073] a comparison module, configured to compare the total number of index grids with the number of all the keywords to obtain a quantity comparison result; when the quantity comparison result indicates that the number of the keywords is less than or equal to the total number of index grids, trigger the determination module to perform the operation of matching all the index regions with all the keywords according to the ascending order of the number of moving steps corresponding to all the index regions and the descending order of the number of times of use corresponding to all the keywords to obtain all matching keywords matching each of the index regions;
[0074] The first screening module is used for, when the quantity comparison result indicates that the number of the keywords is greater than the total number of index grids, screening out keywords whose number is equal to the total number of index grids from all the keywords according to the descending order of the number of times of use corresponding to all the keywords, and triggering the determination module to execute the operation of matching all the index areas with all the keywords according to the ascending order of the number of moving steps corresponding to all the index areas and the descending order of the number of times of use corresponding to all the keywords, to obtain all matching keywords that match each index area.
[0075] As an optional implementation, in the second aspect of the present invention, the search instruction includes an instruction for the user to input an initial letter to search for a movie;
[0076] The analysis module is further used to analyze the keyword selection instruction triggered by the user through the first page display information to obtain the target keyword selected by the user corresponding to the first letter;
[0077] And, the device further comprises:
[0078] A second screening module is used to screen out all target movie titles containing the target keyword from all movie titles stored in the NAS device according to the target keyword;
[0079] An extraction module, used for extracting all adjacent words adjacent to the target keyword from all words contained in each target movie title;
[0080] The determination module is further configured to determine the second page display information of the index page in the current time period according to the number of times the movie names corresponding to all the adjacent characters of all the target movie names are used.
[0081] A third aspect of the present invention discloses a network attached storage device, the network attached storage device is communicatively connected to a display device, and the network attached storage device stores a memory having executable program code;
[0082] a processor coupled to the memory;
[0083] The processor calls the executable program code stored in the memory to execute the layout display method of the movie name index page disclosed in the first aspect of the present invention.
[0084] The fourth aspect of the present invention discloses a computer storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute the layout display method of the movie name index page disclosed in the first aspect of the present invention.
[0085] The fifth aspect of the present invention discloses a layout display system for a movie name index page, the system comprising a layout display device for a movie name index page as disclosed in the second aspect of the present invention, or a network attached storage device and a display device as disclosed in the third aspect of the present invention, the layout display device for a movie name index page or the network attached storage device is installed with a computer application capable of executing the layout display method for a movie name index page disclosed in the first aspect of the present invention.
[0086] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0087] In the embodiment of the present invention, it is possible to analyze the search instruction triggered by the user through the film search device on the TV side to obtain at least one keyword, and according to the page layout information of the pre-constructed index page, determine the reference index grid that meets the preset focus movement condition from all the index grids included in the index page to obtain the initial focus position of the film search device, and then divide the index page according to the page layout information of the index page and the initial focus position to obtain at least one index area, and then determine the first page display information of the index page according to the number of focus movement steps corresponding to all the index areas and the number of times the film names corresponding to all the keywords are used, and display the first page display information through the display device, so that at least one keyword can be accurately obtained by analyzing the search instruction triggered by the user on the film search device on the TV side, which is conducive to improving the analysis results. The accuracy and efficiency of keywords can be improved, and the reference index grid that meets the preset focus movement conditions can be accurately determined from all index grids of the index page through the page layout information of the pre-constructed index page, which is beneficial to improving the accuracy and reliability of determining the reference index grid, so as to achieve accurate setting of the initial focus position of the film retrieval device, and can achieve accurate layout and display of the index page through the number of times the film name corresponding to all keywords is used and combined with the number of focus movement steps in different index areas and the initial focus position, so as to improve the selection efficiency and selection speed of the user for the keywords they need to select through the accurately laid out and displayed index page, thereby improving the user's film retrieval efficiency and retrieval speed, and also conducive to meeting the user's film retrieval needs and enhancing the user's usage experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0088] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0089] Figure 1 It is a flow chart of a layout display method of a movie name index page disclosed in an embodiment of the present invention;
[0090] Figure 2 It is a flow chart of another layout display method of a movie name index page disclosed in an embodiment of the present invention;
[0091] Figure 3 It is a schematic diagram of the layout of an index page disclosed in an embodiment of the present invention;
[0092] Figure 4It is a structural schematic diagram of a layout display device for a movie name index page disclosed in an embodiment of the present invention;
[0093] Figure 5 It is a structural schematic diagram of another layout display device for a movie name index page disclosed in an embodiment of the present invention;
[0094] Figure 6 It is a schematic diagram of the structure of a network attached storage device disclosed in an embodiment of the present invention;
[0095] Figure 7 It is a structural schematic diagram of a layout display system of a movie name index page disclosed in an embodiment of the present invention;
[0096] Figure 8 It is a structural schematic diagram of another layout display system of a movie title index page disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0097] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0098] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or end including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products or ends.
[0099] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0100] The present invention discloses a layout display method, device and storage device for a movie name index page, which can analyze a search instruction triggered by a user through a movie retrieval device on a TV end, obtain at least one keyword, and determine a reference index grid that meets a preset focus movement condition from all index grids included in the index page according to the page layout information of the pre-built index page, obtain the initial location of the focus of the movie retrieval device, and then divide the index page according to the page layout information of the index page and the initial location of the focus to obtain at least one index area, and then determine the first page display information of the index page according to the number of focus movement steps corresponding to all index areas and the number of times the movie names corresponding to all keywords are used, and display the first page display information through a display device, so as to accurately obtain at least one by analyzing the search instruction triggered by the movie retrieval device on the TV end. Keywords are helpful to improve the accuracy and efficiency of keyword analysis, and can accurately determine the reference index grid that meets the preset focus movement conditions from all index grids of the index page through the page layout information of the pre-built index page, which is helpful to improve the accuracy and reliability of the reference index grid, so as to realize the accurate setting of the initial location of the focus of the film retrieval device, and can realize the accurate layout and display of the index page through the number of times the film name corresponding to all keywords is used and the focus movement steps of different index areas and the initial location of the focus, so as to improve the selection efficiency and speed of the keywords that the user needs to select through the accurately laid out and displayed index page, thereby improving the efficiency and speed of the user's film retrieval, and also meeting the user's film retrieval needs, and improving the user's experience. The following are detailed descriptions.
[0101] Embodiment 1
[0102] See also Figure 1 , Figure 1 1 is a flow chart of a layout display method of a movie name index page disclosed in an embodiment of the present invention. Figure 1 The layout display method of the film name index page described can be applied to a network attached storage device storing films, and the network attached storage device is in communication connection with a display device, and the display device is used to display and play the films. It can also be applied to a layout display device of the film name index page, wherein the device may include a layout display device or a layout display server, wherein the layout display server may include a cloud server or a local server, which is not limited in the embodiments of the present invention. Figure 1 As shown, the layout display method of the film name index page may include the following operations:
[0103] 101. Analyze a search instruction triggered by a user through a film search device on a TV side to obtain at least one keyword.
[0104] In the embodiment of the present invention, each keyword corresponds to the number of times a movie name is used. The search instruction includes an instruction for a user to enter an initial letter to search for a movie. Specifically, analyzing the search instruction triggered by the user through the movie search device on the TV end to obtain at least one keyword may include:
[0105] According to the search instruction triggered by the user through the film search device of the TV segment (such as the remote control of the TV end), at least one Chinese character mapped to the first letter in the search instruction is called out from the database stored in the NAS device (network attached storage device) that establishes a communication connection with the TV end as a keyword.
[0106] The database stored in the NAS device stores all the text (such as Chinese characters, characters, etc.) of each of the multiple movie names, and the database also stores the initial letters mapped to each Chinese character of each movie name, and the database records the relationship between the initial letters and Chinese characters through a preset Chinese character mapping table corresponding to each initial letter. The Chinese character mapping table corresponding to each initial letter is used to indicate the corresponding relationship between the initial letter and the Chinese character mapped to the initial letter, and the Chinese character mapped to the initial letter can be found in the Chinese character mapping table corresponding to the initial letter through the initial letter input by the user.
[0107] Furthermore, the database also stores the number of times each Chinese character is used in different movie titles (i.e., the number of times the movie title is used). For example, assuming that the NAS device stores movies A, B, and C, and Chinese character a (e.g., Jia) appears in both movies A and B, then no matter how many times the Chinese character a appears in movie A, the number of times the Chinese character a is used in movie A is recorded as 1. Similarly, the number of times the Chinese character a is used in movie B can be obtained, and the number of times the movie title corresponding to the Chinese character a is accumulated to be 2.
[0108] 102. According to the page layout information of the pre-constructed index page, a reference index grid satisfying a preset focus moving condition is determined from all index grids included in the index page, and an initial focus position of the film retrieval device is obtained.
[0109] In the embodiment of the present invention, the page layout information includes the number of index grids and the position of the corresponding index grids in the index page. Each index grid is used to place the corresponding keyword for the user to index. The position of each index grid in the index page includes the row where each index grid is located in the index page and / or the column where each index grid is located in the index page.
[0110] Optionally, the index page can be an index page composed of 5x5 squares, in which case the number of index squares included in the index page is 5x5=25; it can also be an index page composed of 4x3 squares, in which case the number of index squares included in the index page is 4x3=12; it can also be an index page composed of squares of any other set length and width, which is not limited to the embodiments of the present invention.
[0111] In the embodiment of the present invention, the preset focus moving condition is used to represent the condition that the maximum value of the distance in the distance set between each index grid and other index grids of all index grids is the minimum value of the distance in all distance sets. Specifically, according to the page layout information of the pre-constructed index page, a reference index grid satisfying the preset focus moving condition is determined from all index grids included in the index page, and the initial location of the focus of the film retrieval device is obtained, which may include:
[0112] According to the page layout information of the pre-built index page, the distance between each index grid in all the index grids included in the index page and the remaining index grids in all the index grids except the index grid is calculated to obtain a distance set corresponding to each index grid;
[0113] Filter out the maximum distance value corresponding to each index grid from the distance set corresponding to the index grid, and filter out the index grid with the smallest corresponding maximum distance value from all index grids as the reference index grid that meets the preset focus movement condition;
[0114] The location of the reference index grid is determined as the initial location of the focus of the film retrieval device.
[0115] The distance between any two index cells is calculated based on the rows and columns of the two index cells in the index page. For example, assuming that index cell A is in the first row and first column, index cell B is in the second row and third column, and index cell C is in the first row and fourth column, then the distance between index cell A and index cell B is the sum of the row difference between index cell A and index cell B (i.e., 2-1=1) and the column difference between index cell A and index cell B (i.e., 3-1=2) (i.e., 1-2=3); the distance between index cell A and index cell C is the sum of the row difference between index cell A and index cell C (i.e., 1-1=0) and the column difference between index cell A and index cell C (i.e., 4-1=3) (i.e., 0+3=3); the distance between index cell B and index cell C is the sum of the row difference between index cell B and index cell C (i.e., 2-1=1) and the column difference between index cell B and index cell C (i.e., 4-3=1) (i.e., 1+1=2).
[0116] 103. Divide the index page into at least one index area according to page layout information of the index page and the initial location of the focus.
[0117] In the embodiment of the present invention, each index area corresponds to a focus moving step number, wherein each index area includes at least one index grid, and the focus moving step number is used to indicate the number of steps required for the focus of the film retrieval device to move from a reference index grid to an index grid in the corresponding index area.
[0118] In the embodiment of the present invention, optionally, there is no order of precedence between any step in step 102-step 103 and step 101, that is, any step in step 102-step 103 (it can be one of the steps or both of the steps) can occur before step 101, can also occur after step 101, and can also occur at the same time as step 101. Further, step 102-step 103 can be executed when the first letter search is performed for the first time, and the setting of the initial position of the focus in step 102 and the layout division of the index area in step 103 can be directly used in subsequent non-first first letter searches, which are not limited in the embodiment of the present invention.
[0119] 104. Determine first page display information of the index page according to the number of focus movement steps corresponding to all index areas and the number of times the movie names corresponding to all keywords are used, and display the first page display information through a display device.
[0120] In an embodiment of the present invention, the first page display information of the index grid may include keywords placed in each index grid contained in each index area in all index areas. Specifically, the first page display information of the index page may be displayed by a display device on the TV end, and the first page display information is used to prompt the user to click the focus moving button of the film retrieval device according to the content of the first page display information, so that the focus of the film retrieval device displayed by the first page display information is moved to the target index grid where the Chinese characters to be selected by the user are located, and is also used to prompt the user to select the target index grid when the focus moves to the target index grid so that the Chinese characters in the target index grid appear in the search box where the search instruction triggered by the user is located.
[0121] It can be seen that the implementation Figure 1The layout display method of the film name index page described can analyze the search instruction triggered by the user through the film retrieval device on the TV side to obtain at least one keyword, and according to the page layout information of the pre-constructed index page, determine the reference index grid that meets the preset focus movement condition from all the index grids contained in the index page to obtain the initial focus position of the film retrieval device, and then divide the index page according to the page layout information of the index page and the initial focus position to obtain at least one index area, and then determine the first page display information of the index page according to the number of focus movement steps corresponding to all the index areas and the number of times the film names are used corresponding to all the keywords, and display the first page display information through the display device, so as to accurately obtain at least one keyword by analyzing the search instruction triggered by the user on the film retrieval device on the TV side. It is beneficial to improve the accuracy and efficiency of keyword analysis, and can accurately determine the benchmark index grid that meets the preset focus movement conditions from all index grids of the index page through the page layout information of the pre-constructed index page, which is beneficial to improve the accuracy and reliability of determining the benchmark index grid, so as to achieve the accurate setting of the initial focus position of the film retrieval device, and can achieve accurate layout and display of the index page through the number of times the film name corresponding to all keywords is used and combined with the focus movement steps of different index areas and the initial focus position, so as to improve the user's selection efficiency and selection speed of the keywords they need to select through the accurately laid out and displayed index page, thereby helping to improve the user's film retrieval efficiency and retrieval speed, and also helping to meet the user's film retrieval needs and improve the user's usage experience.
[0122] In an optional embodiment, the above step 103 of dividing the index page into at least one index area according to the page layout information of the index page and the initial location of the focus may include:
[0123] Determine the reference index grid corresponding to the initial position of the focus as an index area;
[0124] According to the initial position of the focus and the page layout information of the index page, the number of steps required for the focus to move from the reference index grid to each index grid is analyzed to obtain the number of focus movement steps corresponding to each index grid;
[0125] According to the focus movement steps corresponding to all the index grids, all the index grids with the same focus movement steps in all the index grids are divided into the same index area.
[0126] In an embodiment of the present invention, for all index grids except the reference index grid, exemplarily, assuming that the number of focus movement steps between each of index grid a, index grid b and index grid c and the reference index grid is the same (e.g., the number of focus movement steps is 2), then index grid a, index grid b and index grid c are divided into the same index area.
[0127] It can be seen that this optional embodiment can determine the reference index grid corresponding to the initial position of the focus as an index area, and analyze the number of steps required for the focus to move from the reference index grid to each index grid according to the initial position of the focus and the page layout information of the index page, and obtain the focus movement steps corresponding to each index grid, and then according to the focus movement steps corresponding to all the index grids, all the index grids with the same corresponding focus movement steps in all the index grids are divided into the same index area, and the focus movement steps corresponding to each index grid can be accurately analyzed through the initial position of the focus and the page layout information of the index page, and the index grids with the same focus movement steps can be accurately divided into the same index area through the focus movement steps obtained by accurate analysis, which is beneficial to improving the accuracy and reliability of the divided index areas.
[0128] In this optional embodiment, as an optional implementation, according to the initial location of the focus and the page layout information, analyzing the number of steps required for the focus to move from the initial location to each index grid, and obtaining the number of focus movement steps corresponding to each index grid may include:
[0129] For each index grid, when the index grid is a reference index grid, the number of focus movement steps corresponding to the reference index grid is determined to be zero;
[0130] When the index grid is not the reference index grid, the difference between the row where the focus is located and the row where the index grid is located is calculated to obtain the row difference corresponding to the index grid;
[0131] Calculate the difference between the column where the focus is located and the column where the index cell is located, and obtain the column difference corresponding to the index cell;
[0132] The row difference value corresponding to the index grid and the column difference value corresponding to the index grid are accumulated as the focus moving steps corresponding to the index grid.
[0133] In the embodiment of the present invention, the row where the focus is located is the row where the reference index cell corresponding to the initial position of the focus is located in the index page, and the column where the focus is located is the column where the reference index cell corresponding to the initial position of the focus is located in the index page.
[0134] It can be seen that this optional implementation method can, for each index grid, determine the number of focus movement steps corresponding to the reference index grid as zero when the index grid is a reference index grid, and when the index grid is not a reference index grid, respectively calculate the difference between the row where the focus is located and the row where the index grid is located to obtain the row difference corresponding to the index grid, and calculate the difference between the column where the focus is located and the column where the index grid is located to obtain the column difference corresponding to the index grid, and accumulate the row difference corresponding to the index grid and the column difference corresponding to the index grid as the number of focus movement steps corresponding to the index grid. The number of focus movement steps corresponding to the index grid can be accurately calculated by the row difference between the row where the focus is located and the row of any index grid and the column difference between the column where the focus is located and the column where the index grid is located, which is beneficial to improving the accuracy and reliability of the calculated number of focus movement steps.
[0135] Embodiment 2
[0136] See also Figure 2 , Figure 2 1 is a flow chart of a layout display method of a movie name index page disclosed in an embodiment of the present invention. Figure 2 The layout display method of the film name index page described can be applied to a network attached storage device storing films, and the network attached storage device is in communication connection with a display device, and the display device is used to display and play the films. It can also be applied to a layout display device of the film name index page, wherein the device may include a layout display device or a layout display server, wherein the layout display server may include a cloud server or a local server, which is not limited in the embodiments of the present invention. Figure 2 As shown, the layout display method of the film name index page may include the following operations:
[0137] 201. Analyze a search instruction triggered by a user through a film search device on a TV side to obtain at least one keyword.
[0138] 202. According to the page layout information of the pre-built index page, a reference index grid satisfying a preset focus moving condition is determined from all index grids included in the index page, and an initial focus position of the film retrieval device is obtained.
[0139] 203. Divide the index page into at least one index area according to the page layout information of the index page and the initial position of the focus.
[0140] In the embodiment of the present invention, for other descriptions of step 201 to step 203, please refer to the detailed description of step 101 to step 103 in the first embodiment, and the embodiment of the present invention will not be repeated.
[0141] 204. Sort all the index areas according to the focus movement steps corresponding to all the index areas to obtain a movement step sequence corresponding to all the index areas.
[0142] 205. Sort all the keywords according to the usage counts of the movie titles corresponding to all the keywords to obtain the usage count sequence corresponding to all the keywords.
[0143] It should be noted that, assuming that the movie titles corresponding to two or more keywords are used the same number of times, all keywords with the same number of times the movie titles are used can be randomly sorted.
[0144] In the embodiment of the present invention, optionally, there is no order between step 205 and step 204, that is, step 205 may occur before step 204, may occur after step 204, or may occur simultaneously with step 204. Optionally, after determining the moving step ranking result in step 204, the moving step ranking result may be stored in a NAS device for direct call during subsequent retrieval; similarly, after determining the usage count ranking result in step 205, the usage count ranking result may be stored in a NAS device for direct call during subsequent retrieval, which is not limited in the embodiment of the present invention.
[0145] 206. Match all index regions with all keywords according to the ascending order of the moving step numbers corresponding to all index regions and the descending order of the usage times corresponding to all keywords to obtain all matching keywords matching each index region.
[0146] In the embodiment of the present invention, specifically, all index regions are matched with all keywords according to the ascending order of the number of movement steps corresponding to all index regions and the descending order of the number of times used corresponding to all keywords, and all matching keywords matching each index region are obtained, which may include:
[0147] For the last index area in the moving step sequence among all index areas, in descending order of the number of times used for all keywords, select keywords with the same number of index grids as the last index area in the moving step sequence from all keywords in turn as all matching keywords that match the first index area in the moving step sequence;
[0148] For the remaining index areas except the last index area in the moving step sequence among all index areas, and for the remaining keywords except all matching keywords that match the last index area in the moving step sequence among all keywords, re-execute the above operation for the last index area in the moving step sequence among all index areas, select keywords with the same number of index grids as those contained in the last index area in the moving step sequence from all keywords in descending order of the number of times used corresponding to all keywords, as all matching keywords that match the first index area in the moving step sequence, until all index areas are matched.
[0149] For example, if the number of index grids contained in the index area with the last moving step order (such as the focus moving step number is 1) is 1, then the keyword with the earliest usage order among all the keywords is determined as all the matching keywords that match the index area; if the number of index grids contained in the index area with the second to last moving step order (such as the focus moving step number is 2) is 4, then from all the keywords except the keyword with the earliest usage order, the keywords with the second, third, fourth and fifth usage order are selected in turn as all the matching keywords that match the index area.
[0150] 207. Determine first page display information of the index page according to all matching keywords that match all index areas, and display the first page display information through the display device.
[0151] It can be seen that the implementation Figure 2The layout display method of the film name index page described can analyze the search instruction triggered by the user through the film retrieval device on the TV side to obtain at least one keyword, and according to the page layout information of the pre-constructed index page, determine the reference index grid that meets the preset focus movement condition from all the index grids contained in the index page to obtain the initial focus position of the film retrieval device, and then divide the index page according to the page layout information of the index page and the initial focus position to obtain at least one index area, and then determine the first page display information of the index page according to the number of focus movement steps corresponding to all the index areas and the number of times the film names are used corresponding to all the keywords, and display the first page display information through the display device, so as to accurately obtain at least one keyword by analyzing the search instruction triggered by the user on the film retrieval device on the TV side. It is beneficial to improve the accuracy and efficiency of keyword analysis, and can accurately determine the benchmark index grid that meets the preset focus movement conditions from all index grids of the index page through the page layout information of the pre-constructed index page, which is beneficial to improve the accuracy and reliability of determining the benchmark index grid, so as to achieve the accurate setting of the initial focus position of the film retrieval device, and can achieve accurate layout and display of the index page through the number of times the film name corresponding to all keywords is used and combined with the focus movement steps of different index areas and the initial focus position, so as to improve the user's selection efficiency and selection speed of the keywords they need to select through the accurately laid out and displayed index page, thereby helping to improve the user's film retrieval efficiency and retrieval speed, and also helping to meet the user's film retrieval needs and improve the user's usage experience.In addition, all index areas can be sorted according to the number of focus movement steps corresponding to all index areas to obtain the order of movement steps corresponding to all index areas, and all keywords can be sorted according to the number of times the movie names corresponding to all keywords are used to obtain the order of the number of times the keywords are used. Then, all index areas are matched with all keywords according to the ascending order of the order of movement steps corresponding to all index areas and the descending order of the order of the number of times the keywords are used to obtain all matching keywords matching each index area, and then the first page display information of the index page is determined according to all matching keywords matching all index areas. All index areas can be accurately sorted according to the number of focus movement steps corresponding to all index areas to obtain the order of movement steps corresponding to all index areas, and all keywords can be accurately sorted according to the number of times the movie names corresponding to all keywords are used to obtain the order of the number of times the keywords are used, so that the matching keywords matching each index area can be accurately matched according to the ascending order of the order of movement steps and the descending order of the order of the number of times the keywords are used, which is conducive to improving the matching accuracy and efficiency of the index areas and keywords, and then the first page display information of the index page can be accurately determined according to all matching keywords matching all index areas, which is conducive to improving the layout accuracy and display accuracy of the index page.
[0152] In an optional embodiment, the above step 207 of determining the first page display information of the index page according to all matching keywords matching all index regions may include:
[0153] According to the page layout information, the moving direction of each index grid contained in each index area relative to the focus of the film retrieval device is analyzed to obtain the focus moving direction of each index grid;
[0154] Obtaining the user's focus movement habits, where the movement habits include the number of habitual movements corresponding to each focus movement direction;
[0155] For each index region, a mapping relationship between all index cells of the index region and all matching keywords of the index region is established according to the descending order of the number of habitual movements corresponding to the focus movement directions of all index cells of the index region and the descending order of the number of usages corresponding to all matching keywords in the index region, and a target mapping relationship corresponding to the index region is obtained, so that each index cell of the index region is uniquely mapped to a corresponding matching keyword;
[0156] According to the target mapping relationship corresponding to each index area, all matching keywords matching the index area are arranged in the corresponding index grid of the index area to obtain the regional layout result of the index area;
[0157] Determine the regional layout results of all index regions and display the information as the first page of the index page.
[0158] For example, Figure 3 As shown, Figure 3 is a schematic diagram of the layout of an index page disclosed in an embodiment of the present invention. Figure 3 The index page shown takes a 5x5 grid as an example, and the index page takes the descending order of the number of habitual movements of users corresponding to different focus movement directions as left, up, right and down as an example. The index grid marked as 1 in the index page is used as the initial location of the focus, and is also used to place the keyword with the first number of uses among all keywords. The index grid marked as 2 in the index page is used to place the keyword with the second highest number of uses among all keywords. The index grid marked as 3 in the index page is used to place the keyword with the third highest number of uses among all keywords, and so on. The corresponding 10 keywords are placed in the 10 index grids closest to the initial location of the focus on the index page.
[0159] It should be noted that Figure 3 It is only a schematic diagram of the layout of an index page exemplarily proposed in an embodiment of the present invention, and is not used to limit the number of index grids of the index page, the number of index grids for placing keywords, and the user's habit of moving the focus.
[0160] It can be seen that this optional embodiment can analyze the movement direction of each index grid contained in each index area relative to the focus of the film retrieval device based on the page layout information, obtain the focus movement direction of each index grid, and obtain the user's movement habit for the focus, the movement habit includes the habitual movement number corresponding to each focus movement direction, and then establish a mapping relationship between all index grids of the index area and all matching keywords of the index area based on the descending order of the habitual movement number corresponding to the focus movement direction of all index grids of each index area and the descending order of the usage number order corresponding to all matching keywords in the index area, and obtain the target mapping relationship corresponding to the index area, so that each index grid of the index area uniquely maps the corresponding matching keyword, and then according to the target mapping relationship corresponding to each index area, all matching keywords matching the index area are arranged in the corresponding index grid of the index area to obtain the regional layout result of the index area, and the regional layout results of all index areas are determined. , as the first page display information of the index page, the moving direction of each index grid contained in each index area relative to the focus of the film retrieval device can be accurately analyzed through the page layout information to obtain the focus moving direction of the index grid, which is beneficial to improving the accuracy and reliability of the focus moving direction of each index grid analyzed, and the accurate establishment of the mapping relationship between the index grids and the matching keywords in each index area can be achieved through the descending order of the habitual movement times corresponding to the focus moving directions of all index grids of each index area and the descending order of the usage times corresponding to all matching keywords in the index area, so that all matching keywords matching each index area can be accurately laid out in the corresponding index grids of the index area through the accurately established target mapping relationship to obtain the regional layout result of the index area, which is beneficial to improving the layout accuracy and reliability of each index area, and further improving the accuracy and reliability of the content displayed on the index page through all the accurately laid out index areas.
[0161] In another optional embodiment, the method may further include:
[0162] Count the number of index grids contained in each index area in all index areas to obtain the total number of index grids;
[0163] Compare the total number of index grids with the number of all keywords to obtain a quantity comparison result;
[0164] When the result of the quantity comparison indicates that the number of keywords is less than or equal to the total number of index grids, the operation of matching all index regions with all keywords in ascending order of the number of movement steps corresponding to all index regions and in descending order of the number of times used corresponding to all keywords is triggered to obtain all matching keywords that match each index region;
[0165] When the quantity comparison result indicates that the number of keywords is greater than the total number of index grids, keywords whose number is equal to the total number of index grids are filtered out from all keywords according to the descending order of the number of usages corresponding to all keywords, and the execution is triggered to match all index areas with all keywords according to the ascending order of the number of moving steps corresponding to all index areas and the descending order of the number of usages corresponding to all keywords, so as to obtain the operation of all matching keywords that match each index area.
[0166] It can be seen that this optional embodiment can count the number of index grids contained in each index area of all index areas to obtain the total number of index grids, and compare the total number of index grids with the number of all keywords to obtain a quantity comparison result. When the quantity comparison result indicates that the number of keywords is less than or equal to the total number of index grids, it triggers the execution of an operation of matching all index areas with all keywords in ascending order of the number of movement steps corresponding to all index areas and descending order of the number of times of use corresponding to all keywords to obtain all matching keywords matching each index area. When the quantity comparison result indicates that the number of keywords is greater than the total number of index grids, it screens out keywords whose number is equal to the total number of index grids from all keywords in descending order of the number of times of use corresponding to all keywords, and triggers the execution of an operation of matching all index areas with all keywords in ascending order of the number of movement steps corresponding to all index areas and descending order of the number of times of use corresponding to all keywords to obtain all matching keywords matching each index area. The corresponding number of keywords can be arranged in the index page based on the total number of index grids and the number of keywords, which is beneficial to reducing the situation where the display efficiency of all keywords in the index page is reduced due to too many keywords corresponding to the same first letter.
[0167] In yet another optional embodiment, the method may further include:
[0168] Analyze the keyword selection instruction triggered by the user through the information displayed on the first page, and obtain the target keyword corresponding to the first letter selected by the user;
[0169] According to the target keyword, all target movie names containing the target keyword are filtered out from all movie names stored in the NAS device;
[0170] Extract all adjacent words adjacent to the target keyword from all words contained in each target movie title;
[0171] The second page display information of the index page in the current time period is determined according to the usage counts of the movie names corresponding to all adjacent characters of all target movie names.
[0172] In an embodiment of the present invention, optionally, the keyword selection instruction may include a keyword selection instruction, wherein the keyword selection instruction may include an instruction for the user to select a keyword in the index grid where the focus is currently located. Further optionally, before the user triggers the keyword selection instruction, the keyword selection instruction may also include a focus movement instruction, wherein the focus movement instruction may include an instruction for the focus movement direction triggered by the user and the number of focus movement steps for the focus movement direction, such as: the focus moves 2 steps to the left, or the focus moves 1 step up, or the focus moves 1 step to the right and then moves 3 steps down, which is not limited in the embodiment of the present invention.
[0173] In an embodiment of the present invention, specifically, the first page display information is used to display the keyword corresponding to the first letter input by the user in the index page, and the second page display information is used to display the keyword in the index page that is in the same movie name as the keyword selected by the user and is adjacent to the keyword in the same movie name.
[0174] It can be seen that this optional embodiment can analyze the keyword selection instruction triggered by the user through the first page display information, obtain the target keyword corresponding to the first letter selected by the user, and filter out all target movie names containing the target keyword from all movie names stored in the NAS device according to the target keyword, then extract all adjacent words adjacent to the target keyword from all words contained in each target movie name, and then determine the second page display information of the index page in the current time period according to the number of times the movie name corresponding to all adjacent words of all target movie names are used, and can accurately obtain the keyword corresponding to the first letter selected by the user by analyzing the keyword selection instruction triggered by the user through the first page display information. The target keyword is conducive to improving the accuracy and reliability of analyzing the target keyword selected by the user, and can accurately filter out all target movie names containing the target keyword from all movie names stored in the NAS device through the target keyword, which is conducive to improving the accuracy and speed of the filtered target movie names, and can accurately determine the second page display information of the index page in the current time period by extracting all adjacent words adjacent to the target keyword in each target movie name and the number of times the movie name is used, which is conducive to improving the accuracy and speed of determining the second page display information, thereby facilitating improving the movie retrieval efficiency and retrieval speed through the first page display information and combining the second page display information.
[0175] Embodiment 3
[0176] See also Figure 4 , Figure 4 1 is a schematic diagram of a layout display device for a movie title index page disclosed in an embodiment of the present invention. Figure 4The layout display device of the film name index page described can be applied to a network attached storage device storing films, and the network attached storage device is connected to a display device for displaying and playing the films, and the device can include a layout display device or a layout display server, wherein the layout display server can include a cloud server or a local server, which is not limited in the embodiment of the present invention. Figure 4 As shown, the layout display device of the film name index page may include:
[0177] The analysis module 301 is used to analyze the search command triggered by the user through the film search device on the TV end, and obtain at least one keyword, each keyword corresponding to the number of times a film name is used;
[0178] The determination module 302 is used to determine a reference index grid that meets a preset focus moving condition from all index grids included in the index page according to the page layout information of the pre-built index page, and obtain the initial location of the focus of the film retrieval device;
[0179] A division module 303 is used to divide the index page into at least one index area according to the page layout information of the index page and the initial position of the focus, and each index area corresponds to a focus movement step number;
[0180] The determination module 302 is further used to determine the first page display information of the index page according to the number of focus movement steps corresponding to all index areas and the number of times the movie names corresponding to all keywords are used.
[0181] The display module 304 is used to display the first page display information through the display device.
[0182] It can be seen that the implementation Figure 4The layout display device of the film name index page described can analyze the search instruction triggered by the user through the film retrieval device on the TV side to obtain at least one keyword, and according to the page layout information of the pre-constructed index page, determine the reference index grid that meets the preset focus movement condition from all the index grids contained in the index page to obtain the initial focus position of the film retrieval device, and then divide the index page according to the page layout information of the index page and the initial focus position to obtain at least one index area, and then determine the first page display information of the index page according to the number of focus movement steps corresponding to all the index areas and the number of times the film names are used corresponding to all the keywords, and display the first page display information through the display device, so as to accurately obtain at least one keyword by analyzing the search instruction triggered by the user on the film retrieval device on the TV side. It is beneficial to improve the accuracy and efficiency of keyword analysis, and can accurately determine the benchmark index grid that meets the preset focus movement conditions from all index grids of the index page through the page layout information of the pre-constructed index page, which is beneficial to improve the accuracy and reliability of determining the benchmark index grid, so as to achieve the accurate setting of the initial focus position of the film retrieval device, and can achieve accurate layout and display of the index page through the number of times the film name corresponding to all keywords is used and combined with the focus movement steps of different index areas and the initial focus position, so as to improve the user's selection efficiency and selection speed of the keywords they need to select through the accurately laid out and displayed index page, thereby helping to improve the user's film retrieval efficiency and retrieval speed, and also helping to meet the user's film retrieval needs and improve the user's usage experience.
[0183] In an optional embodiment, the page layout information includes the number of index grids and the position of the corresponding index grids in the index page, and each index grid is used to place the corresponding keyword for the user to index. And, the division module 303 divides the index page into at least one index area according to the page layout information of the index page and the initial position of the focus, specifically including:
[0184] Determine the reference index grid corresponding to the initial position of the focus as an index area;
[0185] According to the initial position of the focus and the page layout information of the index page, the number of steps required for the focus to move from the reference index grid to each index grid is analyzed to obtain the number of focus movement steps corresponding to each index grid;
[0186] According to the focus movement steps corresponding to all the index grids, all the index grids with the same focus movement steps in all the index grids are divided into the same index area.
[0187] It can be seen that this optional embodiment can determine the reference index grid corresponding to the initial position of the focus as an index area, and analyze the number of steps required for the focus to move from the reference index grid to each index grid according to the initial position of the focus and the page layout information of the index page, and obtain the focus movement steps corresponding to each index grid, and then according to the focus movement steps corresponding to all the index grids, all the index grids with the same corresponding focus movement steps in all the index grids are divided into the same index area, and the focus movement steps corresponding to each index grid can be accurately analyzed through the initial position of the focus and the page layout information of the index page, and the index grids with the same focus movement steps can be accurately divided into the same index area through the focus movement steps obtained by accurate analysis, which is beneficial to improving the accuracy and reliability of the divided index areas.
[0188] In this optional embodiment, as an optional implementation, the position of each index grid in the index page includes the row of each index grid in the index page and / or the column of each index grid in the index page. And, the division module 303 analyzes the number of steps required for the focus to move from the initial position to each index grid according to the initial position of the focus and the page layout information, and the method of obtaining the number of focus movement steps corresponding to each index grid specifically includes:
[0189] For each index grid, when the index grid is a reference index grid, the number of focus movement steps corresponding to the reference index grid is determined to be zero;
[0190] When the index grid is not the reference index grid, the difference between the row where the focus is located and the row where the index grid is located is calculated to obtain the row difference corresponding to the index grid;
[0191] Calculate the difference between the column where the focus is located and the column where the index cell is located, and obtain the column difference corresponding to the index cell;
[0192] The row difference value corresponding to the index grid and the column difference value corresponding to the index grid are accumulated as the focus moving steps corresponding to the index grid.
[0193] It can be seen that this optional implementation method can, for each index grid, determine the number of focus movement steps corresponding to the reference index grid as zero when the index grid is a reference index grid, and when the index grid is not a reference index grid, respectively calculate the difference between the row where the focus is located and the row where the index grid is located to obtain the row difference corresponding to the index grid, and calculate the difference between the column where the focus is located and the column where the index grid is located to obtain the column difference corresponding to the index grid, and accumulate the row difference corresponding to the index grid and the column difference corresponding to the index grid as the number of focus movement steps corresponding to the index grid. The number of focus movement steps corresponding to the index grid can be accurately calculated by the row difference between the row where the focus is located and the row of any index grid and the column difference between the column where the focus is located and the column where the index grid is located, which is beneficial to improving the accuracy and reliability of the calculated number of focus movement steps.
[0194] In another optional embodiment, the determination module 302 determines the first page display information of the index page according to the number of focus movement steps corresponding to all index areas and the number of times the movie names corresponding to all keywords are used, specifically including:
[0195] According to the focus movement steps corresponding to all index areas, all index areas are sorted to obtain the movement step sequence corresponding to all index areas;
[0196] Sort all keywords according to the number of times the movie titles corresponding to all keywords are used, and obtain the order of the number of times all keywords are used;
[0197] According to the ascending order of the moving step number sequence corresponding to all index regions and the descending order of the usage number sequence corresponding to all keywords, all index regions are matched with all keywords to obtain all matching keywords matching each index region;
[0198] The first page display information of the index page is determined based on all matching keywords that match all index areas.
[0199] It can be seen that this optional embodiment can sort all index areas according to the focus movement steps corresponding to all index areas to obtain the movement step sequence corresponding to all index areas, and sort all keywords according to the number of times the movie names are used corresponding to all keywords to obtain the use number sequence corresponding to all keywords, and then match all index areas with all keywords according to the ascending order of the movement step sequence corresponding to all index areas and the descending order of the use number sequence corresponding to all keywords to obtain all matching keywords matching each index area, and then determine the first page display information of the index page according to all matching keywords matching all index areas, which can be displayed through all All index areas can be accurately sorted by the focus movement steps corresponding to the index areas to obtain the movement step order corresponding to all index areas, and all keywords can be accurately sorted by the number of times the movie names are used corresponding to all keywords to obtain the usage order corresponding to all keywords, so that the matching keywords matching each index area can be accurately matched by the ascending order of the movement step order and the descending order of the usage order, which is beneficial to improving the matching accuracy and efficiency of the index areas and keywords, and further, the first page display information of the index page can be accurately determined by all the matching keywords matching all index areas, which is beneficial to improving the layout accuracy and display accuracy of the index page.
[0200] In this optional embodiment, as an optional implementation, the determination module 302 determines the first page display information of the index page according to all matching keywords matching all index areas, specifically including:
[0201] According to the page layout information, the moving direction of each index grid contained in each index area relative to the focus of the film retrieval device is analyzed to obtain the focus moving direction of each index grid;
[0202] Obtaining the user's focus movement habits, where the movement habits include the number of habitual movements corresponding to each focus movement direction;
[0203] For each index region, a mapping relationship between all index cells of the index region and all matching keywords of the index region is established according to the descending order of the number of habitual movements corresponding to the focus movement directions of all index cells of the index region and the descending order of the number of usages corresponding to all matching keywords in the index region, and a target mapping relationship corresponding to the index region is obtained, so that each index cell of the index region is uniquely mapped to a corresponding matching keyword;
[0204] According to the target mapping relationship corresponding to each index area, all matching keywords matching the index area are arranged in the corresponding index grid of the index area to obtain the regional layout result of the index area;
[0205] Determine the regional layout results of all index regions and display the information as the first page of the index page.
[0206] It can be seen that this optional implementation method can analyze the movement direction of each index grid contained in each index area relative to the focus of the film retrieval device according to the page layout information, obtain the focus movement direction of each index grid, and obtain the user's movement habit for the focus, the movement habit includes the habitual movement number corresponding to each focus movement direction, and then establish a mapping relationship between all index grids of the index area and all matching keywords of the index area according to the descending order of the habitual movement number corresponding to the focus movement direction of all index grids of each index area and the descending order of the usage number order corresponding to all matching keywords in the index area, and obtain the target mapping relationship corresponding to the index area, so that each index grid of the index area uniquely maps the corresponding matching keyword, and then according to the target mapping relationship corresponding to each index area, all matching keywords matching the index area are arranged in the corresponding index grid of the index area to obtain the regional layout result of the index area, and the regional layout result of all index areas is determined. As the first page display information of the index page, the moving direction of each index grid contained in each index area relative to the focus of the film retrieval device can be accurately analyzed through the page layout information to obtain the focus moving direction of the index grid, which is beneficial to improving the accuracy and reliability of the focus moving direction of each index grid analyzed, and the accurate establishment of the mapping relationship between the index grids and the matching keywords in each index area can be achieved through the descending order of the habitual movement times corresponding to the focus moving directions of all index grids of each index area and the descending order of the usage times corresponding to all matching keywords in the index area, so that all matching keywords matching each index area can be accurately laid out in the corresponding index grids of the index area through the accurately established target mapping relationship to obtain the regional layout result of the index area, which is beneficial to improving the layout accuracy and reliability of each index area, and further improving the accuracy and reliability of the content displayed on the index page through all the accurately laid out index areas.
[0207] In this optional embodiment, as another optional implementation, as Figure 5 As shown, Figure 5 is a schematic diagram of the structure of another layout display device for a movie name index page disclosed in an embodiment of the present invention, wherein, Figure 5 As shown, the device may also include:
[0208] A statistics module 305 is used to count the number of index grids contained in each index area in all index areas to obtain the total number of index grids;
[0209] The comparison module 306 is used to compare the total number of index grids with the number of all keywords to obtain a quantity comparison result; when the quantity comparison result indicates that the number of keywords is less than or equal to the total number of index grids, the determination module 302 is triggered to perform an operation of matching all index regions with all keywords according to the ascending order of the number of moving steps corresponding to all index regions and the descending order of the number of times of use corresponding to all keywords to obtain all matching keywords matching each index region;
[0210] The first screening module 307 is used to screen out keywords whose number is equal to the total number of index grids from all keywords according to the descending order of the number of times used of all keywords when the quantity comparison result indicates that the number of keywords is greater than the total number of index grids, and trigger the determination module 302 to perform an operation of matching all index areas with all keywords according to the ascending order of the number of moving steps corresponding to all index areas and the descending order of the number of times used of all keywords to obtain all matching keywords that match each index area.
[0211] It can be seen that this optional implementation method can count the number of index grids contained in each index area of all index areas to obtain the total number of index grids, and compare the total number of index grids with the number of all keywords to obtain a quantity comparison result. When the quantity comparison result indicates that the number of keywords is less than or equal to the total number of index grids, it triggers the execution of an operation of matching all index areas with all keywords in ascending order of the number of movement steps corresponding to all index areas and descending order of the number of times of use corresponding to all keywords to obtain all matching keywords matching each index area. When the quantity comparison result indicates that the number of keywords is greater than the total number of index grids, it screens out keywords whose number is equal to the total number of index grids from all keywords in descending order of the number of times of use corresponding to all keywords, and triggers the execution of an operation of matching all index areas with all keywords in ascending order of the number of movement steps corresponding to all index areas and descending order of the number of times of use corresponding to all keywords to obtain all matching keywords matching each index area. The corresponding number of keywords can be arranged in the index page based on the total number of index grids and the number of keywords, which is beneficial to reducing the situation where the display efficiency of all keywords in the index page is reduced due to too many keywords corresponding to the same first letter.
[0212] In another optional embodiment, the search instruction includes an instruction for the user to input an initial letter to search for movies. The analysis module 301 is further used to analyze the keyword selection instruction triggered by the user through the first page display information to obtain the target keyword corresponding to the initial letter selected by the user.
[0213] And, if Figure 5 As shown, the device may also include:
[0214] The second screening module 308 is used to screen all target movie titles containing the target keyword from all movie titles stored in the NAS device according to the target keyword;
[0215] An extraction module 309, for extracting all adjacent words adjacent to the target keyword from all words contained in each target movie title;
[0216] The determination module 302 is further used to determine the second page display information of the index page in the current time period according to the number of times the movie names corresponding to all adjacent characters of all target movie names are used.
[0217] It can be seen that this optional embodiment can analyze the keyword selection instruction triggered by the user through the first page display information, obtain the target keyword corresponding to the first letter selected by the user, and filter out all target movie names containing the target keyword from all movie names stored in the NAS device according to the target keyword, then extract all adjacent words adjacent to the target keyword from all words contained in each target movie name, and then determine the second page display information of the index page in the current time period according to the number of times the movie name corresponding to all adjacent words of all target movie names are used, and can accurately obtain the keyword corresponding to the first letter selected by the user by analyzing the keyword selection instruction triggered by the user through the first page display information. The target keyword is conducive to improving the accuracy and reliability of analyzing the target keyword selected by the user, and can accurately filter out all target movie names containing the target keyword from all movie names stored in the NAS device through the target keyword, which is conducive to improving the accuracy and speed of the filtered target movie names, and can accurately determine the second page display information of the index page in the current time period by extracting all adjacent words adjacent to the target keyword in each target movie name and the number of times the movie name is used, which is conducive to improving the accuracy and speed of determining the second page display information, thereby facilitating improving the movie retrieval efficiency and retrieval speed through the first page display information and combining the second page display information.
[0218] Embodiment 4
[0219] See also Figure 6 , Figure 6 Schematic diagram of the structure of a network attached storage device disclosed in an embodiment of the present invention. Figure 6 As shown, the network attached storage device is communicatively connected to a display device, and the network attached storage device stores a memory 401 of executable program code;
[0220] a processor 402 coupled to the memory 401;
[0221] The processor 402 calls the executable program code stored in the memory 401 to execute the steps in the layout display method of the movie name index page described in the first embodiment of the present invention or the second embodiment of the present invention.
[0222] Embodiment 5
[0223] An embodiment of the present invention discloses a computer storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute the steps in the layout display method of the movie name index page described in the first embodiment of the present invention or the second embodiment of the present invention.
[0224] Embodiment 6
[0225] See also Figure 7 , Figure 7 Schematic diagram of a layout display system for a movie title index page disclosed in an embodiment of the present invention. Figure 7 As shown, the system includes the layout display device of the film name index page described in the third embodiment of the present invention, and the layout display device of the film name index page is installed with a computer application capable of executing the layout display method of the film name index page described in the first embodiment of the present invention or the second embodiment of the present invention; or,
[0226] See also Figure 8 , Figure 8 FIG. 1 is a schematic diagram of another layout display system for a movie title index page disclosed in an embodiment of the present invention. Figure 8 As shown, the system includes the network attached storage device and the display device described in the fourth embodiment of the present invention, and the network attached storage device is installed with a computer application that can execute the layout display method of the movie name index page described in the first embodiment of the present invention or the second embodiment of the present invention.
[0227] Embodiment 7
[0228] An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute the steps in the layout display method of the movie name index page described in Example 1 or Example 2.
[0229] The device embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, i.e., they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.
[0230] Through the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solution can be essentially or partly contributed to the prior art in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0231] Finally, it should be noted that the layout display method, device and storage device of the film name index page disclosed in the embodiment of the present invention only disclose the preferred embodiments of the present invention, which are only used to illustrate the technical solution of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, it should be understood by those skilled in the art that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A layout display method for a film name index page, applied to a network attached storage device storing films, wherein the network attached storage device is communicatively connected to a display device, and the display device is used to display and play the films, characterized in that: The method comprises: Analyze the search command triggered by the user through the film search device on the TV end to obtain at least one keyword, each of which corresponds to the number of times a film name is used; According to the page layout information of the pre-constructed index page, a reference index grid satisfying a preset focus moving condition is determined from all index grids included in the index page, and an initial focus position of the film retrieval device is obtained; According to the page layout information of the index page and the initial position of the focus, the index page is divided into at least one index area, each of the index areas corresponds to a focus movement step number; The first page display information of the index page is determined according to the number of focus movement steps corresponding to all the index areas and the number of times the movie names corresponding to all the keywords are used, and the first page display information is displayed through the display device.
2. The layout display method of the film name index page according to claim 1, characterized in that: The page layout information includes the number of index grids and the positions of the corresponding index grids in the index page, and each index grid is used to place a corresponding keyword for the user to index; And, dividing the index page to obtain at least one index area according to the page layout information of the index page and the initial location of the focus includes: Determine a reference index grid corresponding to the initial position of the focus as an index area; According to the initial position of the focus and the page layout information of the index page, analyzing the number of steps required for the focus to move from the reference index grid to each of the index grids, and obtaining the number of focus movement steps corresponding to each of the index grids; According to the focus movement step numbers corresponding to all the index grids, all the index grids with the same corresponding focus movement step numbers in all the index grids are divided into the same index area.
3. The layout display method of the film name index page according to claim 2 is characterized in that: The position of each of the index cells in the index page includes the row where each of the index cells is located in the index page and / or the column where each of the index cells is located in the index page; And, analyzing the number of steps required for the focus to move from the initial position to each of the index grids according to the initial position of the focus and the page layout information, and obtaining the number of focus movement steps corresponding to each of the index grids, comprises: For each of the index grids, when the index grid is the reference index grid, the number of focus movement steps corresponding to the reference index grid is determined to be zero; When the index grid is not the reference index grid, calculating the difference between the row where the focus is located and the row where the index grid is located, and obtaining the row difference corresponding to the index grid; Calculate the difference between the column where the focus is located and the column where the index grid is located, and obtain the column difference corresponding to the index grid; The row difference value corresponding to the index grid and the column difference value corresponding to the index grid are accumulated as the focus moving steps corresponding to the index grid.
4. The layout display method of the film name index page according to any one of claims 1 to 3, characterized in that: The determining the first page display information of the index page according to the number of focus movement steps corresponding to all the index areas and the number of times the movie names corresponding to all the keywords are used includes: Sorting all the index areas according to the focus movement steps corresponding to all the index areas to obtain the movement step sequence corresponding to all the index areas; Sorting all the keywords according to the usage counts of the movie titles corresponding to all the keywords to obtain the usage count sequence corresponding to all the keywords; According to the ascending order of the moving step numbers corresponding to all the index regions and the descending order of the usage times corresponding to all the keywords, all the index regions are matched with all the keywords to obtain all the matching keywords matching each of the index regions; The first page display information of the index page is determined according to all matching keywords that match all the index areas.
5. The layout display method of the film title index page according to claim 4 is characterized in that: The determining the first page display information of the index page according to all matching keywords matching all the index areas includes: Analyzing the moving direction of each index grid contained in each index area relative to the focus of the film retrieval device according to the page layout information, and obtaining the moving direction of the focus of each index grid; Acquire the user's movement habit for the focus, the movement habit including the number of habitual movements corresponding to each movement direction of the focus; For each index region, a mapping relationship between all the index cells of the index region and all the matching keywords of the index region is established according to the descending order of the number of habitual movements corresponding to the focus movement directions of all the index cells of the index region and the descending order of the number of usages corresponding to all the matching keywords in the index region, and a target mapping relationship corresponding to the index region is obtained, so that each index cell of the index region is uniquely mapped to a corresponding matching keyword; According to the target mapping relationship corresponding to each of the index regions, all matching keywords matching the index region are arranged in the corresponding index grid of the index region to obtain the regional arrangement result of the index region; Determine the regional layout results of all the index regions as the first page display information of the index page.
6. The layout display method of the film title index page according to claim 5, characterized in that: The method further comprises: Counting the number of index grids contained in each of the index areas in all the index areas to obtain a total number of index grids; Comparing the total index grid number with the number of all the keywords to obtain a quantity comparison result; When the quantity comparison result indicates that the number of the keywords is less than or equal to the total number of index grids, triggering the execution of the operation of matching all the index regions with all the keywords in ascending order of the number of movement steps corresponding to all the index regions and in descending order of the number of times of use corresponding to all the keywords to obtain all the matching keywords that match each of the index regions; When the quantity comparison result indicates that the number of the keywords is greater than the total number of index grids, keywords whose number is equal to the total number of index grids are screened out from all the keywords according to the descending order of the number of times used corresponding to all the keywords, and the operation of matching all the index areas with all the keywords according to the ascending order of the number of moving steps corresponding to all the index areas and the descending order of the number of times used corresponding to all the keywords is triggered to obtain all matching keywords that match each index area.
7. The layout display method of the film name index page according to any one of claims 1, 2, 3, 5 and 6, characterized in that: The search instruction includes an instruction for the user to input an initial letter to search for a movie; And, the method further comprises: Analyzing the keyword selection instruction triggered by the user through the first page display information to obtain the target keyword selected by the user and corresponding to the first letter; According to the target keyword, all target movie names containing the target keyword are screened from all movie names stored in the NAS device; Extracting all adjacent words adjacent to the target keyword from all words contained in each target movie title; The second page display information of the index page in the current time period is determined according to the usage counts of the movie names corresponding to all the adjacent characters of all the target movie names.
8. A layout display device for a film name index page, characterized in that: The device is applied to a network attached storage device storing a movie, and the network attached storage device is communicatively connected to a display device, and the display device is used to display and play the movie. The device includes: An analysis module, used to analyze a search instruction triggered by a user through a film search device on a TV end, and obtain at least one keyword, each of which corresponds to a number of times a film name is used; A determination module, configured to determine a reference index grid that satisfies a preset focus movement condition from all index grids included in the index page according to page layout information of the pre-constructed index page, and obtain an initial location of the focus of the film retrieval device; A division module, configured to divide the index page into at least one index area according to the page layout information of the index page and the initial position of the focus, each of the index areas corresponding to a focus movement step number; The determination module is further configured to determine the first page display information of the index page according to the number of focus movement steps corresponding to all the index areas and the number of times the movie names corresponding to all the keywords are used; A display module is used to display the first page display information through the display device.
9. A network attached storage device, characterized in that: The network attached storage device is communicatively connected to a display device, and the network attached storage device stores a memory having executable program codes; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the layout display method of the movie name index page as described in any one of claims 1-7.
10. A computer storage medium, characterized in that: The computer storage medium stores computer instructions, which, when called, are used to execute the layout display method of the movie name index page as described in any one of claims 1-7.
11. A layout display system for a movie title index page, characterized in that: The system includes the layout display device of the movie name index page as described in claim 8, or the network attached storage device and display device as described in claim 9, and the layout display device of the movie name index page or the network attached storage device is installed with a computer application capable of executing the method described in any one of claims 1-7.
