[go: up one dir, main page]

CN111340586A - Information display method and device, computer equipment and storage medium - Google Patents

Information display method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111340586A
CN111340586A CN202010105412.7A CN202010105412A CN111340586A CN 111340586 A CN111340586 A CN 111340586A CN 202010105412 A CN202010105412 A CN 202010105412A CN 111340586 A CN111340586 A CN 111340586A
Authority
CN
China
Prior art keywords
target object
preset
picture
display content
object selection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010105412.7A
Other languages
Chinese (zh)
Other versions
CN111340586B (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.)
Douyin Vision Co Ltd
Douyin Vision Beijing Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010105412.7A priority Critical patent/CN111340586B/en
Publication of CN111340586A publication Critical patent/CN111340586A/en
Application granted granted Critical
Publication of CN111340586B publication Critical patent/CN111340586B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0641Shopping interfaces
    • G06Q30/0643Graphical representation of items or shoppers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Human Computer Interaction (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present disclosure provides an information display method, apparatus, computer device and storage medium, wherein the method comprises: responding to the movement operation of the target object selection frame on the picture display content, and determining the relative position relationship between the moved target object selection frame and a preset safety position set on the picture display content; if the relative position relation is determined to reach the preset trigger condition, generating a control parameter for controlling the picture to move; and controlling the picture to move according to the control parameters, and controlling the target object selection frame to move along with the picture so that the relative position relation between the target object selection frame on the moved picture display content and a preset safety position arranged on the picture display content does not meet a preset trigger condition any more. By adopting the scheme, the situation that the target object is not completely selected by the selection frame can be avoided, and the complete display of the frame selection area is realized, so that the fluency of human-computer interaction is improved.

Description

Information display method and device, computer equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an information display method and apparatus, a computer device, and a storage medium.
Background
With the rapid development of internet technology, more and more network services involve image recognition. For example, in an electronic shopping service, information on a product in which a user is interested may be presented based on the recognition result of a similar or identical product picture.
Before the display of the commodity information, the commodity region of interest can be determined from the picture input by the user in advance, and the commodity information similar to or identical to the commodity region of interest can be obtained by carrying out picture recognition on the commodity region of interest. Wherein, the interested commodity area can be selected through a preset target object selection frame.
The target object selection box may be directly moved along with a manual movement operation of a user, or may be indirectly moved along with a manual movement operation of the user on an input picture. However, no matter which moving mode is adopted, the problem that the framed and selected interesting area is not completely displayed in the current display interface can be caused, so that the user is inconvenient to view the interesting commodity, and the fluency of man-machine interaction is reduced.
Disclosure of Invention
The embodiment of the disclosure provides at least one information display scheme, which can avoid incomplete selection of a target object by a selection box, realize complete display of a frame selection area, and facilitate a user to check interested commodities, thereby improving the fluency of human-computer interaction.
The method mainly comprises the following steps:
in a first aspect, the present disclosure provides an information displaying method, including:
responding to a moving operation aiming at a target object selection frame on picture display content, and determining a relative position relation between the moved target object selection frame and a preset safety position set on the picture display content; the picture display content is the content of a picture displayed on a current terminal screen, and the picture display content is at least one part of the picture;
if the relative position relation is determined to reach a preset trigger condition, generating a control parameter for controlling the picture to move;
and controlling the picture to move according to the control parameters, and controlling the target object selection frame to move along with the picture, so that the relative position relation between the target object selection frame on the picture display content after moving and a preset safety position arranged on the picture display content does not meet the preset trigger condition any more.
In an optional embodiment, the moving operation is moving upwards, and determining a relative position relationship between the moved target object selection frame and a preset safety position set on the picture display content includes:
determining the distance between the upper edge of the moved target object selection frame and the upper edge of the picture display content, wherein the preset safety position is located at a first preset distance below the upper edge of the picture display content;
if the relative position relation is determined to reach a preset trigger condition, generating a control parameter for controlling the picture to move, wherein the control parameter comprises the following steps:
if the determined distance between the upper edge of the target object selection frame and the upper edge of the picture display content is smaller than a first distance threshold, generating a control parameter for controlling the picture to move; the first distance threshold is less than or equal to the first preset distance.
In an optional embodiment, the moving operation is moving upwards, and determining a relative position relationship between the moved target object selection frame and a preset safety position set on the picture display content includes:
determining the distance that the upper edge of the target object selection frame after moving upwards exceeds the preset safety position, wherein the preset safety position is located at a first preset distance below the upper edge of the picture display content;
if the relative position relation is determined to reach a preset trigger condition, generating a control parameter for controlling the picture to move, wherein the control parameter comprises the following steps:
and if the exceeded distance is larger than a second distance threshold value, generating a control parameter for controlling the picture to move.
In an optional embodiment, the generating a control parameter for controlling the picture movement includes:
if the relative position relation is determined to reach a preset triggering condition, determining a first displacement control parameter based on the preset safety position and the current position of the upper edge of the picture;
the controlling the picture to move according to the control parameter and controlling the target object selection frame to move along with the picture comprises:
and controlling the upper edge of the picture to move downwards to the preset safety position from the current position according to the first displacement control parameter, and controlling the target object selection frame to move along with the picture.
In an optional embodiment, the moving operation is a downward movement, and determining a relative position relationship between the moved target object selection frame and a preset safety position set on the picture display content includes:
determining the distance between the lower edge of the moved target object selection frame and the lower edge of the picture display content, wherein the preset safety position is located at a second preset distance above the lower edge of the picture display content;
if the relative position relation is determined to reach a preset trigger condition, generating a control parameter for controlling the picture to move, wherein the control parameter comprises the following steps:
if the determined distance between the lower edge of the target object selection frame and the lower edge of the picture display content is smaller than a third distance threshold, generating a control parameter for controlling the picture to move; the third distance threshold is less than or equal to the second preset distance.
In an optional embodiment, the moving operation is a downward movement, and determining a relative position relationship between the moved target object selection frame and a preset safety position set on the picture display content includes:
determining the distance that the lower edge of the target object selection frame after moving downwards exceeds the preset safety position, wherein the preset safety position is located at a second preset distance above the lower edge of the picture display content;
if the relative position relation is determined to reach a preset trigger condition, generating a control parameter for controlling the picture to move, wherein the control parameter comprises the following steps:
and if the exceeded distance is larger than a fourth distance threshold, generating a control parameter for controlling the picture to move.
In an optional implementation manner, a target object recognition result area corresponding to the picture display content is also displayed on the current terminal screen; the picture and the target object recognition result area are in different layers, and the layer where the target object recognition result area is located covers the layer where the picture display content is located; the moving operation is downward movement, and determining a relative position relationship between the moved target object selection frame and a preset safety position set on the picture display content includes:
determining the distance between the upper edge of the moved target object selection frame and the upper edge of the target object recognition result area, wherein the preset safety position is located at a third preset distance above the upper edge of the target object recognition result area;
if the relative position relation is determined to reach a preset trigger condition, generating a control parameter for controlling the picture to move, wherein the control parameter comprises the following steps:
if the determined distance between the upper edge of the target object selection frame and the upper edge of the target object recognition result area is smaller than a fifth distance threshold, generating a control parameter for controlling the picture to move; the fifth distance threshold is less than or equal to the third preset distance.
In an optional implementation manner, a target object recognition result area corresponding to the picture display content is also displayed on the current terminal screen; the picture and the target object recognition result area are in different layers, and the layer where the target object recognition result area is located covers the layer where the picture display content is located; the moving operation is downward movement, and determining a relative position relationship between the moved target object selection frame and a preset safety position set on the picture display content includes:
determining the distance that the upper edge of the target object selection frame after moving downwards exceeds the preset safety position, wherein the preset safety position is located at a third preset distance above the upper edge of the target object recognition result area;
if the relative position relation is determined to reach a preset trigger condition, generating a control parameter for controlling the picture to move, wherein the control parameter comprises the following steps:
and if the exceeded distance is larger than a sixth distance threshold, generating a control parameter for controlling the picture to move.
In an optional embodiment, the generating a control parameter for controlling the picture movement includes:
if the relative position relation is determined to reach a preset triggering condition, determining a second displacement control parameter based on the preset safety position and the current position of the lower edge of the picture;
the controlling the picture to move according to the control parameter comprises:
and controlling the lower edge of the picture to move upwards to the preset safety position from the current position according to the second displacement control parameter, and controlling the target object selection frame to move along with the picture.
In a second aspect, the present disclosure further provides an information displaying method, where the method includes:
responding to the moving operation aiming at the picture display content, and determining the relative position relation between a target object selection frame on the moved picture display content and a preset safety position set on the picture display content; the picture display content is at least one part of content of a picture displayed on a current terminal screen;
if the relative position relation is determined to reach a preset triggering condition, placing two frame corners of the target object selection frame in a preset state; wherein the preset state comprises a state indicating that two frame corners of the target object selection frame are not operable.
In an optional embodiment, the moving operation is moving upwards, and determining a relative position relationship between the moved target object selection frame and a preset safety position set on the picture display content includes:
determining the distance between the upper edge of the moved target object selection frame and the upper edge of the picture display content, wherein the preset safety position is located at a first preset distance below the upper edge of the picture display content;
if the relative position relation is determined to reach a preset triggering condition, placing the two frame corners of the target object selection frame in a preset state, including:
if the determined distance between the upper edge of the target object selection frame and the upper edge of the picture display content is smaller than a first distance threshold value, placing two frame corners, close to the upper edge of the picture display content, in the target object selection frame in a preset state; the first distance threshold is less than or equal to the first preset distance.
In an optional embodiment, the moving operation is moving upwards, and determining a relative position relationship between the moved target object selection frame and a preset safety position set on the picture display content includes:
determining the distance that the upper edge of the target object selection frame after moving upwards exceeds the preset safety position, wherein the preset safety position is located at a first preset distance below the upper edge of the picture display content;
if the relative position relation is determined to reach a preset triggering condition, placing the two frame corners of the target object selection frame in a preset state, including:
and if the distance exceeding the preset distance is larger than a second distance threshold value, placing two frame corners close to the upper edge of the picture display content in the target object selection frame in a preset state.
In an optional implementation manner, a target object recognition result area corresponding to the picture display content is also displayed on the current terminal screen; the picture and the target object recognition result area are in different layers, and the layer where the target object recognition result area is located covers the layer where the picture display content is located; the moving operation is downward movement, and determining a relative position relationship between the moved target object selection frame and a preset safety position set on the picture display content includes:
determining the distance between the lower edge of the moved target object selection frame and the upper edge of the target object recognition result area, wherein the preset safety position is located at a second preset distance above the upper edge of the target object recognition result area;
if the relative position relation is determined to reach a preset triggering condition, placing the two frame corners of the target object selection frame in a preset state, including:
if the determined distance between the lower edge of the target object selection frame and the upper edge of the target object recognition result area is smaller than a third distance threshold, placing two frame corners, which are close to the upper edge of the target object recognition result area, in the target object selection frame in a preset state; the third distance threshold is less than or equal to the second preset distance.
In an optional implementation manner, a target object recognition result area corresponding to the picture display content is also displayed on the current terminal screen; the picture and the target object recognition result area are in different layers, and the layer where the target object recognition result area is located covers the layer where the picture display content is located; the moving operation is downward movement, and determining a relative position relationship between the moved target object selection frame and a preset safety position set on the picture display content includes:
determining the distance of the lower edge of the target object selection frame beyond the preset safety position after the target object selection frame moves downwards; the preset safety position is located at a second preset distance above the upper edge of the target object recognition result area;
if the relative position relation is determined to reach a preset triggering condition, placing the two frame corners of the target object selection frame in a preset state, including:
and if the distance exceeding the preset distance is larger than a fourth distance threshold, placing two frame corners, which are close to the upper edge of the target object identification result area, in the target object selection frame in a preset state.
In a third aspect, the present disclosure also provides an information displaying apparatus, including:
the response module is used for responding to the movement operation of a target object selection frame on the picture display content and determining the relative position relation between the moved target object selection frame and a preset safety position set on the picture display content; the picture display content is the content of a picture displayed on a current terminal screen, and the picture display content is at least one part of the picture;
the generating module is used for generating a control parameter for controlling the picture to move if the relative position relation is determined to reach a preset trigger condition;
and the control module is used for controlling the picture to move according to the control parameters and controlling the target object selection frame to move along with the picture so that the relative position relation between the target object selection frame on the picture display content after moving and a preset safety position arranged on the picture display content does not meet the preset trigger condition any more.
In a fourth aspect, the present disclosure also provides an information display apparatus, the apparatus comprising:
the response module is used for responding to the moving operation aiming at the picture display content and determining the relative position relation between the target object selection frame on the moved picture display content and a preset safety position set on the picture display content; the picture display content is at least one part of content of a picture displayed on a current terminal screen;
the control module is used for placing the two frame corners of the target object selection frame in a preset state if the relative position relation is determined to reach a preset trigger condition; wherein the preset state comprises a state indicating that two frame corners of the target object selection frame are not operable.
In a fifth aspect, the present disclosure also provides a computer device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when a computer device is running, the machine-readable instructions when executed by the processor performing the steps of the information presentation method as described in the first aspect and any of its various embodiments.
In a sixth aspect, the present disclosure also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the information presentation method according to the first aspect and any one of its various embodiments.
In one embodiment provided by the present disclosure, after responding to a moving operation for a target object selection frame in a picture display content, a touch terminal can determine a relative position relationship between the moved target object selection frame and a preset safety position set on the picture display content, where if it is determined that the relative position relationship reaches a preset trigger condition, a control parameter for controlling the picture to move is generated, so as to control the picture to move according to the control parameter, and control the target object selection frame to move along with the picture, so that the relative position relationship between the target object selection frame on the moved picture and the preset safety position set on the picture display content no longer satisfies the preset trigger condition.
By adopting the scheme, once the relative position relation between the target object selection frame after the moving operation and the preset safety position set on the picture display content is determined to reach the preset trigger condition, the picture is controlled to drive the target object selection frame to automatically move according to the generated control parameter, so that the relative position relation does not meet the preset trigger condition any more, namely, when the area of interest framed by the target object selection frame is determined to be displayed incompletely or insufficiently centered, the target object selection frame can be driven to move through the movement of the picture, the complete display of the framed area is realized, the interested commodity can be conveniently checked by a user, and the smoothness of human-computer interaction is improved.
In another scheme provided by the disclosure, after responding to a moving operation for the picture display content, the touch terminal can determine a relative position relationship between a target object selection frame on the moved picture display content and a preset safety position set on the picture display content, and if it is determined that the relative position relationship reaches a preset trigger condition, two frame corners of the target object selection frame are set in a preset state. By adopting the scheme, the interaction conflict which possibly exists between the region of interest framed by the target object selection box after the moving operation and the existing interaction button arranged in the preset safety position can be avoided by executing the operation of placing the target object selection box in the inoperable state, and the fluency of man-machine interaction is further improved.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly described below, and the drawings herein incorporated in and forming a part of the specification illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the technical solutions of the present disclosure. It is appreciated that the following drawings depict only certain embodiments of the disclosure and are therefore not to be considered limiting of its scope, for those skilled in the art will be able to derive additional related drawings therefrom without the benefit of the inventive faculty.
Fig. 1 is a flowchart illustrating an information presentation method according to a first embodiment of the present disclosure;
fig. 2 is a flowchart illustrating a specific method for generating a control parameter in an information presentation method provided in an embodiment of the present disclosure;
fig. 3 is a flowchart illustrating another specific method for generating a control parameter in an information presentation method provided in the first embodiment of the present disclosure;
fig. 4(a) -4 (b) are schematic diagrams illustrating an application of an information displaying method according to an embodiment of the present disclosure;
fig. 5 is a flowchart illustrating another specific method for generating control parameters in the information displaying method according to the first embodiment of the present disclosure;
fig. 6 is a flowchart illustrating another specific method for generating control parameters in the information displaying method according to the first embodiment of the present disclosure;
fig. 7(a) -7 (b) are schematic diagrams illustrating an application of another information presentation method provided in the first embodiment of the present disclosure;
fig. 8 shows a flowchart of an information presentation method provided in the second embodiment of the present disclosure;
fig. 9 is a flowchart illustrating a specific method for controlling a target object selection box in the information presentation method according to the second embodiment of the present disclosure;
fig. 10 is a flowchart illustrating another specific method for controlling a target object selection box in the information presentation method according to the second embodiment of the present disclosure;
11(a) -11 (b) are schematic application diagrams illustrating an information displaying method provided in a second embodiment of the disclosure;
fig. 12 is a flowchart illustrating another specific method for controlling a target object selection box in the information presentation method according to the second embodiment of the present disclosure;
fig. 13 is a flowchart illustrating another specific method for controlling a target object selection box in the information presentation method according to the second embodiment of the present disclosure;
fig. 14 is a schematic view of an information display device provided in a third embodiment of the disclosure;
fig. 15 is a schematic view of another information presentation device provided in the third embodiment of the present disclosure;
FIG. 16 is a schematic diagram of a computer device provided in the fourth embodiment of the present disclosure;
fig. 17 shows a schematic diagram of another computer device provided in the fourth embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. The components of the embodiments of the present disclosure, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure, presented in the figures, is not intended to limit the scope of the claimed disclosure, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the disclosure without making creative efforts, shall fall within the protection scope of the disclosure.
According to research, in the related art, the target object selection box can be directly moved along with the manual movement operation of the user, and can also be indirectly moved along with the manual movement operation of the user on the input picture. However, no matter which moving mode is adopted, the problem that the framed and selected interesting area is not completely displayed in the current display interface can be caused, so that the user is inconvenient to view the interesting commodity, and the fluency of man-machine interaction is reduced.
Based on the research, the information display scheme can avoid the situation that the target object is not completely selected by the selection frame, complete display of the frame selection area is achieved, a user can conveniently check interested commodities, and therefore the fluency of human-computer interaction is improved.
The above-mentioned drawbacks are the results of the inventor after practical and careful study, and therefore, the discovery process of the above-mentioned problems and the solutions proposed by the present disclosure to the above-mentioned problems should be the contribution of the inventor in the process of the present disclosure.
The technical solutions in the present disclosure will be described clearly and completely with reference to the accompanying drawings in the present disclosure, and it is to be understood that the described embodiments are only a part of the embodiments of the present disclosure, and not all of the embodiments. The components of the present disclosure, as generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure, presented in the figures, is not intended to limit the scope of the claimed disclosure, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the disclosure without making creative efforts, shall fall within the protection scope of the disclosure.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
To facilitate understanding of the present embodiment, first, an information displaying method disclosed in the embodiments of the present disclosure is described in detail, where an execution subject of the information displaying method provided in the embodiments of the present disclosure is generally a computer device with certain computing capability, and the computer device includes, for example: the terminal device may be a User Equipment (UE), a mobile device, a User terminal, a cellular phone, a cordless phone, a Personal Digital Assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, or other processing devices. In some possible implementations, the information presentation method may be implemented by a processor calling computer readable instructions stored in a memory.
The information display method provided by the embodiment of the disclosure is described below by taking the execution subject as a touch terminal as an example.
Example one
Referring to fig. 1, which is a flowchart of an information displaying method provided in an embodiment of the present disclosure, the method includes steps S101 to S103, where:
s101, responding to the moving operation of the target object selection frame on the picture display content, and determining the relative position relation between the moved target object selection frame and a preset safety position set on the picture display content; the image display content is the content of an image displayed on a current terminal screen, and the image display content is at least one part of the image;
s102, if the relative position relation is determined to reach a preset trigger condition, generating a control parameter for controlling the movement of the picture;
s103, controlling the picture to move according to the control parameters, and controlling the target object selection frame to move along with the picture so that the relative position relation between the target object selection frame on the moved picture display content and a preset safety position set on the picture display content does not meet preset trigger conditions any more.
Here, the picture display content may be content of a picture displayed on a current terminal screen, and the picture display content may be presented on the touch terminal, that is, a size of the picture display content may be the same as a display screen size of the touch terminal. In this way, the user can observe the displayed picture display content and the target object selection box for performing target object recognition on the picture display content through the touch terminal. After the user performs the moving operation on the target object selection frame, the touch terminal may respond to the moving operation, and may determine a relative position relationship between the moved target object selection frame and a preset safe position set on the picture display content. Once it is determined that the relative position relation reaches the preset trigger condition, a control parameter for controlling the movement of the picture can be generated, and the picture can be controlled to drive the target object selection frame to move according to the control parameter.
For example, when the picture display content is a portrait display, the moving operation may be an upward movement or a downward movement, and further, when the picture display content is a landscape display, the moving operation may be a leftward movement or a rightward movement.
In addition, the upward movement may be a manner of moving the entire target object selection box, may also be a manner of moving one frame corner of the target object selection box, may also be a manner of moving two frame corners of a diagonal line, and may also be another manner with an intention of upward movement, which is not specifically limited by the embodiment of the present disclosure. The specific moving manner adopted for the downward movement, the leftward movement, the rightward movement and the like is similar to the above-mentioned specific moving manner of the upward movement, and is not described herein again.
After the moving operation is performed, a relative positional relationship between the target object selection frame and a preset security position set on the picture display content after the moving operation is completed may be determined. In the embodiment of the disclosure, the moving directions corresponding to the moving operations are different, and the corresponding preset safety positions are also different.
For example, in the case of a moving operation for moving upwards, the preset safety position may be the upper edge of the picture display content itself, or may be a position located at a preset distance below the upper edge of the picture display content, which is not particularly limited by the embodiment of the present disclosure. For another example, in the moving operation for the downward movement, the preset safe position may be a lower edge of the picture display content itself, an upper edge of the target object recognition result area itself displayed on the terminal screen, or a position located at a preset distance above the upper edge of the target object recognition result area, which is not specifically limited by the embodiment of the present disclosure.
The preset safety position corresponding to the moving operation related to the leftward movement may refer to the preset safety position corresponding to the moving operation related to the upward movement, that is, the preset safety position may be the left edge of the picture display content itself, or may be a position located at a preset distance to the right of the left edge of the picture display content. The embodiments of the present disclosure are not particularly limited thereto. The preset safety position corresponding to the moving operation of moving to the right may refer to the preset safety position corresponding to the moving operation of moving to the down, which is not described herein again.
In the embodiment of the present disclosure, after determining the relative position relationship between the moved target object selection box and the preset safety position set on the picture display content, it may be determined whether the relative position relationship reaches a preset trigger condition. For example, when the moving operation of the upward movement is performed, when it is determined that the upper edge of the target object selection box after the upward movement exceeds the preset safety position, it may be determined that the preset trigger condition is reached; for another example, when the moving operation of the downward movement is performed, it may be determined that the preset trigger condition is reached when it is determined that the upper edge of the target object selection box after the downward movement exceeds the preset safety position.
In the embodiment of the disclosure, when it is determined that the relative position relationship between the moved target object selection frame and the preset safety position set on the picture display content reaches the preset trigger condition, a control parameter for controlling the picture to move can be generated, so that the target object selection frame is controlled to move along with the picture while the picture is controlled to move according to the control parameter. Regarding the manner of movement control of the picture, here, it may be specifically limited based on the movement operation for different directions of the target object selection frame.
For example, when the target object selection frame is moved upwards, the movement control mode of the relevant picture may be moved downwards, and the specific moving position may be moved with the preset safety position as a reference; for another example, when the selection frame for the target object is moved downward, the movement control manner of the relevant picture may be moved upward, and the specific moving position may also be moved with reference to the preset safety position.
No matter which moving direction is the moving operation, the aim of moving the picture is to enable the relative position relation between the target object selection frame and the preset safety position arranged on the picture display content to no longer meet the preset triggering condition, so that the region of interest in the target object selection frame can be automatically displayed in the moved picture display content more comprehensively and centrally without manual operation of a user, the selection time is saved, and the smoothness of human-computer interaction is improved.
In practical applications, in order to facilitate the user to perform the selection operation, various interactive buttons may be further disposed on the current picture display content, such as a cancel button for canceling/exiting the current selection operation, a selection button that can be manually selected, and the like. The interactive button may adopt a first setting mode set near the upper edge of the picture display content, or may adopt a second setting mode set near the lower edge of the picture display content (for example, set at the upper edge position of a target object recognition result region popped up from the lower edge of the picture display content).
In the embodiment of the present disclosure, in order to ensure that the region of interest selected by the target object selection box can be completely and centrally displayed and avoid a conflict between the moving operation of the target object selection box and the first setting mode interaction button, here, a preset safety position located at a first preset distance below the upper edge of the picture display content may be selected as the preset safety position corresponding to the upward movement.
In the embodiment of the present disclosure, the control parameter for controlling the movement of the picture may be generated in the following two ways based on the setting manner of the preset safety position.
In the first aspect, as shown in fig. 2, the control parameter for controlling the picture movement may be generated as follows:
s201, determining the distance between the upper edge of the moved target object selection frame and the upper edge of the picture display content, wherein the preset safety position is located at a first preset distance below the upper edge of the picture display content;
s202, if the distance between the determined upper edge of the target object selection frame and the upper edge of the picture display content is smaller than a first distance threshold, generating a control parameter for controlling the picture to move; the first distance threshold is less than or equal to a first preset distance.
Here, a distance between an upper edge of the moved target object selection frame and an upper edge of the picture display content may be first determined, and then whether to generate a control parameter that controls the picture movement may be determined based on a result of comparing the distance with the first distance threshold.
Wherein, when the distance between the upper edge of the moved target object selection frame and the upper edge of the picture display content is smaller than a first distance threshold value, and the first distance threshold value is smaller than or equal to a first preset distance between the upper edge of the picture display content and a preset safety position, the upper edge of the target object selection frame can be judged to enter a preset safety region formed by the upper edge of the picture display content and the preset safety position, at this time, a first displacement control parameter can be determined based on the preset safety position and the current position of the upper edge of the picture, then, the upper edge of the picture can be controlled to move downwards from the current position to the preset safety position based on the first displacement control parameter, and the target object selection frame is controlled to move along with the picture, so as to ensure that the region of interest selected by the target object selection frame can be completely and centrally displayed, it is also possible to avoid a conflict between the moving operation for the target object selection box and the existing interactive buttons.
Meanwhile, in the process of selecting the target object, other messages popped up from the upper edge of the picture display content are inevitable, and by adopting the control scheme, the problem of false triggering caused by the fact that the existing moved target object selection frame is close to the message popup window (namely, the message popup window is triggered when the user intends to operate the target object selection frame) can be solved, so that the fluency of man-machine interaction is further improved.
In the embodiment of the present disclosure, the setting related to the first preset distance is not too large or too small, the too large first preset distance may result in consuming more computing resources, and the too small setting of the first preset distance may result in overlapping display of the interactive button and the target object selection box. The first preset distance can be defined by combining the first preset distance, when the first preset distance is larger, the first distance threshold can be properly adjusted larger, and when the first preset distance is smaller, the first distance threshold can be properly adjusted smaller.
In addition, in the embodiment of the present disclosure, the first distance threshold may be defined by combining the display size of the picture display content and the first preset distance, when the display size of the picture display content is larger and the first preset distance is larger, the first distance threshold may be appropriately adjusted larger, and when the display size of the picture display content is smaller and the first preset distance is smaller, the first distance threshold may be appropriately adjusted smaller, for example, 89 pixels (px) may be set as the first distance threshold.
In a second aspect, as shown in fig. 3, the control parameters for controlling the picture movement may be generated as follows:
s301, determining the distance that the upper edge of the target object selection frame after moving upwards exceeds a preset safety position, wherein the preset safety position is located at a first preset distance below the upper edge of the picture display content;
and S302, if the exceeding distance is greater than a second distance threshold, generating a control parameter for controlling the movement of the picture.
Here, when it is determined that the distance that the upper edge of the target object selection frame after moving upwards exceeds the preset safety position is greater than the second distance threshold, the embodiment of the present disclosure may generate a control parameter for controlling the picture to move.
The larger the second distance threshold is set, the more the upper edge of the target object selection frame corresponding to the second distance threshold exceeds the preset safe area, that is, the smaller the distance between the upper edge of the moved target object selection frame and the upper edge of the picture display content is, therefore, the setting of the second distance threshold is not too large or too small easily, and the specific setting mode can refer to the setting mode of the first distance threshold, which is not described herein again.
In a similar manner to the control manner according to the first aspect, after determining that the distance of the upper edge of the target object selection box after the upward movement exceeds the preset safety position is greater than the second distance threshold, that is, it can be determined that the upper edge of the target object selection frame enters the preset safety region formed by the upper edge of the picture display content and the preset safety position, at this time, the first displacement control parameter may be determined based on a preset safety position and the current position of the upper edge of the picture, then, based on the first displacement control parameter, the upper edge of the picture can be controlled to move downwards from the current position to a preset safe position, and the target object selection frame is controlled to move along with the picture, thereby ensuring that the region of interest selected by the target object selection box can be displayed completely and centrally, it is also possible to avoid a conflict between the moving operation for the target object selection box and the existing interactive buttons.
Meanwhile, by adopting the control scheme, the problem of false triggering caused by the fact that the existing moving target object selection frame is close to the message popup window can be solved, and therefore the fluency of man-machine interaction is further improved.
In order to facilitate understanding of the method for controlling picture movement according to the first and second aspects, the following description will be made with reference to fig. 4(a) to 4 (b).
As shown in fig. 4(a), in order to move the target object selection frame to the preset safety region formed by the upper edge of the picture display content and the preset safety position after the moving operation is performed on the target object selection frame, as shown in fig. 4(b), the display schematic diagram after the picture is moved by using the above-mentioned picture movement control method is shown, which not only ensures the complete display of the picture, but also avoids the interaction conflict.
Similarly, in order to ensure that the region of interest selected by the target object selection box can be completely and centrally displayed and avoid a conflict between the moving operation of the target object selection box and the setting mode of the second interactive button, a preset safety position located at a second preset distance above the lower edge of the picture display content may be selected as the corresponding preset safety position when the picture display content moves downwards.
Similarly, in the embodiment of the present disclosure, the control parameter for controlling the movement of the picture may also be generated in two ways based on the setting mode of the preset safety position.
First, in the embodiment of the present disclosure, a distance between a lower edge of the moved target object selection box and a lower edge of the picture display content may be first determined, and then, whether to generate a control parameter for controlling the picture movement may be determined based on a comparison result of the distance and a third distance threshold.
Wherein, when the distance between the lower edge of the moved target object selection frame and the lower edge of the picture display content is smaller than a third distance threshold, and the third distance threshold is smaller than or equal to a second preset distance between the lower edge of the picture display content and a preset safety position, the lower edge of the target object selection frame can be judged to enter a preset safety region formed by the lower edge of the picture display content and the preset safety position, at this time, a displacement control parameter can be determined based on the preset safety position and the current position of the lower edge of the picture, then, the lower edge of the picture can be controlled to move upwards from the current position to the preset safety position based on the displacement control parameter, and the target object selection frame is controlled to move along with the picture, so as to ensure that the region of interest selected by the target object selection frame can be completely and centrally displayed, it is also possible to avoid a conflict between the moving operation for the target object selection box and the second interactive button setting manner.
The determination of the second preset distance and the third distance threshold may refer to a determination manner of the first preset distance and the first distance threshold corresponding to the upward movement, and will not be described herein again.
Secondly, in the embodiment of the present disclosure, when it is determined that the distance that the lower edge of the target object selection frame after the downward movement exceeds the preset safety position is greater than the fourth distance threshold, the control parameter for controlling the movement of the picture may be generated.
In the embodiment of the disclosure, when it is determined that the distance that the lower edge of the target object selection frame after the downward movement exceeds the preset safety position is greater than the fourth distance threshold, it may be determined that the lower edge of the target object selection frame enters the preset safety region formed by the lower edge of the picture display content and the preset safety position.
The determination of the fourth distance threshold may refer to the above-mentioned determination manner of the second distance threshold corresponding to the upward movement, and is not described herein again.
In practical application, in order to facilitate the user to display the target object identification result, a target object identification result region corresponding to the picture display content is displayed on the current terminal screen, and in order to ensure that the region of interest selected by the target object selection frame can be completely and centrally displayed and simultaneously avoid the conflict between the operation of the target object selection frame and the interaction button of the second setting mode on the premise of ensuring that the target object identification result region can be displayed, here, a preset safety position located at a third preset distance above the upper edge of the target object identification result region can be selected as a corresponding preset safety position when the terminal moves downwards.
In the embodiment of the present disclosure, the control parameter for controlling the movement of the picture may be generated in the following two ways based on the setting manner of the preset safety position.
In the first aspect, as shown in fig. 5, the control parameter for controlling the picture movement may be generated as follows:
s501, determining the distance between the upper edge of the moved target object selection frame and the upper edge of the target object identification result area, wherein the preset safety position is located at a third preset distance above the upper edge of the target object identification result area;
s502, if the distance between the determined upper edge of the target object selection frame and the upper edge of the target object identification result area is smaller than a fifth distance threshold, generating a control parameter for controlling the movement of the picture; the fifth distance threshold is less than or equal to a third preset distance.
Here, a distance between an upper edge of the moved target object selection frame and an upper edge of the target object recognition result area may be first determined, and then whether to generate a control parameter that controls the picture movement may be determined based on a result of comparing the distance with a fifth distance threshold.
Wherein, when the distance between the upper edge of the moved target object selection frame and the upper edge of the target object recognition result area is smaller than a fifth distance threshold which is smaller than or equal to a third preset distance between the upper edge of the target object recognition result area and a preset safety position, the upper edge of the target object selection frame can be judged to enter the preset safety area formed by the upper edge of the target object recognition result area and the preset safety position, at this time, a second displacement control parameter can be determined based on the preset safety position and the current position of the upper edge of the picture, then, the lower edge of the picture can be controlled to move upwards to the preset safety position from the current position based on the second displacement control parameter, and the target object selection frame is controlled to move along with the picture, so that the target object recognition result area can be displayed on the premise of ensuring the target object recognition result area, ensuring that the region of interest selected by the target object selection box can be displayed completely and centrally.
In addition, when various interactive buttons arranged on the display content of the current picture, such as a cancel button for canceling/quitting the current search operation, a selection button which can be manually selected, and the like, are arranged in the preset safe area, the conflict between the moving operation of the target object selection frame and the existing interactive button can be avoided, and therefore the fluency of human-computer interaction is further improved.
In the embodiment of the present disclosure, the setting related to the third preset distance is not too large or too small, the too large third preset distance may result in consuming more computing resources, and the too small setting of the third preset distance may result in overlapping display of the interactive button and the target object selection box. The fifth distance threshold may be defined by combining with a third preset distance in the embodiment of the present disclosure, and when the third preset distance is larger, the fifth distance threshold may be appropriately adjusted larger, and when the third preset distance is smaller, the fifth distance threshold may be appropriately adjusted smaller.
In addition, in the embodiment of the present disclosure, the fifth distance threshold may be defined by combining the display size of the picture display content and the third preset distance, when the display size of the picture display content is larger and the third preset distance is larger, the fifth distance threshold may be appropriately adjusted larger, and when the display size of the picture display content is smaller and the third preset distance is smaller, the fifth distance threshold may be appropriately adjusted smaller, for example, 200 pixels (px) may be set as the fifth distance threshold.
In a second aspect, as shown in fig. 6, the control parameters for controlling the picture movement may be generated as follows:
s601, determining the distance that the upper edge of the target object selection frame after moving downwards exceeds a preset safety position, wherein the preset safety position is located at a third preset distance above the upper edge of the target object recognition result area;
and S602, if the exceeding distance is greater than the sixth distance threshold, generating a control parameter for controlling the picture to move.
Here, once it is determined that the distance that the upper edge of the target object selection frame after moving downwards exceeds the preset safety position is greater than the sixth distance threshold, the embodiment of the present disclosure may generate a control parameter for controlling the picture movement.
The larger the sixth distance threshold is set, the more the upper edge of the target object selection frame corresponding to the moved down exceeds the preset safe region, that is, the smaller the distance between the upper edge of the moved target object selection frame and the upper edge of the target object recognition result region is, therefore, the setting of the sixth distance threshold is not easy to be too large or too small, and the specific setting mode may refer to the setting mode of the third distance threshold, which is not described herein again.
Similar to the control method of the first aspect, when it is determined that the distance between the upper edge of the target object selection frame after moving downward and the preset safety position exceeds the sixth distance threshold, that is, it can be determined that the upper edge of the target object selection frame enters the preset safety region formed by the upper edge of the target object recognition result region and the preset safety position, at this time, a second displacement control parameter can be determined based on the preset safety position and the current position of the upper edge of the picture, then, the lower edge of the picture can be controlled to move upward from the current position to the preset safety position based on the second displacement control parameter, and the target object selection frame is controlled to move along with the picture, so that on the premise that the target object recognition result region can be displayed, it is ensured that the region of interest selected by the target object selection frame can be completely, And meanwhile, when the interactive button is arranged in the preset safe area, the conflict between the moving operation of the target object selection frame and the existing interactive button can be avoided.
In order to facilitate understanding of the method for controlling picture movement according to the first and second aspects, the following description will be made with reference to fig. 7(a) to 7 (b).
As shown in fig. 7(a), in order to move the target object selection frame to the preset safety region formed by the upper edge of the target object recognition result region and the preset safety position after the moving operation is performed on the target object selection frame, as shown in fig. 7(b), the display schematic diagram after the picture is moved by using the above-mentioned method for controlling the picture movement is shown, so that the complete display of the picture is ensured.
In practical applications, it is considered that the target object selection frame may be moved directly or indirectly (i.e., when moving the picture, the target object selection frame is synchronously moved). For the direct moving mode, the user may move the target object selection box to view the goods in the region of interest selected by the target object selection box, and at this time, the control on the target object selection box is mainly performed from the starting point of ensuring the integrity of the region of interest. See, in particular, example one above.
However, for the indirect moving mode, the user may move the target object selection box to browse the whole picture, and in this case, the control on the target object selection box may be performed from a starting point of avoiding the interaction conflict, as described in the following second embodiment.
Example two
Referring to a flowchart of an information displaying method provided by the second embodiment of the disclosure shown in fig. 8, an executing main body of the information displaying method may also be a computer device with a touch screen, and details about the computer device are described in the first embodiment. The information display method specifically comprises the following steps:
s801, responding to the moving operation aiming at the picture display content, and determining the relative position relation between a target object selection frame on the moved picture display content and a preset safety position set on the picture display content; the image display content is at least one part of content of an image displayed on a current terminal screen;
s802, if the relative position relation is determined to reach a preset triggering condition, placing two frame corners of the target object selection frame in a preset state; wherein the preset state comprises a state for indicating that two frame corners of the target object selection frame are not operable.
Here, similarly to the above-described embodiment, the related picture display content may also be presented on the touch terminal, so that the user can observe the displayed picture display content and the target object selection box for performing target object recognition on the picture display content through the touch terminal. After the user performs a moving operation on the displayed picture display content, the touch terminal may respond to the moving operation, and may determine a relative position relationship between the target object selection frame moved along with the movement of the picture and a preset safety position set on the picture display content. Once it is determined that the relative position relationship reaches the preset trigger condition, the target object selection box may be placed in an inoperable state.
Similarly to the above embodiment, the moving operation related to the picture display content may also be defined based on the display mode of the picture display content, for example, when the picture display content is a portrait display, the moving operation may be an upward movement or a downward movement, and further, when the picture display content is a landscape display, the moving operation may be a leftward movement or a rightward movement, which is not specifically limited in the embodiment of the present disclosure.
Unlike the above embodiment, the target object selection frame may move along with the movement of the picture.
After the moving operation is performed, a relative positional relationship between the target object selection frame and a preset security position set on the picture display content after the moving operation is completed may be determined. In the embodiment of the disclosure, the moving directions corresponding to the moving operations are different, and the corresponding preset safety positions are also different.
For example, in the case of a moving operation for an upward movement, the preset safety position thereof may be a position located at a preset distance below the upper edge of the picture display content. As another example, in the case of the moving operation for the downward movement, the preset safety position may be a position located at a preset distance above the upper edge of the target object recognition result area included in the picture display content, which is not particularly limited by the embodiment of the present disclosure.
The preset safety position corresponding to the moving operation of moving leftward may refer to the preset safety position corresponding to the moving operation of moving upward, which is not limited in this disclosure. The preset safety position corresponding to the moving operation of moving to the right may refer to the preset safety position corresponding to the moving operation of moving to the down, which is not described herein again.
In the embodiment of the present disclosure, after determining the relative position relationship between the moved target object selection box and the preset safety position set on the picture display content, it may be determined whether the relative position relationship reaches a preset trigger condition. For example, when the moving operation of the upward movement is performed, when it is determined that the upper edge of the target object selection box after the upward movement exceeds the preset safety position, it may be determined that the preset trigger condition is reached; for another example, when the moving operation of the downward movement is performed, it may be determined that the preset trigger condition is reached when it is determined that the lower edge of the target object selection frame after the downward movement exceeds the preset safety position.
In the embodiment of the disclosure, when it is determined that the relative position relationship between the moved target object selection frame and the preset safety position set on the picture display content reaches the preset trigger condition, the target object selection frame can be placed in the inoperable state.
In practical applications, in order to facilitate the user to perform a search operation, various interactive buttons may be further disposed on the current picture display content, such as a cancel button for canceling/exiting the current search operation, a selection button that can be manually selected, and the like.
The interactive button may adopt a first setting mode set near the upper edge of the picture display content, or may adopt a second setting mode set near the lower edge of the picture display content (for example, set at the upper edge position of a target object recognition result region popped up from the lower edge of the picture display content).
In the embodiment of the present disclosure, in order to avoid a conflict between the moving operation of the target object selection box and the existing first setting mode interaction button, here, a preset safety position located at a first preset distance below the upper edge of the picture display content may be selected as the preset safety position corresponding to the upward movement.
In the embodiment of the present disclosure, the setting mode based on the preset safety position may control the state of the target object selection box in the following two modes.
In the first aspect, as shown in fig. 9, the state of the target object selection box may be controlled as follows:
s901, determining the distance between the upper edge of the moved target object selection frame and the upper edge of the picture display content, wherein the preset safety position is located at a first preset distance below the upper edge of the picture display content;
s902, if the distance between the determined upper edge of the target object selection frame and the upper edge of the picture display content is smaller than a first distance threshold, placing two frame corners, close to the upper edge of the picture display content, in the target object selection frame in a preset state; the first distance threshold is less than or equal to a first preset distance.
Here, the distance between the upper edge of the moved target object selection frame and the upper edge of the picture display content may be determined first, and then the state of the target object selection frame may be determined to be reset based on the comparison result of the distance with the first distance threshold.
When the distance between the upper edge of the moved target object selection frame and the upper edge of the picture display content is smaller than a first distance threshold value, and the first distance threshold value is smaller than or equal to a first preset distance between the upper edge of the picture display content and a preset safety position, the fact that the upper edge of the target object selection frame enters a preset safety region formed by the upper edge of the picture display content and the preset safety position can be judged, and at the moment, two frame corners close to the upper edge of the picture display content in the target object selection frame can be directly placed in an inoperable state. The inoperable state in the embodiment of the present disclosure may be that the two frame corners cannot respond to the movement operation of the user, so that the conflict between the movement operation of the target object selection frame and the existing interactive button can be avoided.
Meanwhile, in the process of searching the picture, other messages popped up from the upper edge of the picture display content are inevitable, and by adopting the control scheme, the problem of false triggering caused by the fact that the existing moving target object selection frame is close to the message popup window can be solved, so that the fluency of man-machine interaction is further improved.
The setting of the first preset distance in the embodiment of the present disclosure is the same as the related setting manner in the first embodiment, and is not described herein again.
In the second aspect, as shown in fig. 10, the state of the target object selection box may be controlled as follows:
s1001, determining the distance that the upper edge of the target object selection frame after moving upwards exceeds a preset safety position, wherein the preset safety position is located at a first preset distance below the upper edge of the picture display content;
and S1002, if the exceeded distance is larger than a second distance threshold value, placing two frame corners close to the upper edge of the picture display content in the target object selection frame in a preset state.
Here, the embodiment of the present disclosure may put two frame corners of the target object selection frame, which are close to the upper edge of the picture display content, in an inoperable state upon determining that the distance by which the upper edge of the target object selection frame after moving upward exceeds the preset safety position is greater than the second distance threshold.
In the embodiment of the present disclosure, the setting of the second preset distance is the same as the related setting manner in the first embodiment, and is not described herein again.
Similar to the control manner corresponding to the first aspect, when it is determined that the distance that the upper edge of the target object selection frame after the upward movement exceeds the preset safety position is greater than the second distance threshold, it may be determined that the upper edge of the target object selection frame enters the preset safety region formed by the upper edge of the picture display content and the preset safety position, at this time, two frame corners close to the upper edge of the picture display content in the target object selection frame may be directly placed in an inoperable state, thereby avoiding a conflict between the movement operation for the target object selection frame and the existing interactive button.
Meanwhile, by adopting the control scheme, the problem of false triggering caused by the fact that the existing moving target object selection frame is close to the message popup window can be solved, and therefore the fluency of man-machine interaction is further improved.
In order to facilitate understanding of the method for controlling picture movement according to the first and second aspects, the following description will be made with reference to fig. 11(a) to 11 (b).
As shown in fig. 11(a), before the moving operation is performed on the picture, the target object selection frame is located outside the preset safe region formed by the upper edge of the picture display content and the preset safe position, as shown in fig. 11(b), the display schematic diagram after the method for controlling the state of the target object selection frame is adopted is shown in fig. 11(b), the user is reminded by adopting the display mode of graying out the two frame corners at the upper edge of the target object selection frame as shown in fig. 11(b), the control operation cannot be performed on the two frame corners, and thus the interaction conflict is avoided.
In practical application, in order to facilitate the user to display the target object recognition result, a target object recognition result area corresponding to the picture display content is also displayed on the current terminal screen. In order to avoid the conflict between the operation of the target object selection box and the second setting mode interaction button on the premise of ensuring that the target object recognition result area can be displayed, here, a preset safety position located at a second preset distance above the upper edge of the target object recognition result area may be selected as a preset safety position corresponding to the downward movement.
In the embodiment of the present disclosure, the setting mode based on the preset safety position may control the state of the target object selection box in the following two modes.
In the first aspect, as shown in fig. 12, the state of the target object selection box may be controlled as follows:
s1201, determining the distance between the lower edge of the moved target object selection frame and the upper edge of the target object recognition result area, wherein the preset safety position is located at a second preset distance above the upper edge of the target object recognition result area;
s1202, if the distance between the lower edge of the target object selection frame and the upper edge of the target object identification result area is smaller than a third distance threshold, placing two frame corners, close to the upper edge of the target object identification result area, in the target object selection frame in a preset state; the third distance threshold is less than or equal to a second preset distance.
Here, a distance between a lower edge of the moved target object selection box and an upper edge of the target object recognition result area may be first determined, and then whether to reset the state of the target object selection box may be determined based on a result of comparing the distance with the third distance threshold.
When the distance between the lower edge of the moved target object selection frame and the upper edge of the target object recognition result area is smaller than a third distance threshold, and the third distance threshold is smaller than or equal to a second preset distance between the upper edge of the target object recognition result area and a preset safety position, the lower edge of the target object selection frame can be judged to enter the preset safety area formed by the upper edge of the target object recognition result area and the preset safety position, at this time, two frame corners close to the upper edge of the target object recognition result area in the target object selection frame can be placed in an inoperable state, so that collision between an interaction button arranged in the preset safety area and operation of the target object selection frame is avoided, and the smoothness of human-computer interaction is further improved.
In the embodiment of the present disclosure, for setting the third preset distance, reference may be made to related descriptions in the first embodiment, and details are not described herein again.
In the second aspect, as shown in fig. 13, the state of the target object selection box may be controlled as follows:
s1301, determining the distance of the lower edge of the target object selection frame beyond a preset safety position after the target object selection frame moves downwards; the preset safety position is located at a second preset distance above the upper edge of the target object recognition result area;
and S1302, if the exceeded distance is greater than the fourth distance threshold, placing two frame corners close to the upper edge of the target object identification result area in the target object selection frame in a preset state.
Here, upon determining that the distance of the lower edge of the target object selection box after the downward movement exceeds the preset safety position is greater than the fourth distance threshold, the embodiments of the present disclosure may place two frame corners of the target object selection box, which are close to the upper edge of the target object recognition result area, in an inoperable state.
For a specific setting manner of the fourth distance threshold, refer to the related description in the first embodiment, and are not described herein again.
Similar to the control manner of the first aspect, when it is determined that the distance between the lower edge of the target object selection frame after the downward movement and the position beyond the preset safety position is greater than the fourth distance threshold, two frame corners close to the upper edge of the target object recognition result area in the target object selection frame can be placed in an inoperable state, so that a conflict between an interaction button arranged in the preset safety area and the operation of the target object selection frame is avoided, and the fluency of human-computer interaction is further improved.
EXAMPLE III
Referring to fig. 14, which is a schematic view of an information displaying apparatus provided in a third embodiment of the present disclosure, the apparatus includes:
a response module 1401, configured to respond to a moving operation for a target object selection frame on the picture display content, and determine a relative position relationship between the moved target object selection frame and a preset safety position set on the picture display content; the image display content is the content of an image displayed on a current terminal screen, and the image display content is at least one part of the image;
a generating module 1402, configured to generate a control parameter for controlling the movement of the picture if it is determined that the relative position relationship reaches a preset trigger condition;
the control module 1403 is configured to control the picture to move according to the control parameter, and control the target object selection frame to move along with the picture, so that a relative position relationship between the target object selection frame on the moved picture display content and a preset safety position set on the picture display content no longer meets a preset trigger condition.
In one embodiment, the moving operation is moving upwards, and the response module 1401 is configured to determine the relative position relationship between the moved target object selection frame and a preset safety position set on the picture display content according to the following steps:
determining the distance between the upper edge of the moved target object selection frame and the upper edge of the picture display content, wherein the preset safety position is located at a first preset distance below the upper edge of the picture display content;
a generating module 1402, configured to generate a control parameter for controlling the picture movement according to the following steps:
if the distance between the determined upper edge of the target object selection frame and the upper edge of the picture display content is smaller than a first distance threshold, generating a control parameter for controlling the picture to move; the first distance threshold is less than or equal to a first preset distance.
In one embodiment, the moving operation is moving upwards, and the response module 1401 is configured to determine the relative position relationship between the moved target object selection frame and a preset safety position set on the picture display content according to the following steps:
determining the distance that the upper edge of the target object selection frame after moving upwards exceeds a preset safety position, wherein the preset safety position is located at a first preset distance below the upper edge of the picture display content;
a generating module 1402, configured to generate a control parameter for controlling the picture movement according to the following steps:
and if the exceeding distance is greater than the second distance threshold, generating a control parameter for controlling the movement of the picture.
In one embodiment, the generating module 1402 is configured to generate a control parameter for controlling the picture movement according to the following steps:
if the relative position relation is determined to reach the preset triggering condition, determining a first displacement control parameter based on the preset safety position and the current position of the upper edge of the picture;
a control module 1403, configured to control the picture to move and control the target object selection frame to move along with the picture according to the following steps:
and controlling the upper edge of the picture to move downwards to a preset safety position from the current position according to the first displacement control parameter, and controlling the target object selection frame to move along with the picture.
In one embodiment, the moving operation is a downward movement, and the response module 1401 is configured to determine a relative position relationship between the moved target object selection frame and a preset safety position set on the picture display content according to the following steps:
determining the distance between the lower edge of the moved target object selection frame and the lower edge of the picture display content, wherein the preset safety position is located at a second preset distance above the lower edge of the picture display content;
a generating module 1402, configured to generate a control parameter for controlling the picture movement according to the following steps:
if the distance between the lower edge of the determined target object selection frame and the lower edge of the picture display content is smaller than a third distance threshold, generating a control parameter for controlling the picture to move; the third distance threshold is less than or equal to a second preset distance.
In an alternative embodiment, the moving operation is a downward movement, and the response module 1401 is configured to determine a relative position relationship between the moved target object selection frame and a preset safety position set on the picture display content according to the following steps:
determining the distance that the lower edge of the target object selection frame after moving downwards exceeds a preset safety position, wherein the preset safety position is located at a second preset distance above the lower edge of the picture display content;
a generating module 1402, configured to generate a control parameter for controlling the picture movement according to the following steps:
and if the exceeded distance is greater than the fourth distance threshold, generating a control parameter for controlling the movement of the picture.
In one embodiment, a target object recognition result area corresponding to the picture display content is also displayed on the current terminal screen; the picture and the target object recognition result area are in different layers, and the layer where the target object recognition result area is located covers the layer where the picture display content is located; the moving operation is downward movement, and the response module 1401 is configured to determine a relative position relationship between the moved target object selection frame and a preset safety position set on the picture display content according to the following steps:
determining the distance between the upper edge of the moved target object selection frame and the upper edge of the target object recognition result area, wherein the preset safety position is located at a third preset distance above the upper edge of the target object recognition result area;
a generating module 1402, configured to generate a control parameter for controlling the picture movement according to the following steps:
if the distance between the determined upper edge of the target object selection frame and the upper edge of the target object recognition result area is smaller than a fifth distance threshold, generating a control parameter for controlling the movement of the picture; the fifth distance threshold is less than or equal to a third preset distance.
In one embodiment, a target object recognition result area corresponding to the picture display content is also displayed on the current terminal screen; the picture and the target object recognition result area are in different layers, and the layer where the target object recognition result area is located covers the layer where the picture display content is located; the moving operation is downward movement, and the response module 1401 is configured to determine a relative position relationship between the moved target object selection frame and a preset safety position set on the picture display content according to the following steps:
determining the distance that the upper edge of the target object selection frame after moving downwards exceeds a preset safety position, wherein the preset safety position is located at a third preset distance above the upper edge of the target object recognition result area;
a generating module 1402, configured to generate a control parameter for controlling the picture movement according to the following steps:
and if the exceeding distance is greater than the sixth distance threshold, generating a control parameter for controlling the movement of the picture.
In one embodiment, the generating module 1402 is configured to generate a control parameter for controlling the picture movement according to the following steps:
if the relative position relation is determined to reach the preset triggering condition, determining a second displacement control parameter based on the preset safety position and the current position of the lower edge of the picture;
a control module 1403, configured to control the picture movement according to the following steps:
and controlling the lower edge of the picture to move upwards to a preset safety position from the current position according to the second displacement control parameter, and controlling the target object selection frame to move along with the picture.
Referring to fig. 15, which is a schematic view of another information displaying apparatus provided in the third embodiment of the present disclosure, the apparatus includes:
the response module 1501 is configured to determine, in response to a moving operation for the picture display content, a relative position relationship between a target object selection frame on the moved picture display content and a preset safety position set on the picture display content; the image display content is at least one part of content of an image displayed on a current terminal screen;
the control module 1502 is configured to place two frame corners of the target object selection frame in a preset state if it is determined that the relative position relationship reaches a preset trigger condition; wherein the preset state comprises a state for indicating that two frame corners of the target object selection frame are not operable.
In one embodiment, the moving operation is moving upwards, and the response module 1501 is configured to determine the relative position relationship between the moved target object selection frame and a preset safety position set on the picture display content according to the following steps:
determining the distance between the upper edge of the moved target object selection frame and the upper edge of the picture display content, wherein the preset safety position is located at a first preset distance below the upper edge of the picture display content;
the control module 1502 is configured to place two frame corners of the target object selection frame in a preset state according to the following steps:
if the distance between the determined upper edge of the target object selection frame and the upper edge of the picture display content is smaller than a first distance threshold value, placing two frame corners, close to the upper edge of the picture display content, in the target object selection frame in a preset state; the first distance threshold is less than or equal to a first preset distance.
In one embodiment, the moving operation is moving upwards, and the response module 1501 is configured to determine the relative position relationship between the moved target object selection frame and a preset safety position set on the picture display content according to the following steps:
determining the distance that the upper edge of the target object selection frame after moving upwards exceeds a preset safety position, wherein the preset safety position is located at a first preset distance below the upper edge of the picture display content;
the control module 1502 is configured to place two frame corners of the target object selection frame in a preset state according to the following steps:
and if the exceeded distance is greater than the second distance threshold value, placing two frame corners close to the upper edge of the picture display content in the target object selection frame in a preset state.
In one embodiment, a target object recognition result area corresponding to the picture display content is also displayed on the current terminal screen; the picture and the target object recognition result area are in different layers, and the layer where the target object recognition result area is located covers the layer where the picture display content is located; the moving operation is downward movement, and the response module 1501 is configured to determine a relative position relationship between the moved target object selection frame and a preset safety position set on the picture display content according to the following steps:
determining the distance between the lower edge of the moved target object selection frame and the upper edge of the target object recognition result area, wherein the preset safety position is located at a second preset distance above the upper edge of the target object recognition result area;
the control module 1502 is configured to place two frame corners of the target object selection frame in a preset state according to the following steps:
if the distance between the lower edge of the target object selection frame and the upper edge of the target object identification result area is smaller than a third distance threshold, placing two frame corners, close to the upper edge of the target object identification result area, in the target object selection frame in a preset state; the third distance threshold is less than or equal to a second preset distance.
In one embodiment, a target object recognition result area corresponding to the picture display content is also displayed on the current terminal screen; the picture and the target object recognition result area are in different layers, and the layer where the target object recognition result area is located covers the layer where the picture display content is located; the moving operation is downward movement, and the response module 1501 is configured to determine a relative position relationship between the moved target object selection frame and a preset safety position set on the picture display content according to the following steps:
determining the distance of the lower edge of the target object selection frame beyond a preset safety position after the target object selection frame moves downwards; the preset safety position is located at a second preset distance above the upper edge of the target object recognition result area;
the control module 1502 is configured to place two frame corners of the target object selection frame in a preset state according to the following steps:
and if the exceeded distance is greater than the fourth distance threshold, placing two frame corner corners close to the upper edge of the target object identification result area in the target object selection frame in a preset state.
Example four
A fourth embodiment of the present disclosure further provides a computer device, as shown in fig. 16, which is a schematic structural diagram of the computer device provided in the embodiment of the present disclosure, and includes: a processor 1601, a memory 1602, and a bus 1603. The memory 1602 stores machine-readable instructions (such as execution instructions corresponding to the response module 1401, the generation module 1402, and the control module 1403 in the information presentation apparatus in fig. 14) executable by the processor 1601, and when the computer apparatus is operated, the processor 1601 communicates with the memory 1602 through the bus 1603, and when the machine-readable instructions are executed by the processor 1601, the following instructions are executed:
responding to the movement operation of the target object selection frame on the picture display content, and determining the relative position relationship between the moved target object selection frame and a preset safety position set on the picture display content; the image display content is the content of an image displayed on a current terminal screen, and the image display content is at least one part of the image;
if the relative position relation is determined to reach the preset trigger condition, generating a control parameter for controlling the picture to move;
and controlling the picture to move according to the control parameters, and controlling the target object selection frame to move along with the picture so that the relative position relation between the target object selection frame on the moved picture display content and a preset safety position arranged on the picture display content does not meet a preset trigger condition any more.
In an alternative embodiment, the moving operation is an upward movement, and the processor 1601 is configured to perform the above-mentioned execution of determining a relative position relationship between the moved target object selection frame and a preset security position set on the picture display content, including:
determining the distance between the upper edge of the moved target object selection frame and the upper edge of the picture display content, wherein the preset safety position is located at a first preset distance below the upper edge of the picture display content;
in the execution executed by the processor 1601, if it is determined that the relative position relationship reaches the preset trigger condition, a control parameter for controlling the movement of the picture is generated, which includes:
if the distance between the determined upper edge of the target object selection frame and the upper edge of the picture display content is smaller than a first distance threshold, generating a control parameter for controlling the picture to move; the first distance threshold is less than or equal to a first preset distance.
In an alternative embodiment, the moving operation is an upward movement, and the processor 1601 is configured to perform the above-mentioned execution of determining a relative position relationship between the moved target object selection frame and a preset security position set on the picture display content, including:
determining the distance that the upper edge of the target object selection frame after moving upwards exceeds a preset safety position, wherein the preset safety position is located at a first preset distance below the upper edge of the picture display content;
in the execution executed by the processor 1601, if it is determined that the relative position relationship reaches the preset trigger condition, a control parameter for controlling the movement of the picture is generated, which includes:
and if the exceeding distance is greater than the second distance threshold, generating a control parameter for controlling the movement of the picture.
In an optional implementation manner, the execution by the processor 1601 is to generate a control parameter for controlling a picture movement, and the control parameter includes:
if the relative position relation is determined to reach the preset triggering condition, determining a first displacement control parameter based on the preset safety position and the current position of the upper edge of the picture;
the execution of the processor 1601 is to control the picture to move according to the control parameter, and control the target object selection frame to follow the picture to move, and includes:
and controlling the upper edge of the picture to move downwards to a preset safety position from the current position according to the first displacement control parameter, and controlling the target object selection frame to move along with the picture.
In an alternative embodiment, the moving operation is a downward movement, and the processor 1601 is configured to perform the above-mentioned execution of determining a relative position relationship between the moved target object selection box and a preset safety position set on the picture display content, including:
determining the distance between the lower edge of the moved target object selection frame and the lower edge of the picture display content, wherein the preset safety position is located at a second preset distance above the lower edge of the picture display content;
in the execution executed by the processor 1601, if it is determined that the relative position relationship reaches the preset trigger condition, a control parameter for controlling the movement of the picture is generated, which includes:
if the distance between the lower edge of the determined target object selection frame and the lower edge of the picture display content is smaller than a third distance threshold, generating a control parameter for controlling the picture to move; the third distance threshold is less than or equal to a second preset distance.
In an alternative embodiment, the moving operation is a downward movement, and the processor 1601 is configured to perform the above-mentioned execution of determining a relative position relationship between the moved target object selection box and a preset safety position set on the picture display content, including:
determining the distance that the lower edge of the target object selection frame after moving downwards exceeds a preset safety position, wherein the preset safety position is located at a second preset distance above the lower edge of the picture display content;
in the execution executed by the processor 1601, if it is determined that the relative position relationship reaches the preset trigger condition, a control parameter for controlling the movement of the picture is generated, which includes:
and if the exceeded distance is greater than the fourth distance threshold, generating a control parameter for controlling the movement of the picture.
In an optional implementation manner, a target object recognition result area corresponding to the picture display content is also displayed on the current terminal screen; the picture and the target object recognition result area are in different layers, and the layer where the target object recognition result area is located covers the layer where the picture display content is located; the moving operation is downward moving, and the processor 1601 is configured to perform the above-mentioned execution of determining a relative position relationship between the moved target object selection frame and a preset security position set on the picture display content, including:
determining the distance between the upper edge of the moved target object selection frame and the upper edge of the target object recognition result area, wherein the preset safety position is located at a third preset distance above the upper edge of the target object recognition result area;
in the execution executed by the processor 1601, if it is determined that the relative position relationship reaches the preset trigger condition, a control parameter for controlling the movement of the picture is generated, which includes:
if the distance between the determined upper edge of the target object selection frame and the upper edge of the target object recognition result area is smaller than a fifth distance threshold, generating a control parameter for controlling the movement of the picture; the fifth distance threshold is less than or equal to a third preset distance.
In an optional implementation manner, a target object recognition result area corresponding to the picture display content is also displayed on the current terminal screen; the picture and the target object recognition result area are in different layers, and the layer where the target object recognition result area is located covers the layer where the picture display content is located; the moving operation is downward moving, and the processor 1601 is configured to perform the above-mentioned execution of determining a relative position relationship between the moved target object selection frame and a preset security position set on the picture display content, including:
determining the distance that the upper edge of the target object selection frame after moving downwards exceeds a preset safety position, wherein the preset safety position is located at a third preset distance above the upper edge of the target object recognition result area;
in the execution executed by the processor 1601, if it is determined that the relative position relationship reaches the preset trigger condition, a control parameter for controlling the movement of the picture is generated, which includes:
and if the exceeding distance is greater than the sixth distance threshold, generating a control parameter for controlling the movement of the picture.
In an optional implementation manner, the execution by the processor 1601 is to generate a control parameter for controlling a picture movement, and the control parameter includes:
if the relative position relation is determined to reach the preset triggering condition, determining a second displacement control parameter based on the preset safety position and the current position of the lower edge of the picture;
controlling the picture to move according to the control parameters, comprising:
and controlling the lower edge of the picture to move upwards to a preset safety position from the current position according to the second displacement control parameter, and controlling the target object selection frame to move along with the picture.
A fourth embodiment of the present disclosure further provides a computer device, as shown in fig. 17, which is a schematic structural diagram of the computer device provided in the embodiment of the present disclosure, and includes: a processor 1701, a memory 1702, and a bus 1703. The memory 1702 stores machine-readable instructions executable by the processor 1701 (e.g., the response module 1501 in the information presentation apparatus in fig. 15, the execution instructions corresponding to the control module 1502, etc.), when the computer apparatus is running, the processor 1701 communicates with the memory 1702 via the bus 1703, and when the machine-readable instructions are executed by the processor 1701, the following instructions are executed:
responding to the moving operation aiming at the picture display content, and determining the relative position relation between a target object selection frame on the moved picture display content and a preset safety position set on the picture display content; the image display content is at least one part of content of an image displayed on a current terminal screen;
if the relative position relation is determined to reach the preset triggering condition, placing two frame corners of the target object selection frame in a preset state; wherein the preset state comprises a state for indicating that two frame corners of the target object selection frame are not operable.
In an alternative embodiment, the moving operation is an upward movement, and the processor 1701 is configured to execute the above-mentioned execution to determine a relative position relationship between the moved target object selection frame and a preset security position set on the picture display content, including:
determining the distance between the upper edge of the moved target object selection frame and the upper edge of the picture display content, wherein the preset safety position is located at a first preset distance below the upper edge of the picture display content;
in the execution performed by the processor 1701, if it is determined that the relative position relationship reaches the preset trigger condition, the setting of the two frame corners of the target object selection frame in the preset state includes:
if the distance between the determined upper edge of the target object selection frame and the upper edge of the picture display content is smaller than a first distance threshold value, placing two frame corners, close to the upper edge of the picture display content, in the target object selection frame in a preset state; the first distance threshold is less than or equal to a first preset distance.
In an alternative embodiment, the moving operation is an upward movement, and the processor 1701 is configured to execute the above-mentioned execution to determine a relative position relationship between the moved target object selection frame and a preset security position set on the picture display content, including:
determining the distance that the upper edge of the target object selection frame after moving upwards exceeds a preset safety position, wherein the preset safety position is located at a first preset distance below the upper edge of the picture display content;
in the execution performed by the processor 1701, if it is determined that the relative position relationship reaches the preset trigger condition, the setting of the two frame corners of the target object selection frame in the preset state includes:
and if the exceeded distance is greater than the second distance threshold value, placing two frame corners close to the upper edge of the picture display content in the target object selection frame in a preset state.
In an optional implementation manner, a target object recognition result area corresponding to the picture display content is also displayed on the current terminal screen; the picture and the target object recognition result area are in different layers, and the layer where the target object recognition result area is located covers the layer where the picture display content is located; the moving operation is a downward movement, and the processor 1701 executes an execution for determining a relative positional relationship between the moved target object selection frame and a preset security position set on the picture display content, including:
determining the distance between the lower edge of the moved target object selection frame and the upper edge of the target object recognition result area, wherein the preset safety position is located at a second preset distance above the upper edge of the target object recognition result area;
in the execution performed by the processor 1701, if it is determined that the relative position relationship reaches the preset trigger condition, the setting of the two frame corners of the target object selection frame in the preset state includes:
if the distance between the lower edge of the target object selection frame and the upper edge of the target object identification result area is smaller than a third distance threshold, placing two frame corners, close to the upper edge of the target object identification result area, in the target object selection frame in a preset state; the third distance threshold is less than or equal to a second preset distance.
In an optional implementation manner, a target object recognition result area corresponding to the picture display content is also displayed on the current terminal screen; the picture and the target object recognition result area are in different layers, and the layer where the target object recognition result area is located covers the layer where the picture display content is located; the moving operation is a downward movement, and the processor 1701 executes an execution for determining a relative positional relationship between the moved target object selection frame and a preset security position set on the picture display content, including:
determining the distance of the lower edge of the target object selection frame beyond a preset safety position after the target object selection frame moves downwards; the preset safety position is located at a second preset distance above the upper edge of the target object recognition result area;
in the execution performed by the processor 1701, if it is determined that the relative position relationship reaches the preset trigger condition, the setting of the two frame corners of the target object selection frame in the preset state includes:
and if the exceeded distance is greater than the fourth distance threshold, placing two frame corner corners close to the upper edge of the target object identification result area in the target object selection frame in a preset state.
The disclosed embodiment also provides a computer readable storage medium, which stores thereon a computer program, and the computer program is executed by the processor 1601 to perform the steps of the information presentation method according to the first embodiment, or executed by the processor 1701 to perform the steps of the information presentation method according to the second embodiment.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are merely specific embodiments of the present disclosure, which are used for illustrating the technical solutions of the present disclosure and not for limiting the same, and the scope of the present disclosure is not limited thereto, and although the present disclosure is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive of the technical solutions described in the foregoing embodiments or equivalent technical features thereof within the technical scope of the present disclosure; such modifications, changes, or substitutions do not depart from the spirit and scope of the disclosed embodiments, and are intended to be included within the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (18)

1. An information presentation method, the method comprising:
responding to a moving operation aiming at a target object selection frame on picture display content, and determining a relative position relation between the moved target object selection frame and a preset safety position set on the picture display content; the picture display content is the content of a picture displayed on a current terminal screen, and the picture display content is at least one part of the picture;
if the relative position relation is determined to reach a preset trigger condition, generating a control parameter for controlling the picture to move;
and controlling the picture to move according to the control parameters, and controlling the target object selection frame to move along with the picture, so that the relative position relation between the target object selection frame on the picture display content after moving and a preset safety position arranged on the picture display content does not meet the preset trigger condition any more.
2. The method according to claim 1, wherein the moving operation is upward movement, and determining a relative positional relationship between the moved target object selection frame and a preset safety position set on the picture display content comprises:
determining the distance between the upper edge of the moved target object selection frame and the upper edge of the picture display content, wherein the preset safety position is located at a first preset distance below the upper edge of the picture display content;
if the relative position relation is determined to reach a preset trigger condition, generating a control parameter for controlling the picture to move, wherein the control parameter comprises the following steps:
if the determined distance between the upper edge of the target object selection frame and the upper edge of the picture display content is smaller than a first distance threshold, generating a control parameter for controlling the picture to move; the first distance threshold is less than or equal to the first preset distance.
3. The method according to claim 1, wherein the moving operation is upward movement, and determining a relative positional relationship between the moved target object selection frame and a preset safety position set on the picture display content comprises:
determining the distance that the upper edge of the target object selection frame after moving upwards exceeds the preset safety position, wherein the preset safety position is located at a first preset distance below the upper edge of the picture display content;
if the relative position relation is determined to reach a preset trigger condition, generating a control parameter for controlling the picture to move, wherein the control parameter comprises the following steps:
and if the exceeded distance is larger than a second distance threshold value, generating a control parameter for controlling the picture to move.
4. The method according to claim 2 or 3, wherein the generating of the control parameter for controlling the picture movement comprises:
if the relative position relation is determined to reach a preset triggering condition, determining a first displacement control parameter based on the preset safety position and the current position of the upper edge of the picture;
the controlling the picture to move according to the control parameter and controlling the target object selection frame to move along with the picture comprises:
and controlling the upper edge of the picture to move downwards to the preset safety position from the current position according to the first displacement control parameter, and controlling the target object selection frame to move along with the picture.
5. The method according to claim 1, wherein the moving operation is a downward movement, and determining a relative positional relationship between the moved target object selection frame and a preset safety position set on the picture display content comprises:
determining the distance between the lower edge of the moved target object selection frame and the lower edge of the picture display content, wherein the preset safety position is located at a second preset distance above the lower edge of the picture display content;
if the relative position relation is determined to reach a preset trigger condition, generating a control parameter for controlling the picture to move, wherein the control parameter comprises the following steps:
if the determined distance between the lower edge of the target object selection frame and the lower edge of the picture display content is smaller than a third distance threshold, generating a control parameter for controlling the picture to move; the third distance threshold is less than or equal to the second preset distance.
6. The method according to claim 1, wherein the moving operation is a downward movement, and determining a relative positional relationship between the moved target object selection frame and a preset safety position set on the picture display content comprises:
determining the distance that the lower edge of the target object selection frame after moving downwards exceeds the preset safety position, wherein the preset safety position is located at a second preset distance above the lower edge of the picture display content;
if the relative position relation is determined to reach a preset trigger condition, generating a control parameter for controlling the picture to move, wherein the control parameter comprises the following steps:
and if the exceeded distance is larger than a fourth distance threshold, generating a control parameter for controlling the picture to move.
7. The method according to claim 1, wherein a target object recognition result area corresponding to the picture display content is also displayed on the current terminal screen; the picture and the target object recognition result area are in different layers, and the layer where the target object recognition result area is located covers the layer where the picture display content is located; the moving operation is downward movement, and determining a relative position relationship between the moved target object selection frame and a preset safety position set on the picture display content includes:
determining the distance between the upper edge of the moved target object selection frame and the upper edge of the target object recognition result area, wherein the preset safety position is located at a third preset distance above the upper edge of the target object recognition result area;
if the relative position relation is determined to reach a preset trigger condition, generating a control parameter for controlling the picture to move, wherein the control parameter comprises the following steps:
if the determined distance between the upper edge of the target object selection frame and the upper edge of the target object recognition result area is smaller than a fifth distance threshold, generating a control parameter for controlling the picture to move; the fifth distance threshold is less than or equal to the third preset distance.
8. The method according to claim 1, wherein a target object recognition result area corresponding to the picture display content is also displayed on the current terminal screen; the picture and the target object recognition result area are in different layers, and the layer where the target object recognition result area is located covers the layer where the picture display content is located; the moving operation is downward movement, and determining a relative position relationship between the moved target object selection frame and a preset safety position set on the picture display content includes:
determining the distance that the upper edge of the target object selection frame after moving downwards exceeds the preset safety position, wherein the preset safety position is located at a third preset distance above the upper edge of the target object recognition result area;
if the relative position relation is determined to reach a preset trigger condition, generating a control parameter for controlling the picture to move, wherein the control parameter comprises the following steps:
and if the exceeded distance is larger than a sixth distance threshold, generating a control parameter for controlling the picture to move.
9. The method according to claim 7 or 8, wherein the generating control parameters for controlling the picture movement comprises:
if the relative position relation is determined to reach a preset triggering condition, determining a second displacement control parameter based on the preset safety position and the current position of the lower edge of the picture;
the controlling the picture to move according to the control parameter comprises:
and controlling the lower edge of the picture to move upwards to the preset safety position from the current position according to the second displacement control parameter, and controlling the target object selection frame to move along with the picture.
10. An information presentation method, the method comprising:
responding to the moving operation aiming at the picture display content, and determining the relative position relation between a target object selection frame on the moved picture display content and a preset safety position set on the picture display content; the picture display content is at least one part of content of a picture displayed on a current terminal screen;
if the relative position relation is determined to reach a preset triggering condition, placing two frame corners of the target object selection frame in a preset state; wherein the preset state comprises a state indicating that two frame corners of the target object selection frame are not operable.
11. The method according to claim 10, wherein the moving operation is upward movement, and determining a relative positional relationship between the moved target object selection frame and a preset safety position set on the picture display content comprises:
determining the distance between the upper edge of the moved target object selection frame and the upper edge of the picture display content, wherein the preset safety position is located at a first preset distance below the upper edge of the picture display content;
if the relative position relation is determined to reach a preset triggering condition, placing the two frame corners of the target object selection frame in a preset state, including:
if the determined distance between the upper edge of the target object selection frame and the upper edge of the picture display content is smaller than a first distance threshold value, placing two frame corners, close to the upper edge of the picture display content, in the target object selection frame in a preset state; the first distance threshold is less than or equal to the first preset distance.
12. The method according to claim 10, wherein the moving operation is upward movement, and determining a relative positional relationship between the moved target object selection frame and a preset safety position set on the picture display content comprises:
determining the distance that the upper edge of the target object selection frame after moving upwards exceeds the preset safety position, wherein the preset safety position is located at a first preset distance below the upper edge of the picture display content;
if the relative position relation is determined to reach a preset triggering condition, placing the two frame corners of the target object selection frame in a preset state, including:
and if the distance exceeding the preset distance is larger than a second distance threshold value, placing two frame corners close to the upper edge of the picture display content in the target object selection frame in a preset state.
13. The method according to claim 10, wherein a target object recognition result area corresponding to the picture display content is also displayed on the current terminal screen; the picture and the target object recognition result area are in different layers, and the layer where the target object recognition result area is located covers the layer where the picture display content is located; the moving operation is downward movement, and determining a relative position relationship between the moved target object selection frame and a preset safety position set on the picture display content includes:
determining the distance between the lower edge of the moved target object selection frame and the upper edge of the target object recognition result area, wherein the preset safety position is located at a second preset distance above the upper edge of the target object recognition result area;
if the relative position relation is determined to reach a preset triggering condition, placing the two frame corners of the target object selection frame in a preset state, including:
if the determined distance between the lower edge of the target object selection frame and the upper edge of the target object recognition result area is smaller than a third distance threshold, placing two frame corners, which are close to the upper edge of the target object recognition result area, in the target object selection frame in a preset state; the third distance threshold is less than or equal to the second preset distance.
14. The method according to claim 10, wherein a target object recognition result area corresponding to the picture display content is also displayed on the current terminal screen; the picture and the target object recognition result area are in different layers, and the layer where the target object recognition result area is located covers the layer where the picture display content is located; the moving operation is downward movement, and determining a relative position relationship between the moved target object selection frame and a preset safety position set on the picture display content includes:
determining the distance of the lower edge of the target object selection frame beyond the preset safety position after the target object selection frame moves downwards; the preset safety position is located at a second preset distance above the upper edge of the target object recognition result area;
if the relative position relation is determined to reach a preset triggering condition, placing the two frame corners of the target object selection frame in a preset state, including:
and if the distance exceeding the preset distance is larger than a fourth distance threshold, placing two frame corners, which are close to the upper edge of the target object identification result area, in the target object selection frame in a preset state.
15. An information presentation device, the device comprising:
the response module is used for responding to the movement operation of a target object selection frame on the picture display content and determining the relative position relation between the moved target object selection frame and a preset safety position set on the picture display content; the picture display content is the content of a picture displayed on a current terminal screen, and the picture display content is at least one part of the picture;
the generating module is used for generating a control parameter for controlling the picture to move if the relative position relation is determined to reach a preset trigger condition;
and the control module is used for controlling the picture to move according to the control parameters and controlling the target object selection frame to move along with the picture so that the relative position relation between the target object selection frame on the picture display content after moving and a preset safety position arranged on the picture display content does not meet the preset trigger condition any more.
16. An information presentation device, the device comprising:
the response module is used for responding to the moving operation aiming at the picture display content and determining the relative position relation between the target object selection frame on the moved picture display content and a preset safety position set on the picture display content; the picture display content is at least one part of content of a picture displayed on a current terminal screen;
the control module is used for placing the two frame corners of the target object selection frame in a preset state if the relative position relation is determined to reach a preset trigger condition; wherein the preset state comprises a state indicating that two frame corners of the target object selection frame are not operable.
17. A computer device, comprising: processor, memory and bus, the memory storing machine readable instructions executable by the processor, the processor and the memory communicating via the bus when a computer device is running, the machine readable instructions when executed by the processor performing the steps of the information presentation method according to any one of claims 1 to 14.
18. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the information presentation method according to any one of claims 1 to 14.
CN202010105412.7A 2020-02-20 2020-02-20 Information display method and device, computer equipment and storage medium Active CN111340586B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010105412.7A CN111340586B (en) 2020-02-20 2020-02-20 Information display method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010105412.7A CN111340586B (en) 2020-02-20 2020-02-20 Information display method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111340586A true CN111340586A (en) 2020-06-26
CN111340586B CN111340586B (en) 2021-06-22

Family

ID=71181804

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010105412.7A Active CN111340586B (en) 2020-02-20 2020-02-20 Information display method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111340586B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6337916B1 (en) * 1998-04-03 2002-01-08 Discreet Logic Inc. Modifying image data
CN106055247A (en) * 2016-05-25 2016-10-26 努比亚技术有限公司 Picture display device, method and mobile terminal
CN106527867A (en) * 2016-11-29 2017-03-22 北京小米移动软件有限公司 Method and apparatus for moving suspension layer interface
CN109710148A (en) * 2018-12-19 2019-05-03 广州文远知行科技有限公司 Image annotation frame selection method and device, computer equipment and storage medium
CN109814768A (en) * 2018-12-14 2019-05-28 中国平安财产保险股份有限公司 Method, apparatus, computer equipment and the storage medium of the position optimization of suspended frame
CN110032296A (en) * 2019-04-10 2019-07-19 网易(杭州)网络有限公司 Determination method, apparatus, terminal and the storage medium of virtual objects in terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6337916B1 (en) * 1998-04-03 2002-01-08 Discreet Logic Inc. Modifying image data
CN106055247A (en) * 2016-05-25 2016-10-26 努比亚技术有限公司 Picture display device, method and mobile terminal
CN106527867A (en) * 2016-11-29 2017-03-22 北京小米移动软件有限公司 Method and apparatus for moving suspension layer interface
CN109814768A (en) * 2018-12-14 2019-05-28 中国平安财产保险股份有限公司 Method, apparatus, computer equipment and the storage medium of the position optimization of suspended frame
CN109710148A (en) * 2018-12-19 2019-05-03 广州文远知行科技有限公司 Image annotation frame selection method and device, computer equipment and storage medium
CN110032296A (en) * 2019-04-10 2019-07-19 网易(杭州)网络有限公司 Determination method, apparatus, terminal and the storage medium of virtual objects in terminal

Also Published As

Publication number Publication date
CN111340586B (en) 2021-06-22

Similar Documents

Publication Publication Date Title
EP3460647B1 (en) Method for controlling a screen, device and storage medium
US20230021260A1 (en) Gesture instruction execution method and apparatus, system, and storage medium
US8675113B2 (en) User interface for a digital camera
US11188125B2 (en) Information processing apparatus, information processing meihod and program
US10133310B2 (en) Mobile terminal and method for controlling the same
US20180232135A1 (en) Method for window displaying on a mobile terminal and mobile terminal
CN110377115B (en) Electronic device and control method of electronic device
EP3661187A1 (en) Photography method and mobile terminal
EP3454197A1 (en) Method, device, and non-transitory computer-readable storage medium for switching pages of applications in a terminal device
US9508322B2 (en) Text box resizing
US9959009B1 (en) Method for displaying information, and terminal equipment
JP6019736B2 (en) Display device and program
EP4310651A1 (en) Screen capture method and apparatus, electronic device, and readable storage medium
WO2016107462A1 (en) Information input method and device, and smart terminal
US20150116368A1 (en) Method and device for adjusting characters of application
CN112817376A (en) Information display method and device, electronic equipment and storage medium
CN111026480A (en) Content display method and electronic equipment
CN111064848A (en) Image display method and electronic device
CN112506597A (en) Software interface color matching method and device, computer equipment and storage medium
CN111340586B (en) Information display method and device, computer equipment and storage medium
CN111124584A (en) Shortcut panel display method, terminal and readable storage medium
CN114519212A (en) Information display method and device
US10057315B2 (en) Communication support system, information processing apparatus, control method, and storage medium that display an output image obtained by superposing a reference image over a captured image
CA2807866C (en) User interface for a digital camera
WO2023241563A1 (en) Data processing method and electronic device

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
CP01 Change in the name or title of a patent holder

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: Tiktok vision (Beijing) Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder