CN109144368B - Picture conversion method and terminal - Google Patents

Picture conversion method and terminal Download PDF

Info

Publication number
CN109144368B
CN109144368B CN201810968698.4A CN201810968698A CN109144368B CN 109144368 B CN109144368 B CN 109144368B CN 201810968698 A CN201810968698 A CN 201810968698A CN 109144368 B CN109144368 B CN 109144368B
Authority
CN
China
Prior art keywords
picture
converted
dimensional
conversion
pictures
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
CN201810968698.4A
Other languages
Chinese (zh)
Other versions
CN109144368A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810968698.4A priority Critical patent/CN109144368B/en
Publication of CN109144368A publication Critical patent/CN109144368A/en
Application granted granted Critical
Publication of CN109144368B publication Critical patent/CN109144368B/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
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04808Several contacts: gestures triggering a specific function, e.g. scrolling, zooming, right-click, when the user establishes several contacts with the surface simultaneously; e.g. using several fingers or a combination of fingers and pen

Abstract

The embodiment of the invention provides a method and a terminal for converting pictures, belonging to the technical field of picture processing, wherein the method comprises the following steps: detecting a conversion operation of a picture to be converted, wherein the conversion operation is an operation that at least two contacts are gradually close to each other, or an operation that at least two contacts are gradually far away from each other; responding to the conversion operation, processing the picture to be converted to obtain a target picture; when the conversion operation is the operation that at least two contacts are gradually close to each other, the picture to be converted is a two-dimensional picture, and the target picture is a three-dimensional picture; and when the conversion operation is an operation that at least two contacts are gradually far away, the picture to be converted is a three-dimensional picture, and the target picture is a two-dimensional picture. In the embodiment of the invention, the operation of mutual conversion between the three-dimensional picture and the two-dimensional picture is simple and quick.

Description

