CN114217721A - Image display method, device, equipment and storage medium - Google Patents

Image display method, device, equipment and storage medium Download PDF

Info

Publication number
CN114217721A
CN114217721A CN202111294158.0A CN202111294158A CN114217721A CN 114217721 A CN114217721 A CN 114217721A CN 202111294158 A CN202111294158 A CN 202111294158A CN 114217721 A CN114217721 A CN 114217721A
Authority
CN
China
Prior art keywords
coordinate points
area
image
points
coordinate
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
CN202111294158.0A
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.)
Hunan New Cloudnet Technology Co ltd
Original Assignee
Hunan New Cloudnet 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 Hunan New Cloudnet Technology Co ltd filed Critical Hunan New Cloudnet Technology Co ltd
Priority to CN202111294158.0A priority Critical patent/CN114217721A/en
Publication of CN114217721A publication Critical patent/CN114217721A/en
Pending legal-status Critical Current

Links

Images

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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03543Mice or pucks
    • 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

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)
  • Controls And Circuits For Display Device (AREA)

Abstract

The application discloses an image display method, an image display device, image display equipment and a storage medium, and belongs to the technical field of image processing. The method comprises the following steps: determining an area formed by a moving track of a mouse pointer on an image as a first area; displaying a plurality of control points in a zone boundary line of the first zone; if a moving instruction for any one of the control points is detected, moving the control point; generating a second area according to the latest positions of the control points when one control point is moved, wherein the area boundary line of the second area passes through the control points; and carrying out magnification display or reduction display on the image content in the second area in the image. According to the method and the device, the user can flexibly adjust the required region by moving the plurality of control points of the region boundary line of the first region formed by moving the mouse pointer, so that the flexible adjustment of partial image content which needs to be amplified and displayed or reduced and displayed is realized, and the flexibility and convenience of image display are improved.

Description

