+

CN107248141B - Image editing method and device and computer readable storage medium - Google Patents

Image editing method and device and computer readable storage medium Download PDF

Info

Publication number
CN107248141B
CN107248141B CN201710294854.9A CN201710294854A CN107248141B CN 107248141 B CN107248141 B CN 107248141B CN 201710294854 A CN201710294854 A CN 201710294854A CN 107248141 B CN107248141 B CN 107248141B
Authority
CN
China
Prior art keywords
graphic element
data
image
movable
data image
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
CN201710294854.9A
Other languages
Chinese (zh)
Other versions
CN107248141A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710294854.9A priority Critical patent/CN107248141B/en
Publication of CN107248141A publication Critical patent/CN107248141A/en
Application granted granted Critical
Publication of CN107248141B publication Critical patent/CN107248141B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4038Image mosaicing, e.g. composing plane images from plane sub-images
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)

Abstract

An image editing method and apparatus and a computer-readable storage medium, comprising: receiving a photographing instruction of a user; detecting whether the terminal moves, and if the terminal moves, acquiring two or more first data images and corresponding second data images in real time by using a binocular camera; splicing according to the obtained first data image and/or the second data image to form a composite image and displaying the composite image; receiving an editing instruction of a user for the composite image, and acquiring and prompting a movable graphic element of the composite image according to the first data image and the second data image; determining a movable range of each movable graphic element according to the first data image or the second data image; and receiving the dragging operation of the user on the movable graphic element, and filling partial image data which is shielded by the movable graphic element before the movable graphic element is dragged according to the first data image or the second data image. The invention realizes the editing of the graphic elements in the image.

Description

Image editing method and device and computer readable storage medium
Technical Field
The present invention relates to intelligent terminal technologies, and in particular, to an image editing method and apparatus, and a computer-readable storage medium.
Background
At present, image editing can only perform operations such as scaling, rotation, clipping and the like on an image. However, users often want to edit the graphic elements in the image, and currently, there is no effective method for editing the graphic elements in the image, so that the user experience is low.
Disclosure of Invention
In view of the above technical problems, the present invention provides an image editing method and apparatus, and a computer-readable storage medium, which can edit a graphic element in an image, thereby improving user experience.
In order to achieve the object of the present invention, an embodiment of the present invention provides an image editing method, including:
receiving a photographing instruction of a user;
detecting whether the terminal moves, and if the terminal moves, acquiring two or more first data images and corresponding second data images in real time by using a binocular camera;
splicing according to the obtained first data image and/or the second data image to form a composite image and displaying the composite image;
receiving an editing instruction of a user for the composite image, and acquiring and prompting a movable graphic element of the composite image according to the first data image and the second data image;
determining a movable range of each movable graphic element according to the first data image or the second data image;
and receiving the dragging operation of the user on the movable graphic element, and filling partial image data which is shielded by the movable graphic element before the movable graphic element is dragged according to the first data image or the second data image.
Optionally, the time point of each first data image or second data image is obtained while two or more first data images and corresponding second data images are obtained in real time by using the binocular camera;
the step of acquiring a movable graphical element of a composite image from the first data image and the second data image comprises:
identifying all graphical elements in the composite image;
for each pair of two adjacent graphic elements, judging whether the depth of field difference value between the two adjacent graphic elements is greater than or equal to a first preset value according to the first data image and the second data image, and if so, acquiring a forming time point of a front graphic element in the two graphic elements;
and judging whether a part shielded by the front-end graphic element in the first data image or the second data image obtained at any time point before or after the forming time point of the front-end graphic element is different from the part shielded by the front-end graphic element in the synthetic image, and if so, determining that the front-end graphic element is a movable graphic element.
Optionally, the time point of each first data image or second data image is obtained while two or more first data images and corresponding second data images are obtained in real time by using the binocular camera;
the step of acquiring a movable graphical element of a composite image from the first data image and the second data image comprises:
identifying all graphical elements in the composite image;
for each pair of two adjacent graphic elements, judging whether the depth of field difference value between the two adjacent graphic elements is greater than or equal to a preset value according to the first data image and the second data image, and if so, acquiring a forming time point of a front graphic element in the two graphic elements;
judging whether the shielded part of the back graphic element in the two graphic elements in the first data image or the second data image obtained at any time point before or after the forming time point of the front graphic element is different from the shielded part of the back graphic element in the composite image, and if so, determining that the front graphic element is a movable graphic element.
Optionally, the step of determining the movable range of each movable graphic element according to the first data image or the second data image includes:
traversing all the first data images or all the second data images obtained before the forming time point of the movable graphic elements, and determining that the movable graphic elements and the first data images or the second data images of the corresponding back-end graphic elements appear for the first time, and the different ranges of the back-end graphic elements corresponding to the movable graphic elements in the first data images or the second data images obtained at the forming time point of the movable graphic elements are the first movable ranges of the movable graphic elements;
traversing all the first data images or the second data images obtained after the forming time point of the movable graphic element, determining the first data images or the second data images obtained after the forming time point of the movable graphic element, and determining the movable graphic element and the corresponding back end graphic element which are in the first data images or the second data images at the last time, wherein the different range of the back end graphic element corresponding to the movable graphic element is the second movable range of the movable graphic element.
Optionally, the step of filling, according to the first data image or the second data image, partial image data that is hidden by the movable graphic element before the movable graphic element is dragged includes:
acquiring a dragged starting point and an end point of the movable graphic element;
determining the dragging direction and distance of the movable graphic element according to the starting point and the end point;
judging that the dragged direction is towards the left, the dragged distance is smaller than or equal to the second movable range, calculating first time of the terminal movement corresponding to the dragged distance, and filling partial image data shielded by the movable graphic element before dragging the movable graphic element according to a first data image or a second data image obtained when the sum of the forming time point of the movable graphic element and the first time is obtained;
or, judging that the dragged direction is leftward and the dragged distance is greater than the second movable range, calculating a second time of the terminal movement corresponding to the second movable range, and filling partial image data, which is shielded by the movable graphic element before the movable graphic element is dragged, according to a first data image or a second data image obtained at a sum of a formation time point of the movable graphic element and the second time;
or, judging that the dragged direction is rightward, and the dragged distance is smaller than or equal to the first movable range, calculating a first time of the terminal movement corresponding to the dragged distance, and filling partial image data, which is shielded by the movable graphic element before the movable graphic element is dragged, according to a first data image or a second data image obtained when a difference value between a forming time point of the movable graphic element and the first time is obtained;
and judging that the dragged direction is rightward, and the dragged distance is greater than the first movable range, calculating a third time of the terminal movement corresponding to the first movable range, and filling partial image data shielded by the movable graphic element before dragging the movable graphic element according to a first data image or a second data image obtained when the difference between the forming time point of the movable graphic element and the third time is obtained.
An embodiment of the present invention further provides an image editing apparatus, including:
the receiving module is used for receiving a photographing instruction of a user; receiving an editing instruction of a user for the synthetic image; receiving a dragging operation of a user on the movable graphic element;
the detection module is used for detecting whether the terminal moves or not, and if the terminal is detected to move, two or more first data images and corresponding second data images are acquired in real time by adopting a binocular camera;
the splicing module is used for splicing the obtained first data image and/or the second data image to form a composite image and displaying the composite image;
the acquisition module is used for acquiring the movable graphic element of the composite image according to the first data image and the second data image and prompting; determining a movable range of each movable graphic element according to the first data image or the second data image;
and the filling module is used for filling partial image data which is shielded by the movable graphic element before the movable graphic element is dragged according to the first data image or the second data image.
Optionally, the detection module is further configured to:
the binocular camera is adopted to obtain two or more first data images and corresponding second data images in real time and obtain the time point of each first data image or each second data image;
the acquisition module is specifically configured to implement the step of acquiring the movable graphical element of the composite image from the first data image and the second data image in the following manner:
identifying all graphical elements in the composite image;
for each pair of two adjacent graphic elements, judging whether the depth of field difference value between the two adjacent graphic elements is greater than or equal to a first preset value according to the first data image and the second data image, and if so, acquiring a forming time point of a front graphic element in the two graphic elements;
and judging whether a part shielded by the front-end graphic element in the first data image or the second data image obtained at any time point before or after the forming time point of the front-end graphic element is different from the part shielded by the front-end graphic element in the synthetic image, and if so, determining that the front-end graphic element is a movable graphic element.
Optionally, the detection module is further configured to:
the method comprises the steps that a binocular camera is adopted to obtain two or more first data images and corresponding second data images in real time, and a time point for obtaining each first data image or each second data image is obtained at the same time;
the acquisition module is specifically configured to implement the step of acquiring the movable graphical element of the composite image from the first data image and the second data image in the following manner:
identifying all graphical elements in the composite image;
for each pair of two adjacent graphic elements, judging whether the depth of field difference value between the two adjacent graphic elements is greater than or equal to a preset value according to the first data image and the second data image, and if so, acquiring a forming time point of a front graphic element in the two graphic elements;
judging whether the shielded part of the back graphic element in the two graphic elements in the first data image or the second data image obtained at any time point before or after the forming time point of the front graphic element is different from the shielded part of the back graphic element in the composite image, and if so, determining that the front graphic element is a movable graphic element.
Optionally, the obtaining module is specifically configured to implement the step of determining the movable range of each movable graphic element according to the first data image or the second data image by using the following method:
traversing all the first data images or all the second data images obtained before the forming time point of the movable graphic elements, and determining that the movable graphic elements and the first data images or the second data images of the corresponding back-end graphic elements appear for the first time, and the different ranges of the back-end graphic elements corresponding to the movable graphic elements in the first data images or the second data images obtained at the forming time point of the movable graphic elements are the first movable ranges of the movable graphic elements;
traversing all the first data images or the second data images obtained after the forming time point of the movable graphic element, determining the first data images or the second data images obtained after the forming time point of the movable graphic element, and determining the movable graphic element and the corresponding back end graphic element which are in the first data images or the second data images at the last time, wherein the different range of the back end graphic element corresponding to the movable graphic element is the second movable range of the movable graphic element.
Optionally, the filling module is specifically configured to:
acquiring a dragged starting point and an end point of the movable graphic element;
determining the dragging direction and distance of the movable graphic element according to the starting point and the end point;
judging that the dragged direction is towards the left, the dragged distance is smaller than or equal to the second movable range, calculating first time of the terminal movement corresponding to the dragged distance, and filling partial image data shielded by the movable graphic element before dragging the movable graphic element according to a first data image or a second data image obtained when the sum of the forming time point of the movable graphic element and the first time is obtained;
or, judging that the dragged direction is leftward and the dragged distance is greater than the second movable range, calculating a second time of the terminal movement corresponding to the second movable range, and filling partial image data, which is shielded by the movable graphic element before the movable graphic element is dragged, according to a first data image or a second data image obtained at a sum of a formation time point of the movable graphic element and the second time;
or, judging that the dragged direction is rightward, and the dragged distance is smaller than or equal to the first movable range, calculating a first time of the terminal movement corresponding to the dragged distance, and filling partial image data, which is shielded by the movable graphic element before the movable graphic element is dragged, according to a first data image or a second data image obtained when a difference value between a forming time point of the movable graphic element and the first time is obtained;
and judging that the dragged direction is rightward, and the dragged distance is greater than the first movable range, calculating a third time of the terminal movement corresponding to the first movable range, and filling partial image data shielded by the movable graphic element before dragging the movable graphic element according to a first data image or a second data image obtained when the difference between the forming time point of the movable graphic element and the third time is obtained.
An embodiment of the present invention further provides a terminal, including:
the binocular camera is used for acquiring a first data image and a corresponding second data image;
a processor and a computer readable storage medium having an image editing program stored therein, wherein the image editing program, when executed by the processor, implements the steps of any of the methods described above.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the steps of any one of the above methods.
The technical scheme of the invention comprises the following steps: receiving a photographing instruction of a user; detecting whether the terminal moves, and if the terminal moves, acquiring two or more first data images and corresponding second data images in real time by using a binocular camera; splicing according to the obtained first data image and/or the second data image to form a composite image and displaying the composite image; receiving an editing instruction of a user for the composite image, and acquiring and prompting a movable graphic element of the composite image according to the first data image and the second data image; determining a movable range of each movable graphic element according to the first data image or the second data image; and receiving the dragging operation of the user on the movable graphic element, and filling partial image data which is shielded by the movable graphic element before the movable graphic element is dragged according to the first data image or the second data image. According to the technical scheme, the graphic elements in the image are edited, so that the user experience is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a schematic hardware configuration of a mobile terminal implementing various embodiments of the present invention;
FIG. 2 is a schematic diagram of a communication system supporting communication between mobile terminals in accordance with the present invention;
FIG. 3 is a flowchart of an image editing method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a front end graphical element and a back end graphical element of an embodiment of the present invention;
FIG. 5 is a schematic diagram of a user being prompted for a movable graphical element in accordance with an embodiment of the present invention;
FIG. 6 is a schematic diagram illustrating an exemplary configuration of an image editing apparatus according to the present invention;
fig. 7 is a schematic view of a terminal assembly structure according to an embodiment of the present invention.
Detailed Description
The technical solution of the present invention will be described in more detail with reference to the accompanying drawings and examples.
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) 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 mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to 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 wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures 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 WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) 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 microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a 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 mobile 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), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
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 mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. 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 can receive and execute 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. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover 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 the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile 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 mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile 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 external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
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 mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile 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 mobile 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 mobile 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 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the method.
Referring to fig. 3, according to an embodiment of the present invention, there is provided an image editing method including:
and step 300, receiving a photographing instruction of a user.
Step 301, detecting whether the terminal moves, and if the terminal moves, acquiring two or more first data images and corresponding second data images in real time by using a binocular camera.
In this step, a Global Positioning System (GPS) Positioning function may be adopted to detect whether the terminal is moving, and if the results obtained by Positioning at different times are all different or the deviation range is greater than a preset range, it is determined that the terminal is moving; and if the results obtained by positioning at different times are the same or the deviation range is smaller than or equal to the preset range, judging that the terminal does not move.
In the step, a binocular camera is adopted to obtain two or more first data images and corresponding second data images in real time, and simultaneously obtain the time point of each first data image or each second data image.
And step 302, splicing the obtained first data image and/or second data image to form a composite image and displaying the composite image.
In this step, the first data image may be stitched to form a composite image, the second data image may be stitched to form a composite image, or the first data image and the second data image may be stitched to form a composite image.
Before the stitching is performed to form the composite image, all the first data images and/or the second data images may be registered, and the stitching may be performed after the registration.
When the first data image and the second data image are spliced to form the composite image, the data image with the graphic element in the middle can be selected from the first data image and/or the second data image, and the selected data images can be spliced to form the composite image. The graphic element in the middle is the middle in the left-right direction, and it is possible to determine whether the graphic element is located in the middle of the data image in the up-down direction. For example, in fig. 4, each of the graphic element 1, the graphic element 2, the graphic element 3, and the graphic element 4 is in the middle of the data image in the left-right direction, and neither in the up-down direction is in the middle of the data image, and thus, each of the graphic element 1, the graphic element 2, the graphic element 3, and the graphic element 4 is considered to be in the middle of the data image, and each of the graphic element 5 and the graphic element 6 is not in the middle of the data image in the left-right direction although both in the up-down direction, and thus, each of the graphic element 5 and the graphic element 6 is considered to be not in the middle of the data image.
And 303, receiving an editing instruction of the user for the composite image, and acquiring and prompting the movable graphic element of the composite image according to the first data image and the second data image.
In this step, the step of acquiring the movable figure element of the composite image from the first data image and the second data image includes:
identifying all graphical elements in the composite image;
for each pair of two adjacent graphic elements, judging whether the depth of field difference value between the two adjacent graphic elements is greater than or equal to a first preset value according to the first data image and the second data image, and if so, acquiring a forming time point of a front graphic element in the two graphic elements;
and judging whether the front-end graphic element shielding part in the first data image or the second data image obtained at any time point before or after the forming time point of the front-end graphic element is different from the front-end graphic element shielding part in the synthetic image, and if so, determining that the front-end graphic element is a movable graphic element. Specifically, first, a first central point coordinate of a front end graphic element in a composite image is obtained, and an average value a of color data of all pixel points in a circular range with a preset length as a radius in the composite image is obtained with the first central point coordinate as an origin. Secondly, acquiring a second center point coordinate of the front graphic element in the first data image or the second data image acquired at any time point before or after the forming time point of the front graphic element, and acquiring an average value B of color data of all pixel points in a circular range with preset length as a radius, wherein the second center point coordinate is taken as an origin in the first data image or the second data image acquired at any time point before or after the forming time point of the front graphic element. And calculating whether the difference value of the average value A and the average value B exceeds a second preset value, and if so, determining that the front-end graphic element is a movable graphic element.
The image recognition technology can be adopted to recognize all graphic elements in the synthesized image, the brightness and the color value of each pixel point are traversed after the brightness and the color value of the pixel point of any reference point are obtained, the comparison is carried out on the brightness and the color value of the pixel point of the reference point, and when the difference value is smaller than a third preset value, the two points are considered to be similar points. In this way, each graphical element in the image may be determined.
Wherein, two adjacent figure elements refer to two figure elements adjacent in the front-back direction. For example, in fig. 4, a figure element 1 and a figure element 2 are two adjacent figure elements, a figure element 2 and a figure element 3 are two adjacent figure elements, and a figure element 3 and a figure element 4 are two adjacent figure elements.
One of the two adjacent figure elements is a front-end figure element, and the other is a back-end figure element. The front and rear are in terms of the distance of the graphic elements to the binocular camera, the distance of the front graphic elements to the binocular camera being shorter than the distance of the rear graphic elements to the binocular camera.
When the graphic element is judged to be a front-end graphic element or a rear-end graphic element, the distance between the graphic element and the binocular camera can be calculated firstly, and the specific calculation method is as follows:
calculating the Depth of field of each point in the graphic element according to the formula Depth ═ Pleft-right; the Depth is the Depth of field of one point in the graphic element, the Pleft is the imaging position of one point in the graphic element in the left camera, and the right is the imaging position of one point in the graphic element in the right camera;
according to the formula
Figure BDA0001282806470000151
Calculating the distance between each point in the graphic elements and the binocular camera; z is the distance between one point in the graphic element and the binocular camera, f is the focal length of the binocular camera, and T is the distance between two cameras in the binocular camera;
and taking the average value of the distances from all points on the graphic element to the binocular cameras to obtain the distance between the graphic element and the binocular cameras.
For example, in fig. 4, of the figure element 1 and the figure element 2, the figure element 1 is a back-end figure element, and the figure element 2 is a front-end figure element; among the graphic elements 2 and 3, the graphic element 2 is a rear-end graphic element, and the graphic element 3 is a front-end graphic element; among the figure elements 3 and 4, the figure element 3 is a back-end figure element, and the figure element 4 is a front-end figure element.
Wherein the depth of field of the graphical element may be calculated in the following manner:
calculating the Depth of field of each point in the graphic element according to the formula Depth ═ Pleft-right; the Depth is the Depth of field of one point in the graphic element, the Pleft is the imaging position of one point in the graphic element in the left camera, and the right is the imaging position of one point in the graphic element in the right camera;
the average value of the depth of field of all the points in the graphic element is taken as the depth of field of the graphic element, the median value of the depth of field of all the points of the graphic element can be taken as the depth of field of the graphic element, and the depth of field corresponding to the point of the depth of field of the graphic element in the preset range at most can be taken as the depth of field of the graphic element.
The depth difference between two adjacent graphic elements is the difference between the depths of two adjacent graphic elements.
The forming time point of the front-end graphic element refers to the time when the left camera or the right camera of the binocular camera is over against the graphic element for shooting. I.e. the point in time corresponding to the data image with the front graphic element in the middle in the left-right direction.
Alternatively, the step of acquiring a movable graphical element of the composite image from the first data image and the second data image comprises:
identifying all graphical elements in the composite image;
for each pair of two adjacent graphic elements, judging whether the depth of field difference value between the two adjacent graphic elements is greater than or equal to a preset value according to the first data image and the second data image, and if so, acquiring a forming time point of a front graphic element in the two graphic elements;
and judging whether the shielded part of the back graphic element in the two graphic elements in the first data image or the second data image, which is obtained at any time point before or after the forming time point of the front graphic element, is different from the shielded part of the back graphic element in the synthetic image, and if so, determining that the front graphic element is a movable graphic element.
In this step, when the movable graphic element is prompted to the user, the outline of the movable graphic element may be circled by a dotted line, as shown in fig. 5, the graphic element 2, the graphic element 3, and the graphic element 4 are all movable graphic elements. Of course, the movable graphic elements may be prompted in other manners, as long as the movable graphic elements and the non-movable graphic elements are displayed in different manners, and these prompting methods are all included in the protection scope of the present invention.
Step 304, determining the movable range of each movable graphical element from the first data image or the second data image.
In this step, the step of determining the movable range of each movable graphic element from the first data image or the second data image includes:
traversing all the first data images or the second data images obtained before the forming time point of the movable graphic element, and determining that the movable graphic element and the first data image or the second data image of the corresponding back-end graphic element appear for the first time, and the different ranges of the back-end graphic element corresponding to the movable graphic element in the first data image or the second data image obtained at the forming time point of the movable graphic element are the first movable ranges of the movable graphic element;
traversing all the first data images or the second data images obtained after the forming time point of the movable graphic element, determining the first data images or the second data images obtained after the forming time point of the movable graphic element, and determining the different range of the back-end graphic element corresponding to the movable graphic element as the second movable range of the movable graphic element in the first data images or the second data images of the movable graphic element and the corresponding back-end graphic element which appear for the last time.
Wherein the first occurrence of the movable graphical element and the first or second data image corresponding to the back graphical element may be determined in the following manner:
and traversing all the first data images or the second data images to obtain the first data images or the second data images with pixel points with color data similar to that of the movable graphic elements and pixel points with color data similar to that of the rear graphic elements corresponding to the movable graphic elements, wherein the minimum time point in the obtained first data images or the second data images is the first data image or the second data image with the movable graphic elements and the corresponding rear graphic elements appearing for the first time.
Wherein the first data image or the second data image of the last occurrence of the movable graphical element and the corresponding back-end graphical element may be determined in the following manner:
and traversing all the first data images or the second data images to obtain the first data images or the second data images with pixel points with color data similar to the color data of the movable graphic elements and pixel points with color data similar to the color data of the rear graphic elements corresponding to the movable graphic elements, wherein the maximum time point in the obtained first data images or the second data images is the first data image or the second data image with the movable graphic elements and the corresponding rear graphic elements appearing at the last time.
And 305, receiving the dragging operation of the user on the movable graphic element, and filling partial image data which is blocked by the movable graphic element before the movable graphic element is dragged according to the first data image or the second data image. The method comprises the following steps:
acquiring a dragged starting point and an end point of the movable graphic element;
determining the dragging direction and distance of the movable graphic element according to the starting point and the end point;
judging that the dragged direction is towards the left, and the dragged distance is smaller than or equal to a second movable range, calculating the first time of terminal movement corresponding to the dragged distance, and filling partial image data shielded by the movable graphic element before dragging the movable graphic element according to a first data image or a second data image obtained when the sum of the forming time point of the movable graphic element and the first time is obtained;
or, judging that the dragged direction is towards the left and the dragged distance is greater than a second movable range, calculating a second time of terminal movement corresponding to the second movable range, and filling partial image data shielded by the movable graphic element before dragging the movable graphic element according to a first data image or a second data image obtained when the sum of the forming time point of the movable graphic element and the second time is obtained;
or judging that the dragged direction is towards the right and the dragged distance is smaller than or equal to a first movable range, calculating the first time of terminal movement corresponding to the dragged distance, and filling partial image data shielded by the movable graphic element before dragging the movable graphic element according to a first data image or a second data image obtained when the difference between the forming time point of the movable graphic element and the first time is obtained;
and judging that the dragged direction is rightward and the dragged distance is greater than the first movable range, calculating a third time of terminal movement corresponding to the first movable range, and filling partial image data shielded by the movable graphic element before dragging the movable graphic element according to the first data image or the second data image obtained when the difference value between the forming time point of the movable graphic element and the third time is obtained.
The first time of the terminal movement corresponding to the dragged distance can be calculated in the following way:
and calculating a first distance of the terminal movement corresponding to the dragged distance, and calculating a ratio of the first distance of the terminal movement to the movement speed to obtain the first time of the terminal movement.
Or, a first corresponding relationship between the difference of the center point coordinates of a certain specific graphic element and the time point difference in two adjacent first data images or second data images is recorded in advance, and the time point difference corresponding to the dragged distance, which is the difference of the center point coordinates, is found in the first corresponding relationship, and is the first time of the terminal movement.
Wherein, the first distance of the terminal movement corresponding to the dragged distance can be calculated by adopting the following method:
and pre-recording a second corresponding relation between the difference value of the center point coordinates of a certain specific graphic element and the moving distance of the terminal in two adjacent first data images or second data images, and searching for the difference value of the center point coordinates in the second corresponding relation as the first moving distance of the terminal corresponding to the dragged distance.
Wherein the distance that the terminal moves may be obtained by acquiring location information of the terminal when the first data image or the second data image is acquired.
Wherein, the second time of the terminal movement corresponding to the second movable range may be calculated in the following manner:
and calculating a second distance of the terminal movement corresponding to the second movable range, and calculating a ratio of the second distance of the terminal movement to the movement speed to obtain a second time of the terminal movement.
Or, a first corresponding relationship between the difference of the center point coordinates of a certain specific graphic element and the time point difference in two adjacent first data images or second data images is recorded in advance, and the time point difference, which is found in the first corresponding relationship and corresponds to the second movable range, is the second time of the terminal movement.
Wherein, the second distance of the terminal movement corresponding to the second movable range may be calculated in the following manner:
and pre-recording a second corresponding relation between the difference value of the center point coordinates of a certain specific graphic element and the moving distance of the terminal in two adjacent first data images or second data images, and searching for the difference value of the center point coordinates in the second corresponding relation as a second moving distance of the terminal corresponding to a second movable range.
Wherein, the third time of the terminal movement corresponding to the first movable range may be calculated in the following manner:
and calculating a third distance of the terminal movement corresponding to the first movable range, and calculating a ratio of the third distance of the terminal movement to the movement speed to obtain a third time of the terminal movement.
Or, a first corresponding relationship between the difference of the center point coordinates of a certain specific graphic element and the time point difference in two adjacent first data images or second data images is recorded in advance, and the time point difference corresponding to the first movable range, which is the difference of the center point coordinates, is found in the first corresponding relationship, and is the third time of the terminal movement.
Wherein, the third distance of the terminal movement corresponding to the first movable range may be calculated in the following manner:
and pre-recording a second corresponding relation between the difference value of the center point coordinates of a certain specific graphic element and the moving distance of the terminal in two adjacent first data images or second data images, and searching for the difference value of the center point coordinates in the second corresponding relation as a third moving distance of the terminal corresponding to the first movable range.
When filling, the edges of the partial image data blocked by the movable graphic elements can be matched by adopting a registration technology and then filled.
Referring to fig. 6, according to another embodiment of the present invention, there is provided an image editing apparatus including:
the receiving module is used for receiving a photographing instruction of a user; receiving an editing instruction of a user for the synthetic image; receiving a dragging operation of a user on the movable graphic element;
the detection module is used for detecting whether the terminal moves or not, and if the terminal is detected to move, two or more first data images and corresponding second data images are acquired in real time by adopting a binocular camera;
the splicing module is used for splicing the obtained first data image and/or the second data image to form a composite image and displaying the composite image;
the acquisition module is used for acquiring the movable graphic element of the composite image according to the first data image and the second data image and prompting; determining a movable range of each movable graphic element according to the first data image or the second data image;
and the filling module is used for filling partial image data which is shielded by the movable graphic element before the movable graphic element is dragged according to the first data image or the second data image.
Optionally, the detection module is further configured to:
acquiring two or more first data images and corresponding second data images in real time by using a binocular camera and acquiring the time point of each first data image or each second data image;
the acquisition module is specifically configured to implement the step of acquiring the movable graphical element of the composite image from the first data image and the second data image in the following manner:
identifying all graphical elements in the composite image;
for each pair of two adjacent graphic elements, judging whether the depth of field difference value between the two adjacent graphic elements is greater than or equal to a first preset value according to the first data image and the second data image, and if so, acquiring a forming time point of a front graphic element in the two graphic elements;
and judging whether the front-end graphic element shielding part in the first data image or the second data image obtained at any time point before or after the forming time point of the front-end graphic element is different from the front-end graphic element shielding part in the synthetic image, and if so, determining that the front-end graphic element is a movable graphic element.
Optionally, the detection module is further configured to:
acquiring two or more first data images and corresponding second data images in real time by using a binocular camera and acquiring the time point of each first data image or each second data image;
the acquisition module is specifically configured to implement the step of acquiring the movable graphical element of the composite image from the first data image and the second data image in the following manner:
identifying all graphical elements in the composite image;
for each pair of two adjacent graphic elements, judging whether the depth of field difference value between the two adjacent graphic elements is greater than or equal to a preset value according to the first data image and the second data image, and if so, acquiring a forming time point of a front graphic element in the two graphic elements;
and judging whether the shielded part of the back graphic element in the two graphic elements in the first data image or the second data image, which is obtained at any time point before or after the forming time point of the front graphic element, is different from the shielded part of the back graphic element in the synthetic image, and if so, determining that the front graphic element is a movable graphic element.
Optionally, the obtaining module is specifically configured to implement the step of determining the movable range of each movable graphic element according to the first data image or the second data image by using the following method:
traversing all the first data images or the second data images obtained before the forming time point of the movable graphic element, and determining that the movable graphic element and the first data image or the second data image of the corresponding back-end graphic element appear for the first time, and the different ranges of the back-end graphic element corresponding to the movable graphic element in the first data image or the second data image obtained at the forming time point of the movable graphic element are the first movable ranges of the movable graphic element;
traversing all the first data images or the second data images obtained after the forming time point of the movable graphic element, determining the first data images or the second data images obtained after the forming time point of the movable graphic element, and determining the different range of the back-end graphic element corresponding to the movable graphic element as the second movable range of the movable graphic element in the first data images or the second data images of the movable graphic element and the corresponding back-end graphic element which appear for the last time.
Optionally, the filling module is specifically configured to:
acquiring a dragged starting point and an end point of the movable graphic element;
determining the dragging direction and distance of the movable graphic element according to the starting point and the end point;
judging that the dragged direction is towards the left, and the dragged distance is smaller than or equal to a second movable range, calculating the first time of terminal movement corresponding to the dragged distance, and filling partial image data shielded by the movable graphic element before dragging the movable graphic element according to a first data image or a second data image obtained when the sum of the forming time point of the movable graphic element and the first time is obtained;
or, judging that the dragged direction is towards the left and the dragged distance is greater than a second movable range, calculating a second time of terminal movement corresponding to the second movable range, and filling partial image data shielded by the movable graphic element before dragging the movable graphic element according to a first data image or a second data image obtained when the sum of the forming time point of the movable graphic element and the second time is obtained;
or judging that the dragged direction is towards the right and the dragged distance is smaller than or equal to a first movable range, calculating the first time of terminal movement corresponding to the dragged distance, and filling partial image data shielded by the movable graphic element before dragging the movable graphic element according to a first data image or a second data image obtained when the difference between the forming time point of the movable graphic element and the first time is obtained;
and judging that the dragged direction is rightward and the dragged distance is greater than the first movable range, calculating a third time of terminal movement corresponding to the first movable range, and filling partial image data shielded by the movable graphic element before dragging the movable graphic element according to the first data image or the second data image obtained when the difference value between the forming time point of the movable graphic element and the third time is obtained.
The specific implementation of the image editing apparatus is similar to the image editing method, and the specific implementation process of the image editing method can be referred to.
Referring to fig. 7, according to still another embodiment of the present invention, there is provided a terminal including:
the binocular camera is used for acquiring a first data image and a corresponding second data image;
a processor and a computer readable storage medium having an image editing program stored therein, the image editing program, when executed by the processor, implementing the steps of the foregoing method.
According to a further embodiment of the invention, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the aforementioned method.
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.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
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.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (6)

1. An image editing method, comprising:
receiving a photographing instruction of a user;
detecting whether the terminal moves, if so, acquiring two or more first data images and corresponding second data images in real time by using a binocular camera, and acquiring the time point of each first data image or each second data image;
splicing according to the obtained first data image and/or the second data image to form a composite image and displaying the composite image;
receiving an editing instruction of a user for the composite image, and acquiring and prompting a movable graphic element of the composite image according to the first data image and the second data image;
determining a movable range of each movable graphic element according to the first data image or the second data image;
receiving dragging operation of a user on the movable graphic element, and filling partial image data, which is shielded by the movable graphic element before the movable graphic element is dragged, according to the first data image or the second data image;
wherein the step of acquiring a movable graphical element of a composite image from the first data image and the second data image comprises:
identifying all graphical elements in the composite image;
for each pair of two adjacent graphic elements, judging whether the depth of field difference value between the two adjacent graphic elements is greater than or equal to a first preset value according to the first data image and the second data image, and if so, acquiring a forming time point of a front graphic element in the two graphic elements;
judging whether a front end graphic element shielding part in a first data image or a second data image obtained at any time point before or after the forming time point of the front end graphic element is different from the front end graphic element shielding part in the composite image, if so, determining that the front end graphic element is a movable graphic element, or,
judging whether the shielded part of the back graphic element in the two graphic elements in the first data image or the second data image obtained at any time point before or after the forming time point of the front graphic element is different from the shielded part of the back graphic element in the composite image, and if so, determining that the front graphic element is a movable graphic element.
2. The image editing method according to claim 1, wherein the step of determining the movable range of each movable graphic element from the first data image or the second data image comprises:
traversing all the first data images or all the second data images obtained before the forming time point of the movable graphic elements, and determining that the movable graphic elements and the first data images or the second data images of the corresponding back-end graphic elements appear for the first time, and the different ranges of the back-end graphic elements corresponding to the movable graphic elements in the first data images or the second data images obtained at the forming time point of the movable graphic elements are the first movable ranges of the movable graphic elements;
traversing all the first data images or the second data images obtained after the forming time point of the movable graphic element, determining the first data images or the second data images obtained after the forming time point of the movable graphic element, and determining the movable graphic element and the corresponding back end graphic element which are in the first data images or the second data images at the last time, wherein the different range of the back end graphic element corresponding to the movable graphic element is the second movable range of the movable graphic element.
3. The image editing method according to claim 2, wherein the step of filling, from the first data image or the second data image, a part of image data that is hidden by the movable graphic element before the movable graphic element is dragged comprises:
acquiring a dragged starting point and an end point of the movable graphic element;
determining the dragging direction and distance of the movable graphic element according to the starting point and the end point;
judging that the dragged direction is towards the left, the dragged distance is smaller than or equal to the second movable range, calculating first time of the terminal movement corresponding to the dragged distance, and filling partial image data shielded by the movable graphic element before dragging the movable graphic element according to a first data image or a second data image obtained when the sum of the forming time point of the movable graphic element and the first time is obtained;
or, judging that the dragged direction is leftward and the dragged distance is greater than the second movable range, calculating a second time of the terminal movement corresponding to the second movable range, and filling partial image data, which is shielded by the movable graphic element before the movable graphic element is dragged, according to a first data image or a second data image obtained at a sum of a formation time point of the movable graphic element and the second time;
or, judging that the dragged direction is rightward, and the dragged distance is smaller than or equal to the first movable range, calculating a first time of the terminal movement corresponding to the dragged distance, and filling partial image data, which is shielded by the movable graphic element before the movable graphic element is dragged, according to a first data image or a second data image obtained when a difference value between a forming time point of the movable graphic element and the first time is obtained;
and judging that the dragged direction is rightward, and the dragged distance is greater than the first movable range, calculating a third time of the terminal movement corresponding to the first movable range, and filling partial image data shielded by the movable graphic element before dragging the movable graphic element according to a first data image or a second data image obtained when the difference between the forming time point of the movable graphic element and the third time is obtained.
4. An image editing apparatus characterized by comprising:
the receiving module is used for receiving a photographing instruction of a user; receiving an editing instruction of a user for the synthetic image; receiving a dragging operation of a user on the movable graphic element;
the detection module is used for detecting whether the terminal moves or not, and if the terminal moves, acquiring two or more first data images and corresponding second data images in real time by using a binocular camera and simultaneously acquiring the time point of each first data image or each second data image;
the splicing module is used for splicing the obtained first data image and/or the second data image to form a composite image and displaying the composite image;
the acquisition module is used for acquiring the movable graphic element of the composite image according to the first data image and the second data image and prompting; determining a movable range of each movable graphic element according to the first data image or the second data image;
the filling module is used for filling partial image data which is shielded by the movable graphic element before the movable graphic element is dragged according to the first data image or the second data image;
wherein the obtaining module is specifically configured to implement the step of obtaining the movable graphical element of the composite image from the first data image and the second data image by:
identifying all graphical elements in the composite image;
for each pair of two adjacent graphic elements, judging whether the depth of field difference value between the two adjacent graphic elements is greater than or equal to a first preset value according to the first data image and the second data image, and if so, acquiring a forming time point of a front graphic element in the two graphic elements;
judging whether a front end graphic element shielding part in a first data image or a second data image obtained at any time point before or after the forming time point of the front end graphic element is different from the front end graphic element shielding part in the composite image, if so, determining that the front end graphic element is a movable graphic element, or,
judging whether the shielded part of the back graphic element in the two graphic elements in the first data image or the second data image obtained at any time point before or after the forming time point of the front graphic element is different from the shielded part of the back graphic element in the composite image, and if so, determining that the front graphic element is a movable graphic element.
5. A terminal, comprising:
the binocular camera is used for acquiring a first data image and a corresponding second data image;
a processor and a computer readable storage medium having an image editing program stored therein, wherein the image editing program, when executed by the processor, implements the steps of the method of any of claims 1-3.
6. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 3.
CN201710294854.9A 2017-04-28 2017-04-28 Image editing method and device and computer readable storage medium Active CN107248141B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710294854.9A CN107248141B (en) 2017-04-28 2017-04-28 Image editing method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710294854.9A CN107248141B (en) 2017-04-28 2017-04-28 Image editing method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107248141A CN107248141A (en) 2017-10-13
CN107248141B true CN107248141B (en) 2021-01-05

Family

ID=60017042

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710294854.9A Active CN107248141B (en) 2017-04-28 2017-04-28 Image editing method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107248141B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111679297A (en) * 2020-05-08 2020-09-18 四川超影科技有限公司 Noise point drift removal method for GPS positioning track

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1195949A (en) * 1997-04-04 1998-10-14 索尼株式会社 Picture editing apparatus and picture editing method
CN101685546A (en) * 2002-09-30 2010-03-31 佳能株式会社 Image editing method and image editing device
KR20150095110A (en) * 2014-02-12 2015-08-20 엘지전자 주식회사 Mobile terminal and method for controlling the same
CN105120256A (en) * 2015-07-31 2015-12-02 努比亚技术有限公司 Mobile terminal and method and device for synthesizing picture by shooting 3D image
CN105262951A (en) * 2015-10-22 2016-01-20 努比亚技术有限公司 Mobile terminal having binocular camera and photographing method
CN105608666A (en) * 2015-12-25 2016-05-25 普瑞福克斯(北京)数字媒体科技有限公司 Method and system for generating three-dimensional image by two-dimensional graph

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799720B (en) * 2012-07-03 2014-10-29 武汉天喻软件股份有限公司 Computer-aided design (CAD) graph and image mixed editing system
CN103679749B (en) * 2013-11-22 2018-04-10 北京奇虎科技有限公司 A kind of image processing method and device based on motion target tracking
CN105407280B (en) * 2015-11-11 2019-02-12 Oppo广东移动通信有限公司 Panoramic image synthesis method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1195949A (en) * 1997-04-04 1998-10-14 索尼株式会社 Picture editing apparatus and picture editing method
CN101685546A (en) * 2002-09-30 2010-03-31 佳能株式会社 Image editing method and image editing device
KR20150095110A (en) * 2014-02-12 2015-08-20 엘지전자 주식회사 Mobile terminal and method for controlling the same
CN105120256A (en) * 2015-07-31 2015-12-02 努比亚技术有限公司 Mobile terminal and method and device for synthesizing picture by shooting 3D image
CN105262951A (en) * 2015-10-22 2016-01-20 努比亚技术有限公司 Mobile terminal having binocular camera and photographing method
CN105608666A (en) * 2015-12-25 2016-05-25 普瑞福克斯(北京)数字媒体科技有限公司 Method and system for generating three-dimensional image by two-dimensional graph

