Focus control method and device, equipment and storage medium

By obtaining the target focus and view card attributes in the grid view, and determining the target switching card based on the focus movement information, the problem of low accuracy of focus control in the grid card interaction scenario is solved, and more accurate and flexible focus switching is achieved, improving the user experience.

CN119917203APending Publication Date: 2025-05-02SHENZHEN TCL NEW-TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411998834.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-05-02

AI Technical Summary

Technical Problem

In the grid card interaction scenario, the prior art focus control accuracy is low and cannot meet the interaction control needs of users' precise focus control.

Method used

By responding to the focus control request for the target focus, the upper focus view card corresponding to the target focus in the target grid view and its view card attributes are obtained, and the target switching card is determined based on the focus movement information and view card attributes to achieve accurate focus jumps.

Benefits of technology

Improve the accuracy and flexibility of focus switching, avoid abnormal focus jumps, and improve the user's focus control experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119917203A_ABST
    Figure CN119917203A_ABST
Patent Text Reader

Abstract

The invention provides a focus control method and device, equipment and a storage medium, and the method comprises the steps: obtaining an upper focus view card corresponding to a target focus in a target grid view, and the view card attribute of the upper focus view card in response to a focus control request for the target focus; determining a target switching card according to focus movement information of the target focus and a card line attribute in the view card attributes; and controlling the target focus to jump to the target switching card to obtain a focus control result. According to the technical scheme provided by the invention, the accuracy and flexibility of focus switching can be improved, and wrong focusing during focus movement is avoided, so that the focus control experience of a user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a focus control method, device, equipment and storage medium. Background Art

[0002] At present, with the rapid development of smart display devices, more and more display devices are getting larger and larger. Therefore, many content providers have also adapted large-screen display interfaces in designated applications. Among them, grid layout is a common way to display large-screen display interface controls. Grid layout usually uses cards of different sizes to display different content. In the focus interaction process of this grid layout, when switching the focus on a large-size card, the focus will jump abnormally to the card view of other rows, resulting in low accuracy of focus interaction control, which cannot meet the user's interactive control needs for precise focus control. Summary of the invention

[0003] Embodiments of the present application provide a focus control method, apparatus, device and storage medium, which are intended to solve the technical problem of low control accuracy when performing focus control in a grid card interaction scenario in the prior art.

[0004] In one aspect, an embodiment of the present application provides a focus control method, the focus control method comprising the following steps:

[0005] In response to a focus control request for a target focus, obtaining an upper focus view card corresponding to the target focus in a target grid view, and view card attributes of the upper focus view card;

[0006] Determine the target switching card according to the focus movement information of the target focus and the card row attribute in the view card attribute;

[0007] Control the target focus to jump to the target switching card to obtain a focus control result.

[0008] In a possible implementation of the present application, before obtaining the upper focus view card corresponding to the target focus and the view card attributes of the upper focus view card, the method further includes:

[0009] Obtain each display view card in the target grid view and a card configuration file of the display view card;

[0010] Performing positioning processing on the display view card to obtain card position information and card row information of the display view card;

[0011] The card configuration file is attribute-configured according to the card position information and the card row information to obtain the view card attribute of the display view card.

[0012] In a possible implementation of the present application, determining the target switching card according to the focus movement information of the target focus and the card row attribute in the view card attribute includes:

[0013] Parsing the focus control request, and acquiring focus movement information of a target focus corresponding to the focus control request;

[0014] Determine a target view card list according to the focus movement information and the card row attributes in the view card attributes;

[0015] The target switching card is determined according to the card coordinate attributes in the view card attributes and the target view card list.

[0016] In a possible implementation of the present application, before determining the target view card list according to the focus movement information and the card row attribute in the view card attribute, the method further includes:

[0017] Obtain a display view card in a target grid view, and a card row attribute of the display view card, wherein the card row attribute includes a first card row attribute or a second card row attribute;

[0018] Adding a first view card whose card row attribute in the display view card is the first card row attribute to the first view card list, wherein the list row attribute of the first view card list is the same as the first card row attribute;

[0019] Add the second view card whose card row attribute in the displayed view card is the second card row attribute to the second view card list, and the list row attribute of the second view card list is the same as the second card row attribute.

[0020] In a possible implementation of the present application, the target view card list includes a first target view card list and a second target view card list;

[0021] The determining the target view card list according to the focus movement information and the card row attribute in the view card attribute includes:

[0022] If the focus movement information is left-right movement information, determining the first view card list or the second view card list whose list row attribute is the same as the card row attribute as the first target view card list;

[0023] If the focus movement information is up and down movement information, the first view card list or the second view card list whose list row attributes are different from the card row attributes is determined as the second target view card list.

[0024] In a possible implementation of the present application, determining the target switching card according to the card coordinate attribute in the view card attribute and the target view card list includes:

[0025] If the focus movement information is left-right movement information, obtaining a first candidate view card in the target view card list and a first candidate coordinate attribute of the first candidate view card, wherein the first candidate view card and the upper focus view card are in the same view card row;