Image display method, device, equipment and storage medium
Technical Field
The present application relates to the field of image processing technologies, and in particular, to an image display method, an image display apparatus, an image display device, and a storage medium.
Background
Images are important as carriers for information dissemination in people's daily life. The image can quickly transmit effective information, but when the content in the image is very rich, the image may be unclear, and at this time, the image needs to be enlarged so as to facilitate a user to view a local area in a targeted manner.
In the related art, a local area of an image may be displayed in an enlarged manner. Specifically, after the terminal displays the image, the user may move the mouse pointer to a certain position point in the image, at this time, the terminal defines an area of a fixed size with the position point as an area center point, and then displays the image content in the defined area in an enlarged manner.
However, in the above display method, only one fixed-size area in the image can be enlarged and displayed, and the display flexibility is low.
Disclosure of Invention
The application provides an image display method, an image display device, image display equipment and a storage medium, which can improve the flexibility and convenience of image display. The technical scheme is as follows:
in a first aspect, an image display method is provided, the method comprising:
acquiring a moving track of a mouse pointer on an image;
determining an area formed by the moving track as a first area;
displaying a plurality of control points in a zone boundary line of the first zone;
for any one control point in the plurality of control points, if a moving instruction for the control point is detected, moving the control point;
generating a second area according to the latest positions of the control points when one control point is moved, wherein the boundary line of the second area passes through the control points;
and carrying out magnification display or reduction display on the image content in the second area in the image.
In the present application, an area formed by a movement trajectory of a mouse pointer on an image is taken as a first area, and then a plurality of control points in an area boundary line of the first area are displayed. Then, when a movement command for any one of the plurality of control points is detected, the one control point is moved. And, every time a control point is moved, a second area is generated based on the latest positions of the plurality of control points. Therefore, the user uses the mouse pointer to perform the first operation on the image, namely, the first area is obtained after the track is moved on the image, and then uses the mouse pointer to perform the second operation, namely, a plurality of control points in the area boundary line of the first area are moved to expand or reduce the first area to obtain the second area, so that the user can flexibly adjust the required area. After the second area is obtained, the image content in the second area in the image is displayed in an enlarged or reduced manner, that is, the user can flexibly adjust the partial image content in the image which needs to be displayed in an enlarged or reduced manner by flexibly adjusting the required area, so that the user can freely select the image content to be displayed in an enlarged or reduced manner, thereby greatly improving the flexibility and convenience of image display.
Optionally, the acquiring a moving track of the mouse pointer on the image includes:
acquiring a plurality of first coordinate points which are sequentially passed by the mouse pointer when the mouse pointer moves on the image, and acquiring the acquisition time of each first coordinate point in the plurality of first coordinate points;
judging whether the plurality of first coordinate points have continuity according to the position and the acquisition time of each first coordinate point in the plurality of first coordinate points;
if the plurality of first coordinate points have continuity, determining a time period between the acquisition times of two overlapped first coordinate points in the case that two overlapped first coordinate points exist in the plurality of first coordinate points;
and determining the moving track of the mouse pointer on the image according to all the first coordinate points of the plurality of first coordinate points, wherein the collection time of the first coordinate points is within the time period.
Optionally, the determining whether the plurality of first coordinate points have continuity according to the position and the collecting time of each of the plurality of first coordinate points includes:
determining the position offset of every two adjacent first coordinate points in the plurality of first coordinate points according to the position of each first coordinate point in the plurality of first coordinate points;
determining the acquisition time difference of every two adjacent first coordinate points in the plurality of first coordinate points according to the acquisition time of each first coordinate point in the plurality of first coordinate points;
for every two adjacent first coordinate points in the plurality of first coordinate points, dividing the position offset of the two adjacent first coordinate points by the acquisition time difference of the two adjacent first coordinate points to obtain the moving speed between the two adjacent first coordinate points;
if the moving speed between every two adjacent first coordinate points in the plurality of first coordinate points is greater than or equal to a moving speed threshold value, determining that the plurality of first coordinate points have continuity;
and if the moving speed between two adjacent first coordinate points in the plurality of first coordinate points is less than a moving speed threshold value, determining that the plurality of first coordinate points do not have continuity.
Optionally, the determining a moving track of the mouse pointer on the image according to all the first coordinate points of the plurality of first coordinate points whose collection time is within the time period includes:
taking a midpoint between every two adjacent first coordinate points in all the first coordinate points in the time period of the acquisition time in the plurality of first coordinate points as a second coordinate point to obtain a plurality of second coordinate points;
and performing curve fitting on the plurality of second coordinate points to obtain a closed curve which is used as a moving track of the mouse pointer on the image.
Optionally, said curve fitting the plurality of second coordinate points comprises:
for each adjacent two of the plurality of second coordinate points, plotting a Bezier curve between the adjacent two second coordinate points.
Optionally, before displaying the plurality of control points in the area boundary line of the first area, the method further includes:
setting each of the plurality of second coordinate points as a control point in a zone boundary line of the first zone; alternatively, the first and second electrodes may be,
selecting one second coordinate point from the plurality of second coordinate points at intervals of n as a control point in the area boundary line of the first area, wherein n is a positive integer; alternatively, the first and second electrodes may be,
acquiring the position offset of every two adjacent second coordinate points in the plurality of second coordinate points; determining an average position offset of the plurality of second coordinate points according to the position offset of every two adjacent second coordinate points in the plurality of second coordinate points; if the average position deviation amount of the plurality of second coordinate points is larger than or equal to a position deviation amount threshold value, taking each second coordinate point in the plurality of second coordinate points as a control point in the area boundary line of the first area; and if the average position offset of the second coordinate points is smaller than a position offset threshold, selecting one second coordinate point from every n second coordinate points in the second coordinate points as a control point in the area boundary line of the first area.
Optionally, the performing magnification display or reduction display on the image content in the second region in the image includes:
every time a new second area is generated, carrying out amplification display or reduction display on the image content in the second area in the image; alternatively, the first and second electrodes may be,
and if a display instruction is received, performing amplification display or reduction display on the image content in the second area in the image.
In a second aspect, there is provided an image display apparatus, the apparatus comprising:
the acquisition module is used for acquiring the moving track of the mouse pointer on the image;
a first determining module, configured to determine an area formed by the movement trajectory as a first area;
the first display module is used for displaying a plurality of control points in the area boundary line of the first area;
a moving module, configured to, for any one of the plurality of control points, move the one control point if a moving instruction for the one control point is detected;
the generating module is used for generating a second area according to the latest positions of the control points when one control point moves, and the area boundary line of the second area passes through the control points;
and the second display module is used for carrying out amplification display or reduction display on the image content in the second area in the image.
Optionally, the obtaining module includes:
the acquisition unit is used for acquiring a plurality of first coordinate points which are sequentially passed by the mouse pointer when the mouse pointer moves on the image and acquiring the acquisition time of each first coordinate point in the plurality of first coordinate points;
the judging unit is used for judging whether the plurality of first coordinate points have continuity or not according to the position and the acquisition time of each first coordinate point in the plurality of first coordinate points;
a first determining unit, configured to determine, if the plurality of first coordinate points have continuity, a time period between acquisition times of two overlapping first coordinate points if two overlapping first coordinate points exist in the plurality of first coordinate points;
and the second determining unit is used for determining the moving track of the mouse pointer on the image according to all the first coordinate points of the plurality of first coordinate points, the acquisition time of which is within the time period.
Optionally, the acquisition unit is configured to:
determining the position offset of every two adjacent first coordinate points in the plurality of first coordinate points according to the position of each first coordinate point in the plurality of first coordinate points;
determining the acquisition time difference of every two adjacent first coordinate points in the plurality of first coordinate points according to the acquisition time of each first coordinate point in the plurality of first coordinate points;
for every two adjacent first coordinate points in the plurality of first coordinate points, dividing the position offset of the two adjacent first coordinate points by the acquisition time difference of the two adjacent first coordinate points to obtain the moving speed between the two adjacent first coordinate points;
if the moving speed between every two adjacent first coordinate points in the plurality of first coordinate points is greater than or equal to a moving speed threshold value, determining that the plurality of first coordinate points have continuity;
and if the moving speed between two adjacent first coordinate points in the plurality of first coordinate points is less than a moving speed threshold value, determining that the plurality of first coordinate points do not have continuity.
Optionally, the second determining unit is configured to:
taking a midpoint between every two adjacent first coordinate points in all the first coordinate points in the time period of the acquisition time in the plurality of first coordinate points as a second coordinate point to obtain a plurality of second coordinate points;
and performing curve fitting on the plurality of second coordinate points to obtain a closed curve which is used as a moving track of the mouse pointer on the image.
Optionally, the second determining unit is configured to:
for each adjacent two of the plurality of second coordinate points, plotting a Bezier curve between the adjacent two second coordinate points.
Optionally, the apparatus further comprises:
a second determination module configured to use each of the plurality of second coordinate points as a control point in a region boundary line of the first region; alternatively, the first and second electrodes may be,
a third determining module, configured to select one second coordinate point from every n second coordinate points of the multiple second coordinate points as a control point in a region boundary line of the first region, where n is a positive integer; alternatively, the first and second electrodes may be,
the fourth determining module is used for acquiring the position offset of every two adjacent second coordinate points in the plurality of second coordinate points; determining an average position offset of the plurality of second coordinate points according to the position offset of every two adjacent second coordinate points in the plurality of second coordinate points; if the average position deviation amount of the plurality of second coordinate points is larger than or equal to a position deviation amount threshold value, taking each second coordinate point in the plurality of second coordinate points as a control point in the area boundary line of the first area; and if the average position offset of the second coordinate points is smaller than a position offset threshold, selecting one second coordinate point from every n second coordinate points in the second coordinate points as a control point in the area boundary line of the first area.
Optionally, the second display module is configured to:
every time a new second area is generated, carrying out amplification display or reduction display on the image content in the second area in the image; alternatively, the first and second electrodes may be,
and if a display instruction is received, performing amplification display or reduction display on the image content in the second area in the image.
In a third aspect, a computer device is provided, the computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the computer program, when executed by the processor, implementing the image display method described above.
In a fourth aspect, a computer-readable storage medium is provided, which stores a computer program that, when executed by a processor, implements the image display method described above.
In a fifth aspect, a computer program product comprising instructions is provided, which when run on a computer, causes the computer to perform the steps of the image display method described above.
It is to be understood that, for the beneficial effects of the second aspect, the third aspect, the fourth aspect and the fifth aspect, reference may be made to the description of the first aspect, and details are not described herein again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of an image display method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of a first image display interface provided in an embodiment of the present application;
FIG. 3 is a diagram illustrating a second image display interface provided by an embodiment of the present application;
FIG. 4 is a schematic diagram of a third image display interface provided in an embodiment of the present application;
FIG. 5 is a diagram illustrating a fourth image display interface provided in an embodiment of the present application;
FIG. 6 is a flow chart of another image display method provided by the embodiments of the present application;
fig. 7 is a schematic structural diagram of an image display device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be understood that reference to "a plurality" in this application means two or more. In the description of the present application, "/" means "or" unless otherwise stated, for example, a/B may mean a or B; "and/or" herein is only an association relationship describing an associated object, and means that there may be three relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, for the convenience of clearly describing the technical solutions of the present application, the terms "first", "second", and the like are used to distinguish the same items or similar items having substantially the same functions and actions. Those skilled in the art will appreciate that the terms "first," "second," etc. do not denote any order or quantity, nor do the terms "first," "second," etc. denote any order or importance.
Before explaining the embodiments of the present application in detail, an application scenario of the embodiments of the present application will be described.
The image display method provided by the embodiment of the application is applied to a scene of performing enlarged display or reduced display on image content, a plurality of control points in a moving track of a mouse pointer on an image are determined, a new area is generated according to the latest positions of the control points when one control point is moved, and then the image content in the area is enlarged or reduced for display, so that the flexibility of image display is improved.
The image display method provided in the embodiments of the present application is explained in detail below.
Fig. 1 is a flowchart of an image display method according to an embodiment of the present application. The method is applied to a terminal, and referring to fig. 1, the method includes the following steps.
Step 101: the terminal acquires the moving track of the mouse pointer on the image.
The moving track is a closed track formed by moving a mouse pointer on an image, and the moving track is used for indicating image content needing to be subjected to magnification display or reduction display in the image.
Specifically, the operation of step 101 may be: the terminal collects a plurality of first coordinate points which are sequentially passed by the mouse pointer when the mouse pointer moves on the image, and acquires the collection time of each first coordinate point in the plurality of first coordinate points; judging whether the plurality of first coordinate points have continuity or not according to the position and the acquisition time of each first coordinate point in the plurality of first coordinate points; if the plurality of first coordinate points have continuity, determining a time period between the acquisition times of two overlapped first coordinate points under the condition that two overlapped first coordinate points exist in the plurality of first coordinate points; and determining the moving track of the mouse pointer on the image according to all the first coordinate points of the plurality of first coordinate points, wherein the acquisition time of the first coordinate points is within the time period.
The plurality of first coordinate points are continuously collected moving position coordinate points of the mouse pointer when the mouse pointer moves on the image. The acquisition time of a certain first coordinate point refers to the time when the first coordinate point is acquired in the process of moving the mouse pointer on the image.
If the plurality of first coordinate points have continuity, it is indicated that the movement of the mouse pointer on the image is continuous. In this case, if two first coordinate points are overlapped in the plurality of first coordinate points, it is described that the mouse pointer forms a closed trajectory when moving on the image. Thus, at this time, a time period between the acquisition times of the two coincident first coordinate points may be determined, and all the first coordinate points acquired within the time period may form a closed trajectory, so that the movement trajectory of the mouse pointer on the image may be determined according to all the first coordinate points of the acquisition times within the time period.
Further, if the plurality of first coordinate points have continuity, but there are no two first coordinate points that overlap in the plurality of first coordinate points, which indicates that the mouse pointer does not form a closed track when moving on the image, the terminal clears the data of the plurality of first coordinate points collected this time, and when the mouse pointer moves on the image again, the terminal collects a plurality of first coordinate points that the mouse pointer sequentially passes through when moving on the image again. If the plurality of first coordinate points are not continuous, the movement of the mouse pointer on the image is discontinuous, the terminal clears the data of the plurality of first coordinate points collected at this time, and when the mouse pointer moves on the image again, the plurality of first coordinate points sequentially passed by the mouse pointer when moving on the image are collected again.
Optionally, the operation of the terminal acquiring the plurality of first coordinate points sequentially passed by the mouse pointer when moving on the image may be: and after receiving the acquisition ending instruction, all the acquired coordinate points are taken as first coordinate points.
And the track acquisition instruction is used for indicating to start to acquire the movement track of the mouse pointer. And the acquisition ending instruction is used for indicating the acquisition ending of the movement track of the mouse pointer. The track acquisition instruction and the acquisition ending instruction can be triggered by a user, and the user can trigger the track acquisition instruction and the acquisition ending instruction through operations such as click operation, sliding operation, voice operation, gesture operation and somatosensory operation.
As an example, the user may move the mouse pointer over the image displayed by the terminal, then long press the left mouse button, and move the mouse pointer over the image. After a user presses a left mouse button for a long time, a track acquisition instruction is triggered. And after receiving the track acquisition instruction, the terminal acquires coordinate points passed by the mouse pointer when moving on the image. And then, if the user moves the mouse pointer to a required track on the image, stopping moving the mouse pointer and releasing the left mouse button. After the user releases the left mouse button, the acquisition ending instruction is triggered. And after the terminal receives the acquisition ending instruction, all the acquired coordinate points are used as first coordinate points.
As another example, the terminal displays a start button and an end button, and the user may move the mouse pointer over the start button of the terminal display, then press the left mouse click start button, and then move the mouse pointer over the image. After a user presses a left mouse button to click a start button, a track acquisition instruction is triggered. And after receiving the track acquisition instruction, the terminal acquires coordinate points passed by the mouse pointer when moving on the image. And then, if the user moves the mouse pointer to a required track on the image, stopping moving the mouse pointer on the image, moving the mouse pointer to an end button displayed on the terminal, and pressing a left mouse button to click the end button. After pressing the left mouse button and clicking the end button, the user triggers an end acquisition instruction. And after the terminal receives the acquisition ending instruction, all the acquired coordinate points are used as first coordinate points.
For example, the terminal displays an image display interface 201 shown in fig. 2, and an image 202, a start button 203, and an end button 204 are displayed on the image display interface 201. As shown in a diagram in fig. 2, if a user needs to perform an enlargement display or a reduction display on a partial image content in the image 202, the user moves a mouse pointer to the start button 203, then presses a left mouse button to click the start button 203, triggers a track capture instruction, and then moves the mouse pointer on the image 202. After receiving the track collection instruction, the terminal collects coordinate points through which the mouse pointer passes when moving on the image 202. Then, after the user moves the mouse pointer out of the desired trajectory on the image 202, the user moves the mouse pointer to the end button 204, presses the left mouse button to click the end button 204, and triggers an end acquisition instruction. As shown in a diagram b in fig. 2, after receiving the collection ending instruction, the terminal collects all coordinate points P1、P2、P3、…、P7、P8All as first coordinate points.
The operation of the terminal determining whether the plurality of first coordinate points have continuity according to the position and the collecting time of each of the plurality of first coordinate points may be: the terminal determines the position offset of every two adjacent first coordinate points in the plurality of first coordinate points according to the position of each first coordinate point in the plurality of first coordinate points; determining the acquisition time difference of every two adjacent first coordinate points in the plurality of first coordinate points according to the acquisition time of each first coordinate point in the plurality of first coordinate points; for every two adjacent first coordinate points in the plurality of first coordinate points, dividing the position offset of the two adjacent first coordinate points by the acquisition time difference of the two adjacent first coordinate points to obtain the moving speed between the two adjacent first coordinate points; if the moving speed between every two adjacent first coordinate points in the plurality of first coordinate points is greater than or equal to the moving speed threshold value, determining that the plurality of first coordinate points have continuity; and if the moving speed between two adjacent first coordinate points in the plurality of first coordinate points is less than the moving speed threshold value, determining that the plurality of first coordinate points do not have continuity.
The position offset amount of two adjacent first coordinate points is used to represent the distance between the two first coordinate points. For example, the position offset amount of two adjacent first coordinate points may be represented by a formula
Figure BDA0003336017290000101
Determining, wherein z is the position offset of the two first coordinate points, (x)1,y1) For the position coordinate of one of the two first coordinate points, (x)2,y2) Is the position coordinate of the other of the two first coordinate points.
The moving speed threshold may be set in advance, and the moving speed threshold may be set to be larger. If the moving speed between two adjacent first coordinate points is greater than or equal to the moving speed threshold, it indicates that the speed of the mouse pointer moving between the two first coordinate points is fast, i.e. the movement of the mouse pointer between the two first coordinate points is continuous with a high probability. If the moving speed between two adjacent first coordinate points is less than the moving speed threshold, it indicates that the speed of the mouse pointer moving between the two first coordinate points is slow, i.e. the movement of the mouse pointer between the two first coordinate points is likely to be discontinuous.
In this case, if the moving speed between every two adjacent first coordinate points in the plurality of first coordinate points is greater than or equal to the moving speed threshold, it is indicated that the mouse pointer moves faster between every two adjacent first coordinate points in the plurality of first coordinate points, and thus it can be determined that the plurality of first coordinate points have continuity. If the moving speed between two adjacent first coordinate points in the plurality of first coordinate points is less than the moving speed threshold, which indicates that the mouse pointer moves slowly on the image, it indicates that the mouse pointer stops moving on the image, and thus it can be determined that the plurality of first coordinate points do not have continuity.
For example, referring to the diagram b in fig. 2, a plurality of first coordinate points P sequentially passed by the mouse pointer when moving on the image are collected1、P2、P3、…、P7、P8The position coordinates of the first coordinate points are P1(5,4),P2(6,5),P3(8,7),P4(9,6),P5(9,2),P6(7,4),P7(6,2),P8(6, 5), and, P1(1, 2) acquisition time 0.1s (sec), P2The collection time of (3, 4) is 0.6s, P3(5, 6) acquisition time 1.2s, P4The collection time of (11, 6) is 1.7s, P5The collection time of (9, 2) is 2.5s, P6The collection time of (7, 4) is 3s, P7The collection time of (6, 2) is 3.6s, P8The acquisition time of (6, 5) was 4.2 s. Terminal according to P1、P2、P3、…、P7、P8And the acquisition time, determining P1,P2By a positional offset of
Figure BDA0003336017290000102
(centimeter) and the acquisition time difference is 0.5s, and the position P of the mouse pointer is obtained according to the acquisition time difference1,P2The moving speed is about 2.83 cm/s; determining P2,P3By a positional offset of
Figure BDA0003336017290000103
The acquisition time difference is 0.6s, and the position P of the mouse pointer is obtained according to the acquisition time difference2,P3The moving speed is about 4.71 cm/s; determining P3,P4By a positional offset of
Figure BDA0003336017290000104
The acquisition time difference is 0.5s, and the position P of the mouse pointer is obtained according to the acquisition time difference3,P4The moving speed is about 2.83 cm/s; determining P4,P5The amount of positional deviation therebetween is 4cm, the acquisition time difference is 0.8s, and the position P of the mouse pointer is obtained according to the acquisition time difference4,P5The moving speed is about 5 cm/s; determining P5,P6By a positional offset of
Figure BDA0003336017290000111
The acquisition time difference is 0.5s, and the position P of the mouse pointer is obtained according to the acquisition time difference5,P6The moving speed is about 5.65 cm/s; determining P6,P7By a positional offset of
Figure BDA0003336017290000112
The acquisition time difference is 0.6s, and the position P of the mouse pointer is obtained according to the acquisition time difference6,P7The moving speed is about 3.72 cm/s; determining P7,P8The position offset between the two mouse points is 3cm, the acquisition time difference is 0.6s, and the position offset of the mouse pointer at P is obtained7,P8The moving speed in between is about 5 cm/s. If the moving speed threshold is 1cm/s, then P is the threshold1、P2、P3、…、P7、P8The moving speed between every two adjacent first coordinate points is greater than the moving speed threshold value, so the terminal can determine P1、P2、P3、…、P7、P8Has continuity. Then due to P2(6, 5) and P8(6, 5) coincide, so the terminal determines P2(6, 5) and P8The time period between the acquisition times of (6, 5) is 0.6s to 4.2 s. Then, the terminal acquires P within 0.6 s-4.2 s according to the acquisition time2、P3、P4、P5、P6、P7、P8And determining the moving track of the mouse pointer on the image.
The operation of determining, by the terminal, the moving trajectory of the mouse pointer on the image according to all the first coordinate points of the plurality of first coordinate points whose collection time is within the time period may be: the terminal takes the midpoint between every two adjacent first coordinate points in all the first coordinate points with the collection time in the time period in the plurality of first coordinate points as a second coordinate point to obtain a plurality of second coordinate points; and performing curve fitting on the plurality of second coordinate points to obtain a closed curve which is used as a moving track of the mouse pointer on the image.
The plurality of second coordinate points are coordinate points constituting a movement locus of the mouse pointer on the image. And selecting a middle point between every two adjacent first coordinate points, namely selecting a plurality of second coordinate points for curve fitting, so that the smoothness of the obtained closed curve can be improved, and the obtained closed curve is prevented from being zigzag.
Curve fitting the second plurality of coordinate points means connecting the second plurality of coordinate points with a continuous curve to obtain a closed curve.
There are various ways for the terminal to perform curve fitting on the plurality of second coordinate points. In one possible approach, for each adjacent two of the plurality of second coordinate points, the terminal may draw a bezier curve between the adjacent two second coordinate points. After the terminal draws the Bezier curve between every two adjacent second coordinate points in the plurality of second coordinate points, a closed curve formed by the Bezier curves between every two adjacent second coordinate points in the plurality of second coordinate points can be obtained, and the closed curve can be used as a moving track of the mouse pointer on the image.
For example, an image is displayed on the image display interface shown in fig. 3. As shown in a diagram of fig. 3, the terminal is based on the first coordinate point P2、P3、P4、P5、P6、P7、P8The movement track of the mouse pointer on the image is determined. First, the terminal determines P2、P3、P4、P5、P6、P7、P8The middle point between every two adjacent first coordinate points is Q1、Q2、…、Q6Is mixing Q with1、Q2、…、Q6All as second coordinate points. Thereafter, as shown in the b diagram in fig. 3, the terminal draws Q1、Q2、…、Q6A closed curve can be obtained between every two adjacent second coordinate pointsAnd taking the resultant curve as the moving track of the mouse pointer on the image.
Step 102: the terminal determines an area formed by the movement track as a first area.
Optionally, after the terminal determines the first region, the terminal may further perform an enlargement display or a reduction display on image content in the first region in the image.
In this case, after the terminal enlarges or reduces the image content in the first area in the image, the image content may be displayed at a specific position of an image display interface for displaying the image, such as the upper left corner, the upper right corner, and the like of the image display interface, or may be displayed in a floating manner at a specific position of the image, such as the upper left corner, the upper right corner, and the like of the image.
Further, after the terminal determines the area formed by the movement trajectory as the first area, a plurality of control points in the area boundary line of the first area may also be determined according to the plurality of second coordinate points, and specifically, the following three possible manners may be included.
In a first possible manner, the terminal takes each of the plurality of second coordinate points as a control point in the area boundary line of the first area.
In this way, a plurality of control points in the zone boundary line of the first zone can be determined simply and quickly.
For example, referring to b diagram in fig. 3, the terminal determines a plurality of second coordinate points as Q1、Q2、…、Q6Then Q will be1、Q2、…、Q6Each as a control point in the zone boundary line of the first zone.
In a second possible manner, the terminal selects one second coordinate point from the plurality of second coordinate points every n second coordinate points as a control point in the area boundary line of the first area.
Therefore, a proper amount of second coordinate points can be selected to serve as a plurality of control points in the area boundary line of the first area, so that excessive control points are prevented from being displayed subsequently, and subsequent user operation is facilitated.
n is a positive integer, and n may be set in advance. For example, if n is 2, the terminal may select one second coordinate point from the plurality of second coordinate points every 2 second coordinate points as the control point in the area boundary line of the first area.
In a third possible mode, the terminal acquires the position offset of every two adjacent second coordinate points in the plurality of second coordinate points; determining an average position offset of the plurality of second coordinate points according to the position offset of every two adjacent second coordinate points in the plurality of second coordinate points; if the average position deviation amount of the plurality of second coordinate points is larger than or equal to the position deviation amount threshold value, taking each second coordinate point in the plurality of second coordinate points as a control point in the area boundary line of the first area; and if the average position offset of the plurality of second coordinate points is smaller than the position offset threshold, selecting one second coordinate point from the plurality of second coordinate points every n second coordinate points as a control point in the area boundary line of the first area, wherein n is a positive integer.
The position deviation amount threshold may be set in advance, and the position deviation amount threshold may be set to be larger. If the average amount of positional deviation of the plurality of second coordinate points is greater than or equal to the amount of positional deviation threshold, which indicates that the plurality of second coordinate points are located far apart, each of the plurality of second coordinate points can be directly used as a control point in the area boundary line of the first area, and the plurality of control points in the area boundary line of the first area can be obtained easily and quickly. If the average position offset of the second coordinate points is smaller than the position offset threshold, it indicates that the second coordinate points are close in position, and then one second coordinate point may be selected from every n second coordinate points of the second coordinate points as a control point in the area boundary line of the first area, so as to select an appropriate amount of second coordinate points as a plurality of control points in the area boundary line of the first area, thereby ensuring that the control points are spaced by a certain distance, and facilitating subsequent user operation.
The operation of the terminal to acquire the position offset of every two adjacent second coordinate points in the plurality of second coordinate points is similar to the operation of the terminal to acquire the position offset of two adjacent first coordinate points in the step 101, and this is not repeated again in this embodiment of the present application.
When the terminal determines the average position offset of the second coordinate points according to the position offsets of every two adjacent second coordinate points in the second coordinate points, the terminal may add the position offsets of every two adjacent second coordinate points in the second coordinate points and then divide the added position offsets by the number of the second coordinate points to obtain the average position offset of the second coordinate points.
Step 103: the terminal displays a plurality of control points in a zone boundary line of the first zone.
After determining a plurality of control points in the area boundary line of the first area, the terminal displays the plurality of control points on the area boundary line of the first area, and the plurality of control points can be controlled to move.
Step 104: for any one of the control points, if the terminal detects a movement instruction for the control point, the control point is moved.
The move instruction is used to instruct to move this control point. The movement instruction may be triggered by a user. For example, the user may move the mouse pointer to the location of the control point and then press the left mouse button to select the control point. Then, the user can press the left mouse button for a long time to trigger a movement instruction for the control point. In this case, the user can control the terminal to synchronously move the control point when moving the mouse pointer.
Step 105: the terminal generates a second area according to the latest positions of the plurality of control points every time one control point is moved.
The zone boundary line of the second zone passes through the plurality of control points. That is, the second region is a region formed by a closed curve passing through the plurality of control points.
In the embodiment of the application, after the terminal determines the first region according to the moving track of the mouse pointer on the image, the user can adjust the first region by moving a plurality of control points in the region boundary line of the first region, and the second region is obtained after adjustment. If any control point in the area boundary line of the first area is moved to be far away from the center of the first area, the first area is enlarged; when any one of the control points in the area boundary lines of the first area is moved closer to the center of the first area, the first area is reduced. That is, the user can obtain the first region after performing the first operation on the image using the mouse pointer, i.e., moving the track on the image. Then, the user performs a second operation using the mouse pointer, i.e., moves a plurality of control points in the area boundary line of the first area, so as to expand or contract the first area to obtain a second area. Therefore, the user can flexibly adjust the required area, and the user experience is improved.
Specifically, the operation of step 105 can be implemented in two possible ways as follows.
In a first possible manner, each time a control point is moved, the terminal redraws the newly moved control point and the bezier curve between two control points adjacent to the newly moved control point, connects the redrawn two bezier curves with the bezier curves between the other control points except the three control points in the boundary line of the area of the first area to obtain a new closed curve, and takes the area formed by the new closed curve as the second area.
Therefore, the terminal can obtain the second area only by drawing the Bezier curve between the latest moving control point and the two adjacent control points, so that the processing resource of the terminal is saved, and the terminal can quickly generate the second area.
In a second possible manner, each time a control point is moved, the terminal redraws the bezier curve between every two adjacent control points in the plurality of control points to obtain a new closed curve, and an area formed by the new closed curve is used as a second area.
Therefore, the terminal directly draws the Bezier curve among the control points to obtain the second area, so that the second area can be generated simply and conveniently.
For example, referring to the image display interface shown in FIG. 4, of the first areaThe plurality of control points in the zone boundary line include Q1、Q2、Q3、Q4、Q5、Q6. User moves mouse pointer to Q1Pressing the left mouse button to select Q1Then long-pressing the left button of the mouse and moving the mouse pointer to drag Q1Is mixing Q with1Dragging to a new position, Q after dragging1Is recorded as Q'1. Terminal drawing Q'1、Q6Bessel curve and Q 'between'1、Q2B bezier curves in between, and then Q 'is divided by the area boundary line of the redrawn two bezier curves with the first area'1、Q2、Q6Bessel curves connecting other control points than Q'1、Q6Bessel curve, Q 'between'1、Q2Bessel curve in between, and Q2、Q3Bezier curve, Q between3、Q4Bezier curve, Q between4、Q5Bezier curve, Q between5、Q6The Bezier curves are connected to obtain a new closed curve, and the new closed curve passes through Q'1、Q2、Q3、Q4、Q5、Q6Then, the area formed by the new closed curve is used as the second area.
Step 106: and the terminal performs amplification display or reduction display on the image content in the second area in the image.
The user uses the mouse pointer to perform a first operation on the image, i.e. the first area can be obtained after moving the track on the image. Then, the user performs a second operation using the mouse pointer, i.e., moves a plurality of control points in the area boundary line of the first area, so as to expand or contract the first area to obtain a second area. Thus, the user can flexibly adjust the required area. And after the second area is obtained, the terminal can perform amplification display or reduction display on the image content in the second area in the image, that is, the user can flexibly adjust the partial image content in the image which needs amplification display or reduction display by flexibly adjusting the required area, so that the flexibility and convenience of image display are greatly improved, and the user experience is improved.
In this case, after the terminal enlarges or reduces the image content in the second area in the image, the image content may be displayed at a specific position of an image display interface for displaying the image, such as the upper left corner, the upper right corner, and the like of the image display interface, or may be displayed in a floating manner at a specific position of the image, such as the upper left corner, the upper right corner, and the like of the image.
Specifically, the operation of step 106 can be implemented in two possible ways as follows.
In a first possible manner, each time a new second region is generated by the terminal, the image content in the second region in the image is displayed in an enlarged or reduced manner.
Therefore, after the user moves the control point once, the user can see the amplification display effect or the reduction display effect of the newly generated image content in the second area, and accordingly whether the image content is required by the user can be accurately determined, and user experience is improved.
In a second possible manner, if the terminal receives the display instruction, the terminal performs an enlargement display or a reduction display on the image content in the second area in the image.
The display instruction is used for instructing to enlarge or reduce the image content in the second area. The display instruction may be triggered by a user, and the user may trigger the display instruction through operations such as a click operation, a slide operation, a voice operation, a gesture operation, and a motion sensing operation.
Therefore, after the user finishes moving the control point, the display instruction is triggered to perform amplification display or reduction display on the image content in the second area, and the processing resource of the terminal can be saved.
For example, the terminal displays an image display interface 501 shown in fig. 5, and an image 502 and a start button 5 are displayed on the image display interface 50103. An end button 504 and a display button 505. Referring to FIG. 5, the second region is composed of'1、Q2、Q′3、Q4、Q5、Q6The closed curve of (1). If it is necessary to display the image content in the second area in an enlarged or reduced manner, the user moves the mouse pointer to the display button 505. Pressing the left mouse button to click the display button 505 triggers a display command. After receiving the display instruction, the terminal enlarges the image content in the second area in the image 502 and displays the enlarged image content at the lower right of the image 502.
For ease of understanding, the above-described image display method is exemplified below with reference to fig. 6. Referring to fig. 6, the method includes the following steps (1) to (8).
(1) The image is opened.
(2) The user moves the mouse pointer on the image, the terminal collects a plurality of first coordinate points which are sequentially passed by the mouse pointer when the mouse pointer moves on the image, and the collection time of the first coordinate points is obtained.
(3) The terminal judges whether the plurality of first coordinate points have continuity.
Specifically, if the plurality of first coordinate points have continuity, which indicates that the movement of the mouse pointer on the image is continuous, the terminal determines whether there are two first coordinate points that coincide with each other in the plurality of first coordinate points, that is, continues to perform the following step (4). If the plurality of first coordinate points do not have continuity, which indicates that the movement of the mouse pointer on the image is discontinuous, the terminal clears the data of the plurality of collected first coordinate points, the user moves the mouse pointer again, and the terminal re-collects the plurality of first coordinate points which are sequentially passed by the mouse pointer when moving on the image, that is, the terminal returns to execute the step (2).
(4) And the terminal judges whether two coincident first coordinate points exist or not.
Specifically, if two coincident first coordinate points exist in the plurality of first coordinate points, which indicates that the mouse pointer forms a closed track during the movement process, determining a time period between the acquisition times of the two coincident first coordinate points, and reserving the plurality of first coordinate points acquired within the time period, namely, continuing to execute the following step (5). If two coincident first coordinate points do not exist in the plurality of first coordinate points, it is indicated that the mouse pointer does not form a closed track in the moving process, the collected data of the plurality of first coordinate points are cleared, the user moves the mouse pointer again, and the terminal collects a plurality of first coordinate points which are passed by the mouse pointer in sequence when the mouse pointer moves on the image again, that is, the terminal returns to execute the step (2).
(5) The terminal determines a plurality of first coordinate points acquired in a time period between acquisition times of the two coincident first coordinate points.
(6) And the terminal draws a Bezier curve and determines a first area.
Specifically, the terminal determines a plurality of second coordinate points, each of which is a midpoint of every adjacent two of the plurality of first coordinate points acquired in a time period between acquisition times of the two coincident first coordinate points, from the plurality of first coordinate points acquired in the time period between acquisition times of the two coincident first coordinate points. And the terminal obtains a closed curve as a moving track of the mouse pointer on the image by drawing a Bezier curve between every two adjacent second coordinate points in the plurality of second coordinate points, takes an area formed by the moving track as a first area, and simultaneously determines and displays a plurality of control points in an area boundary line of the first area.
(7) And performing secondary operation on the first area by the user to generate a second area.
Specifically, when the user wants to adjust the first area, the terminal may move a plurality of control points in the area boundary line of the first area, and generate the second area according to the latest positions of the plurality of control points every time one control point is moved.
(8) And the terminal performs amplification display or reduction display on the image content in the second area in the image.
In the embodiment of the present application, the terminal takes an area formed by a movement trajectory of a mouse pointer on an image as a first area, and then displays a plurality of control points in an area boundary line of the first area. Then, for any one of the plurality of control points, if the terminal detects a movement instruction for the one control point, the one control point is moved. And, every time one control point is moved, the terminal generates a second area according to the latest positions of the plurality of control points. Therefore, the user uses the mouse pointer to perform the first operation on the image, namely, the first area is obtained after the track is moved on the image, and then uses the mouse pointer to perform the second operation, namely, a plurality of control points in the area boundary line of the first area are moved to expand or reduce the first area to obtain the second area, so that the user can flexibly adjust the required area. After the second area is obtained, the terminal performs enlargement display or reduction display on the image content in the second area in the image, that is, the user can flexibly adjust the partial image content which needs enlargement display or reduction display in the image by flexibly adjusting the required area, so that the user can randomly select the image content which needs enlargement display or reduction display, thereby greatly improving the flexibility and convenience of image display.
The image display device provided in the embodiments of the present application is explained in detail below.
Fig. 7 is a schematic structural diagram of an image display device according to an embodiment of the present application. The apparatus may be implemented as part or all of a computer device, which may be the computer device shown in fig. 8 below, by software, hardware, or a combination of both. Referring to fig. 7, the apparatus includes: the device comprises an acquisition module 701, a first determination module 702, a first display module 703, a moving module 704, a generation module 705 and a second display module 706.
An obtaining module 701, configured to obtain a moving track of a mouse pointer on an image;
a first determining module 702, configured to determine an area formed by the movement track as a first area;
a first display module 703 for displaying a plurality of control points in a zone boundary line of the first zone;
a moving module 704, configured to, for any one of the plurality of control points, move the control point if a moving instruction for the control point is detected;
a generating module 705, configured to generate a second area according to the latest positions of the plurality of control points every time one control point is moved, where an area boundary line of the second area passes through the plurality of control points;
and a second display module 706, configured to perform enlargement display or reduction display on image content in the second area in the image.
Optionally, the obtaining module 701 includes:
the acquisition unit is used for acquiring a plurality of first coordinate points which are sequentially passed by the mouse pointer when the mouse pointer moves on the image and acquiring the acquisition time of each first coordinate point in the plurality of first coordinate points;
the judging unit is used for judging whether the plurality of first coordinate points have continuity or not according to the position and the acquisition time of each first coordinate point in the plurality of first coordinate points;
a first determining unit, configured to determine, if the plurality of first coordinate points have continuity, a time period between acquisition times of two overlapping first coordinate points if there are the two overlapping first coordinate points in the plurality of first coordinate points;
and the second determining unit is used for determining the moving track of the mouse pointer on the image according to all the first coordinate points of the plurality of first coordinate points, the acquisition time of which is within the time period.
Optionally, the acquisition unit is configured to:
determining the position offset of every two adjacent first coordinate points in the plurality of first coordinate points according to the position of each first coordinate point in the plurality of first coordinate points;
determining the acquisition time difference of every two adjacent first coordinate points in the plurality of first coordinate points according to the acquisition time of each first coordinate point in the plurality of first coordinate points;
for every two adjacent first coordinate points in the plurality of first coordinate points, dividing the position offset of the two adjacent first coordinate points by the acquisition time difference of the two adjacent first coordinate points to obtain the moving speed between the two adjacent first coordinate points;
if the moving speed between every two adjacent first coordinate points in the plurality of first coordinate points is greater than or equal to the moving speed threshold value, determining that the plurality of first coordinate points have continuity;
and if the moving speed between two adjacent first coordinate points in the plurality of first coordinate points is less than the moving speed threshold value, determining that the plurality of first coordinate points do not have continuity.
Optionally, the second determining unit is configured to:
taking a midpoint between every two adjacent first coordinate points in all the first coordinate points of the plurality of first coordinate points, which have the collection time in the time period, as a second coordinate point to obtain a plurality of second coordinate points;
and performing curve fitting on the plurality of second coordinate points to obtain a closed curve which is used as a moving track of the mouse pointer on the image.
Optionally, the second determining unit is configured to:
for each adjacent two of the plurality of second coordinate points, a Bezier curve between the adjacent two second coordinate points is drawn.
Optionally, the apparatus further comprises:
a second determination module configured to use each of the plurality of second coordinate points as a control point in a region boundary line of the first region; alternatively, the first and second electrodes may be,
the third determining module is used for selecting one second coordinate point from the plurality of second coordinate points at intervals of n second coordinate points as a control point in the area boundary line of the first area, wherein n is a positive integer; alternatively, the first and second electrodes may be,
the fourth determining module is used for acquiring the position offset of every two adjacent second coordinate points in the plurality of second coordinate points; determining an average position offset of the plurality of second coordinate points according to the position offset of every two adjacent second coordinate points in the plurality of second coordinate points; if the average position deviation amount of the plurality of second coordinate points is larger than or equal to the position deviation amount threshold value, taking each second coordinate point in the plurality of second coordinate points as a control point in the area boundary line of the first area; and if the average position offset of the plurality of second coordinate points is smaller than the position offset threshold, selecting one second coordinate point from every n second coordinate points in the plurality of second coordinate points as a control point in the area boundary line of the first area.
Optionally, the second display module 706 is configured to:
when a new second area is generated, the image content in the second area in the image is displayed in an enlarged mode or in a reduced mode; alternatively, the first and second electrodes may be,
and if the display instruction is received, performing amplification display or reduction display on the image content in the second area in the image.
In the embodiment of the present application, an area formed by a movement trajectory of a mouse pointer on an image is taken as a first area, and then a plurality of control points in an area boundary line of the first area are displayed. Then, when a movement command for any one of the plurality of control points is detected, the one control point is moved. And, every time a control point is moved, a second area is generated based on the latest positions of the plurality of control points. Therefore, the user uses the mouse pointer to perform the first operation on the image, namely, the first area is obtained after the track is moved on the image, and then uses the mouse pointer to perform the second operation, namely, a plurality of control points in the area boundary line of the first area are moved to expand or reduce the first area to obtain the second area, so that the user can flexibly adjust the required area. After the second area is obtained, the image content in the second area in the image is displayed in an enlarged or reduced manner, that is, the user can flexibly adjust the partial image content in the image which needs to be displayed in an enlarged or reduced manner by flexibly adjusting the required area, so that the user can freely select the image content to be displayed in an enlarged or reduced manner, thereby greatly improving the flexibility and convenience of image display.
It should be noted that: in the image display device provided in the above embodiment, when displaying an image, only the division of the above functional modules is illustrated, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions.
Each functional unit and module in the above embodiments may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used to limit the protection scope of the embodiments of the present application.
The image display device and the image display method provided by the above embodiments belong to the same concept, and the specific working processes and technical effects brought by the units and modules in the above embodiments can be referred to the method embodiments, and are not described herein again.
The computer device provided by the embodiments of the present application is explained in detail below.
Fig. 8 is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown in fig. 8, the computer device 8 includes: a processor 80, a memory 81 and a computer program 82 stored in the memory 81 and operable on the processor 80, the steps in the image display method in the above embodiments being implemented when the processor 80 executes the computer program 82.
The computer device 8 may be a general purpose computer device or a special purpose computer device. In a specific implementation, the computer device 8 may be a desktop computer, a laptop computer, a palmtop computer, a mobile phone, a tablet computer, a wireless terminal device, and the like, and the embodiment of the present application does not limit the type of the computer device 8. Those skilled in the art will appreciate that fig. 8 is merely an example of the computer device 8 and does not constitute a limitation of the computer device 8, and may include more or less components than those shown, or combine certain components, or different components, such as input output devices, network access devices, etc.
The Processor 80 may be a Central Processing Unit (CPU), and the Processor 80 may also be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or any conventional processor.
The storage 81 may in some embodiments be an internal storage unit of the computer device 8, such as a hard disk or a memory of the computer device 8. The memory 81 may also be an external storage device of the computer device 8 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the computer device 8. Further, the memory 81 may also include both an internal storage unit of the computer device 8 and an external storage device. The memory 81 is used for storing an operating system, an application program, a Boot Loader (Boot Loader), data, and other programs. The memory 81 may also be used to temporarily store data that has been output or is to be output.
An embodiment of the present application further provides a computer device, where the computer device includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, the processor implementing the steps of any of the various method embodiments described above when executing the computer program.
The embodiments of the present application also provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
The embodiments of the present application provide a computer program product, which when run on a computer causes the computer to perform the steps of the above-described method embodiments.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the above method embodiments may be implemented by a computer program, which may be stored in a computer readable storage medium and used by a processor to implement the steps of the above method embodiments. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or apparatus capable of carrying computer program code to a photographing apparatus/terminal device, a recording medium, computer Memory, ROM (Read-Only Memory), RAM (Random Access Memory), CD-ROM (Compact Disc Read-Only Memory), magnetic tape, floppy disk, optical data storage device, etc. The computer-readable storage medium referred to herein may be a non-volatile storage medium, in other words, a non-transitory storage medium.
It should be understood that all or part of the steps for implementing the above embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The computer instructions may be stored in the computer-readable storage medium described above.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/computer device and method may be implemented in other ways. For example, the above-described apparatus/computer device embodiments are merely illustrative, and for example, a module or a unit may be divided into only one logical function, and may be implemented in other ways, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
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.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. An image display method, characterized in that the method comprises:
acquiring a moving track of a mouse pointer on an image;
determining an area formed by the moving track as a first area;
displaying a plurality of control points in a zone boundary line of the first zone;
for any one control point in the plurality of control points, if a moving instruction for the control point is detected, moving the control point;
generating a second area according to the latest positions of the control points when one control point is moved, wherein the boundary line of the second area passes through the control points;
and carrying out magnification display or reduction display on the image content in the second area in the image.
2. The method of claim 1, wherein the obtaining of the movement trajectory of the mouse pointer on the image comprises:
acquiring a plurality of first coordinate points which are sequentially passed by the mouse pointer when the mouse pointer moves on the image, and acquiring the acquisition time of each first coordinate point in the plurality of first coordinate points;
judging whether the plurality of first coordinate points have continuity according to the position and the acquisition time of each first coordinate point in the plurality of first coordinate points;
if the plurality of first coordinate points have continuity, determining a time period between the acquisition times of two overlapped first coordinate points in the case that two overlapped first coordinate points exist in the plurality of first coordinate points;
and determining the moving track of the mouse pointer on the image according to all the first coordinate points of the plurality of first coordinate points, wherein the collection time of the first coordinate points is within the time period.
3. The method of claim 2, wherein said determining whether each of the plurality of first coordinate points has continuity based on the location and the acquisition time of the first coordinate point comprises:
determining the position offset of every two adjacent first coordinate points in the plurality of first coordinate points according to the position of each first coordinate point in the plurality of first coordinate points;
determining the acquisition time difference of every two adjacent first coordinate points in the plurality of first coordinate points according to the acquisition time of each first coordinate point in the plurality of first coordinate points;
for every two adjacent first coordinate points in the plurality of first coordinate points, dividing the position offset of the two adjacent first coordinate points by the acquisition time difference of the two adjacent first coordinate points to obtain the moving speed between the two adjacent first coordinate points;
if the moving speed between every two adjacent first coordinate points in the plurality of first coordinate points is greater than or equal to a moving speed threshold value, determining that the plurality of first coordinate points have continuity;
and if the moving speed between two adjacent first coordinate points in the plurality of first coordinate points is less than a moving speed threshold value, determining that the plurality of first coordinate points do not have continuity.
4. The method of claim 2, wherein determining the movement trajectory of the mouse pointer on the image according to all of the first coordinate points of the plurality of first coordinate points whose acquisition times are within the time period comprises:
taking a midpoint between every two adjacent first coordinate points in all the first coordinate points in the time period of the acquisition time in the plurality of first coordinate points as a second coordinate point to obtain a plurality of second coordinate points;
and performing curve fitting on the plurality of second coordinate points to obtain a closed curve which is used as a moving track of the mouse pointer on the image.
5. The method of claim 4, wherein said curve fitting the second plurality of coordinate points comprises:
for each adjacent two of the plurality of second coordinate points, plotting a Bezier curve between the adjacent two second coordinate points.
6. The method of claim 4, wherein prior to said displaying the plurality of control points in the zone boundary line of the first zone, further comprising:
setting each of the plurality of second coordinate points as a control point in a zone boundary line of the first zone; alternatively, the first and second electrodes may be,
selecting one second coordinate point from the plurality of second coordinate points at intervals of n as a control point in the area boundary line of the first area, wherein n is a positive integer; alternatively, the first and second electrodes may be,
acquiring the position offset of every two adjacent second coordinate points in the plurality of second coordinate points; determining an average position offset of the plurality of second coordinate points according to the position offset of every two adjacent second coordinate points in the plurality of second coordinate points; if the average position deviation amount of the plurality of second coordinate points is larger than or equal to a position deviation amount threshold value, taking each second coordinate point in the plurality of second coordinate points as a control point in the area boundary line of the first area; and if the average position offset of the second coordinate points is smaller than a position offset threshold, selecting one second coordinate point from every n second coordinate points in the second coordinate points as a control point in the area boundary line of the first area.
7. The method according to any one of claims 1 to 6, wherein the displaying the image content in the second area in an enlarged or reduced manner includes:
every time a new second area is generated, carrying out amplification display or reduction display on the image content in the second area in the image; alternatively, the first and second electrodes may be,
and if a display instruction is received, performing amplification display or reduction display on the image content in the second area in the image.
8. An image display apparatus, comprising:
the acquisition module is used for acquiring the moving track of the mouse pointer on the image;
a first determining module, configured to determine an area formed by the movement trajectory as a first area;
the first display module is used for displaying a plurality of control points in the area boundary line of the first area;
a moving module, configured to, for any one of the plurality of control points, move the one control point if a moving instruction for the one control point is detected;
the generating module is used for generating a second area according to the latest positions of the control points when one control point moves, and the area boundary line of the second area passes through the control points;
and the second display module is used for carrying out amplification display or reduction display on the image content in the second area in the image.
9. A computer device, characterized in that the computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, which computer program, when executed by the processor, implements the method according to any of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements the method of any one of claims 1 to 7.
CN202111294158.0A 2021-11-03 2021-11-03 Image display method, device, equipment and storage medium Pending CN114217721A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111294158.0A CN114217721A (en) 2021-11-03 2021-11-03 Image display method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111294158.0A CN114217721A (en) 2021-11-03 2021-11-03 Image display method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114217721A true CN114217721A (en) 2022-03-22