Also Published As

Publication number Publication date
CN107248141A (en) 2017-10-13

Similar Documents

Publication Publication Date Title
CN108900790B (en) Video image processing method, mobile terminal and computer readable storage medium
CN108566479B (en) Screen state control method, mobile terminal and computer readable storage medium
CN109471579B (en) Terminal screen information layout adjustment method and device, mobile terminal and storage medium
CN107948360B (en) Shooting method of flexible screen terminal, terminal and computer readable storage medium
CN107959795B (en) Information acquisition method, information acquisition equipment and computer readable storage medium
CN107133939A (en) A kind of picture synthesis method, equipment and computer-readable recording medium
CN110187808B (en) Dynamic wallpaper setting method and device and computer-readable storage medium
CN108038834B (en) Method, terminal and computer readable storage medium for reducing noise
CN109120858B (en) Image shooting method, device, equipment and storage medium
CN109194874A (en) Photographic method, device, terminal and computer readable storage medium
CN107450796B (en) A kind of image processing method, mobile terminal and computer readable storage medium
CN109710159B (en) Flexible screen response method and device and computer readable storage medium
CN108184052A (en) A kind of method of video record, mobile terminal and computer readable storage medium
CN109672822A (en) A kind of method for processing video frequency of mobile terminal, mobile terminal and storage medium
CN111885307A (en) Depth-of-field shooting method and device and computer readable storage medium
CN107340958B (en) Horizontal and vertical screen switching method and mobile terminal
CN112135045A (en) Video processing method, mobile terminal and computer storage medium
CN108282608B (en) Multi-region focusing method, mobile terminal and computer readable storage medium
CN107395971B (en) Image acquisition method, image acquisition equipment and computer-readable storage medium
CN113572916A (en) Shooting method, terminal device and storage medium
CN113572964A (en) Image processing method, mobile terminal and storage medium
CN113301251A (en) Auxiliary shooting method, mobile terminal and computer-readable storage medium
CN107248141B (en) Image editing method and device and computer readable storage medium
CN107728789B (en) Starting method of one-hand operation mode, terminal and storage medium
CN107743204B (en) Exposure processing method, terminal, and computer-readable storage medium

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
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载