CN107248141A - A kind of image edit method and device and computer-readable recording medium - Google Patents
A kind of image edit method and device and computer-readable recording medium Download PDFInfo
- Publication number
- CN107248141A CN107248141A CN201710294854.9A CN201710294854A CN107248141A CN 107248141 A CN107248141 A CN 107248141A CN 201710294854 A CN201710294854 A CN 201710294854A CN 107248141 A CN107248141 A CN 107248141A
- Authority
- CN
- China
- Prior art keywords
- data image
- image
- data
- graphic element
- removable
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 34
- 238000001514 detection method Methods 0.000 claims abstract description 16
- 230000015572 biosynthetic process Effects 0.000 claims description 57
- 230000033001 locomotion Effects 0.000 claims description 40
- 235000011464 Pachycereus pringlei Nutrition 0.000 claims description 5
- 240000006939 Pachycereus weberi Species 0.000 claims description 5
- 235000011466 Pachycereus weberi Nutrition 0.000 claims description 5
- 238000003786 synthesis reaction Methods 0.000 claims description 5
- 238000004590 computer program Methods 0.000 claims description 4
- 230000006870 function Effects 0.000 description 15
- 230000006854 communication Effects 0.000 description 11
- 238000004891 communication Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 238000010295 mobile communication Methods 0.000 description 3
- 239000002131 composite material Substances 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000001629 suppression Effects 0.000 description 2
- 244000131316 Panax pseudoginseng Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 230000000149 penetrating effect Effects 0.000 description 1
- 238000009527 percussion Methods 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06T3/4038—Image mosaicing, e.g. composing plane images from plane sub-images
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/60—Editing figures and text; Combining figures or text
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Processing Or Creating Images (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
A kind of image edit method and device and computer-readable recording medium, including:Receive the photographing instruction of user;Whether detection terminal is being moved, and is being moved if detecting terminal, and two or more than two the first data images and corresponding second data image are obtained in real time using binocular camera;Carry out being spliced to form composograph and show according to the first data image of acquisition and/or the second data image;Edit instruction of the user to composograph is received, the removable graphic element of composograph is obtained according to the first data image and the second data image and pointed out;The mobile range of each removable graphic element is determined according to the first data image or the second data image;Drag operation of the user to removable graphic element is received, the part image data blocked before the removable graphic element of dragging by removable graphic element is filled according to the first data image or the second data image.The present invention is realized enters edlin to the graphic element in image.
Description
Technical field
The present invention relates to intelligent terminal technology, espespecially a kind of image edit method and device and computer-readable storage medium
Matter.
Background technology
Current picture editting, which can only zoom in and out to image, rotate, cutting etc., to be operated.However, user is often desirable to figure
Graphic element as in enters edlin, and not yet has effective method to enter edlin to the graphic element in image at present,
So as to which user experience is relatively low.
The content of the invention
For above-mentioned technical problem, the invention provides a kind of image edit method and device and computer-readable storage
Medium, can enter edlin, so as to improve Consumer's Experience to the graphic element in image.
In order to reach the object of the invention, the embodiments of the invention provide a kind of image edit method, including:
Receive the photographing instruction of user;
Whether detection terminal is moving, and is being moved if detecting terminal, real-time using binocular camera
Obtain two or more than two the first data images and corresponding second data image;
Carry out being spliced to form composograph and show according to the first data image of acquisition and/or the second data image;
Edit instruction of the user to composograph is received, composite diagram is obtained according to the first data image and the second data image
The removable graphic element of picture is simultaneously pointed out;
The mobile range of each removable graphic element is determined according to the first data image or the second data image;
Drag operation of the user to removable graphic element is received, according to the first data image or the second data image to dragging
The part image data blocked before dynamic removable graphic element by removable graphic element is filled.
Optionally, the use binocular camera obtains two or more than two the first data images and corresponding the in real time
The time point of each the first data image or the second data image is obtained while two data images;
It is described composograph is obtained according to the first data image and the second data image removable graphic element the step of
Including:
Recognize all graphic elements in the composograph;
For every a pair two neighboring graphic elements, judged according to first data image and second data image
Whether the depth of field difference between the two neighboring graphic element is more than or equal to the first preset value, if it is, obtaining described two
The formation time point of front-end graphical element in individual graphic element;
Judge the front-end graphical element form time point before or after any one time point obtain the
The part that front-end graphical element is blocked described in one data image or the second data image and front end described in the composograph
Graphic element shield portions are with the presence or absence of difference, if it is, determining that the front-end graphical element is removable graphic element.
Optionally, the use binocular camera obtains two or more than two the first data images and corresponding the in real time
The time point of each the first data image or the second data image is obtained while two data images;
It is described composograph is obtained according to the first data image and the second data image removable graphic element the step of
Including:
Recognize all graphic elements in the composograph;
For every a pair two neighboring graphic elements, judged according to first data image and second data image
Whether the depth of field difference between the two neighboring graphic element is more than or equal to preset value, if it is, obtaining described two figures
The formation time point of front-end graphical element in shape element;
Judge the front-end graphical element form time point before or after any one time point obtain the
The part that back-end graphical element described in one data image or the second data image in two graphic elements is blocked with it is described
The shield portions of back-end graphical element described in composograph are with the presence or absence of difference, if it is, determining the front-end graphical element
To may move graphic element.
Optionally, it is described according to the first data image or the second data image determine each removable graphic element can
The step of moving range, includes:
All first data images obtained before the formation time point for traveling through the removable graphic element or the second number
According to image, it is determined that occurring the first data image or second of the removable graphic element and corresponding back-end graphical element first
Data image, and the removable graphic element formed time point obtain the first data image or the second data image
In, the different scope of the corresponding back-end graphical element of the removable graphic element can for the first of the removable graphic element
Moving range;
All first data images obtained after the formation time point for traveling through the removable graphic element or the second number
According to image, the first data image or the second data image that form time point acquisition of the removable graphic element are determined, with
And there is the first data image or the second data of the removable graphic element and corresponding back-end graphical element in last time
In image, the different scope of the corresponding back-end graphical element of the removable graphic element is the of the removable graphic element
Two mobile ranges.
Optionally, it is described removable before removable graphic element to dragging according to the first data image or the second data image
The step of part image data that dynamic graphic element is blocked is filled includes:
Obtain the trailing beginning and end of removable graphic element;
The trailing direction of removable graphic element and distance are determined according to the beginning and end;
The trailing direction is judged for the left, and to be less than or equal to described second removable for the trailing distance
Dynamic scope, calculates the trailing very first time apart from the corresponding terminal movement, according in the removable figure
The first data image or the second data image pair obtained during between formation time point and the very first time of element and value
The part image data blocked by the removable graphic element before the removable graphic element is dragged to be filled;
Or, the trailing direction is judged for the left, and to be more than described second removable for the trailing distance
Dynamic scope, calculates the second time of the corresponding terminal movement of second mobile range, according in the removable cardon
The first data image or the second data image obtained during between the formation time point and second time of shape element and value
It is filled to dragging the part image data blocked before the removable graphic element by the removable graphic element;
Or, the trailing direction is judged for the right, and the trailing distance is less than or equal to described the
One mobile range, calculates the trailing very first time apart from the corresponding terminal movement, according to described removable
Move the first data image obtained during the difference between formation time point and the very first time of graphic element or the second data
Image is filled to dragging the part image data blocked before the removable graphic element by the removable graphic element;
The trailing direction is judged for the right, and the trailing distance is more than the described first removable model
Enclose, the 3rd time of the corresponding terminal movement of first mobile range is calculated, according in the removable pattern primitive
The first data image for obtaining or the second data image are to dragging during difference between the formation time point and the 3rd time of element
The part image data blocked by the removable graphic element before the removable graphic element is moved to be filled.
The embodiment of the present invention also proposed a kind of image editing apparatus, including:
Receiving module, the photographing instruction for receiving user;Receive edit instruction of the user to composograph;Receive user
Drag operation to may move graphic element;
Detection module, for detecting whether terminal is moving, is being moved, using double if detecting terminal
Mesh camera obtains two or more than two the first data images and corresponding second data image in real time;
Concatenation module, carries out being spliced to form synthesis for the first data image according to acquisition and/or the second data image
Image is simultaneously shown;
Acquisition module, the removable pattern primitive for obtaining composograph according to the first data image and the second data image
Element is simultaneously pointed out;The mobile range of each removable graphic element is determined according to the first data image or the second data image;
Module is filled, quilt can for be may move according to the first data image or the second data image to dragging before graphic element
The part image data that mobile graphics element is blocked is filled.
Optionally, the detection module is additionally operable to:
The use binocular camera obtains two or more than two the first data images and corresponding second data in real time
The time point of each the first data image or the second data image is obtained while image;
The acquisition module is described according to the first data image and the second datagram specifically for realizing in the following ways
The step of picture obtains the removable graphic element of composograph:
Recognize all graphic elements in the composograph;
For every a pair two neighboring graphic elements, judged according to first data image and second data image
Whether the depth of field difference between the two neighboring graphic element is more than or equal to the first preset value, if it is, obtaining described two
The formation time point of front-end graphical element in individual graphic element;
Judge the front-end graphical element form time point before or after any one time point obtain the
The part that front-end graphical element is blocked described in one data image or the second data image and front end described in the composograph
Graphic element shield portions are with the presence or absence of difference, if it is, determining that the front-end graphical element is removable graphic element.
Optionally, the detection module is additionally operable to:
The use binocular camera obtains two or more than two the first data images and corresponding second data in real time
The time point of each the first data image or the second data image is obtained while image;
The acquisition module is described according to the first data image and the second datagram specifically for realizing in the following ways
The step of picture obtains the removable graphic element of composograph:
Recognize all graphic elements in the composograph;
For every a pair two neighboring graphic elements, judged according to first data image and second data image
Whether the depth of field difference between the two neighboring graphic element is more than or equal to preset value, if it is, obtaining described two figures
The formation time point of front-end graphical element in shape element;
Judge the front-end graphical element form time point before or after any one time point obtain the
The part that back-end graphical element described in one data image or the second data image in two graphic elements is blocked with it is described
The shield portions of back-end graphical element described in composograph are with the presence or absence of difference, if it is, determining the front-end graphical element
To may move graphic element.
Optionally, the acquisition module is described according to the first data image or second specifically for realizing in the following ways
The step of data image determines the mobile range of each removable graphic element:
All first data images obtained before the formation time point for traveling through the removable graphic element or the second number
According to image, it is determined that occurring the first data image or second of the removable graphic element and corresponding back-end graphical element first
Data image, and the removable graphic element formed time point obtain the first data image or the second data image
In, the different scope of the corresponding back-end graphical element of the removable graphic element can for the first of the removable graphic element
Moving range;
All first data images obtained after the formation time point for traveling through the removable graphic element or the second number
According to image, the first data image or the second data image that form time point acquisition of the removable graphic element are determined, with
And there is the first data image or the second data of the removable graphic element and corresponding back-end graphical element in last time
In image, the different scope of the corresponding back-end graphical element of the removable graphic element is the of the removable graphic element
Two mobile ranges.
Optionally, it is described filling module specifically for:
Obtain the trailing beginning and end of removable graphic element;
The trailing direction of removable graphic element and distance are determined according to the beginning and end;
The trailing direction is judged for the left, and to be less than or equal to described second removable for the trailing distance
Dynamic scope, calculates the trailing very first time apart from the corresponding terminal movement, according in the removable figure
The first data image or the second data image pair obtained during between formation time point and the very first time of element and value
The part image data blocked by the removable graphic element before the removable graphic element is dragged to be filled;
Or, the trailing direction is judged for the left, and to be more than described second removable for the trailing distance
Dynamic scope, calculates the second time of the corresponding terminal movement of second mobile range, according in the removable cardon
The first data image or the second data image obtained during between the formation time point and second time of shape element and value
It is filled to dragging the part image data blocked before the removable graphic element by the removable graphic element;
Or, the trailing direction is judged for the right, and the trailing distance is less than or equal to described the
One mobile range, calculates the trailing very first time apart from the corresponding terminal movement, according to described removable
Move the first data image obtained during the difference between formation time point and the very first time of graphic element or the second data
Image is filled to dragging the part image data blocked before the removable graphic element by the removable graphic element;
The trailing direction is judged for the right, and the trailing distance is more than the described first removable model
Enclose, the 3rd time of the corresponding terminal movement of first mobile range is calculated, according in the removable pattern primitive
The first data image for obtaining or the second data image are to dragging during difference between the formation time point and the 3rd time of element
The part image data blocked by the removable graphic element before the removable graphic element is moved to be filled.
The embodiment of the present invention also proposed a kind of terminal, including:
Binocular camera, for obtaining the first data image and corresponding second data image;
Be stored with picture editting's journey in processor and computer-readable recording medium, the computer-readable recording medium
Sequence, it is characterised in that when described image edit routine is by the computing device, realize the step of any one above-mentioned method
Suddenly.
The embodiment of the present invention also proposed a kind of computer-readable recording medium, be stored thereon with computer program, and it is special
Levy and be, the computer program realizes any one above-mentioned method when being executed by processor the step of.
Technical solution of the present invention includes:Receive the photographing instruction of user;Whether detection terminal is moving, if detection
Moved to terminal, then obtaining two or more than two the first data images and corresponding the in real time using binocular camera
Two data images;Carry out being spliced to form composograph and show according to the first data image of acquisition and/or the second data image;
Edit instruction of the user to composograph is received, the removable of composograph is obtained according to the first data image and the second data image
Dynamic graphic element is simultaneously pointed out;The removable of each removable graphic element is determined according to the first data image or the second data image
Dynamic scope;Drag operation of the user to removable graphic element is received, according to the first data image or the second data image to dragging
The part image data blocked before dynamic removable graphic element by removable graphic element is filled.Technical solution of the present invention,
Realize and edlin is entered to the graphic element in image, so as to improve Consumer's Experience.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 illustrates for the hardware configuration of the mobile terminal of realization each embodiment of the invention;
Fig. 2 is the schematic diagram of the communication system communicated between support mobile terminal of the present invention;
Fig. 3 is the flow chart of image edit method of the embodiment of the present invention;
Fig. 4 is the schematic diagram of front-end graphical of embodiment of the present invention element and back-end graphical element;
Fig. 5 is the schematic diagram that the embodiment of the present invention prompts the user with removable graphic element;
Fig. 6 is the structure composition schematic diagram of image editing apparatus of the embodiment of the present invention;
Fig. 7 is that terminal of the embodiment of the present invention constitutes structural representation.
Embodiment
Technical scheme is described in detail below in conjunction with drawings and Examples.
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only
Be conducive to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can be mixed
Ground is used.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board
Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. are moved
Move the fixed terminals such as terminal, and numeral TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special
Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of realization each embodiment of the invention, the shifting
Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit
108th, the part such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts,
Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station
Downlink information receive after, handled to processor 110;In addition, up data are sent into base station.Generally, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user's transmitting-receiving electricity by WiFi module 102
Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need
To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 1 00
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, it is that radio frequency unit 101 or WiFi module 102 are received or
The voice data stored in memory 109 is converted into audio signal and is output as sound.Moreover, audio output unit 103
The audio output related to the specific function that mobile terminal 1 00 is performed can also be provided (for example, call signal receives sound, disappeared
Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042,1041 pairs of graphics processor is in video acquisition mode
Or the view data progress of the static images or video obtained in image capture mode by image capture apparatus (such as camera)
Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after being handled through graphics processor 1041 can be deposited
Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can
To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model.
Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound
The noise produced during frequency signal or interference.
Mobile terminal 1 00 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 1 00 is moved in one's ear
Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can be wrapped
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal
The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with
And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it
(such as user is using any suitable objects such as finger, stylus or annex on contact panel 1071 or in contact panel 1071
Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, touch detecting apparatus detects the touch orientation of user, and detects touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can
To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can be wrapped
Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, with preprocessor 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel
1061 be input and the output function that mobile terminal is realized as two independent parts, but in certain embodiments, can
By contact panel 1071 and the input that is integrated and realizing mobile terminal of display panel 1061 and output function, not do specifically herein
Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 1 00.For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 1 00 or can be with
For transmitting data between mobile terminal 1 00 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area
And storage data field, wherein, application program (the such as sound that storing program area can be needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data field can be stored uses created data (such as according to mobile phone
Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, it can also include non-easy
The property lost memory, for example, at least one disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection
Individual part, by operation or performs and is stored in software program and/or module in memory 109, and calls and be stored in storage
Data in device 109, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.Place
Reason device 110 may include one or more processing units;It is preferred that, processor 110 can integrated application processor and modulatedemodulate mediate
Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main
Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 1 00 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put
The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 1 00 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system that the mobile terminal of the present invention is based on is entered below
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system
Unite as the LTE system of universal mobile communications technology, UE (User Equipment, use of the LTE system including communicating connection successively
Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
There is provided carrying and connection management for the control node of signaling between EPC203.HSS2032 is all to manage for providing some registers
Such as function of attaching position register (not shown) etc, and some are preserved about the use such as service features, data rate
The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP
Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources
Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the inventive method is proposed.
Referring to Fig. 3, according to one embodiment of present invention there is provided a kind of image edit method, including:
Step 300, the photographing instruction for receiving user.
Whether step 301, detection terminal are moving, and are moving, are being taken the photograph using binocular if detecting terminal
As head obtains two or more than two the first data images and corresponding second data image in real time.
In this step, global positioning system (GPS, Global Positioning System) positioning function can be used
To detect whether terminal is moving, if the result different or deviation range that different time positioning is obtained is more than pre-
If scope, then judge that terminal is being moved;If the result all same or deviation range that different time positioning is obtained are small
In or equal to preset range, then judge that terminal is not being moved.
In this step, two or more than two the first data images and corresponding second are obtained in real time using binocular camera
The time point of each the first data image or the second data image is obtained while data image.
Step 302, the first data image according to acquisition and/or the second data image carry out being spliced to form composograph simultaneously
Display.
In this step, it can be carried out being spliced to form composograph according to the first data image, can also be according to the second data
Image carries out being spliced to form composograph, can also carry out being spliced to form synthesis according to the first data image and the second data image
Image.
, can be first to all first data images and/or the second data image before carrying out being spliced to form composograph
Spliced after carrying out registration, registration.
When carrying out being spliced to form composograph, it can also be chosen from the first data image and/or the second data image
Graphic element carries out the data image of selection to be spliced to form composograph in middle data image.Figure mentioned here
Whether element, can be with as being located on above-below direction in the middle of data image in the middle centre referred on left and right directions.For example,
In Fig. 4, graphic element 1, graphic element 2, graphic element 3, on the left and right directions of graphic element 4 in the centre of data image, on
Lower direction is not in the centre of data image, it is therefore contemplated that graphic element 1, graphic element 2, graphic element 3, graphic element 4 are equal
In the centre of data image, and graphic element 5 and graphic element 6 are although in the centre of data image on above-below direction, and left
Not in the centre of data image in right direction, it is therefore contemplated that graphic element 5 and graphic element 6 be not in the centre of data image.
Step 303, reception user obtain to the edit instruction of composograph according to the first data image and the second data image
Take the removable graphic element of composograph and point out.
In this step, the removable graphic element of composograph is obtained according to the first data image and the second data image
Step includes:
Recognize all graphic elements in composograph;
For every a pair two neighboring graphic elements, according to the first data image and the second data image judge this adjacent two
Whether the depth of field difference between individual graphic element is more than or equal to the first preset value, if it is, obtaining in two graphic elements
Front-end graphical element formation time point;
Judge the first number of any one time point acquisition before or after the formation time point of front-end graphical element
The part blocked according to front-end graphical element in image or the second data image and front-end graphical element shield portions in composograph
With the presence or absence of difference, if it is, determining that front-end graphical element is removable graphic element.Specifically, first, composite diagram is obtained
The first nodal point coordinate of front-end graphical element as in, is obtained using the first nodal point coordinate as origin in the composograph,
All pixels point color data average value A in using preset length as the circular scope of radius.Secondly, obtain in front-end graphical member
In the first data image or the second data image that any one time point before or after the formation time point of element obtains
Second center point coordinate of front-end graphical element, obtains this any before or after the formation time point of front-end graphical element
Using second center point coordinate as origin in the first data image or the second data image that one time point obtains, with default length
The all pixels point color data average value B spent in the circular scope for radius.Calculating average value A and average value B difference is
It is no more than the second preset value, if it is, determining that front-end graphical element is removable graphic element.
Wherein it is possible to all graphic elements in composograph be recognized using image recognition technology, by obtaining any ginseng
After the brightness of the pixel of examination point and color value, travel through brightness and the color value of each pixel, and with the picture of the reference point
The brightness of vegetarian refreshments and color value are compared, when difference value is less than three preset values, then it is assumed that two points are similitude.It is logical
Such a mode is crossed, then can determine each graphic element in image.
Wherein, two neighboring graphic element refers to two adjacent graphic elements of fore-and-aft direction.For example, in Fig. 4, pattern primitive
Element 1 and graphic element 2 are two adjacent graphic elements, and graphic element 2 and graphic element 3 are two adjacent graphic elements,
Graphic element 3 and graphic element 4 are two adjacent graphic elements.
One is front-end graphical element in two adjacent graphic elements, and another is back-end graphical element.So-called front end
It is for graphic element to the distance of binocular camera, after the distance ratio of front-end graphical element to binocular camera with rear end
Hold the distance of graphic element to binocular camera short.
When judging graphic element for front-end graphical element or back-end graphical element, graphic element and binocular can be first calculated
The distance between camera, circular is as follows:
The depth of field that each in graphic element is put is calculated according to formula Depth=Pleft-Pright;Wherein, Depth is
The depth of field of a point in graphic element, Pleft is image space of the point in left camera in graphic element, and Pright is
Image space of the point in right camera in graphic element;
According to formulaCalculate the point of each in graphic element and arrive the distance between binocular camera;Wherein,
Z arrives the distance between binocular camera for a point in graphic element, and f is the focal length of binocular camera, and T is in binocular camera
The distance between two cameras;
Take and arrive being averaged for the distance between binocular camera on graphic element a little and be worth to graphic element and taken the photograph with binocular
As the distance between head.
For example, in Fig. 4, in graphic element 1 and graphic element 2, graphic element 1 is back-end graphical element, graphic element 2
For front-end graphical element;In graphic element 2 and graphic element 3, graphic element 2 is back-end graphical element, before graphic element 3 is
Hold graphic element;In graphic element 3 and graphic element 4, graphic element 3 is back-end graphical element, and graphic element 4 is front end figure
Shape element.
Wherein it is possible to calculate the depth of field of graphic element in the following ways:
The depth of field that each in graphic element is put is calculated according to formula Depth=Pleft-Pright;Wherein, Depth is
The depth of field of a point in graphic element, Pleft is image space of the point in left camera in graphic element, and Pright is
Image space of the point in right camera in graphic element;
Take in graphic element the depth of field a little average value be graphic element the depth of field, graphic element can also be taken to own
The intermediate value of the depth of field of point is the depth of field of graphic element, and the data of the point of the graphic element depth of field within a preset range can also be taken most
The corresponding depth of field is the depth of field of graphic element.
Depth of field difference between two neighboring graphic element is the difference between the depth of field of two neighboring graphic element.
Wherein, the formation time point of front-end graphical element refers to the left camera or right camera of binocular camera just to figure
The time that shape element is shot.I.e. front-end graphical element is located at middle data image corresponding time point in left and right directions.
Or, the step of removable graphic element of composograph is obtained according to the first data image and the second data image
Including:
Recognize all graphic elements in composograph;
For every a pair two neighboring graphic elements, according to the first data image and the second data image judge this adjacent two
Whether the depth of field difference between individual graphic element is more than or equal to preset value, if it is, before obtaining in two graphic elements
Hold the formation time point of graphic element;
Judge the first number of any one time point acquisition before or after the formation time point of front-end graphical element
The part being blocked according to the back-end graphical element in two graphic elements in image or the second data image with composograph after
Graphic element shield portions are held with the presence or absence of difference, if it is, determining that front-end graphical element is removable graphic element.
In this step, when prompting the user with removable graphic element, removable graphic element can be irised out with dotted line
Profile, as shown in figure 5, graphic element 2, graphic element 3 and graphic element 4 are removable graphic element.It is of course also possible to adopt
Removable graphic element is pointed out in other ways, as long as removable graphic element and non-removable graphic element are using different
Mode is shown just can be so that these reminding methods are all contained in protection scope of the present invention.
Step 304, the removable of each removable graphic element determined according to the first data image or the second data image
Dynamic scope.
In this step, the removable of each removable graphic element is determined according to the first data image or the second data image
The step of dynamic scope, includes:
All first data images or the second datagram obtained before the formation time point of the removable graphic element of traversal
Picture, it is determined that occurring the first data image or the second datagram of removable graphic element and corresponding back-end graphical element first
In picture, and the first data image or the second data image that form time point acquisition of removable graphic element, removable cardon
The different scope of the corresponding back-end graphical element of shape element is the first mobile range of removable graphic element;
All first data images or the second datagram obtained after the formation time point of the removable graphic element of traversal
Picture, it is determined that the first data image or the second data image that form time point acquisition of removable graphic element, and last
In secondary the first data image or the second data image for removable graphic element and corresponding back-end graphical element occur, it may move
The different scope of the corresponding back-end graphical element of graphic element is the second mobile range of removable graphic element.
Wherein it is possible to determine occur the of removable graphic element and opposite rear end graphic element first in the following ways
One data image or the second data image:
All first data images or the second data image are traveled through, obtains and there is color data and removable graphic element
The color data of the similar pixel of color data and color data back-end graphical element corresponding with removable graphic element
When in the first data image or the second data image of similar pixel, the first data image or the second data image of acquisition
Between to put minimum be to occur removable graphic element and the first data image of opposite rear end graphic element or the second number first
According to image.
Wherein it is possible to determine that removable graphic element and corresponding back-end graphical member occurs in last time in the following ways
The first data image or the second data image of element:
All first data images or the second data image are traveled through, obtains and there is color data and removable graphic element
The color data of the similar pixel of color data and color data back-end graphical element corresponding with removable graphic element
When in the first data image or the second data image of similar pixel, the first data image or the second data image of acquisition
Between to put maximum be that last time the first data image of removable graphic element and opposite rear end graphic element or the occurs
Two data images.
Step 305, receive user to may move graphic element drag operation, according to the first data image or the second data
Image is filled to the part image data blocked before the removable graphic element of dragging by removable graphic element.Including:
Obtain the trailing beginning and end of removable graphic element;
The removable trailing direction of graphic element and distance are determined according to beginning and end;
Trailing direction is judged for the left, and trailing distance is less than or equal to the second mobile range, calculates
The trailing very first time moved apart from corresponding terminal, during according to the formation time point in removable graphic element and first
Between between and the first data image or the second data image that obtain during value graphic element may move to dragging before may move
The part image data that graphic element is blocked is filled;
Or, trailing direction is judged for the left, and trailing distance is more than the second mobile range, calculate the
Second time of the corresponding terminal movement of two mobile ranges, during according to the formation time point in removable graphic element and second
Between between and the first data image or the second data image that obtain during value graphic element may move to dragging before may move
The part image data that graphic element is blocked is filled;
Or, trailing direction is judged for the right, and trailing distance is less than or equal to the first mobile range,
The trailing very first time moved apart from corresponding terminal is calculated, according to the formation time point in removable graphic element and the
The first data image or the second data image obtained during difference between one time to before the removable graphic element of dragging by can
The part image data that mobile graphics element is blocked is filled;
Trailing direction is judged for the right, and trailing distance is more than the first mobile range, calculating first can
3rd time of moving range corresponding terminal movement, according to the formation time point and the 3rd time in removable graphic element it
Between difference when the first data image for obtaining or the second data image to before the removable graphic element of dragging by removable figure
The part image data that element is blocked is filled.
Wherein it is possible to calculate the trailing very first time moved apart from corresponding terminal in the following ways:
Calculate trailing the first distance moved apart from corresponding terminal, the first distance of computing terminal movement and movement
Speed ratio be worth to terminal movement the very first time.
Or, in pre-recorded adjacent two the first data images or the second data image, a certain specific graphic elements
The first corresponding relation between the difference and time point difference of center point coordinate, center point coordinate is searched in the first corresponding relation
Difference for it is trailing apart from corresponding time point difference be terminal movement the very first time.
Wherein it is possible to calculate trailing the first distance moved apart from corresponding terminal in the following ways:
In pre-recorded adjacent two the first data images or the second data image, the central point of a certain specific graphic elements
The second corresponding relation between the distance of difference and the terminal movement of coordinate, searches center point coordinate in the second corresponding relation
Difference is trailing the first distance moved apart from corresponding terminal.
Wherein, the distance of terminal movement can be by obtaining terminal when obtaining the first data image or the second data image
Positional information is obtained.
Wherein it is possible to calculate the second time of the corresponding terminal movement of the second mobile range in the following ways:
Calculate the second distance of the corresponding terminal movement of the second mobile range, the second distance of computing terminal movement and shifting
The ratio of dynamic speed is worth to the second time of terminal movement.
Or, in pre-recorded adjacent two the first data images or the second data image, a certain specific graphic elements
The first corresponding relation between the difference and time point difference of center point coordinate, center point coordinate is searched in the first corresponding relation
Difference for the corresponding time point difference of the second mobile range be terminal movement the second time.
Wherein it is possible to calculate the second distance of the corresponding terminal movement of the second mobile range in the following ways:
In pre-recorded adjacent two the first data images or the second data image, the central point of a certain specific graphic elements
The second corresponding relation between the distance of difference and the terminal movement of coordinate, searches center point coordinate in the second corresponding relation
Difference is the second distance of the corresponding terminal movement of the second mobile range.
Wherein it is possible to calculate the 3rd time of the corresponding terminal movement of the first mobile range in the following ways:
Calculate the 3rd distance of the corresponding terminal movement of the first mobile range, the 3rd distance of computing terminal movement and shifting
The ratio of dynamic speed is worth to the 3rd time of terminal movement.
Or, in pre-recorded adjacent two the first data images or the second data image, a certain specific graphic elements
The first corresponding relation between the difference and time point difference of center point coordinate, center point coordinate is searched in the first corresponding relation
Difference for the corresponding time point difference of the first mobile range be terminal movement the 3rd time.
Wherein it is possible to calculate the 3rd distance of the corresponding terminal movement of the first mobile range in the following ways:
In pre-recorded adjacent two the first data images or the second data image, the central point of a certain specific graphic elements
The second corresponding relation between the distance of difference and the terminal movement of coordinate, searches center point coordinate in the second corresponding relation
Difference is the 3rd distance of the corresponding terminal movement of the first mobile range.
Wherein, when being filled, the parts of images blocked by removable graphic element can be matched using registration technique
It is filled behind the edge of data.
Referring to Fig. 6, according to another embodiment of the present invention there is provided a kind of image editing apparatus, including:
Receiving module, the photographing instruction for receiving user;Receive edit instruction of the user to composograph;Receive user
Drag operation to may move graphic element;
Detection module, for detecting whether terminal is moving, is being moved, using double if detecting terminal
Mesh camera obtains two or more than two the first data images and corresponding second data image in real time;
Concatenation module, carries out being spliced to form synthesis for the first data image according to acquisition and/or the second data image
Image is simultaneously shown;
Acquisition module, the removable pattern primitive for obtaining composograph according to the first data image and the second data image
Element is simultaneously pointed out;The mobile range of each removable graphic element is determined according to the first data image or the second data image;
Module is filled, quilt can for be may move according to the first data image or the second data image to dragging before graphic element
The part image data that mobile graphics element is blocked is filled.
Optionally, detection module is additionally operable to:
Obtain two or more than two the first data images and corresponding second data image in real time using binocular camera
While obtain time point of each the first data image or the second data image;
Acquisition module is closed specifically for realizing to be obtained according to the first data image and the second data image in the following ways
Into image removable graphic element the step of:
Recognize all graphic elements in composograph;
For every a pair two neighboring graphic elements, according to the first data image and the second data image judge this adjacent two
Whether the depth of field difference between individual graphic element is more than or equal to the first preset value, if it is, obtaining in two graphic elements
Front-end graphical element formation time point;
Judge the first number of any one time point acquisition before or after the formation time point of front-end graphical element
The part blocked according to front-end graphical element in image or the second data image and front-end graphical element shield portions in composograph
With the presence or absence of difference, if it is, determining that front-end graphical element is removable graphic element.
Optionally, detection module is additionally operable to:
Obtain two or more than two the first data images and corresponding second data image in real time using binocular camera
While obtain time point of each the first data image or the second data image;
Acquisition module is closed specifically for realizing to be obtained according to the first data image and the second data image in the following ways
Into image removable graphic element the step of:
Recognize all graphic elements in composograph;
For every a pair two neighboring graphic elements, according to the first data image and the second data image judge this adjacent two
Whether the depth of field difference between individual graphic element is more than or equal to preset value, if it is, before obtaining in two graphic elements
Hold the formation time point of graphic element;
Judge the first number of any one time point acquisition before or after the formation time point of front-end graphical element
The part being blocked according to the back-end graphical element in two graphic elements in image or the second data image with composograph after
Graphic element shield portions are held with the presence or absence of difference, if it is, determining that front-end graphical element is removable graphic element.
Optionally, acquisition module specifically for realizing according to the first data image or the second data image in the following ways
The step of determining the mobile range of each removable graphic element:
All first data images or the second datagram obtained before the formation time point of the removable graphic element of traversal
Picture, it is determined that occurring the first data image or the second datagram of removable graphic element and corresponding back-end graphical element first
In picture, and the first data image or the second data image that form time point acquisition of removable graphic element, removable cardon
The different scope of the corresponding back-end graphical element of shape element is the first mobile range of removable graphic element;
All first data images or the second datagram obtained after the formation time point of the removable graphic element of traversal
Picture, it is determined that the first data image or the second data image that form time point acquisition of removable graphic element, and last
In secondary the first data image or the second data image for removable graphic element and corresponding back-end graphical element occur, it may move
The different scope of the corresponding back-end graphical element of graphic element is the second mobile range of removable graphic element.
Optionally, filling module specifically for:
Obtain the trailing beginning and end of removable graphic element;
The removable trailing direction of graphic element and distance are determined according to beginning and end;
Trailing direction is judged for the left, and trailing distance is less than or equal to the second mobile range, calculates
The trailing very first time moved apart from corresponding terminal, during according to the formation time point in removable graphic element and first
Between between and the first data image or the second data image that obtain during value graphic element may move to dragging before may move
The part image data that graphic element is blocked is filled;
Or, trailing direction is judged for the left, and trailing distance is more than the second mobile range, calculate the
Second time of the corresponding terminal movement of two mobile ranges, during according to the formation time point in removable graphic element and second
Between between and the first data image or the second data image that obtain during value graphic element may move to dragging before may move
The part image data that graphic element is blocked is filled;
Or, trailing direction is judged for the right, and trailing distance is less than or equal to the first mobile range,
The trailing very first time moved apart from corresponding terminal is calculated, according to the formation time point in removable graphic element and the
The first data image or the second data image obtained during difference between one time to before the removable graphic element of dragging by can
The part image data that mobile graphics element is blocked is filled;
Trailing direction is judged for the right, and trailing distance is more than the first mobile range, calculating first can
3rd time of moving range corresponding terminal movement, according to the formation time point and the 3rd time in removable graphic element it
Between difference when the first data image for obtaining or the second data image to before the removable graphic element of dragging by removable figure
The part image data that element is blocked is filled.
Implementing for above-mentioned image editing apparatus is similar with image edit method, may be referred to the tool of image edit method
Body implementation process.
Referring to Fig. 7, according to still another embodiment of the invention there is provided a kind of terminal, including:
Binocular camera, for obtaining the first data image and corresponding second data image;
Be stored with image editor in processor and computer-readable recording medium, computer-readable recording medium, when
When image editor is executed by processor, the step in preceding method is realized.
According to one more embodiment of the present invention there is provided a kind of computer-readable recording medium, computer is stored thereon with
Program, the program realizes the step in preceding method when being executed by processor.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and
And also including other key elements being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there is other identical element in process, method, article or the device of key element.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Understood based on such, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal (can be mobile phone, computer, service
Device, air conditioner, or network equipment etc.) perform method described in each of the invention embodiment.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific
Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art
Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot
Form, these are belonged within the protection of the present invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of image edit method, it is characterised in that including:
Receive the photographing instruction of user;
Whether detection terminal is moving, and is being moved if detecting terminal, is obtained in real time using binocular camera
Two or more than two the first data images and corresponding second data image;
Carry out being spliced to form composograph and show according to the first data image of acquisition and/or the second data image;
Edit instruction of the user to composograph is received, composograph is obtained according to the first data image and the second data image
Removable graphic element is simultaneously pointed out;
The mobile range of each removable graphic element is determined according to the first data image or the second data image;
Drag operation of the user to removable graphic element is received, can to dragging according to the first data image or the second data image
The part image data blocked before mobile graphics element by removable graphic element is filled.
2. image edit method according to claim 1, it is characterised in that the use binocular camera obtains two in real time
Or obtain each the first data image or the while more than two the first data images and corresponding second data image
The time point of two data images;
It is described composograph is obtained according to the first data image and the second data image removable graphic element the step of include:
Recognize all graphic elements in the composograph;
For every a pair two neighboring graphic elements, the phase is judged according to first data image and second data image
Whether the depth of field difference between adjacent two graphic elements is more than or equal to the first preset value, if it is, obtaining described two figures
The formation time point of front-end graphical element in shape element;
Judge the first number of any one time point acquisition before or after the formation time point of the front-end graphical element
According to the part that front-end graphical element is blocked described in image or the second data image and front-end graphical described in the composograph
Element shield portions are with the presence or absence of difference, if it is, determining that the front-end graphical element is removable graphic element.
3. image edit method according to claim 1, it is characterised in that the use binocular camera obtains two in real time
Or obtain each the first data image or the while more than two the first data images and corresponding second data image
The time point of two data images;
It is described composograph is obtained according to the first data image and the second data image removable graphic element the step of include:
Recognize all graphic elements in the composograph;
For every a pair two neighboring graphic elements, the phase is judged according to first data image and second data image
Whether the depth of field difference between adjacent two graphic elements is more than or equal to preset value, if it is, obtaining described two pattern primitives
The formation time point of front-end graphical element in element;
Judge the first number of any one time point acquisition before or after the formation time point of the front-end graphical element
The part being blocked according to the back-end graphical element in two graphic elements described in image or the second data image and the synthesis
The shield portions of back-end graphical element described in image are with the presence or absence of difference, if it is, determining the front-end graphical element for can
Mobile graphics element.
4. the image edit method according to Claims 2 or 3, it is characterised in that described according to the first data image or
The step of two data images determine the mobile range of each removable graphic element includes:
All first data images obtained before the formation time point for traveling through the removable graphic element or the second datagram
Picture, it is determined that occurring the first data image or the second data of the removable graphic element and corresponding back-end graphical element first
In image, and the first data image or the second data image that form time point acquisition of the removable graphic element, institute
State the different scope of the corresponding back-end graphical element of removable graphic element be the removable graphic element first may move
Scope;
All first data images obtained after the formation time point for traveling through the removable graphic element or the second datagram
Picture, determines the first data image or the second data image that form time point acquisition of the removable graphic element, and most
Once occur the first data image or the second data image of the removable graphic element and corresponding back-end graphical element afterwards
In, the different scope of the corresponding back-end graphical element of the removable graphic element can for the second of the removable graphic element
Moving range.
5. image edit method according to claim 4, it is characterised in that described to be counted according to the first data image or second
The step of being filled according to image to the part image data blocked before the removable graphic element of dragging by removable graphic element
Including:
Obtain the trailing beginning and end of removable graphic element;
The trailing direction of removable graphic element and distance are determined according to the beginning and end;
The trailing direction is judged for the left, and the trailing distance is less than or equal to the described second removable model
Enclose, the trailing very first time apart from the corresponding terminal movement is calculated, according in the removable graphic element
Formation time point and the very first time between and the first data image or the second data image that obtain during value to dragging
The part image data blocked before the removable graphic element by the removable graphic element is filled;
Or, the trailing direction is judged for the left, and the trailing distance is more than the described second removable model
Enclose, the second time of the corresponding terminal movement of second mobile range is calculated, according in the removable pattern primitive
The first data image or the second data image obtained during between the formation time point and second time of element and value is to dragging
The part image data blocked by the removable graphic element before the removable graphic element is moved to be filled;
Or, the trailing direction is judged for the right, and the trailing distance can less than or equal to described first
Moving range, calculates the trailing very first time apart from the corresponding terminal movement, according in the removable cardon
The first data image or the second data image obtained during difference between formation time point and the very first time of shape element
It is filled to dragging the part image data blocked before the removable graphic element by the removable graphic element;
The trailing direction is judged for the right, and the trailing distance is more than first mobile range, meter
The 3rd time of the corresponding terminal movement of first mobile range is calculated, according to the shape in the removable graphic element
The first data image or the second data image obtained during into difference between time point and the 3rd time is described to dragging
The part image data blocked before removable graphic element by the removable graphic element is filled.
6. a kind of image editing apparatus, it is characterised in that including:
Receiving module, the photographing instruction for receiving user;Receive edit instruction of the user to composograph;Receiving user couple can
The drag operation of mobile graphics element;
Detection module, for detecting whether terminal is moving, is being moved if detecting terminal, is taken the photograph using binocular
As head obtains two or more than two the first data images and corresponding second data image in real time;
Concatenation module, carries out being spliced to form composograph for the first data image according to acquisition and/or the second data image
And show;
Acquisition module, for obtaining the removable graphic element of composograph simultaneously according to the first data image and the second data image
Prompting;The mobile range of each removable graphic element is determined according to the first data image or the second data image;
Module is filled, for may move before may move graphic element to dragging according to the first data image or the second data image
The part image data that graphic element is blocked is filled.
7. image editing apparatus according to claim 6, it is characterised in that the detection module is additionally operable to:
The use binocular camera obtains two or more than two the first data images and corresponding second data image in real time
While obtain time point of each the first data image or the second data image;
The acquisition module described is obtained specifically for realizing in the following ways according to the first data image and the second data image
The step of taking the removable graphic element of composograph:
Recognize all graphic elements in the composograph;
For every a pair two neighboring graphic elements, the phase is judged according to first data image and second data image
Whether the depth of field difference between adjacent two graphic elements is more than or equal to the first preset value, if it is, obtaining described two figures
The formation time point of front-end graphical element in shape element;
Judge the first number of any one time point acquisition before or after the formation time point of the front-end graphical element
According to the part that front-end graphical element is blocked described in image or the second data image and front-end graphical described in the composograph
Element shield portions are with the presence or absence of difference, if it is, determining that the front-end graphical element is removable graphic element.
8. image editing apparatus according to claim 6, it is characterised in that the detection module is additionally operable to:
The use binocular camera obtains two or more than two the first data images and corresponding second data image in real time
While obtain time point of each the first data image or the second data image;
The acquisition module described is obtained specifically for realizing in the following ways according to the first data image and the second data image
The step of taking the removable graphic element of composograph:
Recognize all graphic elements in the composograph;
For every a pair two neighboring graphic elements, the phase is judged according to first data image and second data image
Whether the depth of field difference between adjacent two graphic elements is more than or equal to preset value, if it is, obtaining described two pattern primitives
The formation time point of front-end graphical element in element;
Judge the first number of any one time point acquisition before or after the formation time point of the front-end graphical element
The part being blocked according to the back-end graphical element in two graphic elements described in image or the second data image and the synthesis
The shield portions of back-end graphical element described in image are with the presence or absence of difference, if it is, determining the front-end graphical element for can
Mobile graphics element.
9. a kind of terminal, including:
Binocular camera, for obtaining the first data image and corresponding second data image;
Be stored with image editor in processor and computer-readable recording medium, the computer-readable recording medium, its
It is characterised by, when described image edit routine is by the computing device, realizes as described in Claims 1 to 5 any one
Method the step of.
10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program
The step of method as claimed in any one of claims 1 to 5, wherein being realized when being executed by processor.
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 true CN107248141A (en) | 2017-10-13 |
CN107248141B 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) |
Cited By (1)
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 (9)
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 |
CN102799720A (en) * | 2012-07-03 | 2012-11-28 | 武汉天喻软件有限责任公司 | Computer-aided design (CAD) graph and image mixed editing system |
CN103679749A (en) * | 2013-11-22 | 2014-03-26 | 北京奇虎科技有限公司 | Moving target tracking based image processing method and 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 |
CN105407280A (en) * | 2015-11-11 | 2016-03-16 | 广东欧珀移动通信有限公司 | Panoramic image synthesizing method and system |
CN105608666A (en) * | 2015-12-25 | 2016-05-25 | 普瑞福克斯(北京)数字媒体科技有限公司 | Method and system for generating three-dimensional image by two-dimensional graph |
-
2017
- 2017-04-28 CN CN201710294854.9A patent/CN107248141B/en active Active
Patent Citations (9)
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 |
CN102799720A (en) * | 2012-07-03 | 2012-11-28 | 武汉天喻软件有限责任公司 | Computer-aided design (CAD) graph and image mixed editing system |
CN103679749A (en) * | 2013-11-22 | 2014-03-26 | 北京奇虎科技有限公司 | Moving target tracking based image processing method and 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 |
CN105407280A (en) * | 2015-11-11 | 2016-03-16 | 广东欧珀移动通信有限公司 | Panoramic image synthesizing method and system |
CN105608666A (en) * | 2015-12-25 | 2016-05-25 | 普瑞福克斯(北京)数字媒体科技有限公司 | Method and system for generating three-dimensional image by two-dimensional graph |
Cited By (1)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN107248141B (en) | 2021-01-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106961706A (en) | Method, mobile terminal and the computer-readable recording medium of communication pattern switching | |
CN107133092A (en) | Multi-thread synchronization processing method, terminal and computer-readable recording medium | |
CN107219974A (en) | A kind of method, mobile terminal and storage medium for showing application software | |
CN107507007A (en) | One kind pays 2 D code verification method, terminal and computer-readable recording medium | |
CN107566635A (en) | Screen intensity method to set up, mobile terminal and computer-readable recording medium | |
CN107770725A (en) | Arcade shop premises air navigation aid and mobile terminal | |
CN107145385A (en) | A kind of multitask interface display methods, mobile terminal and computer-readable storage medium | |
CN107704176A (en) | A kind of picture-adjusting method and terminal | |
CN106953684A (en) | A kind of method for searching star, mobile terminal and computer-readable recording medium | |
CN107333056A (en) | Image processing method, device and the computer-readable recording medium of moving object | |
CN107239205A (en) | A kind of photographic method, mobile terminal and storage medium | |
CN107680060A (en) | A kind of image distortion correction method, terminal and computer-readable recording medium | |
CN107818459A (en) | Red packet sending method, terminal and storage medium based on augmented reality | |
CN107239567A (en) | A kind of recognition methods of object scene, equipment and computer-readable recording medium | |
CN107657583A (en) | A kind of screenshot method, terminal and computer-readable recording medium | |
CN107295269A (en) | A kind of light measuring method and terminal, computer-readable storage medium | |
CN107181865A (en) | Processing method, terminal and the computer-readable recording medium of unread short messages | |
CN107979667A (en) | Double-screen display method, mobile terminal and computer-readable recording medium | |
CN107193779A (en) | Residue charging duration calculation method, terminal and computer-readable recording medium | |
CN107707821A (en) | Modeling method and device, bearing calibration, terminal, the storage medium of distortion parameter | |
CN109672822A (en) | A kind of method for processing video frequency of mobile terminal, mobile terminal and storage medium | |
CN107172605A (en) | A kind of Emmergency call method, mobile terminal and computer-readable recording medium | |
CN110086993A (en) | Image processing method, device, mobile terminal and computer readable storage medium | |
CN108921859A (en) | Image processing method, program and computer-readable storage media | |
CN108076293A (en) | Light paints image pickup method, mobile terminal and computer-readable 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 |