CN108668157B - Focus moving method and device and set top box - Google Patents

Focus moving method and device and set top box Download PDF

Info

Publication number
CN108668157B
CN108668157B CN201810750949.1A CN201810750949A CN108668157B CN 108668157 B CN108668157 B CN 108668157B CN 201810750949 A CN201810750949 A CN 201810750949A CN 108668157 B CN108668157 B CN 108668157B
Authority
CN
China
Prior art keywords
focus
movement
target
focus object
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810750949.1A
Other languages
Chinese (zh)
Other versions
CN108668157A (en
Inventor
徐佳宏
王志宾
华道伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ipanel TV Inc
Original Assignee
Shenzhen Ipanel TV Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Ipanel TV Inc filed Critical Shenzhen Ipanel TV Inc
Priority to CN201810750949.1A priority Critical patent/CN108668157B/en
Publication of CN108668157A publication Critical patent/CN108668157A/en
Application granted granted Critical
Publication of CN108668157B publication Critical patent/CN108668157B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • H04N21/42206User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details
    • H04N21/4221Dedicated function buttons, e.g. for the control of an EPG, subtitles, aspect ratio, picture-in-picture or teletext

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The invention provides a focus moving method, a device and a set-top box, which are applied to the technical field of information processing, wherein after a focus moving command is obtained, at least one candidate focus object adjacent to a current focus object is determined according to the focus moving command, then a target focus object is determined from the candidate focus objects according to a preset focus moving rule, and a focus is moved to the target focus object to realize the selection of the target focus object, the movement of the focus is realized according to the focus moving command and the preset focus moving rule, the determination of the focus moving position does not depend on the arrangement of the focus objects in a user interface, so that a developer can change and upgrade the user interface according to needs without recalculating the target focus objects corresponding to the upper, lower, left and right directions adjacent to the current focus object, and the limiting factors of the upgrading and changing of the user interface are reduced, the working efficiency is improved.

Description

Focus moving method and device and set top box
Technical Field
The invention belongs to the technical field of information processing, and particularly relates to a focus moving method and device and a set top box.
Background
In many application scenarios, for a terminal device not equipped with a touch display screen or a mouse, a remote controller is required to send a focus moving command to control the movement of a focus, so as to realize the selection of different focus objects.
For example, when a set-top box is used to watch a television program, if a user wants to move a focus to a target focus object, the user needs to control the focus to move to the target focus object by clicking four direction keys arranged on a remote controller of the set-top box, so as to complete selection of the target focus object.
In the prior art, for a user interface with a regular arrangement of focus objects, a target focus object can be directly calculated and determined according to a focus moving command, and a focus is moved to the target focus object; for a user interface with irregularly arranged focus objects, target focus objects corresponding to the focus objects in four directions, namely, up, down, left and right directions adjacent to the focus object are calculated in advance for each focus object, the calculated corresponding relations are stored, and then the target focus objects are determined according to the prestored corresponding relations and focus moving commands.
Therefore, for a user interface with irregular arrangement of the focus objects, if the user interface is changed, the focus objects in the user interface are rearranged, and the corresponding relationship between the focus objects needs to be recalculated, so that a large amount of human resources are consumed, and the upgrading and development of the user interface are influenced.
Disclosure of Invention
In view of this, an object of the present invention is to provide a method, an apparatus and a set-top box for moving a focus, so that the determination of the focus moving position does not depend on the arrangement of focus objects in a user interface, and the limiting factors of upgrading and revising the user interface are reduced, and the specific scheme is as follows:
in a first aspect, the present application provides a focus shifting method, including:
acquiring a focus moving command;
determining at least one candidate focus object adjacent to the current focus object according to the focus movement command;
determining a target focus object from the candidate focus objects according to a preset focus movement rule;
moving focus to the target focus object.
Optionally, the determining, according to the focus movement command, at least one candidate focus object adjacent to the current focus object includes:
analyzing the focus moving command to obtain a focus moving direction;
determining at least one focus object adjacent to the current focus object in the focus moving direction as the candidate focus object.
Optionally, each focus object has a boundary;
the determining at least one focus object adjacent to the current focus object in the focus moving direction as the candidate focus object includes:
determining a target boundary of a current focus object in the boundary of each direction, wherein the target boundary is consistent with the focus moving direction;
and determining the focus object with intersection with the target boundary as the candidate focus object.
Optionally, the determining that the focus object having an intersection with the target boundary is the candidate focus object includes:
if the focus object which has intersection with the target boundary is the previous-level view of the current focus object, generating a boundary object, wherein the boundary object records the content of the focus moving command and the parameter of the current focus object;
and determining candidate focus objects according to the boundary objects and the preset focus movement rule.
Optionally, the determining a target focus object from the candidate focus objects according to a preset focus movement rule includes:
and determining the candidate focus object which is positioned at the leftmost side and the topmost side as the target focus object according to the position information of the at least one candidate focus object.
Optionally, the method according to the first aspect of the present application further includes:
storing a first neighboring focus object above and adjacent to the current focus object;
storing a second adjacent focus object that is below and adjacent to the current focus object;
a third adjacent focus object stored to the left of and adjacent to the current focus object;
storing a fourth adjacent focus object to the right of and adjacent to the current focus object.
Optionally, after the acquiring the focus moving command, the method further includes:
analyzing the focus moving command to obtain a focus moving direction;
when the adjacent focus object of the current focus object in the focus moving direction is stored, determining the adjacent focus object of the current focus object in the focus moving direction as the target focus object.
Optionally, the method according to the first aspect of the present application further includes:
storing the movement relation of a focus between a preset number of focus objects, wherein the movement relation comprises a focus movement direction corresponding to the focus object and a target focus object;
after acquiring the focus movement command, the method further comprises:
judging whether the moving relation contains a current focus object;
if the movement relation comprises a current focus object, determining a target movement direction opposite to the current movement direction, wherein the current movement direction is obtained according to the focus movement command;
judging whether a target movement relation which takes the current focus object as a target focus object and takes the movement direction as a target movement direction exists in the stored movement relations;
and if so, determining that the starting focus object in the target movement relationship is the target focus object corresponding to the current focus movement command.
In a second aspect, the present application provides a focus shifting apparatus, including:
a first acquisition unit configured to acquire a focus movement command;
a first determination unit for determining at least one candidate focus object adjacent to a current focus object according to the focus movement command;
a second determining unit, configured to determine a target focus object from the candidate focus objects according to a preset focus movement rule;
a moving unit for moving a focus to the target focus object.
In a third aspect, the present application provides a set top box, including: a memory and a processor; the memory stores a program adapted to be executed by the processor to implement the focus moving method according to any one of the first aspect.
Based on the above technical solution, in the focus moving method provided in the embodiments of the present invention, after a focus moving command is obtained, at least one candidate focus object adjacent to a current focus object is determined according to the focus moving command, then a target focus object is determined from the candidate focus objects according to a preset focus moving rule, and a focus is moved to the target focus object to realize selection of the target focus object The user interface is upgraded without recalculating the target focus objects corresponding to the current focus object in the four directions, namely the up direction, the down direction, the left direction and the right direction, so that the limiting factors of upgrading and revising the user interface are reduced, and the working efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a block diagram of a focus shifting system according to an embodiment of the present invention;
FIG. 2 is a flowchart of a focus shifting method according to an embodiment of the present invention;
FIG. 3 is a flow chart of another method for focus shifting provided by embodiments of the present invention;
FIG. 4 is a flowchart of a focus shifting method according to another embodiment of the present invention;
fig. 5 is a block diagram of a focus shifting apparatus according to an embodiment of the present invention;
fig. 6 is a block diagram of another focus shifting apparatus according to an embodiment of the present invention;
fig. 7 is a block diagram of a focus shifting apparatus according to another embodiment of the present invention;
fig. 8 is a block diagram of a focus shifting apparatus according to another embodiment of the present invention;
fig. 9 is a block diagram of a set-top box according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a block diagram of a structure of a focus movement system according to an embodiment of the present invention, where fig. 1 shows a selectable application scenario of the focus movement system according to the embodiment of the present invention, and specifically includes: the remote control device comprises a remote controller 1 and an intelligent television 2, wherein the current user interface of the intelligent television 2 comprises a plurality of program sections, and each program section can be called as a focus object.
The present invention provides a focus moving system, which determines a focus moving command sent by a user through a remote controller according to the touch operation of the user, determines a next target focus object to obtain a focus, that is, a program section other than the program section one (focus object 21) in fig. 1, according to the focus moving command and a preset focus moving rule, and further moves the focus to the target focus object.
Based on this idea, referring to fig. 2, a flowchart of a focus moving method provided in an embodiment of the present invention is shown in conjunction with fig. 1 and fig. 2, where the flowchart may include:
in step S100, a focus movement command is acquired.
In practical applications, for a terminal device without a mouse or a touch screen, a focus moving command is often to control a focus to gradually move in four directions, namely up, down, left, and right, and move the focus to a destination corresponding to specific command content to select a corresponding focus object.
Therefore, the manner in which the user sends the focus movement command at least includes: and sending a focus moving command through a remote controller or triggering the focus moving command through a physical key arranged on the terminal equipment body. Of course, other ways of sending the focus movement command are possible, and are not limited to the above-mentioned two command generation ways.
Correspondingly, there are also multiple ways to obtain the focus movement command, and the method can obtain a wireless signal sent by a remote controller, or acquire a key value of a physical key pressed by a user on a terminal device, and further determine the content of the focus movement command according to the content of the key value, or obtain the focus movement command sent by the user through a smart phone, and the like.
Step S110, determining at least one candidate focus object adjacent to the current focus object according to the focus movement command.
After the focus moving command is obtained, the content of the focus moving command needs to be analyzed, and then at least one candidate focus object adjacent to the current focus object can be determined according to the content of the focus moving command.
Optionally, to simplify the analysis process of the focus movement command, a specific focus movement command may be assigned, for example, the upward movement command is assigned to-1, the downward movement command is assigned to 1, the leftward movement command is assigned to-2, and the rightward movement command is assigned to 2. Of course, the key values corresponding to the control keys may be directly used for identification, or the control keys may be numbered, which control key is triggered is determined according to the number, and the command content corresponding to the control key is further analyzed.
After analyzing the obtained focus movement command, the movement direction of the focus may be determined according to the content of the focus movement command, for example, if a value obtained by obtaining and analyzing a certain focus movement command is 2, the movement direction of the focus may be determined to be the right.
According to the moving direction of the focus, at least one focus object adjacent to the current focus object in the focus moving direction needs to be further determined as a candidate focus object. It should be noted that the focus object mentioned in the present application may be a component, a view, or another unit in the user interface that can obtain the focus.
As is well known in the art, any type of focus object has a boundary with a certain width during the setting process, and thus, at least one candidate focus object adjacent to the current focus object in the focus moving direction may be determined using the boundary of the focus object. Optionally, since any one of the focus objects has a plurality of focus boundaries, a boundary that coincides with the focus movement direction among the boundaries of the current focus object in each direction is determined as a target boundary, and then a focus object whose boundary intersects with the target boundary is determined as a candidate focus object. It is conceivable that, since the boundary of the focus object has a certain length, there is at least one focus object intersecting with the target boundary of the current focus object, i.e., at least one candidate focus object.
Step S120, determining a target focus object from the candidate focus objects according to a preset focus movement rule.
The preset focus moving rule defines the priority of the focus in the moving sequence, and when a plurality of candidate focus objects exist, the target focus object needs to be further determined according to the preset focus moving rule.
Optionally, if the focus movement rule is first up and then down, and first left and then right, that is, for a certain focus movement command, the position information of each candidate focus is obtained, and the candidate focus object at the leftmost side and at the topmost side should be determined as the target focus object.
It should be noted that the preset focus movement rule may be designed according to practical situations, and is not limited to the content provided above, and any focus movement rule that can be used to determine the target focus object among multiple candidate focus objects is optional, and also falls within the scope of the present invention.
Step S130, moving the focus to the target focus object.
After the target focus object is determined, the focus can be moved to the target focus object, and the movement of the focus is completed.
According to the focus moving method provided by the invention, the movement of the focus is realized according to the focus moving command and the preset focus moving rule, at least one candidate focus object is obtained by calculation after the focus moving command is obtained every time, and the target focus object of the focus moving is further determined according to the preset focus moving rule, and the determination of the focus moving position does not depend on the arrangement of the focus objects in the user interface, so that a developer can change and upgrade the user interface according to the need without recalculating the target focus objects corresponding to the current focus object in the upper, lower, left and right directions, the limitation factor of the user interface on upgrading and changing is reduced, and the working efficiency is improved.
Alternatively, in practical applications, the movement of focus may occur between focus objects at different levels, such as between components and views, in some cases. Therefore, the present application also provides a preferred embodiment, which realizes the focus movement when the objects of the focus movement are in different levels.
Specifically, if the focus object intersecting with the target boundary is a previous view of the current focus object, a boundary object needs to be generated, and the command content of the current focus movement command and the parameter information of the current focus object are recorded in the boundary object.
Optionally, the definition of the boundary object may be:
BorderObj: { type: -1| -2|1|2, position: { left, top, width, height }, isInside }, and as can be seen from the definition content, the boundary object contains the command content (type: -1| -2|1|2) and the basic parameters (position: { left, top, width, height }) of the current focus object, and IsInside is used for identifying whether the boundary object is generated inside the view or not or is transmitted outside.
Based on the information contained in the boundary object, at least one candidate focus object may be determined or a candidate region may be partitioned, and the focus objects in the region may be used as candidate focus objects. Further, the target focus object is determined according to a preset focus movement rule, for example, the focus object at the leftmost position and the uppermost position in the candidate region is determined as the target focus object.
After the target focus object is determined, the focus may be jumped to the target focus object.
Optionally, in order to further increase the determination speed of the target focus object and shorten the execution time of the focus moving command, the present application provides a preferred embodiment, and referring to fig. 3, a flowchart of another focus moving method provided in the embodiment of the present application includes:
in step S200, a focus movement command is acquired.
Optionally, an optional implementation of step S200 may be as shown in step S100 in fig. 2, and is not described here again.
In step S210, the focus movement command is analyzed to obtain the focus movement direction.
After the focus moving command is obtained, the content of the focus moving command needs to be analyzed first, and then the focus moving direction can be obtained according to the content of the focus moving command.
The focus movement command at least includes four types of up movement, down movement, left movement and right movement, and the focus movement command is analyzed according to a preset analysis mode of the focus movement command, such as assignment of different focus movement commands or identification of key values of physical keys sending the focus movement command, and the focus movement direction is obtained according to the content of the focus movement command.
In step S220, it is determined whether an adjacent focus object of the current focus object in the focus moving direction is stored, if yes, step S250 is executed, and if not, step S230 is executed.
Each time the focus moves, two focus objects are involved, one is the current focus object, the other is the target focus object, for the user interface which has started to be used, the adjacent focus objects in the upper, lower, left and right directions in any one focus object in the user interface are often fixed, that is, the corresponding relationship is fixed, therefore, after the same focus moving command is sent for the same current focus object, the focus is inevitably moved to the same adjacent focus object, that is, the target focus object. It should be noted that the storage operation occurs after all the execution steps shown in the embodiment shown in fig. 1, and in the using process of the user, the focus movement relationship between the focus objects is continuously recorded, and the storage record is continuously perfected until all the adjacent focus objects of all the focus objects in any focus movement direction are completely stored.
Optionally, the specific storage operation includes: a first adjacent focus object stored above and adjacent to the current focus object, a second adjacent focus object stored below and adjacent to the current focus object, a third adjacent focus object stored to the left of and adjacent to the current focus object, and a fourth adjacent focus object stored to the right of and adjacent to the current focus object.
Optionally, the structure for implementing the storage content may be as follows:
MapItem:{-1:nextPos,2:nextPos,1:nextPos,2:nextPos};
ActionMap:{pos1:MapItem1,pos2:MapItem2,...}。
it should be noted that, in the initial stage of application after the user interface is upgraded or modified, especially in the first application, the storage function provided by this embodiment is certainly not applied, and as the storage information becomes richer and richer, this function can be generally applied, and the execution efficiency of the user instruction is effectively improved.
In step S230, at least one candidate focus object adjacent to the current focus object is determined according to the focus movement command.
Optionally, an optional implementation of step S230 may be as shown in step S110 in fig. 2, and is not described here again.
In step S240, a target focus object is determined from the candidate focus objects according to a preset focus movement rule.
Optionally, an optional implementation of step S240 may be as shown in step S120 in fig. 2, and is not described here again.
It should be noted that, referring to fig. 3, after the step S240 is completed, the step S260 should be executed instead.
In step S250, it is determined that the adjacent focus object of the current focus object in the focus moving direction is the target focus object.
If the adjacent focus object of the current focus object in the focus moving direction is stored, the target focus object of which the focus moves in the focus moving direction can be directly determined according to the history information.
In step S260, the focus is moved to the target focus object.
After the target focus object is determined, the focus can be moved to the target focus object, and the movement of the focus is completed.
Optionally, referring to fig. 4, a flowchart of another focus moving method provided in an embodiment of the present invention includes:
in step S300, a focus movement command is acquired.
Optionally, an optional implementation of step S300 may be as shown in step S100 in fig. 2, and is not described here again.
Step S310, determining whether the moving relationship includes the current focus object, if yes, performing step S340, and if no, performing step S320.
The movement relationship of the focus between the focus objects includes a focus movement direction corresponding to the focus object and a target focus object, and the movement relationship described in the embodiment of the present application mainly records a path along which the focus moves to the target focus object after moving in a certain direction on the current focus object.
Optionally, the movement relationships of the focus among the preset number of focus objects may be stored by a stack, for example, the latest three movement relationships stored in the stack may be defined, and the movement relationships stored in the stack are continuously refreshed according to a rule of reading data from the stack. The storage moving relationship based on the stack structure can adopt the following structure:
PathItem: { type: -1| -2|1|2, toPos, fromPos }, where fromPos refers to the current focus object and toPos refers to the next focus object.
It should be noted that the storage of the movement relationship also occurs after each time the focus movement command is executed, and is applied to the next execution of the focus movement command, so that, for the focus movement command acquired for the first time, it is certain that the movement relationship cannot be applied, the target focus object is quickly determined, and the focus movement command is executed. If the storage of the movement relationship is in the form of a stack, only a preset number of recently executed focus movement commands can be stored in the stack based on the storage characteristics of the stack, and focus movement commands before the preset number are refreshed and are not stored and memorized.
In step S320, at least one candidate focus object adjacent to the current focus object is determined according to the focus movement command.
Optionally, an optional implementation of step S320 may be as shown in step S110 in fig. 2, and is not described here again.
In step S330, a target focus object is determined from the candidate focus objects according to a preset focus movement rule.
Optionally, an optional implementation of step S330 may be as shown in step S120 in fig. 2, and is not described here again.
It should be noted that, referring to fig. 4, after the step S330 is completed, the step S370 should be executed instead.
In step S340, a target moving direction opposite to the current moving direction is determined.
After the focus moving command is obtained, the current moving direction is determined according to the content of the focus moving command, and the target moving direction opposite to the current moving direction is further searched and obtained from the moving relation.
Step S350, determining whether a target movement relationship in which the current focus object is the target focus object and the movement direction is the target movement direction exists in the stored movement relationships, if yes, performing step S360, and if not, performing step S320.
The step is mainly used for determining whether a target movement relationship exists, the focus movement direction recorded in the target movement relationship is the target movement direction determined in the previous step, and the recorded target focus object is the current focus object. If the stored movement relationship includes the target movement relationship, step S360 is executed, and if the target movement relationship does not exist, step S320 is executed again.
The essence of this step is to determine whether there is a historical focus movement command as opposed to the current focus movement command.
Step S360, determining that the initial focus object in the target movement relationship is the target focus object corresponding to the current focus movement command.
If the target movement relationship exists, the starting focus object recorded in the target movement relationship is the target focus object corresponding to the current focus movement command.
In step S370, the focus is moved to the target focus object.
After the target focus object is determined, the focus can be moved to the target focus object, and the movement of the focus is completed.
The embodiment shown in fig. 4 mainly solves the problem that when a user sends a certain focus moving command, sends an opposite focus moving command and wants to return to a previous focus object, a target focus object can be quickly determined, the execution of the focus moving command is completed, the target focus object does not need to be selected again, calculation errors are avoided, and meanwhile, the command execution efficiency is improved.
It is conceivable that the embodiments shown in fig. 3 and fig. 4 respectively provide a preferred embodiment, and on the premise that the judgment condition is satisfied, some steps in the embodiment shown in fig. 2 are not necessary to be performed to speed up the execution process of the focus movement command, and similarly, the modified contents shown in fig. 3 and fig. 4 may be combined together, and it is also possible to respectively judge whether the corresponding preferred step can be adopted for one focus movement command.
The following describes a focus moving apparatus provided in an embodiment of the present invention, where the focus moving apparatus described below may be considered as a functional module architecture that needs to be set in a central device to implement the focus moving method provided in the embodiment of the present invention; the following description may be cross-referenced with the above.
Fig. 5 is a block diagram of a focus shifting apparatus according to an embodiment of the present invention, and referring to fig. 5, the apparatus may include:
a first acquisition unit 10 for acquiring a focus movement command;
a first determining unit 20 for determining at least one candidate focus object adjacent to a current focus object according to the focus movement command;
a second determining unit 30, configured to determine a target focus object from the candidate focus objects according to a preset focus movement rule;
a moving unit 40 for moving a focus to the target focus object.
Optionally, the first determining unit 20 is configured to determine, according to the focus movement command, at least one candidate focus object adjacent to the current focus object, and specifically includes:
analyzing the focus moving command to obtain a focus moving direction;
determining at least one focus object adjacent to the current focus object in the focus moving direction as the candidate focus object.
Optionally, each focus object has a boundary; the first determining unit 20 is configured to, when determining that at least one focus object adjacent to the current focus object in the focus moving direction is the candidate focus object, specifically include:
determining a target boundary of a current focus object in the boundary of each direction, wherein the target boundary is consistent with the focus moving direction;
and determining the focus object with intersection with the target boundary as the candidate focus object.
Optionally, the first determining unit 20 is configured to, when determining that the focus object intersected with the target boundary is the candidate focus object, specifically include:
if the focus object which has intersection with the target boundary is the previous-level view of the current focus object, generating a boundary object, wherein the boundary object records the content of the focus moving command and the parameter of the current focus object;
and determining candidate focus objects according to the boundary objects and the preset focus movement rule.
Optionally, the second determining unit 30 is configured to determine a target focus object from the candidate focus objects according to a preset focus movement rule, and specifically includes:
and determining the candidate focus object which is positioned at the leftmost side and the topmost side as the target focus object according to the position information of the at least one candidate focus object.
Optionally, fig. 6 is a block diagram of another structure of a focus shifting apparatus according to an embodiment of the present invention, and referring to fig. 6, the apparatus may further include, based on the embodiment shown in fig. 5:
a first storage unit 50 for storing a first adjacent focus object above and adjacent to the current focus object; storing a second adjacent focus object that is below and adjacent to the current focus object; a third adjacent focus object stored to the left of and adjacent to the current focus object; storing a fourth adjacent focus object to the right of and adjacent to the current focus object.
Optionally, fig. 7 is a block diagram of a structure of another focus shifting apparatus according to an embodiment of the present invention, and referring to fig. 7, the apparatus may further include, based on the embodiment shown in fig. 6:
an analyzing unit 60, configured to analyze the focus moving command to obtain a focus moving direction;
a third determining unit 70, configured to determine, when an adjacent focus object of the current focus object in the focus moving direction is stored, the adjacent focus object of the current focus object in the focus moving direction as the target focus object.
Optionally, fig. 8 is a block diagram of a structure of another focus shifting apparatus according to an embodiment of the present invention, and referring to fig. 8, the apparatus may further include, based on the embodiment shown in fig. 5:
a second storage unit 80, configured to store a movement relationship of the focus among a preset number of focus objects, where the movement relationship includes a focus movement direction corresponding to the focus object and a target focus object;
a first judging unit 90, configured to judge whether the moving relationship includes a current focus object;
a fourth determining unit 100, configured to determine, if the moving relationship includes a current focus object, a target moving direction opposite to the current moving direction, where the current moving direction is obtained according to the focus moving command;
a second determination unit 110, configured to determine whether a target movement relationship in which the current focus object is a target focus object and the movement direction is a target movement direction exists in the stored movement relationships;
a fifth determining unit 120, configured to determine, when there is a target movement relationship, that the starting focus object in the target movement relationship is the target focus object corresponding to the current focus movement command.
Fig. 9 is a hardware structure diagram of a set-top box according to an embodiment of the present invention, which is shown in fig. 9 and may include: at least one processor 100, at least one communication interface 200, at least one memory 300, and at least one communication bus 400;
in the embodiment of the present invention, the number of the processor 100, the communication interface 200, the memory 300, and the communication bus 400 is at least one, and the processor 100, the communication interface 200, and the memory 300 complete the communication with each other through the communication bus 400; it is clear that the communication connection illustration shown by the processor 100, the communication interface 200, the memory 300 and the communication bus 400 shown in fig. 9 is only optional;
optionally, the communication interface 200 may be an interface of a communication module, such as an interface of a GSM module;
the processor 100 may be a central processing unit CPU or an application Specific Integrated circuit asic or one or more Integrated circuits configured to implement embodiments of the present invention.
Memory 300 may comprise high-speed RAM memory and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The processor 100 is specifically configured to execute an application program in the memory to implement the above-described focus moving method.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (9)

1. A focus shifting method, comprising:
acquiring a focus moving command;
determining at least one candidate focus object adjacent to the current focus object according to the focus movement command;
determining a target focus object from the candidate focus objects according to a preset focus movement rule; the preset focus movement rule is that the upper part is followed by the lower part, and the left part is followed by the right part, and the candidate focus object which is positioned at the leftmost side and is positioned at the uppermost part is determined as the target focus object;
moving a focus to the target focus object;
storing the movement relation of a focus between a preset number of focus objects, wherein the movement relation comprises a focus movement direction corresponding to the focus object and a target focus object;
after acquiring the focus movement command, the method further comprises:
judging whether the moving relation contains a current focus object;
if the movement relation comprises a current focus object, determining a target movement direction opposite to the current movement direction, wherein the current movement direction is obtained according to the focus movement command;
judging whether a target movement relation which takes the current focus object as a target focus object and takes the movement direction as a target movement direction exists in the stored movement relations;
and if so, determining that the starting focus object in the target movement relationship is the target focus object corresponding to the current focus movement command.
2. The focus movement method according to claim 1, wherein said determining at least one candidate focus object adjacent to a current focus object according to the focus movement command comprises:
analyzing the focus moving command to obtain a focus moving direction;
determining at least one focus object adjacent to the current focus object in the focus moving direction as the candidate focus object.
3. The focus moving method according to claim 2, wherein each focus object has a boundary;
the determining at least one focus object adjacent to the current focus object in the focus moving direction as the candidate focus object includes:
determining a target boundary of a current focus object in the boundary of each direction, wherein the target boundary is consistent with the focus moving direction;
and determining the focus object with intersection with the target boundary as the candidate focus object.
4. The method of claim 3, wherein the determining that the focus object intersected the target boundary is the candidate focus object comprises:
if the focus object which has intersection with the target boundary is the previous-level view of the current focus object, generating a boundary object, wherein the boundary object records the content of the focus moving command and the parameter of the current focus object;
and determining candidate focus objects according to the boundary objects and the preset focus movement rule.
5. The focus moving method according to claim 1, wherein the determining a target focus object from the candidate focus objects according to a preset focus moving rule comprises:
and determining the candidate focus object which is positioned at the leftmost side and the topmost side as the target focus object according to the position information of the at least one candidate focus object.
6. The focus shifting method of claim 1, further comprising:
storing a first neighboring focus object above and adjacent to the current focus object;
storing a second adjacent focus object that is below and adjacent to the current focus object;
a third adjacent focus object stored to the left of and adjacent to the current focus object;
storing a fourth adjacent focus object to the right of and adjacent to the current focus object.
7. The focus movement method according to claim 6, wherein after said acquiring the focus movement command, the method further comprises:
analyzing the focus moving command to obtain a focus moving direction;
when the adjacent focus object of the current focus object in the focus moving direction is stored, determining the adjacent focus object of the current focus object in the focus moving direction as the target focus object.
8. A focus moving apparatus, comprising:
a first acquisition unit configured to acquire a focus movement command;
a first determination unit for determining at least one candidate focus object adjacent to a current focus object according to the focus movement command;
a second determining unit, configured to determine a target focus object from the candidate focus objects according to a preset focus movement rule; the preset focus movement rule is that the upper part is followed by the lower part, and the left part is followed by the right part, and the candidate focus object which is positioned at the leftmost side and is positioned at the uppermost part is determined as the target focus object;
a moving unit for moving a focus to the target focus object;
the second storage unit is used for storing the movement relation of the focus among a preset number of focus objects, and the movement relation comprises the focus movement direction corresponding to the focus object and a target focus object;
a first judging unit, configured to judge whether the moving relationship includes a current focus object;
a fourth determining unit, configured to determine, if the movement relationship includes a current focus object, a target movement direction opposite to the current movement direction, where the current movement direction is obtained according to the focus movement command;
a second determination unit configured to determine whether a target movement relationship in which the current focus object is a target focus object and the movement direction is a target movement direction exists in the stored movement relationships;
and a fifth determining unit, configured to determine, when the target movement relationship exists, that the starting focus object in the target movement relationship is the target focus object corresponding to the current focus movement command.
9. A set top box, comprising: a memory and a processor; the memory stores a program adapted to be executed by the processor to implement the focus moving method according to any one of claims 1 to 7.
CN201810750949.1A 2018-07-10 2018-07-10 Focus moving method and device and set top box Active CN108668157B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810750949.1A CN108668157B (en) 2018-07-10 2018-07-10 Focus moving method and device and set top box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810750949.1A CN108668157B (en) 2018-07-10 2018-07-10 Focus moving method and device and set top box

Publications (2)

Publication Number Publication Date
CN108668157A CN108668157A (en) 2018-10-16
CN108668157B true CN108668157B (en) 2021-06-15

Family

ID=63772671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810750949.1A Active CN108668157B (en) 2018-07-10 2018-07-10 Focus moving method and device and set top box

Country Status (1)

Country Link
CN (1) CN108668157B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112148157B (en) * 2019-06-28 2022-07-01 杭州海康威视数字技术股份有限公司 Focus moving method and focus moving apparatus for graphic user interface
CN113703625A (en) * 2021-07-30 2021-11-26 青岛海尔科技有限公司 Method, apparatus, storage medium, and electronic apparatus for controlling focus movement
CN116069419A (en) * 2021-11-04 2023-05-05 聚好看科技股份有限公司 Display device and focus management method
CN114845146A (en) * 2022-04-20 2022-08-02 广东悦伍纪网络技术有限公司 Method and device for controlling sequence of box end multi-column table focuses

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014058233A1 (en) * 2012-10-11 2014-04-17 연세대학교 산학협력단 Method for increasing gui response speed of user device through data preloading, and said user device
CN103744594A (en) * 2013-12-27 2014-04-23 乐视网信息技术(北京)股份有限公司 Display method and device of movable focal point
CN103916710A (en) * 2014-03-31 2014-07-09 优视科技有限公司 Focal point switching method and system
CN104104984A (en) * 2014-07-31 2014-10-15 合一网络技术(北京)有限公司 Focus control method and device thereof
CN104768045A (en) * 2015-03-26 2015-07-08 百视通网络电视技术发展有限责任公司 Cursor control method and system based on television application program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014058233A1 (en) * 2012-10-11 2014-04-17 연세대학교 산학협력단 Method for increasing gui response speed of user device through data preloading, and said user device
CN103744594A (en) * 2013-12-27 2014-04-23 乐视网信息技术(北京)股份有限公司 Display method and device of movable focal point
CN103916710A (en) * 2014-03-31 2014-07-09 优视科技有限公司 Focal point switching method and system
CN104104984A (en) * 2014-07-31 2014-10-15 合一网络技术(北京)有限公司 Focus control method and device thereof
CN104768045A (en) * 2015-03-26 2015-07-08 百视通网络电视技术发展有限责任公司 Cursor control method and system based on television application program

Also Published As

Publication number Publication date
CN108668157A (en) 2018-10-16

Similar Documents

Publication Publication Date Title
CN108668157B (en) Focus moving method and device and set top box
TWI536262B (en) Reducing font instructions
CN106802772B (en) Data recovery method and device and solid state disk
JP6006399B2 (en) Programmable display, its program
CN106909393B (en) Display adjustment method of input method panel and mobile terminal
CN108153454B (en) Multi-touch switching method and device, storage medium and terminal equipment
CN114816748A (en) Thread scheduling method and device, electronic equipment and storage medium
CN111773671A (en) Method and device for controlling movement of virtual object and terminal equipment
CN110727385B (en) Desktop icon sorting method and device, electronic equipment and storage medium
CN107390982B (en) Screenshot method, screenshot equipment and terminal equipment
TW201344557A (en) Apparatus and method for automatically controlling display screen density
CN108563774B (en) GPS data processing method and device
CN113870926A (en) Drive signal generation method, device, equipment and readable storage medium
Zhou et al. Medusa: a multi-resolution machine learning congestion estimation method for 2d and 3d global routing
CN111177990B (en) Method, device and system for realizing logic optimization in FPGA (field programmable Gate array) logic synthesis
CN108604142B (en) Touch screen device operation method and touch screen device
CN112417331A (en) Page routing method and device, electronic equipment and computer-readable storage medium
CN109992182B (en) Electronic book batch page turning method, electronic equipment and computer storage medium
CN112988755B (en) Automatic value selecting method, device and equipment for associated data
CN110059328B (en) Structural analysis simulation method, information processing apparatus, and computer-readable storage medium
CN107506128B (en) Keyboard display method and mobile terminal
WO2018120166A1 (en) Stacking method and device, and robot
CN111176845A (en) Data reading method of double controllers and related device
CN111666733B (en) Method and device for processing cells in document
CN114936003B (en) Data layered migration method, device and equipment of resource pool and readable storage medium

Legal Events

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