CN111061411B - Picture roaming method and device and electronic equipment - Google Patents

Picture roaming method and device and electronic equipment Download PDF

Info

Publication number
CN111061411B
CN111061411B CN201811203750.3A CN201811203750A CN111061411B CN 111061411 B CN111061411 B CN 111061411B CN 201811203750 A CN201811203750 A CN 201811203750A CN 111061411 B CN111061411 B CN 111061411B
Authority
CN
China
Prior art keywords
picture
terminal
screen
determining
width
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811203750.3A
Other languages
Chinese (zh)
Other versions
CN111061411A (en
Inventor
郑杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitevision Co Ltd
Original Assignee
Hitevision 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 Hitevision Co Ltd filed Critical Hitevision Co Ltd
Priority to CN201811203750.3A priority Critical patent/CN111061411B/en
Publication of CN111061411A publication Critical patent/CN111061411A/en
Application granted granted Critical
Publication of CN111061411B publication Critical patent/CN111061411B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

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)
  • Telephone Function (AREA)

Abstract

The invention discloses a picture roaming method and device and electronic equipment, wherein the method comprises the following steps: the first terminal executes picture moving operation; the first terminal sends a mobile message including mobile position information to the second terminal according to the picture mobile position; and the second terminal receives the mobile message and carries out corresponding mobile operation on the picture according to the mobile position information. The invention can realize the synchronous zooming and moving functions of the pictures between the two terminals and can correctly display the pictures.

Description

Picture roaming method and device and electronic equipment
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a method and an apparatus for picture roaming, and an electronic device.
Background
At present, the synchronous zooming and moving functions of the same picture between two terminals are realized by the steps that the terminal executing the zooming and moving operations sends a vector message to the other terminal, and the other terminal performs corresponding zooming and moving operations on the picture according to the received vector message. When the display screens of the two terminals are not in the same proportion, the problem that the picture boundary cannot be correctly displayed after the terminal receiving the vector message operates the picture may occur.
Disclosure of Invention
In view of the above, the present invention provides a picture roaming method and apparatus, and an electronic device, which can implement the functions of synchronously zooming and moving pictures between two terminals, and can correctly display the pictures.
Based on the above purpose, the present invention provides a picture roaming method, which includes:
the first terminal executes picture moving operation;
the first terminal sends a mobile message including mobile position information to the second terminal according to the picture mobile position;
and the second terminal receives the mobile message and carries out corresponding mobile operation on the picture according to the mobile position information.
Optionally, the moving position information includes width and height data of the picture, width and height data of a screen of the first terminal, and transverse distance and longitudinal distance data from the screen of the first terminal to the picture.
Optionally, the method for performing corresponding moving operation on the picture according to the moving position information includes:
determining the relative position between the screen of the first terminal and the first picture according to the mobile position information, determining the relative position between the screen of the second terminal and the second picture according to the relative position between the screen of the first terminal and the first picture, and determining the mobile position of the second picture relative to the second terminal according to the relative position between the screen of the second terminal and the second picture.
Alternatively to this, the first and second parts may,
determining the transverse position and the longitudinal position of the screen of the first terminal relative to the first picture according to the mobile position information;
determining the width and height of a screen of the second terminal, wherein the width and height of the second picture on the screen of the second terminal are determined;
determining the relative position between the screen of the second terminal and the second picture according to the transverse position and the longitudinal position of the screen of the first terminal relative to the first picture, and the width and the height of the screen of the second terminal, wherein the width and the height of the second picture on the screen of the second terminal are the same;
determining a moving position of a screen of the second terminal;
and carrying out coordinate transformation to determine the moving position of the second picture relative to the screen of the second terminal.
Optionally, the data content of the first picture is the same as that of the second picture, the display ratio of the first picture is adapted to the display ratio of the screen of the first terminal, and the display ratio of the second picture is adapted to the display ratio of the screen of the second terminal.
An embodiment of the present invention further provides a picture roaming apparatus, including:
the data receiving module is used for receiving a mobile message which is sent by a first terminal and comprises mobile position information;
the data processing module is used for determining the moving position of the picture according to the moving position information in the moving message;
and the picture moving module is used for moving the picture on the second screen according to the moving position of the picture.
And the second screen is used for displaying the picture.
Optionally, the moving position information includes width and height data of the picture, width and height data of a screen of the first terminal, and transverse distance and longitudinal distance data from the screen of the first terminal to the picture.
Optionally, the data processing module includes:
the first position determining submodule is used for determining the relative position between the screen of the first terminal and the first picture according to the mobile position information;
the second position determining submodule is used for determining the relative position between the second screen and the second picture according to the relative position between the screen of the first terminal and the first picture;
and the mobile position determining submodule is used for determining the mobile position of the second picture relative to the second screen according to the relative position between the second screen and the second picture.
Optionally, the data processing module further includes:
the first position determining submodule is used for determining the transverse position and the longitudinal position of the screen of the first terminal relative to the first picture according to the mobile position information;
the data acquisition sub-module is used for acquiring and determining the width and the height of the second screen, and the width and the height of the second picture on the second screen;
the second position determining sub-module is configured to determine, according to a horizontal position and a vertical position of the screen of the first terminal relative to the first picture, and a width and a height of the second screen, a relative position between the second screen and the second picture according to a width and a height of the second screen on the second screen; determining a moving position of the second screen;
and the moving position determining submodule is used for carrying out coordinate transformation on the moving position of the second screen and determining the moving position of the second picture relative to the second screen.
Optionally, the data content of the first picture is the same as that of the second picture, the display ratio of the first picture is adapted to the display ratio of the screen of the first terminal, and the display ratio of the second picture is adapted to the display ratio of the second screen.
The embodiment of the invention also provides electronic equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the picture roaming method when executing the program.
From the above, the picture roaming method, the picture roaming device and the electronic device provided by the invention comprise that the first terminal executes the picture moving operation; the first terminal sends a mobile message including mobile position information to the second terminal according to the picture mobile position; and the second terminal receives the mobile message and carries out corresponding mobile operation on the picture according to the mobile position information. The method and the device can realize the synchronous zooming and moving functions of the pictures between the two terminals and can correctly display the pictures.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a method according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating a position relationship between a first picture and a screen of a first terminal according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a position relationship between a second picture and a screen of a second terminal according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an image processing module according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to specific embodiments and the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
The picture roaming method provided by the embodiment of the invention is applied to a first terminal and a second terminal, and can realize synchronous zooming of pictures between the first terminal and the second terminal, and comprises the following steps:
the first terminal executes the picture zooming operation;
the first terminal sends a zooming message comprising the picture zooming proportion to the second terminal according to the picture zooming proportion;
and the second terminal receives the zooming message and performs corresponding zooming operation on the picture according to the zooming proportion of the picture.
FIG. 1 is a schematic flow chart of a method according to an embodiment of the present invention. As shown in the figure, the picture roaming method of the embodiment of the present invention is applied to a first terminal and a second terminal, and can implement synchronous movement of an enlarged picture between the first terminal and the second terminal, and the picture roaming method includes:
s10: the first terminal executes picture moving operation;
s11: the first terminal sends a mobile message including mobile position information to the second terminal according to the picture mobile position;
s12: and the second terminal receives the mobile message and carries out corresponding mobile operation on the picture according to the mobile position information.
The mobile position information comprises width and height data of the picture, width and height data of a screen of the first terminal, and transverse distance and longitudinal distance data from the screen of the first terminal to the picture.
The first terminal may be a mobile terminal, such as a smart phone; the second terminal may be a fixed terminal such as a computer or the like.
The following describes the picture roaming method in detail with reference to specific embodiments.
Fig. 2 is a schematic diagram illustrating a position relationship between a first picture and a screen of a first terminal according to an embodiment of the present invention; fig. 3 is a schematic diagram illustrating a position relationship between a second picture and a screen of a second terminal according to an embodiment of the present invention. As shown in the figure, the height of the screen of the first terminal is hLWidth of wL(ii) a Executing the amplification operation of the first picture at the first terminal, wherein the height of the amplified first picture is hPWidth of wP(ii) a Establishing an XOY coordinate system by taking the upper left corner of the first picture as a coordinate origin O (0,0), and calculating to obtain the distance h from the screen to the X axis according to the acquired coordinates of the upper left corner of the screen1And the distance w from the screen to the Y-axis1Will shift the position information (w)P,hP,w1,h1,wL,hL) And sending the data to the second terminal.
The second terminal receives the mobile position information, determines the relative position between the screen of the first terminal and the first picture according to the mobile position information, determines the relative position between the screen of the second terminal and the second picture according to the relative position between the screen of the first terminal and the first picture, and determines the mobile position of the second picture relative to the second terminal according to the relative position between the screen of the second terminal and the second picture. Specifically, the method comprises the following steps:
1) and determining the relative position between the screen of the first terminal and the first picture according to the mobile position information.
According to the height h of the first picturePWidth wPDetermining the coordinates of the center point of the first picture (c)PX,cPY),cPX=wP/2,cPY=hP/2;
According to the height h of the screen of the first terminalLWidth wLDetermining coordinates (c) of a center point of a screen of the first terminalLX,cLY),cLX=w1+wL/2,cLY=h1+hL/2;
According to cPXAnd cLXThe relationship between, the lateral position of the screen in the direction of the X-axis with respect to the first picture is determined:
if c isPX>cLXIf the first picture is a first picture, the screen of the first terminal is positioned on the left side of the first picture;
if c isPX<cLXIf the first picture is the first picture, the screen of the first terminal is positioned on the right side of the first picture;
if c isPX=cLXAnd the screen of the first terminal is the same as the x coordinate point of the first picture.
In the same way, according to cPYAnd cLYThe relationship between the first and second images, the longitudinal position of the screen relative to the first image in the Y-axis direction is determined:
if c isPY>cLYIf the first picture is the first picture, the screen of the first terminal is positioned above the first picture;
if c isPY<cLYIf the first picture is not the first picture, the screen of the first terminal is positioned below the first picture;
if c isPY=cLYAnd the screen of the first terminal is the same as the y coordinate point of the first picture.
2) And determining the width and the height of the screen of the second terminal, and the width and the height of the second picture on the screen of the second terminal.
Obtaining a height h of a screen of a second terminalL2Width wL2
After receiving the zoom message, the second terminal enlarges the second picture according to the picture zoom ratio (here, only the enlargement is used for explaining an example), and then obtains the height h of the enlarged second picture on the screen of the second terminalP2Width wP2
The data content of the first picture is the same as that of the second picture, the display proportion of the first picture is adaptive to that of the screen of the first terminal, and the display proportion of the second picture is adaptive to that of the screen of the second terminal.
3) And determining the relative position between the screen of the second terminal and the second picture, and determining the moving position of the screen of the second terminal.
Determining the relative position between the screen of the second terminal and the picture according to the transverse position and the longitudinal position of the screen of the first terminal relative to the picture in 1), and determining the moving position (p) of the screen of the second terminalX,pY) The method specifically comprises the following steps:
if the screen of the first terminal is positioned on the left side of the picture, the transverse moving coordinate p of the screen of the second terminalXIs pX=(w1/wP)*wP2
If the screen of the first terminal is positioned at the right side of the picture, the transverse moving coordinate p of the screen of the second terminal isXIs pX=(1-(wP–w1–wL)/wP)*wP2–wL2
If the screen of the first terminal is positioned above the picture, the longitudinal movement coordinate p of the screen of the second terminalYIs pY=(h1/hP)*hP2
If the screen of the first terminal is positioned below the picture, the longitudinal movement coordinate p of the screen of the second terminalYIs pY=(1-(hP–h1–hL)/hP)*hP2–hL2
4) And performing coordinate conversion according to the moving position of the screen of the second terminal to obtain the moving position of the second picture relative to the screen of the second terminal.
The above calculation processes are all performed with the picture as a reference, that is, with the XOY coordinate system established with the upper left corner of the picture as the origin of coordinates. Converting the second picture as reference into the screen of the second terminal as reference to obtain the moving position (p) of the second picture relative to the screenX`,pYN), wherein pX`=-pX,pY′=-pY
5) And moving the picture according to the moving position of the second picture relative to the screen of the second terminal.
Fig. 4 is a schematic structural diagram of an apparatus according to an embodiment of the present invention. As shown in the drawings, the picture roaming apparatus provided in the embodiment of the present invention includes:
the data receiving module is used for receiving a mobile message which is sent by a first terminal and comprises mobile position information;
the data processing module is used for determining the moving position of the picture according to the moving position information in the moving message;
the picture moving module is used for moving the picture on the second screen according to the moving position of the picture;
and the second screen is used for displaying the picture.
The mobile position information comprises width and height data of the picture, width and height data of a screen of the first terminal, and transverse distance and longitudinal distance data from the screen of the first terminal to the picture.
Fig. 5 is a schematic structural diagram of an image processing module according to an embodiment of the present invention. As shown in the figure, in the embodiment of the present invention, the data processing module includes:
the first position determining submodule is used for determining the relative position between the screen of the first terminal and the first picture according to the mobile position information;
the second position determining submodule is used for determining the relative position between a second screen and a second picture according to the relative position between the screen of the first terminal and the first picture;
and the mobile position determining submodule is used for determining the mobile position of the second picture relative to the second screen according to the relative position between the second screen and the second picture.
In this embodiment of the present invention, the data processing module further includes:
the first position determining submodule is used for determining the transverse position and the longitudinal position of the screen of the first terminal relative to the first picture according to the mobile position information;
the data acquisition sub-module is used for acquiring and determining the width and the height of a second screen, and the width and the height of the second picture on the second screen;
the second position determining sub-module is used for determining the relative position between the second screen and the second picture according to the transverse position and the longitudinal position of the screen of the first terminal relative to the first picture, the width and the height of the second screen, and the width and the height of the second picture on the second screen; determining a moving position of the second screen;
and the moving position determining submodule is used for carrying out coordinate transformation on the moving position of the second screen and determining the moving position of the second picture relative to the second screen.
The data content of the first picture is the same as that of the second picture, the display proportion of the first picture is adaptive to that of the screen of the first terminal, and the display proportion of the second picture is adaptive to that of the second screen.
Based on the above object, an embodiment of an apparatus for performing the picture roaming method is further provided in the embodiments of the present invention. The device comprises:
one or more processors, and a memory.
The apparatus for performing the picture roaming method may further include: an input device and an output device.
The processor, memory, input device, and output device may be connected by a bus or other means.
The memory, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules (e.g., the data processing module shown in fig. 4) corresponding to the picture roaming method in the embodiment of the present invention. The processor executes various functional applications and data processing of the server by running the nonvolatile software program, instructions and modules stored in the memory, that is, the picture roaming method of the above method embodiment is realized.
The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of a device performing the picture roaming method, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory optionally includes memory remotely located from the processor, and these remote memories may be connected to the member user behavior monitoring device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means may receive input numeric or character information and generate key signal inputs related to user settings and function control of the apparatus performing the picture roaming method. The output device may include a display device such as a display screen.
The one or more modules are stored in the memory and, when executed by the one or more processors, perform the picture roaming method of any of the above method embodiments. The technical effect of the embodiment of the device for executing the picture roaming method is the same as or similar to that of any previous embodiment of the method.
The embodiment of the invention also provides a non-transitory computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the processing method of the list item operation in any method embodiment. Embodiments of the non-transitory computer storage medium may be the same or similar in technical effect to any of the method embodiments described above.
Finally, it should be noted that, as will be understood by those skilled in the art, all or part of the processes in the methods of the above embodiments may be implemented by a computer program that can be stored in a computer-readable storage medium and that, when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like. The technical effect of the embodiment of the computer program is the same as or similar to that of any of the method embodiments described above.
Furthermore, the apparatuses, devices, etc. described in the present disclosure may be various electronic terminal devices, such as a mobile phone, a Personal Digital Assistant (PDA), a tablet computer (PAD), a smart television, etc., and may also be large terminal devices, such as a server, etc., and therefore the scope of protection of the present disclosure should not be limited to a specific type of apparatus, device. The client disclosed by the present disclosure may be applied to any one of the above electronic terminal devices in the form of electronic hardware, computer software, or a combination of both.
Furthermore, the method according to the present disclosure may also be implemented as a computer program executed by a CPU, which may be stored in a computer-readable storage medium. The computer program, when executed by the CPU, performs the above-described functions defined in the method of the present disclosure.
Further, the above method steps and system elements may also be implemented using a controller and a computer readable storage medium for storing a computer program for causing the controller to implement the functions of the above steps or elements.
Further, it should be appreciated that the computer-readable storage media (e.g., memory) described herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. By way of example, and not limitation, nonvolatile memory can include Read Only Memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which can act as external cache memory. By way of example and not limitation, RAM is available in a variety of forms such as synchronous RAM (DRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to comprise, without being limited to, these and other suitable types of memory.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. 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 disclosure.
The various illustrative logical blocks, modules, and circuits described in connection with the disclosure herein may be implemented or performed with the following components designed to perform the functions described herein: a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
The steps of a method or algorithm described in connection with the disclosure herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
Disclosed exemplary embodiments should be noted, however, that various changes and modifications could be made herein without departing from the scope of the disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosure may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a," "an," "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The above-mentioned serial numbers of the embodiments of the present disclosure are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of an embodiment of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (2)

1. A picture roaming method, comprising:
the first terminal executes picture moving operation;
the first terminal sends a mobile message including mobile position information to the second terminal according to the picture mobile position; the mobile position information comprises width and height data of the picture, width and height data of a screen of the first terminal, and transverse distance and longitudinal distance data from the screen of the first terminal to the picture;
the second terminal receives the mobile message and carries out corresponding mobile operation on the picture according to the mobile position information; the method specifically comprises the following steps:
determining the relative position between the screen of the first terminal and a first picture according to the mobile position information, determining the relative position between the screen of the second terminal and a second picture according to the relative position between the screen of the first terminal and the first picture, and determining the mobile position of the second picture relative to the second terminal according to the relative position between the screen of the second terminal and the second picture; the method specifically comprises the following steps:
determining the transverse position and the longitudinal position of the screen of the first terminal relative to the first picture according to the mobile position information; the method specifically comprises the following steps:
according to the height h of the first picturePWidth wPDetermining the coordinates of the center point of the first picture (c)PX,cPY),cPX=wP/2,cPY=hP/2;
According to the height h of the screen of the first terminalLWidth wLDetermining coordinates (c) of a center point of a screen of the first terminalLX,cLY),cLX=w1+wL/2,cLY=h1+hL2; wherein, w1Representing a distance, h, of a left edge of a screen of the first terminal from a left edge of the first picture1Representing a distance between a top edge of a screen of the first terminal and a top edge of the first picture;
according to cPXAnd cLXDetermining the lateral position of the screen of the first terminal relative to the first picture along the X-axis direction:
if c isPX>cLXIf the first picture is a first picture, the screen of the first terminal is positioned on the left side of the first picture;
if c isPX<cLXIf the first picture is a first picture, the screen of the first terminal is positioned on the right side of the first picture;
if c isPX=cLXIf so, the coordinate of the central point of the screen of the first terminal is the same as the x coordinate point of the coordinate of the central point of the first picture;
according to cPYAnd cLYDetermining the longitudinal position of the screen of the first terminal relative to the first picture along the Y-axis direction:
if c isPY>cLYIf the first picture is the first picture, the screen of the first terminal is located above the first picture;
if c isPY<cLYIf so, the screen of the first terminal is positioned below the first picture;
if c isPY=cLYIf the center point coordinate of the screen of the first terminal is the same as the y coordinate point of the center point coordinate of the first picture;
determining the width and height of a screen of the second terminal, wherein the width and height of the second picture on the screen of the second terminal are determined; the method specifically comprises the following steps: acquiring the height h of the screen of the second terminalL2Width wL2(ii) a After receiving the zooming message, the second terminal amplifies the second picture according to the picture zooming proportion and then obtains the height h of the amplified second picture on the screen of the second terminalP2Width wP2(ii) a The data content of the first picture is the same as that of the second picture, the display proportion of the first picture is adaptive to that of the screen of the first terminal, and the display proportion of the second picture is adaptive to that of the screen of the second terminal;
determining the relative position between the screen of the second terminal and the second picture according to the transverse position and the longitudinal position of the screen of the first terminal relative to the first picture, and the width and the height of the screen of the second terminal, wherein the width and the height of the second picture on the screen of the second terminal are the same; determining a moving position of a screen of the second terminal; the method specifically comprises the following steps:
if the screen of the first terminal is positioned on the left side of the first picture, the transverse moving coordinate p of the screen of the second terminal is determinedXIs pX=(w1/wP)*wP2
If the screen of the first terminal is positioned at the right side of the first picture, the transverse moving coordinate p of the screen of the second terminal is determinedXIs pX=(1-(wP–w1–wL)/wP)*wP2–wL2
If the screen of the first terminal is positioned above the first picture, the longitudinal movement coordinate p of the screen of the second terminal isYIs pY=(h1/hP)*hP2
If the screen of the first terminal is positioned below the first picture, the longitudinal movement coordinate p of the screen of the second terminal isYIs pY=(1–(hP–h1–hL)/hP)*hP2–hL2
And carrying out coordinate transformation to determine the moving position of the second picture relative to the screen of the second terminal.
2. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of claim 1 when executing the program.
CN201811203750.3A 2018-10-16 2018-10-16 Picture roaming method and device and electronic equipment Active CN111061411B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811203750.3A CN111061411B (en) 2018-10-16 2018-10-16 Picture roaming method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811203750.3A CN111061411B (en) 2018-10-16 2018-10-16 Picture roaming method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN111061411A CN111061411A (en) 2020-04-24
CN111061411B true CN111061411B (en) 2022-03-25

Family

ID=70296564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811203750.3A Active CN111061411B (en) 2018-10-16 2018-10-16 Picture roaming method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111061411B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070010851A (en) * 2005-07-20 2007-01-24 엘지전자 주식회사 A method of remote photographing using bluetooth for mobile station
CN105094638A (en) * 2015-06-17 2015-11-25 深圳市美贝壳科技有限公司 Image screen sharing method of mobile terminal and smart home device and mobile terminal
CN105338261A (en) * 2015-11-02 2016-02-17 天脉聚源(北京)教育科技有限公司 Method and device for transmitting image-related information
CN105573702A (en) * 2015-12-16 2016-05-11 广州视睿电子科技有限公司 Remote headnote moving and scaling synchronization method and system
CN107239246A (en) * 2017-04-28 2017-10-10 福建天泉教育科技有限公司 A kind of picture synchronous display method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070010851A (en) * 2005-07-20 2007-01-24 엘지전자 주식회사 A method of remote photographing using bluetooth for mobile station
CN105094638A (en) * 2015-06-17 2015-11-25 深圳市美贝壳科技有限公司 Image screen sharing method of mobile terminal and smart home device and mobile terminal
CN105338261A (en) * 2015-11-02 2016-02-17 天脉聚源(北京)教育科技有限公司 Method and device for transmitting image-related information
CN105573702A (en) * 2015-12-16 2016-05-11 广州视睿电子科技有限公司 Remote headnote moving and scaling synchronization method and system
CN107239246A (en) * 2017-04-28 2017-10-10 福建天泉教育科技有限公司 A kind of picture synchronous display method and system

Also Published As

Publication number Publication date
CN111061411A (en) 2020-04-24

Similar Documents

Publication Publication Date Title
KR101613637B1 (en) Method, device, program and storage medium for detecting straight line
US10298841B2 (en) Device and method for generating a panoramic image
JP5757592B2 (en) Method, apparatus and computer program product for generating super-resolution images
JP2019502275A (en) Video stabilization
CN106599758A (en) Image quality processing method and terminal
EP3822757A1 (en) Method and apparatus for setting background of ui control
CN110765799B (en) Client code scanning identification method, device, equipment and storage medium
CN111310482A (en) Real-time translation method, device, terminal and storage medium
WO2021243788A1 (en) Screenshot method and apparatus
CN110933608A (en) Equipment registration terminal and method and electronic equipment
CN110874809A (en) Image processing method and device, electronic equipment and storage medium
CN112308780A (en) Image processing method, device, equipment and storage medium
CN111459364A (en) Icon updating method and device and electronic equipment
CN105653612A (en) Page rendering method and device
JP7261732B2 (en) Method and apparatus for determining character color
CN109840890B (en) Image processing method and device, electronic equipment and storage medium
CN110827301A (en) Method and apparatus for processing image
US20140010440A1 (en) Image processing method and device
CN111061411B (en) Picture roaming method and device and electronic equipment
CN111461965B (en) Picture processing method and device, electronic equipment and computer readable medium
TW202219822A (en) Character detection method, electronic equipment and computer-readable storage medium
CN111754435A (en) Image processing method, image processing device, terminal equipment and computer readable storage medium
CN110070482B (en) Image processing method, apparatus and computer readable storage medium
CN112445394A (en) Screenshot method and device
JP6155349B2 (en) Method, apparatus and computer program product for reducing chromatic aberration in deconvolved images

Legal Events

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