[0026] The focus movement direction in the focus movement information is obtained, and a target switching card associated with the first candidate view card in the focus movement direction is located according to the card coordinate attribute and the first candidate coordinate attribute.

[0027] In a possible implementation of the present application, determining the target switching card according to the card coordinate attribute in the view card attribute and the target view card list includes:

[0028] If the focus movement information is up and down movement information, obtaining a second candidate view card in the second target view card list and a second candidate coordinate attribute of the second candidate view card, wherein the second candidate view card and the upper focus view card are in different view card rows;

[0029] Calculate the view card distance between the upper focus view card and each of the second candidate view cards according to the card coordinate attributes and the second candidate coordinate attributes;

[0030] The second candidate view card with the smallest view card distance is determined as the target switching card.

[0031] On the other hand, the present application provides a focus control device, the focus control device comprising:

[0032] A card acquisition module is configured to respond to a focus control request for a target focus, acquire an upper focus view card corresponding to the target focus in a target grid view, and a view card attribute of the upper focus view card;

[0033] A focus switching positioning module is configured to determine a target switching card according to the focus movement information of the target focus and the card row attribute in the view card attribute;

[0034] The focus switching module is configured to control the target focus to jump to the target switching card to obtain a focus control result.

[0035] On the other hand, the present application also provides a focus control device, the focus control device comprising:

[0036] one or more processors;

[0037] Memory; and

[0038] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the steps of the focus control method.

[0039] On the other hand, the present application also provides a computer-readable storage medium on which a computer program is stored. The computer program is loaded by a processor to execute the steps in the focus control method.

[0040] In the present application, by responding to a focus control request for the target focus, the upper focus view card corresponding to the target focus in the target grid view and the view card attributes of the upper focus view card are obtained; the target switching card is determined according to the focus movement information of the target focus and the card row attributes in the view card attributes; the target focus is controlled to jump to the target switching card to obtain a focus control result. This is achieved by pre-configuring the view card for the upper focus view card, determining the view card attributes such as the card position attribute and the card row attribute of the upper focus view card, and during the target focus switching process, determining the target switching card in the same row or across rows according to the focus movement information of the target focus and the card row attributes in the view card attributes, so that the target focus can accurately jump to the target switching card. This improves the accuracy and flexibility of focus switching, avoids incorrect focusing when the focus moves, and thus improves the user's focus control experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0042] Figure 1 A schematic diagram of a scene of a focus control method according to an embodiment of the present application;

[0043] Figure 2 This is a flow chart of an embodiment of a focus control method in an embodiment of the present application;

[0044] Figure 3 A schematic diagram of a flow chart of an embodiment of generating a view card list in a focus control method provided in an embodiment of the present application;

[0045] Figure 4 A schematic diagram of a flow chart of an embodiment of focus switching in the focus control method provided in the embodiments of the present application;

[0046] Figure 5 A schematic diagram of the structure of an embodiment of a focus control device provided in an embodiment of the present application;

[0047] Figure 6 A schematic structural diagram of an embodiment of a focus control device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. 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 those skilled in the art without creative work are within the scope of protection of the present invention.

[0049] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0050] In this application, the word "exemplary" is used to mean "serving as an example, illustration, or illustration." Any embodiment described in this application as "exemplary" is not necessarily to be construed as being preferred or advantageous over other embodiments. The following description is given to enable any person skilled in the art to implement and use the invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the invention can be implemented without using these specific details. In other instances, well-known structures and processes are not elaborated in detail to avoid obscuring the description of the invention with unnecessary details. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in this application.

[0051] At present, with the rapid development of smart display devices, more and more display devices are getting larger and larger. Therefore, many content providers have also adapted large-screen display interfaces in designated applications. Among them, grid layout is a common way to display large-screen display interface controls. Grid layout usually uses cards of different sizes to display different content. In the focus interaction process of this grid layout, when switching the focus on a large-size card, the focus will jump abnormally to the card view of other rows, resulting in low accuracy of focus interaction control, which cannot meet the user's interactive control needs for precise focus control.

[0052] Based on this, the present application proposes a focus control method, device, equipment and computer-readable storage medium to solve the technical problem of low control accuracy when performing focus control in a grid card interaction scenario in the prior art.

[0053] The focus control method in the embodiment of the present invention is applied to a focus control device, which is arranged in a focus control device. The focus control device is provided with one or more processors, a memory, and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the focus control method; wherein the focus control device can be an intelligent terminal, such as a mobile phone, a tablet computer, a smart TV, and a smart computer; optionally, the focus control device can also be a server, or a service cluster composed of multiple servers.

[0054] like Figure 1 As shown, Figure 1 This is a scene diagram of the focus control method of an embodiment of the present application. The focus control scene in the embodiment of the present invention includes a focus control device 100 (a focus control device is integrated in the focus control device 100), and a computer-readable storage medium corresponding to the focus control method is running in the focus control device 100 to execute the steps of the focus control method.

