[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN117435109A - Content display method and device and computer readable storage medium - Google Patents

Content display method and device and computer readable storage medium Download PDF

Info

Publication number
CN117435109A
CN117435109A CN202311209444.1A CN202311209444A CN117435109A CN 117435109 A CN117435109 A CN 117435109A CN 202311209444 A CN202311209444 A CN 202311209444A CN 117435109 A CN117435109 A CN 117435109A
Authority
CN
China
Prior art keywords
target
track
content
area
target content
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.)
Pending
Application number
CN202311209444.1A
Other languages
Chinese (zh)
Inventor
万力超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Huasheng Software Technology Co ltd
Original Assignee
Shenzhen Huasheng Software 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 Shenzhen Huasheng Software Technology Co ltd filed Critical Shenzhen Huasheng Software Technology Co ltd
Priority to CN202311209444.1A priority Critical patent/CN117435109A/en
Publication of CN117435109A publication Critical patent/CN117435109A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/04845Interaction 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 for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses a content display method, a content display device and a computer readable storage medium. According to the embodiment of the application, the input track and the input track point corresponding to the input track are obtained; determining a corresponding selection boundary region according to the input track points; determining a target boundary area of target content; when the selection boundary area and the target boundary area overlap and the input track overlaps with the target content, acquiring the target content; a canvas area equal to the area of the selection border area is generated and the target content is displayed on the canvas area. Therefore, when the selection boundary region of the input track is detected to be overlapped with the target boundary region of the target content and the input track is also overlapped with the target content, the corresponding target content is acquired, the target content is displayed on the canvas region with the same area as the boundary region, the accuracy of selecting the target content is improved, and the memory consumption can be reduced.

Description