Picture conversion method and terminal
Technical Field
The embodiment of the invention relates to the technical field of picture processing, in particular to a picture conversion method and a terminal.
Background
With the development of 3D (Three dimensional) technology, it has been gradually applied to smart mobile terminals, for example, taking 3D photos through an imaging system of the smart mobile terminal, or taking a continuous series of 2D photos using the imaging system of the smart mobile terminal, and then synthesizing them into 3D photos. In addition, the user may also have a need to split the 3D photo into 2D photos.
However, in the existing intelligent mobile terminal, the operation for implementing the interconversion between the 3D photo and the 2D photo is relatively complicated, for example, the photo to be converted may need to be selected first, then the popup menu of the selected photo to be converted is pressed for a long time, and finally the conversion option is clicked and selected in the menu.
Disclosure of Invention
The embodiment of the invention provides a picture conversion method and a terminal, which aim to solve the problem that the operation of the conventional terminal for realizing the mutual conversion of a 3D picture and a 2D picture is relatively complicated.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for converting a picture, which is applied to a terminal, and includes:
detecting a conversion operation of a picture to be converted, wherein the conversion operation is an operation that at least two contacts are gradually close to each other, or an operation that at least two contacts are gradually far away from each other;
responding to the conversion operation, processing the picture to be converted to obtain a target picture; when the conversion operation is the operation that at least two contacts are gradually close to each other, the picture to be converted is a two-dimensional picture, and the target picture is a three-dimensional picture; and when the conversion operation is an operation that at least two contacts are gradually far away, the picture to be converted is a three-dimensional picture, and the target picture is a two-dimensional picture.
In a second aspect, an embodiment of the present invention further provides a terminal, including:
the detection module is used for detecting the conversion operation of the picture to be converted, wherein the conversion operation is the operation that at least two contacts are gradually close to each other, or the operation that at least two contacts are gradually far away from each other;
the conversion module is used for responding to the conversion operation and processing the picture to be converted to obtain a target picture; when the conversion operation is the operation that at least two contacts are gradually close to each other, the picture to be converted is a two-dimensional picture, and the target picture is a three-dimensional picture; and when the conversion operation is an operation that at least two contacts are gradually far away, the picture to be converted is a three-dimensional picture, and the target picture is a two-dimensional picture.
In a third aspect, an embodiment of the present invention further provides a terminal, including a processor, a memory, and a computer program stored on the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps of the above-mentioned picture conversion method.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned picture conversion method are implemented.
In the embodiment of the invention, the mutual conversion between the three-dimensional picture and the two-dimensional picture can be realized through the operation that the at least two contacts are gradually close to each other or the operation that the at least two contacts are gradually far away from each other, the operation is simple and quick, the time spent by the user in the operation is reduced, and the user experience is improved.
Drawings
Fig. 1 is a schematic flow chart illustrating a method for converting a picture according to a first embodiment of the present invention;
FIG. 2 is a schematic diagram of a switching operation in an embodiment of the present invention;
FIG. 3 is a schematic diagram of another conversion operation in an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal according to a second embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of a terminal implementing various embodiments of the present invention;
fig. 6 is a schematic structural diagram of a terminal in a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the drawings of the embodiments of the present invention. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the described embodiments of the invention, are within the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a method for converting a picture according to an embodiment of the present invention, where the method is applied to a terminal and includes:
step 11: detecting a conversion operation of a picture to be converted, wherein the conversion operation is an operation that at least two contacts are gradually close to each other, or an operation that at least two contacts are gradually far away from each other;
step 12: responding to the conversion operation, processing the picture to be converted to obtain a target picture; when the conversion operation is the operation that at least two contacts are gradually close to each other, the picture to be converted is a two-dimensional picture, and the target picture is a three-dimensional picture; and when the conversion operation is an operation that at least two contacts are gradually far away, the picture to be converted is a three-dimensional picture, and the target picture is a two-dimensional picture.
In the embodiment of the invention, the mutual conversion between the three-dimensional picture and the two-dimensional picture can be realized through the operation that at least two contacts are gradually close (for example, the two contacts are kneaded in the middle) or the operation that at least two contacts are gradually far away (for example, the two contacts are gradually separated from each other), the operation is simple and quick, the time spent by the user operation is reduced, and the user experience is improved.
The above steps will be exemplified below.
Preferably, the step of detecting the conversion operation of the picture to be converted (i.e. step 11) comprises:
and detecting the conversion operation, and if the initial positions of at least two contact points of the conversion operation are positioned on the same picture, taking the picture as the picture to be converted.
Alternatively, the step of detecting the conversion operation of the picture to be converted (i.e. step 11) comprises:
and detecting the conversion operation, and if the initial positions of at least two contact points of the conversion operation are respectively positioned on two different pictures, taking the two pictures and a picture between the two pictures as the pictures to be converted.
In the embodiment of the invention, the picture to be converted can be determined according to the initial positions of at least two contact points of the conversion operation, and when the initial positions of the at least two contact points are positioned on the same picture, the picture is taken as the picture to be converted; and when the initial positions of the at least two touch points are positioned on two different pictures, taking the two pictures and the picture between the two pictures as the pictures to be converted. The method fuses the operation of selecting the picture to be converted and the conversion operation, further reduces the operation steps, and is simpler and quicker to operate.
Specifically, the picture to be converted may be selected from a plurality of pictures arranged in a matrix, and the plurality of pictures are generally sorted in advance according to a preset rule and are arranged and displayed in a matrix manner according to the sorting order. When the picture to be converted is a three-dimensional (3D) picture, for example, as shown in fig. 2, the initial positions of at least two touch points of the conversion operation may be defined on the three-dimensional picture to be converted, and then the conversion operation is an operation in which the at least two touch points start to move toward each other from the initial positions (two arrows in fig. 2 represent the moving directions of the two touch points, and the starting positions of the arrows represent the initial positions of the two touch points), and after the conversion operation is completed, the three-dimensional picture to be converted can be converted into a plurality of two-dimensional pictures. When the picture to be converted is a two-dimensional (2D) picture, at least one of the at least two contact points of the conversion operation may be defined on the picture to be converted (two-dimensional) at the start position, and the other contact points may be defined on the picture to be converted at the end position. For example, as shown in fig. 3, the switching operation is an operation in which the two contacts start relative movement from their initial positions (two arrows in fig. 3 indicate the moving directions of the two contacts, the starting positions of the arrows indicate the initial positions of the two contacts), one of the contact points is located on the second picture (the picture to be converted located at the starting position) in the second row, and the other contact point is located on the third picture (the picture to be converted located at the ending position) in the fourth row, so that the second picture in the second row, the pictures after the second row (the third picture and the fourth picture in the second row), the picture in the third row, the pictures before the third row (the first picture and the second picture in the fourth row) and the third picture in the fourth row are all taken as the pictures to be converted, and converting the selected 10 two-dimensional pictures to be converted into a three-dimensional picture according to the conversion operation of starting relative sliding of the two contact points from the initial positions of the two contact points.
Optionally, before the step of detecting the conversion operation of the picture to be converted (i.e. before step 11), the method further includes:
and if the selection operation of selecting the picture is detected, taking the selected picture as the picture to be converted.
In the embodiment of the invention, before the conversion operation is carried out, a part of pictures can be selected in advance as the pictures to be converted.
In an optional specific embodiment, the step of processing the picture to be converted in response to the conversion operation to obtain a target picture (i.e. step 12) includes:
if the conversion operation is an operation in which at least two contacts are gradually far away, displaying a user interface for a user to input user selection, wherein the user selection comprises the size and/or the number of the two-dimensional pictures serving as the target pictures;
acquiring the user selection;
and converting the three-dimensional picture into a two-dimensional picture according to the user selection.
In the embodiment of the present invention, when a three-dimensional picture to be converted needs to be converted into a two-dimensional picture, the size and/or the number of the two-dimensional picture to be converted (i.e., a target picture) may be selected by a user, specifically, a user selection is received through a user interface, for example, a selection prompt box for a user to perform a selection input operation is popped up. The method can improve the autonomy of the user, and simultaneously, the converted two-dimensional picture can better meet the requirements of the user.
In other embodiments, the size and/or number of two-dimensional pictures to be converted may be determined by an algorithm.
In addition, before the step of detecting the conversion operation of the picture to be converted (i.e. step 11), the method further includes:
step 1110: acquiring the clicking operation of a user on the front cover of the two-dimensional picture album;
step 1120: and responding to the clicking operation, expanding and displaying the plurality of two-dimensional pictures in the two-dimensional picture album, and arranging the plurality of displayed two-dimensional pictures in a matrix mode. Specifically, the thumbnails of the plurality of two-dimensional pictures in the two-dimensional picture album may be arranged and displayed in a matrix manner.
When the picture to be converted is a two-dimensional picture, the picture is generally a series of pictures in a scene, specifically including continuously shot pictures and pictures related to the scene, and the terminal generally puts them into an album and selects one of them as a cover. Therefore, in the embodiment of the present invention, before converting the picture, a click operation of a user on a cover of the two-dimensional picture album needs to be acquired, so as to expand and display the plurality of two-dimensional pictures in the two-dimensional picture album in response to the click operation, and the plurality of displayed two-dimensional pictures are arranged in a matrix manner, so that the user can conveniently select the picture to be converted.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a terminal according to a second embodiment of the present invention, where the terminal includes:
the detection module 21 is configured to detect a conversion operation of a picture to be converted, where the conversion operation is an operation in which at least two contacts gradually approach or an operation in which at least two contacts gradually separate;
the conversion module 22 is configured to respond to the conversion operation, and process the picture to be converted to obtain a target picture; when the conversion operation is the operation that at least two contacts are gradually close to each other, the picture to be converted is a two-dimensional picture, and the target picture is a three-dimensional picture; and when the conversion operation is an operation that at least two contacts are gradually far away, the picture to be converted is a three-dimensional picture, and the target picture is a two-dimensional picture.
The terminal provided by the embodiment of the invention can realize the mutual conversion of the three-dimensional picture and the two-dimensional picture through the operation that the at least two contacts are gradually close to each other or the operation that the at least two contacts are gradually far away from each other, has simple and rapid operation, reduces the time spent by the user in operation, and improves the user experience.
Specifically, the detection module 21 includes:
and the first selection unit is used for detecting the conversion operation, and if the initial positions of at least two contact points of the conversion operation are positioned on the same picture, taking the picture as the picture to be converted.
Specifically, the detection module 21 includes:
and the second selection unit is used for detecting the conversion operation, and taking the two pictures and a picture between the two pictures as the pictures to be converted if the initial positions of at least two contact points of the conversion operation are respectively positioned on two different pictures.
Specifically, the terminal further includes:
and the selection module is used for taking the selected picture as the picture to be converted if the selection operation of selecting the picture is detected.
Specifically, the conversion module 22 includes:
the display unit is used for displaying a user interface for a user to input user selection if the conversion operation is an operation that at least two contacts are gradually far away, wherein the user selection comprises the size and/or the number of two-dimensional pictures serving as target pictures;
a user selection acquisition unit for acquiring the user selection;
and the conversion unit is used for converting the three-dimensional picture into the two-dimensional picture according to the user selection.
Specifically, the terminal further includes:
the operation acquisition module is used for acquiring the clicking operation of a user on the front cover of the two-dimensional picture album;
and the expansion display module is used for responding to the click operation and expanding and displaying the plurality of two-dimensional pictures in the two-dimensional picture album, and the displayed plurality of two-dimensional pictures are arranged in a matrix mode.
The terminal provided by the embodiment of the present invention can implement each process in the method embodiment corresponding to fig. 1, and is not described herein again to avoid repetition.
Fig. 5 is a schematic diagram of a hardware structure of a terminal for implementing various embodiments of the present invention, where the terminal 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the terminal configuration shown in fig. 5 is not intended to be limiting, and that the terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 110 is configured to detect a conversion operation of a picture to be converted, where the conversion operation is an operation in which at least two contacts are gradually close to each other, or an operation in which at least two contacts are gradually far away from each other; responding to the conversion operation, processing the picture to be converted to obtain a target picture; when the conversion operation is the operation that at least two contacts are gradually close to each other, the picture to be converted is a two-dimensional picture, and the target picture is a three-dimensional picture; and when the conversion operation is an operation that at least two contacts are gradually far away, the picture to be converted is a three-dimensional picture, and the target picture is a two-dimensional picture.
In the embodiment of the invention, the mutual conversion between the three-dimensional picture and the two-dimensional picture can be realized through the operation that the at least two contacts are gradually close to each other or the operation that the at least two contacts are gradually far away from each other, the operation is simple and quick, the time spent by the user in the operation is reduced, and the user experience is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The terminal provides wireless broadband internet access to the user through the network module 102, such as helping the user send and receive e-mails, browse web pages, access streaming media, and the like.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The terminal 100 also includes at least one sensor 105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 5, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the terminal, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal 100 or may be used to transmit data between the terminal 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system.
In addition, the terminal 100 includes some functional modules that are not shown, and thus, the detailed description thereof is omitted.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a terminal according to a third embodiment of the present invention, where the terminal 30 includes a processor 31, a memory 32, and a computer program stored in the memory 32 and capable of running on the processor 31, and when the computer program is executed by the processor 31, the following steps are implemented:
detecting a conversion operation of a picture to be converted, wherein the conversion operation is an operation that at least two contacts are gradually close to each other, or an operation that at least two contacts are gradually far away from each other;
responding to the conversion operation, processing the picture to be converted to obtain a target picture; when the conversion operation is the operation that at least two contacts are gradually close to each other, the picture to be converted is a two-dimensional picture, and the target picture is a three-dimensional picture; and when the conversion operation is an operation that at least two contacts are gradually far away, the picture to be converted is a three-dimensional picture, and the target picture is a two-dimensional picture.
In the embodiment of the invention, the mutual conversion between the three-dimensional picture and the two-dimensional picture can be realized through the operation that the at least two contacts are gradually close to each other or the operation that the at least two contacts are gradually far away from each other, the operation is simple and quick, the time spent by the user in the operation is reduced, and the user experience is improved.
Optionally, the computer program may further implement the following steps when executed by the processor 31:
and detecting the conversion operation, and if the initial positions of at least two contact points of the conversion operation are positioned on the same picture, taking the picture as the picture to be converted.
Optionally, the computer program may further implement the following steps when executed by the processor 31:
and detecting the conversion operation, and if the initial positions of at least two contact points of the conversion operation are respectively positioned on two different pictures, taking the two pictures and a picture between the two pictures as the pictures to be converted.
Optionally, the computer program may further implement the following steps when executed by the processor 31:
and if the selection operation of selecting the picture is detected, taking the selected picture as the picture to be converted.
Optionally, the computer program may further implement the following steps when executed by the processor 31:
if the conversion operation is an operation in which at least two contacts are gradually far away, displaying a user interface for a user to input user selection, wherein the user selection comprises the size and/or the number of the two-dimensional pictures serving as the target pictures;
acquiring the user selection;
and converting the three-dimensional picture into a two-dimensional picture according to the user selection.
Optionally, the computer program may further implement the following steps when executed by the processor 31:
acquiring the clicking operation of a user on the front cover of the two-dimensional picture album;
and responding to the clicking operation, expanding and displaying the plurality of two-dimensional pictures in the two-dimensional picture album, and arranging the plurality of displayed two-dimensional pictures in a matrix mode.
The terminal can implement each process of the above-mentioned image conversion method embodiment, and can achieve the same technical effect, and for avoiding repetition, the details are not repeated here.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned embodiment of the image conversion method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (9)