[0055] Understandably, Figure 1 The focus control device in the focus control method scenario shown, or the apparatus included in the focus control device, does not constitute a limitation on the embodiments of the present invention, that is, the number of devices and types of devices of the focus control device included in the focus control method scenario, or the number of apparatuses and types of apparatuses included in each device, do not affect the overall implementation of the technical solution in the embodiments of the present invention, and can all be regarded as equivalent replacements or derivatives of the technical solution claimed to be protected in the embodiments of the present invention.

[0056] The focus control device 100 in the embodiment of the present invention is mainly used to: respond to a focus control request for a target focus, obtain an upper focus view card corresponding to the target focus in a target grid view, and a view card attribute of the upper focus view card;

[0057] Determine the target switching card according to the focus movement information of the target focus and the card row attribute in the view card attribute;

[0058] Control the target focus to jump to the target switching card to obtain a focus control result.

[0059] The focus control device 100 in the embodiment of the present invention can be an independent focus control device, such as a smart terminal such as a mobile phone, a tablet computer, a smart TV, a server, and a smart computer, or it can be a focus control network or focus control cluster composed of multiple focus control devices.

[0060] The embodiments of the present application provide a focus control method, apparatus, device, and computer-readable storage medium, which are described in detail below.

[0061] It can be understood by those skilled in the art that Figure 1 The application environment shown in is only one of the application scenarios related to the present application solution and does not constitute a limitation on the application scenario of the present application solution. Other application environments may also include Figure 1 More or fewer focus control devices, or focus control network connection relationships, such as Figure 1 Only one focus control device is shown. It can be understood that the scenario of the focus control method can also include one or more focus control devices, which are not specifically limited here. The focus control device 100 can also include a memory for storing view card data and other data.

[0062] It should be noted that Figure 1 The scene diagram of the focus control method shown is only an example. The scene of the focus control method described in the embodiment of the present invention is to more clearly illustrate the technical solution of the embodiment of the present invention, and does not constitute a limitation on the technical solution provided by the embodiment of the present invention.

[0063] Based on the scenario of the above focus control method, various embodiments of the focus control method disclosed in the present invention are proposed.

[0064] like Figure 2 As shown, Figure 2 This is a flow chart of an embodiment of a focus control method in an embodiment of the present application. The focus control method includes the following steps 201 to 203:

[0065] 201. In response to a focus control request for a target focus, obtain an upper focus view card corresponding to the target focus in a target grid view, and view card attributes of the upper focus view card;

[0066] The focus control method in this embodiment is applied to a focus control device, and the type and quantity of the focus control device are not specifically limited, that is, the focus control device can be one or more smart terminals or servers. In a specific embodiment, the focus control device is a smart TV.

[0067] Specifically, the focus control device can support a large-screen display interface and display a target grid view on the large-screen display interface, wherein the target grid view is to arrange the display content in a grid in the form of display view cards of different or same sizes, and each display view card corresponds to an icon or label of an application or function. The user can move the target focus to the specified display view card for selection, confirmation or other operations through the direction keys or joystick components on the remote control or controller (such as a handle controller or a joystick controller) that is connected to the focus control device for communication. Among them, the target focus is an interactive element that represents the ability to select or operate each display view card in the target grid view and visually indicate the display view card. For example, in a specific embodiment, after selecting the specified display view card, the target focus can indicate the selected display view card with a border, shadow, highlight or other visual effects.

[0068] Specifically, in order to avoid abnormal focus jumps when switching focus, the focus control device also responds to a focus control request for the target focus when displaying the display content in a large-screen display interface, wherein the focus control request is an operation event that drives the focus control device to determine the target switching card to be switched to the target focus according to the view card attributes of the current upper focus view card and performs focus switching based on the target switching card. Optionally, the triggering method of the focus control request is not specifically limited here, that is, the focus control request can be actively triggered by the user, for example, when the focus control device displays the display content in a large-screen display interface, the user can click the focus control button associated with the focus control device through a remote control or controller connected to the focus control device (wherein, the focus control button can be a physical button on the remote control or controller, or a virtual button in the setting page of the focus control device), and actively trigger the focus control request. In addition, the focus control request can also be actively triggered by the focus control device, for example, a focus control process is set on the focus control device, and the focus control request is actively triggered when the focus control device displays the display content in a large-screen display interface.

[0069] Specifically, after receiving the focus control request for the target focus, the focus control device obtains the upper focus view card corresponding to the target focus in the target grid view. Among them, the upper focus view card is the display view card where the target focus currently falls. For example, in the target grid view, there are display view card A, display view card B, display view card C, and display view card D. When the target view falls on display view C, the display view card C is the upper focus view card of the target focus.

[0070] Specifically, after acquiring the upper focus view card, the focus control device also acquires the view card attributes of the upper focus view card. That is, after acquiring the display view card where the target focus is focused, the focus control device determines the display view card as the upper focus view card, and reads the card configuration file of the upper focus view card to obtain the view card attributes of the upper focus view card. Among them, the view card attributes are attribute information characterizing the position and number of rows of the upper focus view card.

[0071] Specifically, before obtaining the upper-focus view card and the view card attributes of the upper-focus view card, the focus control device also pre-configures the attributes of each display view card in the target grid view, thereby marking the view card attributes of each display view card, so that the focus switching control can be performed according to the view card attributes during subsequent focus switching to avoid target focus jumping.

[0072] Specifically, when the focus control device runs the target grid view, it obtains each display view card existing in each target grid view and reads the card configuration file of each display view card. In a specific embodiment, the card configuration file is an XML file.

[0073] Specifically, after determining the target grid view, the focus control device performs positioning processing on the display view card in the target grid view, thereby determining the card position information and card row information of the display view card. Among them, the card position information is the position coordinate information representing the position of the display view card in the target grid view. The card row information is the horizontal row number information representing the display view card in the target grid view. For example, in a specific embodiment, the target grid view is a 2*2 grid view, and the display view card in the target grid view is located in the horizontal first view card row or the horizontal second view card row. The focus control device determines the target view card row where the display view card is located by determining the card row information of the display view card.

[0074] Specifically, after obtaining the card position information and card row information of each display view card, the focus control device configures the card configuration file of the display view card according to the card position information and card row information, thereby obtaining the view card attributes of each display view card, so as to realize the row and column marking of each display view card. Among them, the view card attributes include card row attributes and card coordinate attributes.

[0075] Optionally, in a specific embodiment, the configuration code for the focus control device to configure the card row attributes in the card configuration file is:

[0076]

[0077] Optionally, in another embodiment, the configuration code for the focus control device to configure the card coordinate attribute in the card configuration file is:

[0078] vi ew.setTag(Ri d.topFocus Index,1);

[0079] vi ew.setTag(Ri d.bottomFocus Index,2);

[0080] 202. Determine a target switching card according to the focus movement information of the target focus and the card row attribute in the view card attribute;

[0081] Specifically, after acquiring the upper focus view card and the view card attributes of the upper focus view card, the focus control device also determines the target switching card according to the focus movement information of the target focus and the card row attributes in the view card attributes.

[0082] Specifically, after obtaining the focus control request, the focus control device parses the focus control request and obtains the focus movement information of the target focus corresponding to the focus control request. The focus movement information is focus switching information that characterizes the movement type and movement direction of the target focus to be moved. The focus movement information includes up and down movement information and left and right movement information. The up and down movement information of the target focus is target focus switching information that characterizes that the focus movement type of the target focus this time is that the target focus moves in the up and down directions. The left and right movement information is target focus switching information that characterizes that the focus movement type of the target focus this time is that the target focus moves in the left and right directions.

[0083] Specifically, after acquiring the focus movement information of the target focus, the focus control device also determines the target view card list according to the focus movement information and the card row attribute in the view card attribute. The target view card list is a display view card set including the target switching card to be switched in this focus switching and other display view cards.

[0084] Specifically, before determining the target view card list, the focus control device also traverses and integrates each display view card according to the card row attributes of each display view card in the target grid view to generate each view card list. The view card list is a set of display view cards corresponding to the display view cards containing the same card row attributes. The view card list is provided with a list row attribute, and the list row attribute is used to characterize the view card row in which each display view card in the view card list is located. That is, each display view card in the same view card list is in the same view card row. In a specific embodiment, the view card list includes a first view card list and a second view card list. The first view card list is a view card list that characterizes that the display view card is located in the first view card row. The second view card list is a view card list that characterizes that the display view card is located in the second view card row. The first view card row and the second view card row are horizontally adjacent view card rows.

[0085] Specifically, the focus control device determines the target view card list according to the focus movement information and the card row attribute in the view card attribute, including:

[0086] If the focus movement information is left-right movement information, the focus control device determines the first view card list or the second view card list whose list row attributes are the same as the card row attributes as the first target view card list. That is, when the focus control device determines that the target focus is a focus switching event that moves left-right during this focus switching process, the view card list (first view card list or second view card list) whose list row attributes are the same as the card row attributes of the upper focus view card is obtained and set as the first target view card list of the target focus. During this focus switching process, only the target switching card to be focused is filtered in the first target view card list. Among them, the target switching card is a display view card control in which the target focus is about to switch out of focus. For example, if the card row attribute is the first card row attribute, the first view card list is determined as the first target view card list. If the card row attribute is the second card row attribute, the second view card list is determined as the first target view card list.

[0087] If the focus movement information is up and down movement information, the focus control device determines the first view card list or the second view card list whose list row attributes are different from the card row attributes as the second target view card list. That is, when the focus control device determines that the target focus is a focus switching event that moves up and down during this focus switching process, the view card list (first view card list or second view card list) whose list row attributes are the same as the card row attributes of the upper focus view card is obtained and set as the second target view card list of the target focus. During this focus switching process, only the target switching card to be focused is filtered in the first target view card list. Among them, the target switching card is a display view card control in which the target focus is about to switch out of focus. For example, if the card row attribute is the second card row attribute, the first view card list is determined as the second target view card list. If the card row attribute is the second card row attribute, the first view card list is determined as the second target view card list.