Family

ID=80696479

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111294158.0A Pending CN114217721A (en) 2021-11-03 2021-11-03 Image display method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114217721A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104469161A (en) * 2014-12-22 2015-03-25 联想(北京)有限公司 Image processing method and electronic device
CN104463789A (en) * 2013-09-12 2015-03-25 广东福地新视野光电技术有限公司 Method for correcting optical coherent tomography scanning image edge line and device thereof
CN107369191A (en) * 2017-08-15 2017-11-21 国网湖南省电力公司 Power grid meteorological disaster prediction color spot figure modification method, system and device
CN110022417A (en) * 2017-12-25 2019-07-16 佳能株式会社 Show display control apparatus, its control method and the storage medium of preview image
CN112750139A (en) * 2021-01-18 2021-05-04 腾讯科技(深圳)有限公司 Image processing method and device, computing equipment and storage medium
CN113535878A (en) * 2021-07-23 2021-10-22 石家庄铁道大学 Line selection method, device, terminal and storage medium based on three-dimensional geological modeling

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104463789A (en) * 2013-09-12 2015-03-25 广东福地新视野光电技术有限公司 Method for correcting optical coherent tomography scanning image edge line and device thereof
CN104469161A (en) * 2014-12-22 2015-03-25 联想(北京)有限公司 Image processing method and electronic device
CN107369191A (en) * 2017-08-15 2017-11-21 国网湖南省电力公司 Power grid meteorological disaster prediction color spot figure modification method, system and device
CN110022417A (en) * 2017-12-25 2019-07-16 佳能株式会社 Show display control apparatus, its control method and the storage medium of preview image
CN112750139A (en) * 2021-01-18 2021-05-04 腾讯科技(深圳)有限公司 Image processing method and device, computing equipment and storage medium
CN113535878A (en) * 2021-07-23 2021-10-22 石家庄铁道大学 Line selection method, device, terminal and storage medium based on three-dimensional geological modeling

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
李延成;李军;刘慧霞;梅琨;张明华;: "基于最小二乘法的区域整体最优匹配选取控制点的方法", 测绘科学, no. 06, 20 November 2012 (2012-11-20) *
林路: "数码摄影新教程", 31 May 2016, 上海人民美术出版社, pages: 119 - 121 *
苏本跃;戴奎;: "基于三角网格上Coons曲面的图像缩放算法", 量子电子学报, no. 05, 15 September 2012 (2012-09-15) *