1. A method for converting pictures is applied to a terminal and comprises the following steps:
detecting a conversion operation of a picture to be converted, wherein the conversion operation is an operation that at least two contacts are gradually close to each other, or an operation that at least two contacts are gradually far away from each other;
responding to the conversion operation, processing the picture to be converted to obtain a target picture; when the conversion operation is the operation that at least two contacts are gradually close to each other, the picture to be converted is a two-dimensional picture, and the target picture is a three-dimensional picture; when the conversion operation is an operation that at least two contacts are gradually far away, the picture to be converted is a three-dimensional picture, and the target picture is a two-dimensional picture;
the step of detecting the conversion operation of the picture to be converted comprises the following steps:
detecting the conversion operation, and if the initial positions of at least two contact points of the conversion operation are positioned on the same picture, taking the picture as the picture to be converted;
and detecting the conversion operation, and if the initial positions of at least two contact points of the conversion operation are respectively positioned on two different pictures, taking the two pictures and a picture between the two pictures as the pictures to be converted.
2. The method according to claim 1, wherein the step of detecting the conversion operation of the picture to be converted is preceded by:
and if the selection operation of selecting the picture is detected, taking the selected picture as the picture to be converted.
3. The method according to claim 1, wherein the step of processing the picture to be converted to obtain the target picture in response to the conversion operation comprises:
if the conversion operation is an operation in which at least two contacts are gradually far away, displaying a user interface for a user to input user selection, wherein the user selection comprises the size and/or the number of the two-dimensional pictures serving as the target pictures;
acquiring the user selection;
and converting the three-dimensional picture into a two-dimensional picture according to the user selection.
4. The method according to claim 1, wherein the step of detecting the conversion operation of the picture to be converted is preceded by:
acquiring the clicking operation of a user on the front cover of the two-dimensional picture album;
and responding to the clicking operation, expanding and displaying the plurality of two-dimensional pictures in the two-dimensional picture album, and arranging the plurality of displayed two-dimensional pictures in a matrix mode.
5. An apparatus for converting a picture, comprising:
the detection module is used for detecting the conversion operation of the picture to be converted, wherein the conversion operation is the operation that at least two contacts are gradually close to each other, or the operation that at least two contacts are gradually far away from each other;
the conversion module is used for responding to the conversion operation and processing the picture to be converted to obtain a target picture; when the conversion operation is the operation that at least two contacts are gradually close to each other, the picture to be converted is a two-dimensional picture, and the target picture is a three-dimensional picture; when the conversion operation is an operation that at least two contacts are gradually far away, the picture to be converted is a three-dimensional picture, and the target picture is a two-dimensional picture;
the detection module comprises:
the first selection unit is used for detecting the conversion operation, and if the initial positions of at least two contact points of the conversion operation are positioned on the same picture, the picture is taken as the picture to be converted;
and the second selection unit is used for detecting the conversion operation, and taking the two pictures and a picture between the two pictures as the pictures to be converted if the initial positions of at least two contact points of the conversion operation are respectively positioned on two different pictures.
6. The picture conversion apparatus according to claim 5, further comprising:
and the selection module is used for taking the selected picture as the picture to be converted if the selection operation of selecting the picture is detected.
7. The picture conversion apparatus according to claim 5, wherein the conversion module comprises:
the display unit is used for displaying a user interface for a user to input user selection if the conversion operation is an operation that at least two contacts are gradually far away, wherein the user selection comprises the size and/or the number of two-dimensional pictures serving as target pictures;
a user selection acquisition unit for acquiring the user selection;
and the conversion unit is used for converting the three-dimensional picture into the two-dimensional picture according to the user selection.
8. The picture conversion apparatus according to claim 5, further comprising:
the operation acquisition module is used for acquiring the clicking operation of a user on the front cover of the two-dimensional picture album;
and the expansion display module is used for responding to the click operation and expanding and displaying the plurality of two-dimensional pictures in the two-dimensional picture album, and the displayed plurality of two-dimensional pictures are arranged in a matrix mode.
9. A terminal, characterized in that it comprises a processor, a memory and a computer program stored on said memory and executable on said processor, said computer program, when executed by said processor, implementing the steps of the method for conversion of pictures according to any one of claims 1 to 4.
CN201810968698.4A 2018-08-23 2018-08-23 Picture conversion method and terminal Active CN109144368B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810968698.4A CN109144368B (en) 2018-08-23 2018-08-23 Picture conversion method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810968698.4A CN109144368B (en) 2018-08-23 2018-08-23 Picture conversion method and terminal