Content display method and device and computer readable storage medium
Technical Field
The present invention relates to the field of information processing technologies, and in particular, to a content display method, a content display device, and a computer readable storage medium.
Background
With the rapid development of electronic technology, intelligent interactive tablets have been widely used in the fields of teaching, conferences and the like, thereby greatly facilitating the work and study of people. Has become an indispensable product in daily life, work and study of people.
When a user uses an intelligent interactive tablet to conduct teaching or meeting presentations, the user is usually required to manually generate a sliding track to select a certain target content, such as a written track or picture, on a canvas. Therefore, how to accurately select the required target content is a technical problem to be solved currently.
Disclosure of Invention
The embodiment of the application provides a content display method, a content display device and a computer readable storage medium, which can improve the accuracy of target content selection and reduce memory consumption.
In order to solve the technical problems, the embodiment of the application provides the following technical scheme:
a content display method, comprising:
acquiring an input track and an input track point corresponding to the input track;
determining a corresponding selection boundary region according to the input track points;
determining a target boundary area of target content;
acquiring the target content when the selection boundary region and the target boundary region overlap and the input track overlaps with the target content;
and generating a canvas area which is equal to the area of the selection boundary area, and displaying the target content on the canvas area.
A content display apparatus comprising:
the first acquisition unit is used for acquiring an input track and an input track point corresponding to the input track;
a first determining unit, configured to determine a corresponding selection boundary region according to the input track point;
a second determining unit configured to determine a target boundary area of the target content;
a second acquisition unit configured to acquire the target content when the selection boundary region and the target boundary region overlap and the input trajectory overlaps the target content;
and the display unit is used for generating a canvas area which is equal to the area of the selection boundary area and displaying the target content on the canvas area.
In some embodiments, the first determining unit is configured to:
acquiring track coordinate data of each track point to obtain a track coordinate data set;
generating a corresponding first minimum circumscribed rectangle according to the track coordinate data set, wherein the first minimum circumscribed rectangle surrounds each track point;
the first minimum bounding rectangle is determined as a selection boundary region.
In some embodiments, when the target content is a written track, the apparatus further comprises:
the third acquisition unit is used for acquiring a writing boundary area corresponding to the writing track;
the second determining unit is configured to:
and determining the writing boundary area as a target boundary area.
In some embodiments, the second obtaining unit is configured to:
detecting whether the input track and the writing track intersect when the selection boundary area and the target boundary area are detected to overlap;
and when the input track is detected to be intersected with the writing track, acquiring the target content.
In some embodiments, when the target content is an image, the apparatus further comprises:
a fourth acquisition unit configured to acquire an image boundary area covered by the image;
the second determining unit is further configured to:
the image boundary region is determined as a target boundary region.
In some embodiments, the second acquisition unit is further configured to:
detecting whether the input track intersects the image when the selected boundary region and the target boundary region are detected to overlap;
and when the input track is detected to intersect with the image, acquiring the target content.
A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the content display method described above.
A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps in the content display method provided above when the computer program is executed.
A computer program product or computer program comprising computer instructions stored in a storage medium, the computer instructions being read from the storage medium by a processor of a computer device, the computer instructions being executed by the processor such that the computer device performs the steps in the content display method provided above.
According to the embodiment of the application, the input track and the input track point corresponding to the input track are obtained; determining a corresponding selection boundary region according to the input track points; determining a target boundary area of target content; when the selection boundary area and the target boundary area overlap and the input track overlaps with the target content, acquiring the target content; a canvas area equal to the area of the selection border area is generated and the target content is displayed on the canvas area. Therefore, when the selection boundary region of the input track is detected to be overlapped with the target boundary region of the target content and the input track is also overlapped with the target content, the corresponding target content is acquired, the target content is displayed on the canvas region with the same area as the boundary region, the accuracy of selecting the target content is improved, and the memory consumption can be reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of a scenario of a content display system provided in an embodiment of the present application;
fig. 2 is a schematic flow chart of a content display method according to an embodiment of the present application;
fig. 3 is a schematic view of a scenario of a content display method provided in an embodiment of the present application;
fig. 4 is another schematic view of a content display method according to an embodiment of the present application;
fig. 5 is another schematic view of a content display method according to an embodiment of the present application;
fig. 6 is another schematic view of a content display method according to an embodiment of the present application;
fig. 7 is another schematic view of a content display method according to an embodiment of the present application;
fig. 8 is another schematic view of a scenario of a content display method provided in an embodiment of the present application;
fig. 9 is another schematic view of a scenario of a content display method provided in an embodiment of the present application;
fig. 10 is a schematic structural diagram of a content display apparatus provided in an embodiment of the present application;
fig. 11 is a schematic structural diagram of a terminal provided in an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
Embodiments of the present application provide a content display method, apparatus, and computer-readable storage medium.
Referring to fig. 1, fig. 1 is a schematic view of a scene of a content display system according to an embodiment of the present application, including: the terminal A and the server B can be connected through a communication network, wherein the communication network comprises a wireless network and a wired network, and the wireless network comprises one or a combination of a plurality of wireless wide area networks, wireless local area networks, wireless metropolitan area networks and wireless personal networks. The network includes network entities such as routers, gateways, etc., which are not shown. The terminal a may interact with the server B through a communication network, for example, the server B may send the presentation content to a different terminal a for presentation.
The content display system may include a content display device, which may be integrated in a terminal having a storage unit and a microprocessor and having an operation capability, such as a tablet computer, a mobile phone, a notebook computer, and a desktop computer, in fig. 1, the terminal is a terminal a in fig. 1, and various application software required by a user, such as teaching application software, video display application software, and the like, may be installed in the terminal a. The terminal A can be used for acquiring an input track and an input track point corresponding to the input track; determining a corresponding selection boundary region according to the input track point; determining a target boundary area of target content; when the selection boundary area and the target boundary area are overlapped and the input track is overlapped with the target content, acquiring the target content; a canvas area equal to the area of the selection border area is generated and the target content is displayed on the canvas area.
The server B can be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, and can also be a cloud server for providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, basic cloud computing services such as big data and artificial intelligent platforms and the like, and is used for storing and distributing display contents.
It should be noted that, the schematic view of the scenario of the content display system shown in fig. 1 is only an example, and the content display system and scenario described in the embodiments of the present application are for more clearly describing the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application, and those skilled in the art can know that, with the evolution of the content display system and the appearance of a new service scenario, the technical solutions provided in the embodiments of the present application are equally applicable to similar technical problems.
It should be noted that, in some of the processes described in the specification, claims and drawings above, a plurality of steps appearing in a particular order are included, but it should be clearly understood that the steps may be performed out of order or performed in parallel, the step numbers are merely used to distinguish between the different steps, and the numbers themselves do not represent any order of execution. Furthermore, the description of "first," "second," or "object" and the like herein is for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
The following will describe in detail.
The embodiment of the application provides a content display method which can be executed by a terminal.
Referring to fig. 2, fig. 2 is a flow chart of a content display method according to an embodiment of the present application. The content display method comprises the following steps:
in step 101, an input track and an input track point corresponding to the input track are acquired.
With the rapid development of electronic technology, intelligent interactive tablets have been widely used in the fields of teaching, conferences and the like, thereby greatly facilitating the work and study of people. In the actual use process of the intelligent interaction panel, the intelligent interaction panel displays display content, the display content is an image and can be a teaching content or a conference content, a user can generate an input track on the display content by sliding and touching a screen of the intelligent interaction panel so that a corresponding target content can be selected according to the input track, please refer to fig. 3 together, the user can input a touch down point through touching the screen by a finger, a corresponding selection line object can be created on the screen, the color is initialized to be red, the line width is 2f (pixels) and a dotted line effect, the display content is distinguished from a subsequent writing track, the spot of the touch down point is drawn, the first point is saved to the selection point queue sPoints, the sliding is performed, the touch down point spot is generated, the movement point is saved to the selection point queue sPoints, finally the finger is lifted to generate a touch up point, the start point is drawn, the start point is saved to the selection point sPoints, the corresponding input track is generated, the terminal can acquire the input track and the corresponding input track is the input track, and the input coordinate of the input point on the screen can be formed.
In step 102, a corresponding selection boundary region is determined from the input trajectory points.
In this embodiment of the present application, the display content may include a target content, where the target content is an object that needs to be taught or explained, and may be an object or a writing track, where the object is an object that needs to be taught or explained by a user alone, and may be an object such as an automobile, where the writing track is a segment of a handwriting track that needs to be taught or explained by a user alone, and the display content includes a plurality of target contents, and the input track is used to determine a selected target content, so that a selection boundary area selected by the track point needs to be determined according to an input track point, and the selection boundary area may surround the input track, that is, each input track point in the selection boundary area box, and in order to generate a more accurate selection boundary area, an area that surrounds the track point with an area as small as possible is used as the selection boundary area.
In some embodiments, the determining a corresponding selection boundary region from the input trajectory points includes:
(1) Acquiring track coordinate data of each track point to obtain a track coordinate data set;
(2) Generating a corresponding first minimum bounding rectangle according to the track coordinate data set, wherein the first minimum bounding rectangle surrounds each track point;
(3) The first minimum bounding rectangle is determined as the selected bounding region.
The track coordinate data of each track point may be obtained to obtain a track coordinate data set formed by a plurality of track point data, further, a first minimum bounding rectangle surrounding the track coordinate data set may be generated, and the first minimum bounding rectangle may be determined as a selected boundary area, for example, please refer to fig. 4 together, a first minimum bounding rectangle surrounding the track coordinate data set of the input track may be generated, where the first minimum bounding rectangle is the selected boundary area in the graph, and the selected boundary area may be obtained by calculation, for example, calculating the selected boundary area of the input track, defining sRectF for storing boundary values, and performing the boundary area of the mpa track after performing the sRectF.
In step 103, a target boundary region of the target content is determined.
In order to determine the target content selected by the input track, a target boundary area of each target content needs to be acquired, wherein the target boundary area can be the minimum circumscribed rectangle of the target content, i.e. the target boundary area surrounds the target content under the condition of the minimum area.
In some embodiments, the content display method further comprises: acquiring a writing boundary area corresponding to the writing track;
the determining a target boundary region of the target content includes: the written bounding region is determined as the target bounding region.
When the target content is a writing track, a corresponding second minimum bounding rectangle of the writing track may be obtained, that is, a writing boundary area, where the writing boundary area may enclose the writing track, and please continue to refer to fig. 4, a second minimum bounding rectangle enclosing the writing track may be generated, that is, the writing boundary area in the drawing.
In this way, the writing boundary region can be determined as the target boundary region.
In some embodiments, the content display method further comprises: acquiring an image boundary area covered by the image;
the determining a target boundary region of the target content includes: the image boundary region is determined as a target boundary region.
Wherein the determining the target boundary area of the target content includes: the written bounding region is determined as the target bounding region.
When the target content is an image, a corresponding third minimum circumscribed rectangle of the image can be obtained, namely an image boundary area, and the image boundary area can surround the image.
In this way, the image boundary region can be determined as the target boundary region.
In step 104, when the selection boundary region and the target boundary region overlap and the input trajectory overlaps with the target content, the target content is acquired.
In the related art, when a selection boundary region and a target boundary region overlap, a target content in the selection boundary region is regarded as a selected target content, so that a misconvergence easily occurs, for example, as shown in fig. 5, a writing track and an input track do not intersect even though the selection boundary region and the target boundary region overlap, but the related art may take the writing track as a target content, and accordingly, as shown in fig. 6, a misconvergence occurs in which an image and an input track do not intersect even though the selection boundary region and the image boundary region (i.e., the target boundary region) overlap.
In order to solve the above problem, the input track and the target content are overlapped when the selection boundary area and the target boundary area are overlapped, so that the target content can be judged to be the target content selected by the user, wrong selection is avoided, and the accuracy of selecting the target content is improved. In some embodiments, when the input track forms a closed shape and completely covers the target boundary region, the target content in the target boundary region may be directly determined as the target content that we need.
In some embodiments, when the target content is a written track, the obtaining the target content when the selection border region and the target border region overlap and the input track overlaps the target content comprises:
(1) Detecting whether the input track and the writing track are intersected when detecting that the selection boundary area and the target boundary area are overlapped;
(2) And when the input track is detected to be intersected with the writing track, acquiring the target content.
When the selection boundary area and the target boundary area are detected to be overlapped, it is indicated that the writing track in the target boundary area may be target content required by the user, and therefore, it is further required to detect whether the input track and the writing track intersect, and correspondingly, when the input track is detected to intersect with the writing track, it is indicated that the target content is target content required by the user. For example, as shown in fig. 7, when it is detected that the selection boundary region and the target boundary region (i.e., the writing boundary region) overlap, it is necessary to further detect whether the input track intersects the writing track.
In one embodiment, whether the input track intersects with the writing track or not may be determined by acquiring track points sPoints and writing track points mPoint of the input track, so as to acquire two points sPoints [ i ] and sPoints [ i+1] in the sPoints, and calculating whether any two adjacent points mPoint [ j ] and mPoint [ j+1] intersect with the writing track or not; referring to fig. 8, if the two end points C and D of the line segment CD are connected to one end point (a and B, only one of them) of the other line segment, the two end points cross the vector AB, if the result is different, the two end points C and D are respectively on two sides of the straight line AB, if the result is the same, the two end points CD are at one end of AB, and the two end points CD are certainly not intersected. Of course, it is not possible to prove that only C and D are at both ends of AB, but also prove that A and B are at both ends of CD by the same method, and both meet the requirement of proving line segment intersection at the same time, so that whether the input track and the writing track are intersected can be determined by a vector cross method.
With continued reference to fig. 7, it can be seen that the input track and the writing track intersect, so that the writing track can be obtained as target content, and accordingly, if the input track and the writing track do not intersect, it is indicated that the writing track is not the target content required by the user, and the writing track is directly discarded.
In some embodiments, when the target content is an image, the acquiring the target content when the selection border region and the target border region overlap and the input track overlaps the target content comprises:
(1.1) detecting whether the input trajectory intersects the image when it is detected that the selection boundary region and the target boundary region overlap;
(1.2) when it is detected that the input trajectory intersects the image, acquiring the target content.
When the selection boundary area and the target boundary area are detected to be overlapped, it is indicated that the image in the target boundary area may be the target content required by the user, so that it is further required to detect whether the input track and the image intersect, and correspondingly, when the input track is detected to intersect with the image, it is indicated that the target content is the target content required by the user, the image is acquired as the target content, and the situation of false selection is avoided.
In some embodiments, when the target boundary region formed by the image boundary region completely encloses the selected boundary region, the target content in the target boundary region may be directly determined as the target content that we need.
In step 105, a canvas area equal to the area of the selection border area is generated and the target content is displayed on the canvas area.
After determining the target content, the target content needs to be displayed by canvas to conduct teaching or conference discussion, with the development of the intelligent interaction panel, the screen resolution of the intelligent interaction panel is higher and higher, for example, the screen resolution of a 4k screen is higher and higher, in the related technology, a full-screen canvas is directly generated, the full-screen canvas occupies very high memory resources and can cause terminal clamping.
Further, a toolbar may be displayed on the canvas supporting editing functions.
As can be seen from the above, in the embodiment of the present application, the input track and the input track point corresponding to the input track are obtained; determining a corresponding selection boundary region according to the input track points; determining a target boundary area of target content; when the selection boundary area and the target boundary area overlap and the input track overlaps with the target content, acquiring the target content; a canvas area equal to the area of the selection border area is generated and the target content is displayed on the canvas area. Therefore, when the selection boundary region of the input track is detected to be overlapped with the target boundary region of the target content and the input track is also overlapped with the target content, the corresponding target content is acquired, the target content is displayed on the canvas region with the same area as the boundary region, the accuracy of selecting the target content is improved, and the memory consumption can be reduced.
In order to facilitate better implementation of the content display method provided by the embodiment of the application, the embodiment of the application also provides a device based on the content display method. Where the meaning of a noun is the same as in the content display method described above, specific implementation details may be referred to the description in the method embodiment.
Referring to fig. 10, fig. 10 is a schematic structural diagram of a content display device provided in an embodiment of the present application, where the content display device is applied to a terminal and may include a first obtaining unit 301, a first determining unit 302, a second determining unit 303, a second obtaining unit 304, a display unit 305, and the like.
The first acquiring unit 301 is configured to acquire an input track and an input track point corresponding to the input track.
A first determining unit 302 is configured to determine a corresponding selection boundary region according to the input track point.
In some embodiments, the first determining unit 302 is configured to:
acquiring track coordinate data of each track point to obtain a track coordinate data set;
generating a corresponding first minimum bounding rectangle according to the track coordinate data set, wherein the first minimum bounding rectangle surrounds each track point;
the first minimum bounding rectangle is determined as the selected bounding region.
A second determining unit 303 for determining a target boundary area of the target content.
In some embodiments, when the target content is a written track, the apparatus further comprises:
a third obtaining unit (not identified) for obtaining a writing boundary area corresponding to the writing track;
the second determining unit 303 is configured to:
the written bounding region is determined as the target bounding region.
In some embodiments, when the target content is an image, the apparatus further comprises:
a fourth acquisition unit (not identified) for acquiring an image boundary area covered by the image;
the second determining unit 303 is further configured to:
the image boundary region is determined as a target boundary region.
A second acquiring unit 304, configured to acquire the target content when the selection boundary region and the target boundary region overlap and the input track overlaps with the target content.
In some embodiments, the second obtaining unit 304 is configured to:
detecting whether the input track and the writing track are intersected when detecting that the selection boundary area and the target boundary area are overlapped;
and when the input track is detected to be intersected with the writing track, acquiring the target content.
In some embodiments, the second obtaining unit 304 is further configured to:
detecting whether the input track intersects the image when detecting that the selected boundary region and the target boundary region overlap;
when the input track is detected to intersect the image, the target content is acquired.
And a display unit 305 for generating a canvas area equal to the area of the selection boundary area and displaying the target content on the canvas area.
In the foregoing embodiments, the descriptions of the embodiments are focused on, and the portions of a certain embodiment that are not described in detail may be referred to the detailed description of the content display method, which is not repeated herein.
The embodiment of the application further provides a computer device, which may be a terminal, as shown in fig. 11, which shows a schematic structural diagram of the terminal according to the embodiment of the application, specifically:
the computer device may include Radio Frequency (RF) circuitry 401, memory 402 including one or more computer-readable storage media, input unit 403, display unit 404, sensor 405, audio circuitry 406, wireless fidelity (WiFi, wireless Fidelity) module 407, processor 408 including one or more processing cores, and power supply 409. It will be appreciated by those skilled in the art that the terminal structure shown in fig. 11 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
the RF circuit 401 may be used for receiving and transmitting signals during the process of receiving and transmitting information or communication, in particular, after receiving downlink information of a base station, the downlink information is processed by one or more processors 408; in addition, data relating to uplink is transmitted to the base station. Typically, RF circuitry 401 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM, subscriber Identity Module) card, a transceiver, a coupler, a low noise amplifier (LNA, low Noise Amplifier), a duplexer, and the like. In addition, the RF circuitry 401 may also communicate with networks and other devices through wireless communications. The wireless communication may use any communication standard or protocol including, but not limited to, global system for mobile communications (GSM, global System of Mobile communication), general packet radio service (GPRS, general Packet Radio Service), code division multiple access (CDMA, code Division Multiple Access), wideband code division multiple access (WCDMA, wideband Code Division Multiple Access), long term evolution (LTE, long Term Evolution), email, short message service (SMS, short Messaging Service), and the like.
The memory 402 may be used to store software programs and modules that the processor 408 executes to perform various functional applications and content display by executing the software programs and modules stored in the memory 402. The memory 402 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the terminal, etc. In addition, memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide access to the memory 402 by the processor 408 and the input unit 403.
The input unit 403 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, input unit 403 may include a touch-sensitive surface, as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations thereon or thereabout by a user (e.g., operations thereon or thereabout by a user using any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection means according to a predetermined program. Alternatively, the touch-sensitive surface may comprise two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 408, and can receive commands from the processor 408 and execute them. In addition, touch sensitive surfaces may be implemented in a variety of types, such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface, the input unit 403 may also comprise other input devices. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 404 may be used to display information input by a user or information provided to the user and various graphical user interfaces of the terminal, which may be composed of graphics, text, icons, video and any combination thereof. The display unit 404 may include a display panel, which may be optionally configured in the form of a liquid crystal display (LCD, liquid Crystal Display), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay a display panel, and upon detection of a touch operation thereon or thereabout, the touch-sensitive surface is communicated to the processor 408 to determine a type of touch event, and the processor 408 then provides a corresponding visual output at the display panel based on the type of touch event. Although in fig. 11 the touch sensitive surface and the display panel are implemented as two separate components for input and output functions, in some embodiments the touch sensitive surface may be integrated with the display panel to implement the input and output functions.
The terminal may also include at least one sensor 405, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or backlight when the terminal moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the mobile phone is stationary, and can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured in the terminal are not described in detail herein.
Audio circuitry 406, speakers, and a microphone may provide an audio interface between the user and the terminal. The audio circuit 406 may transmit the received electrical signal after audio data conversion to a speaker, where the electrical signal is converted to a sound signal for output; on the other hand, the microphone converts the collected sound signals into electrical signals, which are received by the audio circuit 406 and converted into audio data, which are processed by the audio data output processor 408 for transmission to, for example, another terminal via the RF circuit 401, or which are output to the memory 402 for further processing. Audio circuitry 406 may also include an ear bud jack to provide communication of the peripheral ear bud with the terminal.
The WiFi belongs to a short-distance wireless transmission technology, and the terminal can help the user to send and receive e-mail, browse web pages, access streaming media and the like through the WiFi module 407, so that wireless broadband internet access is provided for the user. Although fig. 11 shows a WiFi module 407, it is understood that it does not belong to the essential constitution of the terminal, and can be omitted entirely as required within the scope of not changing the essence of the invention.
The processor 408 is a control center of the terminal, and connects various parts of the entire handset using various interfaces and lines, and performs various functions of the terminal and processes data by running or executing software programs and/or modules stored in the memory 402, and invoking data stored in the memory 402, thereby performing overall monitoring of the handset. Optionally, the processor 408 may include one or more processing cores; preferably, the processor 408 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 408.
The terminal also includes a power supply 409 (e.g., a battery) for powering the various components, which may be logically connected to the processor 408 through a power management system that performs functions such as managing charge, discharge, and power consumption. The power supply 409 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, etc., which will not be described herein. In this embodiment, the processor 408 in the terminal loads executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 408 executes the application programs stored in the memory 402, so as to implement various functions:
acquiring an input track and an input track point corresponding to the input track;
determining a corresponding selection boundary region according to the input track point;
determining a target boundary area of target content;
when the selection boundary area and the target boundary area are overlapped and the input track is overlapped with the target content, acquiring the target content;
a canvas area equal to the area of the selection border area is generated and the target content is displayed on the canvas area.
In the foregoing embodiments, the descriptions of the embodiments are focused on, and the portions of a certain embodiment that are not described in detail may be referred to the detailed description of the content display method, which is not repeated herein.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a computer readable storage medium having stored therein a plurality of instructions capable of being loaded by a processor to perform steps in any of the content display methods provided by embodiments of the present application. For example, the instructions may perform the steps of:
acquiring an input track and an input track point corresponding to the input track;
determining a corresponding selection boundary region according to the input track point;
determining a target boundary area of target content;
when the selection boundary area and the target boundary area are overlapped and the input track is overlapped with the target content, acquiring the target content;
a canvas area equal to the area of the selection border area is generated and the target content is displayed on the canvas area.
According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the methods provided in the various alternative implementations provided in the above embodiments.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the computer-readable storage medium may comprise: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Because the instructions stored in the computer readable storage medium may execute the steps in any content display method provided in the embodiments of the present application, the beneficial effects that any content display method provided in the embodiments of the present application can be achieved, which are detailed in the previous embodiments and are not described herein.
The foregoing has described in detail the methods, apparatuses and computer readable storage medium for displaying content provided by the embodiments of the present application, and specific examples have been applied herein to illustrate the principles and implementations of the present application, and the description of the foregoing examples is only for aiding in the understanding of the methods and core ideas of the present application; meanwhile, those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, and the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. A content display method, characterized by comprising:
acquiring an input track and an input track point corresponding to the input track;
determining a corresponding selection boundary region according to the input track points;
determining a target boundary area of target content;
acquiring the target content when the selection boundary region and the target boundary region overlap and the input track overlaps with the target content;
and generating a canvas area which is equal to the area of the selection boundary area, and displaying the target content on the canvas area.
2. The content display method according to claim 1, wherein the determining a corresponding selection boundary region according to the input trajectory point includes:
acquiring track coordinate data of each track point to obtain a track coordinate data set;
generating a corresponding first minimum circumscribed rectangle according to the track coordinate data set, wherein the first minimum circumscribed rectangle surrounds each track point;
the first minimum bounding rectangle is determined as a selection boundary region.
3. The content display method according to claim 1 or 2, wherein when the target content is a written track, the method further comprises:
acquiring a writing boundary area corresponding to the writing track;
the determining the target boundary area of the target content comprises the following steps:
and determining the writing boundary area as a target boundary area.
4. The content display method according to claim 3, wherein the acquiring the target content when the selection boundary region and the target boundary region overlap and the input trajectory overlaps with the target content comprises:
detecting whether the input track and the writing track intersect when the selection boundary area and the target boundary area are detected to overlap;
and when the input track is detected to be intersected with the writing track, acquiring the target content.
5. The content display method according to claim 1 or 2, wherein when the target content is an image, the method further comprises:
acquiring an image boundary area covered by the image;
the determining the target boundary area of the target content comprises the following steps:
the image boundary region is determined as a target boundary region.
6. The content display method according to claim 5, wherein the acquiring the target content when the selection boundary region and the target boundary region overlap and the input trajectory overlaps with the target content comprises:
detecting whether the input track intersects the image when the selected boundary region and the target boundary region are detected to overlap;
and when the input track is detected to intersect with the image, acquiring the target content.
7. A content display apparatus, characterized by comprising:
the first acquisition unit is used for acquiring an input track and an input track point corresponding to the input track;
a first determining unit, configured to determine a corresponding selection boundary region according to the input track point;
a second determining unit configured to determine a target boundary area of the target content;
a second acquisition unit configured to acquire the target content when the selection boundary region and the target boundary region overlap and the input trajectory overlaps the target content;
and the display unit is used for generating a canvas area which is equal to the area of the selection boundary area and displaying the target content on the canvas area.
8. The content display apparatus according to claim 7, wherein the first determination unit is configured to:
acquiring track coordinate data of each track point to obtain a track coordinate data set;
generating a corresponding first minimum circumscribed rectangle according to the track coordinate data set, wherein the first minimum circumscribed rectangle surrounds each track point;
the first minimum bounding rectangle is determined as a selection boundary region.
9. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps in the content display method of any one of claims 1 to 6.
10. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor performing the steps in the content display method of any one of claims 1 to 6.
CN202311209444.1A 2023-09-18 2023-09-18 Content display method and device and computer readable storage medium Pending CN117435109A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311209444.1A CN117435109A (en) 2023-09-18 2023-09-18 Content display method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311209444.1A CN117435109A (en) 2023-09-18 2023-09-18 Content display method and device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN117435109A true CN117435109A (en) 2024-01-23

Family

ID=89547011

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311209444.1A Pending CN117435109A (en) 2023-09-18 2023-09-18 Content display method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN117435109A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118170302A (en) * 2024-02-08 2024-06-11 荣耀终端有限公司 Man-machine interaction method, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118170302A (en) * 2024-02-08 2024-06-11 荣耀终端有限公司 Man-machine interaction method, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111984165B (en) Method and device for displaying message and terminal equipment
US9697622B2 (en) Interface adjustment method, apparatus, and terminal
CN108549519B (en) Split screen processing method and device, storage medium and electronic equipment
CN105867751B (en) Operation information processing method and device
CN108205398B (en) Method and device for adapting webpage animation to screen
CN106708538B (en) Interface display method and device
WO2017125027A1 (en) Method and device for displaying information, and computer storage medium
CN105975190B (en) Graphical interface processing method, device and system
CN104915091B (en) A kind of method and apparatus for the prompt information that Shows Status Bar
WO2020007116A1 (en) Split-screen window adjustment method and apparatus, storage medium and electronic device
CN109003194A (en) Comment on sharing method, terminal and storage medium
CN106293486B (en) Interaction method and device between terminals
CN113313804B (en) Image rendering method and device, electronic equipment and storage medium
CN109976629A (en) Image display method, terminal and mobile terminal
CN107957841B (en) Rolling screen capture method and device
CN115390707A (en) Sharing processing method and device, electronic equipment and storage medium
CN112749074B (en) Test case recommending method and device
CN110309003B (en) Information prompting method and mobile terminal
CN107423050A (en) A kind of method and apparatus for penetrating operation
CN113050863A (en) Page switching method and device, storage medium and electronic equipment
CN117435109A (en) Content display method and device and computer readable storage medium
US11327639B2 (en) Split view exiting method, split view exiting device, and electronic device
CN116594616A (en) Component configuration method and device and computer readable storage medium
CN106201220B (en) Display content acquisition method and device
CN110618798A (en) Multi-screen display method, multi-screen device, storage medium and terminal equipment

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