[0088] Specifically, after determining the target view card list, the focus control device further determines the target switching card to which the target focus is to be switched according to the target view card list and the card coordinate attributes in the view card attributes.

[0089] Optionally, in a specific embodiment, after determining that the focus movement information of the target focus is left-right movement information, the focus control device obtains the first candidate view card in the target view card list and the first candidate coordinate attribute of the first candidate view card. The first candidate view card and the upper focus view card are in the same view card row;

[0090] Specifically, the focus control device also obtains the focus movement direction in the focus movement information, and locates the target switching card associated with the first candidate view card in the focus movement direction according to the card coordinate attribute and the first candidate coordinate attribute. That is, the focus control device determines the next first candidate view card in the first candidate view card that is adjacent to the upper focus view card in the focus movement direction according to the card coordinate attribute and the first candidate coordinate attribute, and determines the next first candidate view card in the first candidate view card that is adjacent to the upper focus view card in the focus movement direction as the target switching card. That is, when the focus control device determines that the focus movement information of the target focus is left-right movement information, the adjacent next display view card of the upper focus view card in the same view card row is determined as the target switching card.

[0091] Optionally, if the upper focus view card does not have an adjacent next display view card in the same view card row, the focus movement information is modified to up and down movement information, and the target switching card of the target focus is determined according to the up and down movement information.

[0092] 203. Control the target focus to jump to the target switching card to obtain a focus control result.

[0093] Specifically, after determining the target switching card to be switched during the current focus switching process, the focus control device controls the target focus to jump to the target switching card to obtain a focus control result. That is, after determining the target switching card, the focus control device obtains the card coordinate attribute of the target switching card, controls the target focus to jump to the target switching card according to the card coordinate attribute, and indicates the selected target switching card with a border, shadow, highlight or other visual effects, so as to accurately switch to the specified display view card and avoid focus abnormality.

[0094] Optionally, after switching the target focus to the target switching card, the focus control device further responds to a card control instruction for the target switching card, and performs a corresponding control control operation based on the card control instruction.

[0095] In this embodiment, the focus control device obtains the upper focus view card corresponding to the target focus in the target grid view and the view card attributes of the upper focus view card by responding to the focus control request for the target focus; determines the target switching card according to the focus movement information of the target focus and the card row attributes in the view card attributes; controls the target focus to jump to the target switching card to obtain the focus control result. This is achieved by pre-configuring the view card for the upper focus view card, determining the view card attributes such as the card position attribute and the card row attribute of the upper focus view card, and during the target focus switching process, determining the target switching card in the same row or across rows according to the focus movement information of the target focus and the card row attributes in the view card attributes, so that the target focus can accurately jump to the target switching card. This improves the accuracy and flexibility of focus switching, avoids incorrect focusing when the focus moves, and thus improves the user's focus control experience.

[0096] like Figure 3 As shown, Figure 3 This is a flow chart of an embodiment of generating a view card list in the focus control method provided in an embodiment of the present application. Specifically, in this embodiment, the focus control method further includes steps 301 to 303:

[0097] 301. Obtain a display view card in a target grid view and a card row attribute of the display view card;

[0098] 302. Add the first view card whose card row attribute in the display view card is the first card row attribute to the first view card list;

[0099] 303. Add the second view card whose card row attribute in the display view card is the second card row attribute to the second view card list.

[0100] Based on the above embodiments, in this embodiment, before determining the target view card list, the focus control device also traverses and integrates each display view card according to the card row attributes of each display view card in the target grid view to generate each view card list. Wherein, the view card list is a display view card set containing display view cards with the same card row attributes. Wherein, a list row attribute is set in the view card list, and the list row attribute is used to characterize the view card row where each display view card in the view card list is located. That is, each display view card in the same view card list is in the same view card row. Wherein, in a specific embodiment, the view card list includes a first view card list and a second view card list. Wherein, the first view card list is a view card list that characterizes that the display view card is located in the first view card row. The second view card list is a view card list that characterizes that the display view card is located in the second view card row. Wherein, the first view card row and the second view card row are horizontally adjacent view card rows.

[0101] Specifically, the focus control device obtains the display view card in the target grid view, and the card row attribute of the display view card, and the card row attribute includes a first card row attribute or a second card row attribute. The first card row attribute and the second card row attribute are card row attributes representing different view card rows. The first card row attribute is a view card attribute representing that the display view card is in the first view card row. The second card row attribute is a view card attribute representing that the display view card is in the second view card row.

[0102] Optionally, after acquiring the display view cards in the target grid view, the focus control device traverses the display view cards, determines the card row attribute of each display view card, sets the display view card whose card row attribute in the display view card is the first card row attribute as the first view card, and adds the first view card to a preset first view card list, wherein the list row attribute of the first view card list is the same as the first card row attribute;

[0103] Optionally, after acquiring the display view cards in the target grid view, the focus control device traverses the display view cards, determines the card row attributes of each display view card, and sets the display view card in the display view card whose card row attributes are the second card row attributes as the second view card, and adds the second view card to the second view card list, the list row attributes of the second view card list are the same as the second card row attributes.

[0104] In this embodiment, the focus control device obtains the display view card in the target grid view, and the card row attribute of the display view card, the card row attribute includes the first card row attribute or the second card row attribute; adds the first view card with the card row attribute of the first card row attribute in the display view card to the first view card list, and the list row attribute of the first view card list is the same as the first card row attribute; adds the second view card with the card row attribute of the second card row attribute in the display view card to the second view card list, and the list row attribute of the second view card list is the same as the second card row attribute. The display view cards corresponding to different view card rows are added to the corresponding view card lists, and then in subsequent embodiments, the target switching card to be focus switched is filtered through the target view card list in the view card list to improve the focus switching accuracy.

[0105] like Figure 4 As shown, Figure 4 4 is a flow chart of an embodiment of focus switching in the focus control method provided in the embodiment of the present application. Specifically, in the present embodiment, the focus control method further includes steps 401 to 403:

[0106] 401. If the focus movement information is up and down movement information, obtain a second candidate view card in a second target view card list and a second candidate coordinate attribute of the second candidate view card;

[0107] 402. Calculate the view card distance between the upper focus view card and each of the second candidate view cards according to the card coordinate attributes and the second candidate coordinate attributes;

[0108] 403. Determine the second candidate view card with the smallest view card distance as the target switching card.

[0109] Based on the above embodiments, in this embodiment, the focus control device obtains the focus movement direction in the focus movement information, and locates the target switching card associated with the first candidate view card in the focus movement direction according to the card coordinate attribute and the first candidate coordinate attribute.

[0110] Optionally, if the focus control device determines that the focus movement information of the target focus is up and down movement information, the focus control device obtains the second candidate view card in the second target view card list, and the second candidate coordinate attribute of the second candidate view card, wherein the second candidate view card and the upper focus view card are in different view card rows.

[0111] Specifically, after obtaining the second candidate view card and the corresponding second candidate coordinate attributes, the focus control device also calculates the view card distance between the upper-focus view card and each of the second candidate view cards based on the card coordinate attributes and the second candidate coordinate attributes, and compares the view card distances between the upper-focus view card and each of the second candidate view cards, obtains the second candidate view card with the smallest view card distance, and determines the second candidate view card with the smallest view card distance as the target switching card.

[0112] Specifically, after determining the target switching card to be switched during the current focus switching process, the focus control device controls the target focus to jump to the target switching card to obtain a focus control result. That is, after determining the target switching card, the focus control device obtains the card coordinate attribute of the target switching card, controls the target focus to jump to the target switching card according to the card coordinate attribute, and indicates the selected target switching card with a border, shadow, highlight or other visual effects, so as to accurately switch to the specified display view card and avoid focus abnormality.

[0113] In this embodiment, the focus control device determines that the focus movement information is up and down movement information, and then obtains the second candidate view card in the second target view card list and the second candidate coordinate attribute of the second candidate view card, and the second candidate view card and the upper focus view card are in different view card rows; the view card distance between the upper focus view card and each of the second candidate view cards is calculated according to the card coordinate attribute and the second candidate coordinate attribute; the second candidate view card with the smallest view card distance is determined as the target switching card. When the target focus is switched up and down, the target switching card to be switched is determined according to the second target view card list and the card coordinate attribute, thereby improving the focus switching accuracy.

[0114] In order to better implement the focus control method in the embodiment of the present application, based on the focus control method, the embodiment of the present application also provides a focus control device, such as Figure 5 As shown, Figure 5 The structure diagram of an embodiment of the focus control device provided in the embodiment of the present application is as follows. Specifically, the focus control device 500 includes:

[0115] The card acquisition module 501 is configured to respond to a focus control request for a target focus, acquire an upper focus view card corresponding to the target focus in a target grid view, and a view card attribute of the upper focus view card;

[0116] A focus switching positioning module 502 is configured to determine a target switching card according to the focus movement information of the target focus and the card row attribute in the view card attribute;

[0117] The focus switching module 503 is configured to control the target focus to jump to the target switching card to obtain a focus control result.

[0118] In an implementation method disclosed in this embodiment, before the focus control device obtains the upper focus view card corresponding to the target focus and the view card attributes of the upper focus view card, it also includes:

[0119] Obtain each display view card in the target grid view and a card configuration file of the display view card;

[0120] Performing positioning processing on the display view card to obtain card position information and card row information of the display view card;

[0121] The card configuration file is attribute-configured according to the card position information and the card row information to obtain the view card attribute of the display view card.

[0122] In an implementation method disclosed in this embodiment, the focus control device determines the target switching card according to the focus movement information of the target focus and the card row attribute in the view card attribute, including:

[0123] Parsing the focus control request, and acquiring focus movement information of a target focus corresponding to the focus control request;

[0124] Determine a target view card list according to the focus movement information and the card row attributes in the view card attributes;

[0125] The target switching card is determined according to the card coordinate attributes in the view card attributes and the target view card list.

[0126] In an implementation method disclosed in this embodiment, before the focus control device determines the target view card list according to the focus movement information and the card row attribute in the view card attribute, it also includes:

[0127] Obtain a display view card in a target grid view, and a card row attribute of the display view card, wherein the card row attribute includes a first card row attribute or a second card row attribute;

[0128] Adding a first view card whose card row attribute in the display view card is the first card row attribute to the first view card list, wherein the list row attribute of the first view card list is the same as the first card row attribute;

[0129] Add the second view card whose card row attribute in the displayed view card is the second card row attribute to the second view card list, and the list row attribute of the second view card list is the same as the second card row attribute.

[0130] In an implementation method disclosed in this embodiment, the target view card list in the focus control device includes a first target view card list and a second target view card list;

[0131] The focus control device determines the target view card list according to the focus movement information and the card row attribute in the view card attribute, including:

[0132] If the focus movement information is left-right movement information, determining the first view card list or the second view card list whose list row attribute is the same as the card row attribute as the first target view card list;

[0133] If the focus movement information is up and down movement information, the first view card list or the second view card list whose list row attributes are different from the card row attributes is determined as the second target view card list.

[0134] In an implementation method disclosed in this embodiment, the focus control device determines the target switching card according to the card coordinate attribute in the view card attribute and the target view card list, including:

[0135] If the focus movement information is left-right movement information, obtaining a first candidate view card in the target view card list and a first candidate coordinate attribute of the first candidate view card, wherein the first candidate view card and the upper focus view card are in the same view card row;

[0136] The focus movement direction in the focus movement information is obtained, and a target switching card associated with the first candidate view card in the focus movement direction is located according to the card coordinate attribute and the first candidate coordinate attribute.

[0137] In an implementation method disclosed in this embodiment, the focus control device determines the target switching card according to the card coordinate attribute in the view card attribute and the target view card list, including:

[0138] If the focus movement information is up and down movement information, obtaining a second candidate view card in the second target view card list and a second candidate coordinate attribute of the second candidate view card, wherein the second candidate view card and the upper focus view card are in different view card rows;

[0139] Calculate the view card distance between the upper focus view card and each of the second candidate view cards according to the card coordinate attributes and the second candidate coordinate attributes;

[0140] The second candidate view card with the smallest view card distance is determined as the target switching card.

[0141] In this embodiment, the focus control device obtains the upper focus view card corresponding to the target focus in the target grid view and the view card attributes of the upper focus view card by responding to the focus control request for the target focus; determines the target switching card according to the focus movement information of the target focus and the card row attributes in the view card attributes; controls the target focus to jump to the target switching card to obtain the focus control result. This is achieved by pre-configuring the view card for the upper focus view card, determining the view card attributes such as the card position attribute and the card row attribute of the upper focus view card, and during the target focus switching process, determining the target switching card in the same row or across rows according to the focus movement information of the target focus and the card row attributes in the view card attributes, so that the target focus can accurately jump to the target switching card. This improves the accuracy and flexibility of focus switching, avoids incorrect focusing when the focus moves, and thus improves the user's focus control experience.

[0142] The embodiment of the present invention also provides a focus control device, such as Figure 6 As shown, Figure 6 A schematic diagram of the structure of an embodiment of a focus control device provided in an embodiment of the present application.

[0143] The focus control device integrates any one of the focus control devices provided by the embodiments of the present invention, and the focus control device includes:

[0144] one or more processors;

[0145] Memory; and

[0146] One or more applications, wherein the one or more applications are stored in the memory and are configured so that the processor executes the steps of the focus control method described in any of the above focus control method embodiments.

[0147] Specifically, the focus control device may include a processor 601 with one or more processing cores, a memory 602 with one or more computer-readable storage media, a power supply 603, an input unit 604, and other components. Those skilled in the art will appreciate that Figure 6 The focus control device structure shown in the figure does not constitute a limitation on the focus control device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0148] The processor 601 is the control center of the focus control device, and uses various interfaces and lines to connect various parts of the entire focus control device. By running or executing software programs and / or modules stored in the memory 602, and calling data stored in the memory 602, the processor 601 performs various functions of the focus control device and processes data, thereby monitoring the focus control device as a whole. Optionally, the processor 601 may include one or more processing cores; preferably, the processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 601.

[0149] The memory 602 can be used to store software programs and modules. The processor 601 executes various functional applications and data processing by running the software programs and modules stored in the memory 602. The memory 602 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the focus control device, etc. In addition, the memory 602 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 602 can also include a memory controller to provide the processor 601 with access to the memory 602.

[0150] The focus control device further includes a power supply 603 for supplying power to various components. Preferably, the power supply 603 can be logically connected to the processor 601 through a power management system, so as to manage charging, discharging, power consumption and other functions through the power management system. The power supply 603 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.

[0151] The focus control device may further include an input unit 604, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0152] Although not shown, the focus control device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 601 in the focus control device will load the executable files corresponding to the processes of one or more application programs into the memory 602 according to the following instructions, and the processor 601 will run the application programs stored in the memory 602, thereby realizing various functions, as follows:

[0153] In response to a focus control request for a target focus, obtaining an upper focus view card corresponding to the target focus in a target grid view, and view card attributes of the upper focus view card;