Publications (2)

Publication Number Publication Date
CN109144368A CN109144368A (en) 2019-01-04
CN109144368B true CN109144368B (en) 2020-09-15

Family

ID=64791289

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810968698.4A Active CN109144368B (en) 2018-08-23 2018-08-23 Picture conversion method and terminal

Country Status (1)

Country Link
CN (1) CN109144368B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113077306B (en) * 2021-03-25 2023-07-07 中国联合网络通信集团有限公司 Image processing method, device and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101930620A (en) * 2009-06-18 2010-12-29 晨星软件研发(深圳)有限公司 Image processing method and associated apparatus for rendering three-dimensional effect using two-dimensional image
CN102377874A (en) * 2010-08-17 2012-03-14 Lg电子株式会社 Mobile terminal and method for converting display mode thereof, having mixed 2d and 3d display capability
CN103135889A (en) * 2011-12-05 2013-06-05 Lg电子株式会社 Mobile terminal and 3D image control method thereof
US9304653B2 (en) * 2012-02-08 2016-04-05 Samsung Electronics Co., Ltd. Method and apparatus for creating 3D image based on user interaction

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6025482B2 (en) * 2012-09-28 2016-11-16 富士ゼロックス株式会社 Display control device, image display device, and program
EP2752758A3 (en) * 2013-01-07 2016-10-26 LG Electronics Inc. Image display device and controlling method thereof
CN103870115B (en) * 2014-02-18 2017-12-26 联想(北京)有限公司 Information processing method and electronic equipment
CN104199610B (en) * 2014-08-27 2018-07-06 联想(北京)有限公司 A kind of information processing method and electronic equipment
KR101667727B1 (en) * 2014-10-31 2016-10-28 엘지전자 주식회사 Mobile terminal and method of controlling the same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101930620A (en) * 2009-06-18 2010-12-29 晨星软件研发(深圳)有限公司 Image processing method and associated apparatus for rendering three-dimensional effect using two-dimensional image
CN102377874A (en) * 2010-08-17 2012-03-14 Lg电子株式会社 Mobile terminal and method for converting display mode thereof, having mixed 2d and 3d display capability
CN103135889A (en) * 2011-12-05 2013-06-05 Lg电子株式会社 Mobile terminal and 3D image control method thereof
US9304653B2 (en) * 2012-02-08 2016-04-05 Samsung Electronics Co., Ltd. Method and apparatus for creating 3D image based on user interaction