Similar Documents

Publication Publication Date Title
US10565437B2 (en) Image processing device and method for moving gesture recognition using difference images
CN103576848B (en) Gesture operation method and gesture operation device
KR20130088104A (en) Mobile apparatus and method for providing touch-free interface
US11829581B2 (en) Display control method and terminal
CN103914258A (en) Mobile terminal and method for operating same
WO2018192511A1 (en) Image data processing method and device
KR20140104709A (en) Method for synthesizing images captured by portable terminal, machine-readable storage medium and portable terminal
CN107885277A (en) A kind of method, apparatus, mobile terminal and storage medium for adjusting display screen angle
KR20180081353A (en) Electronic device and operating method thereof
CN112565613B (en) Preview image display control method, device, electronic equipment and medium
US20190102060A1 (en) Information processing apparatus, display control method, and storage medium
CN112954193A (en) Shooting method, shooting device, electronic equipment and medium
CN112218134A (en) Input method and related equipment
CN112221128A (en) Map adjusting method and related device
WO2019218622A1 (en) Element control method, apparatus, and device, and storage medium
EP3101527A1 (en) Information processing device, information processing program, and information processing method
CN114415886A (en) Application icon management method and electronic equipment
CN112416199B (en) Control method and device and electronic equipment
CN111679772B (en) Screen recording method and system, multi-screen device and readable storage medium
CN114217721A (en) Image display method, device, equipment and storage medium
CN106325507B (en) A kind of cursor-moving method, device and Medical Devices for medical treatment display
WO2016135677A1 (en) Navigating a set of selectable items in a user interface
CN111832549B (en) Data labeling method and device
CN116069231A (en) Card arrangement management method and electronic equipment
CN105955625A (en) Scroll bar display method and device, and intelligent terminal

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