[0154] Determine the target switching card according to the focus movement information of the target focus and the card row attribute in the view card attribute;

[0155] Control the target focus to jump to the target switching card to obtain a focus control result.

[0156] To this end, an embodiment of the present invention provides a computer-readable storage medium, which may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in any one of the focus control methods provided in the embodiments of the present invention. For example, the computer program may be loaded by a processor to execute the following steps:

[0157] In response to a focus control request for a target focus, obtaining an upper focus view card corresponding to the target focus in a target grid view, and view card attributes of the upper focus view card;

[0158] Determine the target switching card according to the focus movement information of the target focus and the card row attribute in the view card attribute;

[0159] Control the target focus to jump to the target switching card to obtain a focus control result.

[0160] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the detailed description of other embodiments above, and will not be repeated here.

[0161] In specific implementation, the above units or structures can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units or structures can refer to the previous method embodiments, which will not be repeated here.

[0162] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0163] The above is a detailed introduction to a focus control method provided in an embodiment of the present application. Specific embodiments are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A focus control method, characterized in that: The focus control method comprises: In response to a focus control request for a target focus, obtaining an upper focus view card corresponding to the target focus in a target grid view, and view card attributes of the upper focus view card; Determine the target switching card according to the focus movement information of the target focus and the card row attribute in the view card attribute; Control the target focus to jump to the target switching card to obtain a focus control result.

2. The focus control method according to claim 1, characterized in that: Before obtaining the upper focus view card corresponding to the target focus and the view card attributes of the upper focus view card, the method further includes: Obtain each display view card in the target grid view and a card configuration file of the display view card; Performing positioning processing on the display view card to obtain card position information and card row information of the display view card; The card configuration file is attribute-configured according to the card position information and the card row information to obtain the view card attribute of the display view card.

3. The focus control method according to claim 1, characterized in that: The determining the target switching card according to the focus movement information of the target focus and the card row attribute in the view card attribute includes: Parsing the focus control request, and acquiring focus movement information of a target focus corresponding to the focus control request; Determine a target view card list according to the focus movement information and the card row attributes in the view card attributes; The target switching card is determined according to the card coordinate attributes in the view card attributes and the target view card list.

4. The focus control method according to claim 3, characterized in that: Before determining the target view card list according to the focus movement information and the card row attribute in the view card attribute, the method further includes: Obtain a display view card in a target grid view, and a card row attribute of the display view card, wherein the card row attribute includes a first card row attribute or a second card row attribute; Adding a first view card whose card row attribute in the display view card is the first card row attribute to the first view card list, wherein the list row attribute of the first view card list is the same as the first card row attribute; Add the second view card whose card row attribute in the displayed view card is the second card row attribute to the second view card list, and the list row attribute of the second view card list is the same as the second card row attribute.

5. The focus control method according to claim 3, characterized in that: The target view card list includes a first target view card list and a second target view card list; The determining the target view card list according to the focus movement information and the card row attribute in the view card attribute includes: If the focus movement information is left-right movement information, determining the first view card list or the second view card list whose list row attribute is the same as the card row attribute as the first target view card list; If the focus movement information is up and down movement information, the first view card list or the second view card list whose list row attributes are different from the card row attributes is determined as the second target view card list.

6. The focus control method according to claim 3, characterized in that: The determining the target switching card according to the card coordinate attribute in the view card attribute and the target view card list includes: If the focus movement information is left-right movement information, obtaining a first candidate view card in the target view card list and a first candidate coordinate attribute of the first candidate view card, wherein the first candidate view card and the upper focus view card are in the same view card row; The focus movement direction in the focus movement information is obtained, and a target switching card associated with the first candidate view card in the focus movement direction is located according to the card coordinate attribute and the first candidate coordinate attribute.

7. The focus control method according to claim 3, characterized in that: The determining the target switching card according to the card coordinate attribute in the view card attribute and the target view card list includes: If the focus movement information is up and down movement information, obtaining a second candidate view card in the second target view card list and a second candidate coordinate attribute of the second candidate view card, wherein the second candidate view card and the upper focus view card are in different view card rows; Calculate the view card distance between the upper focus view card and each of the second candidate view cards according to the card coordinate attributes and the second candidate coordinate attributes; The second candidate view card with the smallest view card distance is determined as the target switching card.

8. A focus control device, characterized in that: The focus control device comprises: A card acquisition module is configured to respond to a focus control request for a target focus, acquire an upper focus view card corresponding to the target focus in a target grid view, and a view card attribute of the upper focus view card; A focus switching positioning module is configured to determine a target switching card according to the focus movement information of the target focus and the card row attribute in the view card attribute; The focus switching module is configured to control the target focus to jump to the target switching card to obtain a focus control result.

9. A focus control device, characterized in that: The focus control device comprises: one or more processors; Memory; and One or more applications, wherein the one or more applications are stored in the memory and are configured to be executed by the processor to implement the steps of the focus control method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps of the focus control method according to any one of claims 1 to 7.