Also Published As

Publication number Publication date
CN109144368A (en) 2019-01-04

Similar Documents

Publication Publication Date Title
CN108762954B (en) Object sharing method and mobile terminal
CN108495029B (en) Photographing method and mobile terminal
CN108446058B (en) Mobile terminal operation method and mobile terminal
CN108279948B (en) Application program starting method and mobile terminal
CN109739429B (en) Screen switching processing method and mobile terminal equipment
CN108536509B (en) Application body-splitting method and mobile terminal
CN108646960B (en) File processing method and flexible screen terminal
CN111327458A (en) Configuration information sharing method, terminal device and computer readable storage medium
JP7467667B2 (en) Detection result output method, electronic device and medium
CN109144393B (en) Image display method and mobile terminal
CN110865745A (en) Screen capturing method and terminal equipment
CN109710130B (en) Display method and terminal
CN109683802B (en) Icon moving method and terminal
CN110806832A (en) Parameter adjusting method and electronic equipment
CN108174109B (en) Photographing method and mobile terminal
CN111182211B (en) Shooting method, image processing method and electronic equipment
CN109491964B (en) File sharing method and terminal
CN109542321B (en) Control method and device for screen display content
CN109117037B (en) Image processing method and terminal equipment
CN109002245B (en) Application interface operation method and mobile terminal
CN109067975B (en) Contact person information management method and terminal equipment
CN108924035B (en) File sharing method and terminal
CN108924413B (en) Shooting method and mobile terminal
CN111178306B (en) Display control method and electronic equipment
CN110007821B (en) Operation method and terminal equipment

Legal Events

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