CN107329668A - A kind of method for realizing long sectional drawing, mobile terminal and computer-readable recording medium - Google Patents

A kind of method for realizing long sectional drawing, mobile terminal and computer-readable recording medium Download PDF

Info

Publication number
CN107329668A
CN107329668A CN201710446440.3A CN201710446440A CN107329668A CN 107329668 A CN107329668 A CN 107329668A CN 201710446440 A CN201710446440 A CN 201710446440A CN 107329668 A CN107329668 A CN 107329668A
Authority
CN
China
Prior art keywords
full screen
screen printscreen
linking
printscreen
sectional drawing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710446440.3A
Other languages
Chinese (zh)
Inventor
肖欢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201710446440.3A priority Critical patent/CN107329668A/en
Publication of CN107329668A publication Critical patent/CN107329668A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/30Determination of transform parameters for the alignment of images, i.e. image registration
    • G06T7/33Determination of transform parameters for the alignment of images, i.e. image registration using feature-based methods
    • G06T7/337Determination of transform parameters for the alignment of images, i.e. image registration using feature-based methods involving reference images or patches

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention discloses a kind of method for realizing long sectional drawing, mobile terminal and computer-readable recording medium, belongs to picture Processing Technique field, this method includes:Matching characteristic block line is carried out between the preceding full screen printscreen and rear full screen printscreen of the first linking figure, to form the second linking figure;Unrelated line exclusion and fore-and-aft distance value histogram statistics are carried out to all lines in the described second linking figure, to acquire the picture relative displacement between the preceding full screen printscreen and the rear full screen printscreen;According to the picture relative displacement, the repeating part between the preceding full screen printscreen and the rear full screen printscreen is got rid of by calculating, the preceding full screen printscreen and the rear full screen printscreen are spliced into the long sectional drawing of a width.The present invention can realize long shot operation under fixed scene.

Description

A kind of method for realizing long sectional drawing, mobile terminal and computer-readable recording medium
Technical field
The present invention relates to picture Processing Technique field, more particularly to a kind of method for realizing long sectional drawing, mobile terminal and meter Calculation machine readable storage medium storing program for executing.
Background technology
It is known that the content shown in different screen is finally synthesized one by the analysis that long sectional drawing relies primarily on to image Zhang Changtu process, in order that long figure content obtains the popular cognitive lower content that should be shown, it is necessary to use graphical analysis Algorithm auxiliary is completed.Existing long sectional drawing function is mainly completed by template matching algorithm.Template is exactly small known to a width Image, template matches are exactly the searching target in the big image of a width, it is known that have the target to be looked for, and the same template of the target in the figure There are identical size, direction and image, target can be found in figure by certain algorithm, determine its coordinate position.
As shown in Figures 1 and 2, Fig. 1 is first sectional drawing, and Fig. 2 is second sectional drawing, our upper half in second sectional drawing It is positioning core (template image being also referred to as, wherein including search pattern), first that the rectangular image of a 800*300 is chosen in part Sectional drawing is that realtime graphic (also referred to as searching for image, position and position core identical pattern wherein) is scanned for, and obtains template The splicing of second sectional drawing non-duplicate partial content is got on after the result of matching, simple computation, i.e. can be with after repeating operation Obtain the long sectional drawing shown in Fig. 3.
It can be seen that, existing template matching algorithm can complete the long shot operation under most of scene, however, for having Long sectional drawing is carried out under the scene of fixed background, can not be by prospect pattern using template matching algorithm due to the presence of same background Correct matched position is obtained, therefore, existing template matching algorithm can not realize mobile terminal screen under fixed background scene The long shot operation of curtain.
The content of the invention
It is a primary object of the present invention to propose a kind of method and system for realizing long sectional drawing, it is intended under fixed background scene Realize the long shot operation of mobile terminal screen.
To achieve the above object, a kind of method for realizing long sectional drawing that the present invention is provided, the described method comprises the following steps: Matching characteristic block line is carried out between the preceding full screen printscreen and rear full screen printscreen of the first linking figure, to form the second linking figure; Unrelated line exclusion and fore-and-aft distance value histogram statistics are carried out to all lines in the described second linking figure, to acquire Picture relative displacement between the preceding full screen printscreen and the rear full screen printscreen;According to the picture relative displacement, pass through meter Calculate and get rid of repeating part between the preceding full screen printscreen and the rear full screen printscreen, by the preceding full screen printscreen with it is described Full screen printscreen is spliced into the long sectional drawing of a width afterwards.
Alternatively, it is described to carry out matching characteristic block company between the preceding full screen printscreen and rear full screen printscreen of the first linking figure Line, following steps are specifically included to form the step of the second linking is schemed:By by the preceding full screen printscreen and described latter full frame section Figure is successively laterally side by side to form the first linking figure.
Alternatively, it is described to carry out matching characteristic block company between the preceding full screen printscreen and rear full screen printscreen of the first linking figure Line, following steps are specifically included to form the step of the second linking is schemed:The preceding full screen printscreen and institute are obtained by contrast conting State all characteristic blocks being mutually matched between rear full screen printscreen, with constitute the preceding full screen printscreen and the rear full screen printscreen it Between characteristic block set of matches.
Alternatively, it is described to carry out matching characteristic block company between the preceding full screen printscreen and rear full screen printscreen of the first linking figure Line, it is specifically further comprising the steps of to form the step of the second linking is schemed:To the characteristic block on the described first linking figure Same position point line is carried out between the characteristic block that each pair with concentration is mutually matched, to complete the matching characteristic block line, And then form the second linking figure.
Alternatively, the same position point line is characterized block central point line or any identical bits angle setting of characteristic block connects Line.
Alternatively, all lines in the described second linking figure carry out unrelated line exclusion and fore-and-aft distance value is straight Side figure statistics, with acquire the picture relative displacement between the preceding full screen printscreen and the rear full screen printscreen the step of have Body comprises the following steps:The fore-and-aft distance value filtered out between all two end points on the second linking figure falls into default mistake Line in poor scope;The fore-and-aft distance value progress statistics with histogram of remaining all lines on the second linking figure is looked for Go out the most fore-and-aft distance value of occurrence number, to acquire the picture between the preceding full screen printscreen and the rear full screen printscreen Relative displacement.
Alternatively, the fore-and-aft distance value between all two end points filtered out on the second linking figure falls into pre- If after the step of line in error range, the fore-and-aft distance value of remaining all lines on the described second linking figure Carry out statistics with histogram to find out the fore-and-aft distance value that occurrence number is most, after acquiring the preceding full screen printscreen and be described It is further comprising the steps of before the step of picture relative displacement between full screen printscreen:Filter out the institute on the second linking figure There is the line of inclination obliquely where the lateral rear full screen printscreen where the preceding full screen printscreen.
Alternatively, when the full screen printscreen that methods described enters to be about to more than two is spliced into the long sectional drawing of a width, it can press first According to sectional drawing time order and function order, all full screen printscreens are to form the first linking figure laterally side by side successively, further according to methods described The step of obtain the picture relative displacement between adjacent full screen printscreen two-by-two respectively, with according between adjacent full screen printscreen two-by-two Picture relative displacement by calculating get rid of repeating part between adjacent full screen printscreen two-by-two, most at last all full frame sections Figure is spliced into the long sectional drawing of a width.
In addition, to achieve the above object, the present invention also proposes a kind of mobile terminal, the mobile terminal include memory, Processor and the program that can be run on the memory and on the processor is stored in, described program is held by the processor The step of above-mentioned method is realized during row.
In addition, to achieve the above object, the present invention also proposes a kind of computer-readable recording medium, described computer-readable Storage medium is stored with one or more program, and one or more of programs can be held by one or more processor OK, to realize above-mentioned method the step of.
A kind of method for realizing long sectional drawing proposed by the present invention, mobile terminal and computer-readable recording medium, it passes through Matching characteristic block line is carried out between the preceding full screen printscreen and rear full screen printscreen of the first linking figure, to form the second linking figure, Unrelated line exclusion is carried out to all lines in the second linking figure again and fore-and-aft distance value histogram is counted, to exclude as far as possible Fall the feature Block- matching interference that its same background under fixed background scene causes, so acquire preceding full screen printscreen with it is rear full frame Picture relative displacement between sectional drawing, finally, according to the picture relative displacement, by calculating the repeating portion got rid of between the two Point, both just can be spliced into the long sectional drawing of a width.It can be seen that, the present invention can realize mobile terminal screen under fixed background scene Long shot operation.
Brief description of the drawings
Fig. 1 is the structural representation of first sectional drawing of prior art.
Fig. 2 is the structural representation of second sectional drawing of prior art.
Fig. 3 is the structural representation for the long sectional drawing that two sectional drawings of prior art are spliced.
Fig. 4 is the hardware architecture diagram for the mobile terminal for realizing each embodiment of the invention.
Fig. 5 is the communications network system Organization Chart that mobile terminal as shown in Figure 4 is based on.
Fig. 6 is the FB(flow block) for the method that first embodiment of the invention realizes long sectional drawing.
Fig. 7 is the step S110 for the method that long sectional drawing is realized shown in Fig. 6 idiographic flow block diagram.
Fig. 8 is the step S120 for the method that long sectional drawing is realized shown in Fig. 6 idiographic flow block diagram.
Fig. 9 is connected the structural representation of figure for the present invention first.
Figure 10 is connected the structural representation of figure for the present invention second.
Figure 11 schemes the structural representation after filtering for the first time for the linking of the present invention second.
Figure 12 is connected the structural representation after second of filtering of figure for the present invention second.
Figure 13 is the histogram of the fore-and-aft distance value of all lines in line set B of the present invention.
Figure 14 is the histogram of the fore-and-aft distance value of all lines in line set C of the present invention.
Figure 15 is the structural representation for the long sectional drawing that two full screen printscreens of the invention are spliced.
Figure 16 is the structural representation of four full screen printscreens of the invention successively laterally side by side.
Figure 17 is the structural representation for the long sectional drawing that four full screen printscreens of the invention are spliced.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
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. 4:
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. 4 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. 5, Fig. 5 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.
As shown in fig. 6, first embodiment of the invention proposes a kind of method for realizing long sectional drawing, this method specifically includes following Step:
Step S110:Matching characteristic block line is carried out between the preceding full screen printscreen and rear full screen printscreen of the first linking figure, To form the second linking figure.
Specifically, so that fixed background scene is chat scenario as an example, as shown in figure 9, the left side of the first linking figure is merely Preceding full screen printscreen under its scene, right side be chat scenario under rear full screen printscreen, by the figure to the preceding full screen printscreen Matching characteristic block line is carried out with the rear full screen printscreen, the second linking figure as shown in Figure 10 can be ultimately formed.And how by it is preceding, Full screen printscreen finally gives the second linking figure afterwards, as shown in fig. 7, specifically can be realized by following steps:
Step S111:By the way that preceding full screen printscreen is connected into figure to form first laterally side by side successively with rear full screen printscreen.
Specifically, as shown in figure 9, the main preceding full screen printscreen and the rear full screen printscreen on right side by left side of the first linking figure Formed laterally side by side successively, because the sectional drawing time of preceding full screen printscreen is, prior to the time of rear full screen printscreen, to change speech certainly It, also by two full screen printscreens, in chronological sequence order is formed laterally side by side successively for the first linking figure, so, , also can be by will be multiple full frame if the multiple full screen printscreens for entering to be about to more than two backward are merged into the operation of long sectional drawing Sectional drawing in chronological sequence order form the first linking figure laterally side by side successively, i.e., as shown in figure 14, this first be connected figure by In chronological sequence order is formed four full screen printscreens laterally side by side successively.
Step S112:All it is mutually matched by what contrast conting obtained between the preceding full screen printscreen and the rear full screen printscreen Characteristic block, to constitute the characteristic block set of matches between the preceding full screen printscreen and the rear full screen printscreen.
Specifically, by calculating is compared between the preceding full screen printscreen and the rear full screen printscreen, can obtain both it Between all characteristic blocks being mutually matched, these characteristic blocks being mutually matched except including correspond be mutually matched except in the case of, Also include situations below:The same characteristic block of preceding full screen printscreen can find multiple matching features in rear full screen printscreen Block, now, this feature block of preceding full screen printscreen corresponds to combine with the plurality of characteristic block of rear full screen printscreen respectively forms many To the characteristic block being mutually matched;Multiple characteristic blocks of preceding full screen printscreen simultaneously with mutual an of characteristic block in rear full screen printscreen Match somebody with somebody, now, the plurality of characteristic block of preceding full screen printscreen corresponds to combine with this feature block of rear full screen printscreen respectively forms many To the characteristic block being mutually matched.In the present embodiment, there are 11 characteristic blocks can be on the right side of Fig. 9 in the preceding full screen printscreen on the left of Fig. 9 Rear full screen printscreen in find the characteristic block being mutually matched therewith, form 15 pairs of characteristic blocks for being mutually matched altogether between the two, The characteristic block that 15 couple is mutually matched constitutes a characteristic block set of matches A.
Step S113:Enter between the characteristic block being mutually matched on the first linking figure to each pair that this feature Block- matching is concentrated Row same position point line, to complete matching characteristic block line, and then forms the second linking figure.
Specifically, as shown in figure 9, in the first linking figure, left side is preceding full screen printscreen, right side is rear full screen printscreen. After the first linking figure and characteristic block set of matches A is obtained, just same position point link process can be carried out in the first linking figure, Same position point is carried out between the characteristic block being mutually matched on the first linking figure to each pair in this feature Block- matching collection A Line, to form the second linking figure, the second linking figure is as shown in Figure 10.In the present embodiment, the same position point line has Body is characterized block central point line, and to those skilled in the art, the same position point line can also use characteristic block Any identical bits angle setting line is substituted.
Step S120:Unrelated line exclusion and fore-and-aft distance value histogram are carried out to all lines in the second linking figure Statistics, to acquire the picture relative displacement between preceding full screen printscreen and rear full screen printscreen.
Specifically, the relative position of picture between the preceding full screen printscreen and the rear full screen printscreen on right side to acquire left side Move, need first to carry out unrelated line exclusion to all lines in the second linking figure, made with excluding as far as possible under same background Into the interference of feature Block- matching, fore-and-aft distance value histogram statistics then are carried out to remaining all lines again, with more intuitively Correct picture relative displacement between the two is found out, as shown in figure 8, can specifically be completed by following operating procedure:
Step S121:The fore-and-aft distance value filtered out between all two end points on the second linking figure falls into default mistake Line in poor scope.
Specifically, the default error range can be preset according to actual needs, it is however generally that, the default error model Enclosing can be set between 0 to 20 pixels, as shown in figure 11, by the way that second is connected between all two end points on figure The line that fore-and-aft distance value is fallen into default error range is all filtered out, and its can be excluded under fixed background scene as far as possible identical The interference of feature Block- matching that background is caused because when by preceding full screen printscreen with after full screen printscreen form rank laterally side by side successively After map interlinking, the multipair characteristic block being mutually matched that both occur due to same background, its longitudinal coordinate between any two is general Will not be shifted (also can not possibly be excessive even if offsetting), simultaneously as the general screenshotss of user are obtained after preceding full screen printscreen, meeting Picture is moved up full screen printscreen after being carried out again after one section of larger distance interception (if in general, only by picture slightly on The interception of full screen printscreen, can cause the difference between forward and backward full screen printscreen very few, now merge the two after just being carried out after shifting Forward and backward full screen printscreen has little significance), thus, the feature Block- matching of same background appearance is really not due to, between any two vertical To distance value be certainly than larger, will not be too small due to fore-and-aft distance value and fall into this and preset in error range.
Step S122:Filter out all where lateral rear full screen printscreen where preceding full screen printscreen on the second linking figure Roll line obliquely.
Specifically, before being obtained due to the general screenshotss of user after full screen printscreen, picture can be moved up after one section of larger distance The interception of full screen printscreen after carrying out again, thus, as shown in figure 11, if actually same characteristic block be mutually matched a pair it Between, it is located at the position of the characteristic block of full screen printscreen behind right side and is certain to be higher than the position for being located at the characteristic block of full screen printscreen before left side Put, i.e., line between the two is rolled obliquely where lateral rear full screen printscreen where preceding full screen printscreen, in other words, such as Figure 12 It is shown, by filtering out all inclinations where lateral rear full screen printscreen where preceding full screen printscreen on the second linking figure obliquely Line, can further reduce the interference that unrelated line is caused.
Step S123:The fore-and-aft distance value progress statistics with histogram of remaining all lines on the second linking figure is looked for Go out the most fore-and-aft distance value of occurrence number, to acquire the relative position of the picture between preceding full screen printscreen and rear full screen printscreen Move.
Specifically, are filtered into remaining all lines first time includes as a line set B, i.e. line set B All lines as shown in figure 11, will further filter remaining all lines as a line set C, i.e. the line set C includes all lines as shown in figure 12, and either the fore-and-aft distance value to all lines in line set B enters column hisgram Such as statistics, i.e., as shown in figure 13, or carry out statistics with histogram, i.e., to the fore-and-aft distance value of all lines in line set C Shown in Figure 14, fore-and-aft distance value D2 values are that occurrence number is most, thus fore-and-aft distance value D2 values be before full screen printscreen and From the point of view of picture relative displacement between full screen printscreen afterwards, the actual conditions with reference to Figure 11 and Figure 12, fore-and-aft distance value D2 values are produced Line be also line between actually same characteristic block be mutually matched a pair.
Step S130:According to the picture relative displacement, got rid of by calculating between preceding full screen printscreen and rear full screen printscreen Repeating part, preceding full screen printscreen and rear full screen printscreen are spliced into the long sectional drawing of a width.
Specifically, when operating the preceding full screen printscreen that obtains in the first linking figure shown in Fig. 9 left side successively according to above-mentioned steps After picture relative displacement between the rear full screen printscreen on right side, just it can be removed according to the picture relative displacement by calculating Fall the repeating part between the preceding full screen printscreen and the rear full screen printscreen, the preceding full screen printscreen and the rear full screen printscreen is final The long sectional drawing of a width is spliced into, the long sectional drawing is finally as shown in figure 15.Consequently, it is possible to just complete to realize two under fixed background scene Individual forward and backward full screen printscreen is spliced into all processes of the operation of a long sectional drawing.
In addition, in regular job, two forward and backward full screen printscreens are spliced into a long sectional drawing by us except that can run into Situation, can also run into the situation that more than two multiple full screen printscreens are spliced into a long sectional drawing, accordingly, when this method is entered When being about to the full screen printscreen of more than two and being spliced into the long sectional drawing of a width, sectional drawing time order and function order can be first according to successively laterally simultaneously All full screen printscreens are arranged to form the first linking figure, adjacent full frame section two-by-two is obtained respectively the step of further according to this method Picture relative displacement between figure, to be got rid of according to the picture relative displacement between adjacent full screen printscreen two-by-two by calculating Repeating part between adjacent full screen printscreen two-by-two, most all full screen printscreens are spliced into the long sectional drawing of a width at last.
Below, it will be elaborated on how so that four full screen printscreens are spliced into the long sectional drawing of a width as an example by the present embodiment More than two multiple full screen printscreens are spliced into the operation of a long sectional drawing to realize by method and step.
First, the first linking figure is obtained, as shown in figure 16, four full screen printscreens are horizontal successively according to sectional drawing time order and function order To side by side, to form the first linking figure.Then, from left to right, successively according to the method described above the step of acquire two-by-two Adjacent full screen printscreen carries out picture phase once between the two two-by-two for picture relative displacement between adjacent full screen printscreen, i.e. each pair When calculating displacement, i.e., carry out feature Block- matching line, a unrelated line mistake successively between this two-by-two adjacent full screen printscreen Filter and the operation of remaining line fore-and-aft distance value histogram statistics, to acquire the picture two-by-two between adjacent full screen printscreen Face relative displacement, so, the picture between first full screen printscreen and second full screen printscreen just can be acquired successively Picture relative displacement between relative displacement, second full screen printscreen and the 3rd full screen printscreen and the 3rd full screen printscreen with Picture relative displacement between 4th full screen printscreen.Finally, further according to the picture between adjacent full screen printscreen two-by-two with respect to position In-migration gets rid of the repeating part between adjacent full screen printscreen two-by-two by calculating, i.e., according to first full screen printscreen and second Picture relative displacement between full screen printscreen is got rid of between first full screen printscreen and second full screen printscreen by calculating Repeating part, according to the picture relative displacement between second full screen printscreen and the 3rd full screen printscreen come pass through calculate remove Fall repeating part between second full screen printscreen and the 3rd full screen printscreen and according to the 3rd full screen printscreen and the 4th Picture relative displacement between full screen printscreen is got rid of between the 3rd full screen printscreen and the 4th full screen printscreen by calculating Repeating part, consequently, it is possible to just can be by all full screen printscreens (including first full screen printscreen, second full screen printscreen, the 3rd Open full screen printscreen and the 4th full screen printscreen) the long sectional drawing of a width is spliced into, the long sectional drawing is finally as shown in figure 17.
Second embodiment of the invention proposes a kind of mobile terminal, and the mobile terminal includes memory, processor and is stored in On the memory and the program that can run on the processor, following steps are realized when the program is by the computing device:
Step S110:Matching characteristic block line is carried out between the preceding full screen printscreen and rear full screen printscreen of the first linking figure, To form the second linking figure.
Specifically, so that fixed background scene is chat scenario as an example, as shown in figure 9, the left side of the first linking figure is merely Preceding full screen printscreen under its scene, right side be chat scenario under rear full screen printscreen, by the figure to the preceding full screen printscreen Matching characteristic block line is carried out with the rear full screen printscreen, the second linking figure as shown in Figure 10 can be ultimately formed.And how by it is preceding, Full screen printscreen finally gives the second linking figure afterwards, as shown in fig. 7, specifically can be realized by following steps:
Step S111:By the way that preceding full screen printscreen is connected into figure to form first laterally side by side successively with rear full screen printscreen.
Specifically, as shown in figure 9, the main preceding full screen printscreen and the rear full screen printscreen on right side by left side of the first linking figure Formed laterally side by side successively, because the sectional drawing time of preceding full screen printscreen is, prior to the time of rear full screen printscreen, to change speech certainly It, also by two full screen printscreens, in chronological sequence order is formed laterally side by side successively for the first linking figure, so, , also can be by will be multiple full frame if the multiple full screen printscreens for entering to be about to more than two backward are merged into the operation of long sectional drawing Sectional drawing in chronological sequence order form the first linking figure laterally side by side successively, i.e., as shown in figure 14, this first be connected figure by In chronological sequence order is formed four full screen printscreens laterally side by side successively.
Step S112:All it is mutually matched by what contrast conting obtained between the preceding full screen printscreen and the rear full screen printscreen Characteristic block, to constitute the characteristic block set of matches between the preceding full screen printscreen and the rear full screen printscreen.
Specifically, by calculating is compared between the preceding full screen printscreen and the rear full screen printscreen, can obtain both it Between all characteristic blocks being mutually matched, these characteristic blocks being mutually matched except including correspond be mutually matched except in the case of, Also include situations below:The same characteristic block of preceding full screen printscreen can find multiple matching features in rear full screen printscreen Block, now, this feature block of preceding full screen printscreen corresponds to combine with the plurality of characteristic block of rear full screen printscreen respectively forms many To the characteristic block being mutually matched;Multiple characteristic blocks of preceding full screen printscreen simultaneously with mutual an of characteristic block in rear full screen printscreen Match somebody with somebody, now, the plurality of characteristic block of preceding full screen printscreen corresponds to combine with this feature block of rear full screen printscreen respectively forms many To the characteristic block being mutually matched.In the present embodiment, there are 11 characteristic blocks can be on the right side of Fig. 9 in the preceding full screen printscreen on the left of Fig. 9 Rear full screen printscreen in find the characteristic block being mutually matched therewith, form 15 pairs of characteristic blocks for being mutually matched altogether between the two, The characteristic block that 15 couple is mutually matched constitutes a characteristic block set of matches A.
Step S113:Enter between the characteristic block being mutually matched on the first linking figure to each pair that this feature Block- matching is concentrated Row same position point line, to complete matching characteristic block line, and then forms the second linking figure.
Specifically, as shown in figure 9, in the first linking figure, left side is preceding full screen printscreen, right side is rear full screen printscreen. After the first linking figure and characteristic block set of matches A is obtained, just same position point link process can be carried out in the first linking figure, Same position point is carried out between the characteristic block being mutually matched on the first linking figure to each pair in this feature Block- matching collection A Line, to form the second linking figure, the second linking figure is as shown in Figure 10.In the present embodiment, the same position point line has Body is characterized block central point line, and to those skilled in the art, the same position point line can also use characteristic block Any identical bits angle setting line is substituted.
Step S120:Unrelated line exclusion and fore-and-aft distance value histogram are carried out to all lines in the second linking figure Statistics, to acquire the picture relative displacement between preceding full screen printscreen and rear full screen printscreen.
Specifically, the relative position of picture between the preceding full screen printscreen and the rear full screen printscreen on right side to acquire left side Move, need first to carry out unrelated line exclusion to all lines in the second linking figure, made with excluding as far as possible under same background Into the interference of feature Block- matching, fore-and-aft distance value histogram statistics then are carried out to remaining all lines again, with more intuitively Correct picture relative displacement between the two is found out, as shown in figure 8, can specifically be completed by following operating procedure:
Step S121:The fore-and-aft distance value filtered out between all two end points on the second linking figure falls into default mistake Line in poor scope.
Specifically, the default error range can be preset according to actual needs, it is however generally that, the default error model Enclosing can be set between 0 to 20 pixels, as shown in figure 11, by the way that second is connected between all two end points on figure The line that fore-and-aft distance value is fallen into default error range is all filtered out, and its can be excluded under fixed background scene as far as possible identical The interference of feature Block- matching that background is caused because when by preceding full screen printscreen with after full screen printscreen form rank laterally side by side successively After map interlinking, the multipair characteristic block being mutually matched that both occur due to same background, its longitudinal coordinate between any two is general Will not be shifted (also can not possibly be excessive even if offsetting), simultaneously as the general screenshotss of user are obtained after preceding full screen printscreen, meeting Picture is moved up full screen printscreen after being carried out again after one section of larger distance interception (if in general, only by picture slightly on The interception of full screen printscreen, can cause the difference between forward and backward full screen printscreen very few, now merge the two after just being carried out after shifting Forward and backward full screen printscreen has little significance), thus, the feature Block- matching of same background appearance is really not due to, between any two vertical To distance value be certainly than larger, will not be too small due to fore-and-aft distance value and fall into this and preset in error range.
Step S122:Filter out all where lateral rear full screen printscreen where preceding full screen printscreen on the second linking figure Roll line obliquely.
Specifically, before being obtained due to the general screenshotss of user after full screen printscreen, picture can be moved up after one section of larger distance The interception of full screen printscreen after carrying out again, thus, as shown in figure 11, if actually same characteristic block be mutually matched a pair it Between, it is located at the position of the characteristic block of full screen printscreen behind right side and is certain to be higher than the position for being located at the characteristic block of full screen printscreen before left side Put, i.e., line between the two is rolled obliquely where lateral rear full screen printscreen where preceding full screen printscreen, in other words, such as Figure 12 It is shown, by filtering out all inclinations where lateral rear full screen printscreen where preceding full screen printscreen on the second linking figure obliquely Line, can further reduce the interference that unrelated line is caused.
Step S123:The fore-and-aft distance value progress statistics with histogram of remaining all lines on the second linking figure is looked for Go out the most fore-and-aft distance value of occurrence number, to acquire the relative position of the picture between preceding full screen printscreen and rear full screen printscreen Move.
Specifically, are filtered into remaining all lines first time includes as a line set B, i.e. line set B All lines as shown in figure 11, will further filter remaining all lines as a line set C, i.e. the line set C includes all lines as shown in figure 12, and either the fore-and-aft distance value to all lines in line set B enters column hisgram Such as statistics, i.e., as shown in figure 13, or carry out statistics with histogram, i.e., to the fore-and-aft distance value of all lines in line set C Shown in Figure 14, fore-and-aft distance value D2 values are that occurrence number is most, thus fore-and-aft distance value D2 values be before full screen printscreen and From the point of view of picture relative displacement between full screen printscreen afterwards, the actual conditions with reference to Figure 11 and Figure 12, fore-and-aft distance value D2 values are produced Line be also line between actually same characteristic block be mutually matched a pair.
Step S130:According to the picture relative displacement, got rid of by calculating between preceding full screen printscreen and rear full screen printscreen Repeating part, preceding full screen printscreen and rear full screen printscreen are spliced into the long sectional drawing of a width.
Specifically, when operating the preceding full screen printscreen that obtains in the first linking figure shown in Fig. 9 left side successively according to above-mentioned steps After picture relative displacement between the rear full screen printscreen on right side, just it can be removed according to the picture relative displacement by calculating Fall the repeating part between the preceding full screen printscreen and the rear full screen printscreen, the preceding full screen printscreen and the rear full screen printscreen is final The long sectional drawing of a width is spliced into, the long sectional drawing is finally as shown in figure 15.Consequently, it is possible to just complete to realize two under fixed background scene Individual forward and backward full screen printscreen is spliced into all processes of the operation of a long sectional drawing.
In addition, in regular job, two forward and backward full screen printscreens are spliced into a long sectional drawing by us except that can run into Situation, can also run into the situation that more than two multiple full screen printscreens are spliced into a long sectional drawing, accordingly, when this method is entered When being about to the full screen printscreen of more than two and being spliced into the long sectional drawing of a width, sectional drawing time order and function order can be first according to successively laterally simultaneously All full screen printscreens are arranged to form the first linking figure, adjacent full frame section two-by-two is obtained respectively the step of further according to this method Picture relative displacement between figure, to be got rid of according to the picture relative displacement between adjacent full screen printscreen two-by-two by calculating Repeating part between adjacent full screen printscreen two-by-two, most all full screen printscreens are spliced into the long sectional drawing of a width at last.
Below, it will be elaborated on how so that four full screen printscreens are spliced into the long sectional drawing of a width as an example by the present embodiment More than two multiple full screen printscreens are spliced into the operation of a long sectional drawing to realize by method and step.
First, the first linking figure is obtained, as shown in figure 16, four full screen printscreens are horizontal successively according to sectional drawing time order and function order To side by side, to form the first linking figure.Then, from left to right, successively according to the method described above the step of acquire two-by-two Adjacent full screen printscreen carries out picture phase once between the two two-by-two for picture relative displacement between adjacent full screen printscreen, i.e. each pair When calculating displacement, i.e., carry out feature Block- matching line, a unrelated line mistake successively between this two-by-two adjacent full screen printscreen Filter and the operation of remaining line fore-and-aft distance value histogram statistics, to acquire the picture two-by-two between adjacent full screen printscreen Face relative displacement, so, the picture between first full screen printscreen and second full screen printscreen just can be acquired successively Picture relative displacement between relative displacement, second full screen printscreen and the 3rd full screen printscreen and the 3rd full screen printscreen with Picture relative displacement between 4th full screen printscreen.Finally, further according to the picture between adjacent full screen printscreen two-by-two with respect to position In-migration gets rid of the repeating part between adjacent full screen printscreen two-by-two by calculating, i.e., according to first full screen printscreen and second Picture relative displacement between full screen printscreen is got rid of between first full screen printscreen and second full screen printscreen by calculating Repeating part, according to the picture relative displacement between second full screen printscreen and the 3rd full screen printscreen come pass through calculate remove Fall repeating part between second full screen printscreen and the 3rd full screen printscreen and according to the 3rd full screen printscreen and the 4th Picture relative displacement between full screen printscreen is got rid of between the 3rd full screen printscreen and the 4th full screen printscreen by calculating Repeating part, consequently, it is possible to just can be by all full screen printscreens (including first full screen printscreen, second full screen printscreen, the 3rd Open full screen printscreen and the 4th full screen printscreen) the long sectional drawing of a width is spliced into, the long sectional drawing is finally as shown in figure 17.
Third embodiment of the invention proposes a kind of computer-readable recording medium, and the computer-readable recording medium storage has One or more program, one or more program can be by one or more computing device, to realize following steps:
Step S110:Matching characteristic block line is carried out between the preceding full screen printscreen and rear full screen printscreen of the first linking figure, To form the second linking figure.
Specifically, so that fixed background scene is chat scenario as an example, as shown in figure 9, the left side of the first linking figure is merely Preceding full screen printscreen under its scene, right side be chat scenario under rear full screen printscreen, by the figure to the preceding full screen printscreen Matching characteristic block line is carried out with the rear full screen printscreen, the second linking figure as shown in Figure 10 can be ultimately formed.And how by it is preceding, Full screen printscreen finally gives the second linking figure afterwards, as shown in fig. 7, specifically can be realized by following steps:
Step S111:By the way that preceding full screen printscreen is connected into figure to form first laterally side by side successively with rear full screen printscreen.
Specifically, as shown in figure 9, the main preceding full screen printscreen and the rear full screen printscreen on right side by left side of the first linking figure Formed laterally side by side successively, because the sectional drawing time of preceding full screen printscreen is, prior to the time of rear full screen printscreen, to change speech certainly It, also by two full screen printscreens, in chronological sequence order is formed laterally side by side successively for the first linking figure, so, , also can be by will be multiple full frame if the multiple full screen printscreens for entering to be about to more than two backward are merged into the operation of long sectional drawing Sectional drawing in chronological sequence order form the first linking figure laterally side by side successively, i.e., as shown in figure 14, this first be connected figure by In chronological sequence order is formed four full screen printscreens laterally side by side successively.
Step S112:All it is mutually matched by what contrast conting obtained between the preceding full screen printscreen and the rear full screen printscreen Characteristic block, to constitute the characteristic block set of matches between the preceding full screen printscreen and the rear full screen printscreen.
Specifically, by calculating is compared between the preceding full screen printscreen and the rear full screen printscreen, can obtain both it Between all characteristic blocks being mutually matched, these characteristic blocks being mutually matched except including correspond be mutually matched except in the case of, Also include situations below:The same characteristic block of preceding full screen printscreen can find multiple matching features in rear full screen printscreen Block, now, this feature block of preceding full screen printscreen corresponds to combine with the plurality of characteristic block of rear full screen printscreen respectively forms many To the characteristic block being mutually matched;Multiple characteristic blocks of preceding full screen printscreen simultaneously with mutual an of characteristic block in rear full screen printscreen Match somebody with somebody, now, the plurality of characteristic block of preceding full screen printscreen corresponds to combine with this feature block of rear full screen printscreen respectively forms many To the characteristic block being mutually matched.In the present embodiment, there are 11 characteristic blocks can be on the right side of Fig. 9 in the preceding full screen printscreen on the left of Fig. 9 Rear full screen printscreen in find the characteristic block being mutually matched therewith, form 15 pairs of characteristic blocks for being mutually matched altogether between the two, The characteristic block that 15 couple is mutually matched constitutes a characteristic block set of matches A.
Step S113:Enter between the characteristic block being mutually matched on the first linking figure to each pair that this feature Block- matching is concentrated Row same position point line, to complete matching characteristic block line, and then forms the second linking figure.
Specifically, as shown in figure 9, in the first linking figure, left side is preceding full screen printscreen, right side is rear full screen printscreen. After the first linking figure and characteristic block set of matches A is obtained, just same position point link process can be carried out in the first linking figure, Same position point is carried out between the characteristic block being mutually matched on the first linking figure to each pair in this feature Block- matching collection A Line, to form the second linking figure, the second linking figure is as shown in Figure 10.In the present embodiment, the same position point line has Body is characterized block central point line, and to those skilled in the art, the same position point line can also use characteristic block Any identical bits angle setting line is substituted.
Step S120:Unrelated line exclusion and fore-and-aft distance value histogram are carried out to all lines in the second linking figure Statistics, to acquire the picture relative displacement between preceding full screen printscreen and rear full screen printscreen.
Specifically, the relative position of picture between the preceding full screen printscreen and the rear full screen printscreen on right side to acquire left side Move, need first to carry out unrelated line exclusion to all lines in the second linking figure, made with excluding as far as possible under same background Into the interference of feature Block- matching, fore-and-aft distance value histogram statistics then are carried out to remaining all lines again, with more intuitively Correct picture relative displacement between the two is found out, as shown in figure 8, can specifically be completed by following operating procedure:
Step S121:The fore-and-aft distance value filtered out between all two end points on the second linking figure falls into default mistake Line in poor scope.
Specifically, the default error range can be preset according to actual needs, it is however generally that, the default error model Enclosing can be set between 0 to 20 pixels, as shown in figure 11, by the way that second is connected between all two end points on figure The line that fore-and-aft distance value is fallen into default error range is all filtered out, and its can be excluded under fixed background scene as far as possible identical The interference of feature Block- matching that background is caused because when by preceding full screen printscreen with after full screen printscreen form rank laterally side by side successively After map interlinking, the multipair characteristic block being mutually matched that both occur due to same background, its longitudinal coordinate between any two is general Will not be shifted (also can not possibly be excessive even if offsetting), simultaneously as the general screenshotss of user are obtained after preceding full screen printscreen, meeting Picture is moved up full screen printscreen after being carried out again after one section of larger distance interception (if in general, only by picture slightly on The interception of full screen printscreen, can cause the difference between forward and backward full screen printscreen very few, now merge the two after just being carried out after shifting Forward and backward full screen printscreen has little significance), thus, the feature Block- matching of same background appearance is really not due to, between any two vertical To distance value be certainly than larger, will not be too small due to fore-and-aft distance value and fall into this and preset in error range.
Step S122:Filter out all where lateral rear full screen printscreen where preceding full screen printscreen on the second linking figure Roll line obliquely.
Specifically, before being obtained due to the general screenshotss of user after full screen printscreen, picture can be moved up after one section of larger distance The interception of full screen printscreen after carrying out again, thus, as shown in figure 11, if actually same characteristic block be mutually matched a pair it Between, it is located at the position of the characteristic block of full screen printscreen behind right side and is certain to be higher than the position for being located at the characteristic block of full screen printscreen before left side Put, i.e., line between the two is rolled obliquely where lateral rear full screen printscreen where preceding full screen printscreen, in other words, such as Figure 12 It is shown, by filtering out all inclinations where lateral rear full screen printscreen where preceding full screen printscreen on the second linking figure obliquely Line, can further reduce the interference that unrelated line is caused.
Step S123:The fore-and-aft distance value progress statistics with histogram of remaining all lines on the second linking figure is looked for Go out the most fore-and-aft distance value of occurrence number, to acquire the relative position of the picture between preceding full screen printscreen and rear full screen printscreen Move.
Specifically, are filtered into remaining all lines first time includes as a line set B, i.e. line set B All lines as shown in figure 11, will further filter remaining all lines as a line set C, i.e. the line set C includes all lines as shown in figure 12, and either the fore-and-aft distance value to all lines in line set B enters column hisgram Such as statistics, i.e., as shown in figure 13, or carry out statistics with histogram, i.e., to the fore-and-aft distance value of all lines in line set C Shown in Figure 14, fore-and-aft distance value D2 values are that occurrence number is most, thus fore-and-aft distance value D2 values be before full screen printscreen and From the point of view of picture relative displacement between full screen printscreen afterwards, the actual conditions with reference to Figure 11 and Figure 12, fore-and-aft distance value D2 values are produced Line be also line between actually same characteristic block be mutually matched a pair.
Step S130:According to the picture relative displacement, got rid of by calculating between preceding full screen printscreen and rear full screen printscreen Repeating part, preceding full screen printscreen and rear full screen printscreen are spliced into the long sectional drawing of a width.
Specifically, when operating the preceding full screen printscreen that obtains in the first linking figure shown in Fig. 9 left side successively according to above-mentioned steps After picture relative displacement between the rear full screen printscreen on right side, just it can be removed according to the picture relative displacement by calculating Fall the repeating part between the preceding full screen printscreen and the rear full screen printscreen, the preceding full screen printscreen and the rear full screen printscreen is final The long sectional drawing of a width is spliced into, the long sectional drawing is finally as shown in figure 15.Consequently, it is possible to just complete to realize two under fixed background scene Individual forward and backward full screen printscreen is spliced into all processes of the operation of a long sectional drawing.
In addition, in regular job, two forward and backward full screen printscreens are spliced into a long sectional drawing by us except that can run into Situation, can also run into the situation that more than two multiple full screen printscreens are spliced into a long sectional drawing, accordingly, when this method is entered When being about to the full screen printscreen of more than two and being spliced into the long sectional drawing of a width, sectional drawing time order and function order can be first according to successively laterally simultaneously All full screen printscreens are arranged to form the first linking figure, adjacent full frame section two-by-two is obtained respectively the step of further according to this method Picture relative displacement between figure, to be got rid of according to the picture relative displacement between adjacent full screen printscreen two-by-two by calculating Repeating part between adjacent full screen printscreen two-by-two, most all full screen printscreens are spliced into the long sectional drawing of a width at last.
Below, it will be elaborated on how so that four full screen printscreens are spliced into the long sectional drawing of a width as an example by the present embodiment More than two multiple full screen printscreens are spliced into the operation of a long sectional drawing to realize by method and step.
First, the first linking figure is obtained, as shown in figure 16, four full screen printscreens are horizontal successively according to sectional drawing time order and function order To side by side, to form the first linking figure.Then, from left to right, successively according to the method described above the step of acquire two-by-two Adjacent full screen printscreen carries out picture phase once between the two two-by-two for picture relative displacement between adjacent full screen printscreen, i.e. each pair When calculating displacement, i.e., carry out feature Block- matching line, a unrelated line mistake successively between this two-by-two adjacent full screen printscreen Filter and the operation of remaining line fore-and-aft distance value histogram statistics, to acquire the picture two-by-two between adjacent full screen printscreen Face relative displacement, so, the picture between first full screen printscreen and second full screen printscreen just can be acquired successively Picture relative displacement between relative displacement, second full screen printscreen and the 3rd full screen printscreen and the 3rd full screen printscreen with Picture relative displacement between 4th full screen printscreen.Finally, further according to the picture between adjacent full screen printscreen two-by-two with respect to position In-migration gets rid of the repeating part between adjacent full screen printscreen two-by-two by calculating, i.e., according to first full screen printscreen and second Picture relative displacement between full screen printscreen is got rid of between first full screen printscreen and second full screen printscreen by calculating Repeating part, according to the picture relative displacement between second full screen printscreen and the 3rd full screen printscreen come pass through calculate remove Fall repeating part between second full screen printscreen and the 3rd full screen printscreen and according to the 3rd full screen printscreen and the 4th Picture relative displacement between full screen printscreen is got rid of between the 3rd full screen printscreen and the 4th full screen printscreen by calculating Repeating part, consequently, it is possible to just can be by all full screen printscreens (including first full screen printscreen, second full screen printscreen, the 3rd Open full screen printscreen and the 4th full screen printscreen) the long sectional drawing of a width is spliced into, the long sectional drawing is finally as shown in figure 17.
A kind of method for realizing long sectional drawing proposed by the present invention, mobile terminal and computer-readable recording medium, it passes through Matching characteristic block line is carried out between the preceding full screen printscreen and rear full screen printscreen of the first linking figure, to form the second linking figure, Unrelated line exclusion is carried out to all lines in the second linking figure again and fore-and-aft distance value histogram is counted, to exclude as far as possible Fall the feature Block- matching interference that its same background under fixed background scene causes, so acquire preceding full screen printscreen with it is rear full frame Picture relative displacement between sectional drawing, finally, according to the picture relative displacement, by calculating the repeating portion got rid of between the two Point, both just can be spliced into the long sectional drawing of a width.It can be seen that, the present invention can realize mobile terminal screen under fixed background scene Long shot operation.
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 equipment (can be mobile phone, computer, clothes It is engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the 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 method for realizing long sectional drawing, it is characterised in that the described method comprises the following steps:
Matching characteristic block line is carried out between the preceding full screen printscreen and rear full screen printscreen of the first linking figure, to form the second linking Figure;
Unrelated line exclusion and fore-and-aft distance value histogram statistics are carried out to all lines in the described second linking figure, to obtain Obtain the picture relative displacement between the preceding full screen printscreen and the rear full screen printscreen;
According to the picture relative displacement, the weight between the preceding full screen printscreen and the rear full screen printscreen is got rid of by calculating Multiple part, the long sectional drawing of a width is spliced into by the preceding full screen printscreen and the rear full screen printscreen.
2. according to the method described in claim 1, it is characterised in that the preceding full screen printscreen in the first linking figure with it is rear full frame Matching characteristic block line is carried out between sectional drawing, following steps are specifically included to form the step of the second linking is schemed:By by described in Preceding full screen printscreen is connected figure to form described first laterally side by side successively with the rear full screen printscreen.
3. according to the method described in claim 1, it is characterised in that the preceding full screen printscreen in the first linking figure with it is rear full frame Matching characteristic block line is carried out between sectional drawing, following steps are specifically included to form the step of the second linking is schemed:
All characteristic blocks being mutually matched between the preceding full screen printscreen and the rear full screen printscreen are obtained by contrast conting, To constitute the characteristic block set of matches between the preceding full screen printscreen and the rear full screen printscreen.
4. method according to claim 3, it is characterised in that the preceding full screen printscreen in the first linking figure with it is rear full frame Matching characteristic block line is carried out between sectional drawing, it is specifically further comprising the steps of to form the step of the second linking is schemed:Described Same position point line is carried out between the characteristic block being mutually matched on one linking figure to each pair in the characteristic block set of matches, with The matching characteristic block line is completed, and then forms the second linking figure.
5. method according to claim 4, it is characterised in that the same position point line is characterized block central point line Or any identical bits angle setting line of characteristic block.
6. according to the method described in claim 1, it is characterised in that all lines in the described second linking figure are carried out Unrelated line is excluded and fore-and-aft distance value histogram statistics, with acquire the preceding full screen printscreen and the rear full screen printscreen it Between picture relative displacement the step of specifically include following steps:
The fore-and-aft distance value filtered out between all two end points on the second linking figure is fallen into default error range Line;
Occurrence number is found out to the fore-and-aft distance value progress statistics with histogram of remaining all lines on the second linking figure Most fore-and-aft distance value, to acquire the picture relative displacement between the preceding full screen printscreen and the rear full screen printscreen.
7. method according to claim 6, it is characterised in that all two filtered out on the second linking figure It is described on the described second linking figure after the step of fore-and-aft distance value between end points falls into the line in default error range The fore-and-aft distance values of remaining all lines carry out statistics with histogram and find out the fore-and-aft distance value that occurrence number is most, to obtain It is further comprising the steps of before the step of obtaining the picture relative displacement between the preceding full screen printscreen and the rear full screen printscreen: Inclination where filtering out all rear full screen printscreens lateral where the preceding full screen printscreen on the second linking figure is oblique Downward line.
8. according to the method described in claim 1, it is characterised in that when the full screen printscreen that methods described enters to be about to more than two is spelled When being connected into the long sectional drawing of a width, being first according to sectional drawing time order and function order, all full screen printscreens are described to be formed laterally side by side successively First linking figure, obtains the picture relative displacement between adjacent full screen printscreen two-by-two the step of further according to methods described respectively, To be got rid of according to the picture relative displacement between adjacent full screen printscreen two-by-two by calculating between adjacent full screen printscreen two-by-two Repeating part, most all full screen printscreens are spliced into the long sectional drawing of a width at last.
9. a kind of mobile terminal, it is characterised in that the mobile terminal includes memory, processor and is stored in the memory Program that is upper and can running on the processor, described program is realized that claim 1-8 such as appoints during the computing device The step of method described in one.
10. a kind of computer-readable recording medium, it is characterised in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be by one or more computing device, to realize that claim 1-8 such as appoints The step of method described in one.
CN201710446440.3A 2017-06-14 2017-06-14 A kind of method for realizing long sectional drawing, mobile terminal and computer-readable recording medium Pending CN107329668A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710446440.3A CN107329668A (en) 2017-06-14 2017-06-14 A kind of method for realizing long sectional drawing, mobile terminal and computer-readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710446440.3A CN107329668A (en) 2017-06-14 2017-06-14 A kind of method for realizing long sectional drawing, mobile terminal and computer-readable recording medium

Publications (1)

Publication Number Publication Date
CN107329668A true CN107329668A (en) 2017-11-07

Family

ID=60195018

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710446440.3A Pending CN107329668A (en) 2017-06-14 2017-06-14 A kind of method for realizing long sectional drawing, mobile terminal and computer-readable recording medium

Country Status (1)

Country Link
CN (1) CN107329668A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110456969A (en) * 2019-07-10 2019-11-15 努比亚技术有限公司 A kind of long printscreen realization method, terminal and computer readable storage medium
CN111369575A (en) * 2020-05-26 2020-07-03 北京小米移动软件有限公司 Screen capturing method and device and storage medium
CN115268741A (en) * 2021-04-30 2022-11-01 华为技术有限公司 Screen capture method, graphical interface and electronic equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101221661A (en) * 2008-01-29 2008-07-16 深圳市迅雷网络技术有限公司 Image registration method and device
CN101276195A (en) * 2007-03-30 2008-10-01 大日本印刷株式会社 Preparing a hologram recording medium
CN103217221A (en) * 2013-03-22 2013-07-24 北京航空航天大学 Air-cooling condenser radiating surface temperature field measuring method based on image stitching
CN104574339A (en) * 2015-02-09 2015-04-29 上海安威士科技股份有限公司 Multi-scale cylindrical projection panorama image generating method for video monitoring
CN104835116A (en) * 2015-04-10 2015-08-12 山东师范大学 Contour-based two-dimensional fragment splicing method
CN105278824A (en) * 2014-07-31 2016-01-27 维沃移动通信有限公司 Screen capturing method of terminal equipment and terminal equipment thereof
CN105719239A (en) * 2016-01-21 2016-06-29 科盾科技股份有限公司 Image splicing method and image splicing device
CN105894453A (en) * 2016-03-31 2016-08-24 联想(北京)有限公司 Image processing method and electronic device
CN106127676A (en) * 2016-06-17 2016-11-16 许之敏 A kind of quick intercepting and the method for the synthesis long sectional drawing of multi-screen
CN106296587A (en) * 2016-08-19 2017-01-04 广东工业大学 The joining method of tire-mold image

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101276195A (en) * 2007-03-30 2008-10-01 大日本印刷株式会社 Preparing a hologram recording medium
CN101221661A (en) * 2008-01-29 2008-07-16 深圳市迅雷网络技术有限公司 Image registration method and device
CN103217221A (en) * 2013-03-22 2013-07-24 北京航空航天大学 Air-cooling condenser radiating surface temperature field measuring method based on image stitching
CN105278824A (en) * 2014-07-31 2016-01-27 维沃移动通信有限公司 Screen capturing method of terminal equipment and terminal equipment thereof
CN104574339A (en) * 2015-02-09 2015-04-29 上海安威士科技股份有限公司 Multi-scale cylindrical projection panorama image generating method for video monitoring
CN104835116A (en) * 2015-04-10 2015-08-12 山东师范大学 Contour-based two-dimensional fragment splicing method
CN105719239A (en) * 2016-01-21 2016-06-29 科盾科技股份有限公司 Image splicing method and image splicing device
CN105894453A (en) * 2016-03-31 2016-08-24 联想(北京)有限公司 Image processing method and electronic device
CN106127676A (en) * 2016-06-17 2016-11-16 许之敏 A kind of quick intercepting and the method for the synthesis long sectional drawing of multi-screen
CN106296587A (en) * 2016-08-19 2017-01-04 广东工业大学 The joining method of tire-mold image

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
徐鑫: "红外图像拼接技术研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110456969A (en) * 2019-07-10 2019-11-15 努比亚技术有限公司 A kind of long printscreen realization method, terminal and computer readable storage medium
CN110456969B (en) * 2019-07-10 2022-09-27 努比亚技术有限公司 Long screenshot implementation method, terminal and computer readable storage medium
CN111369575A (en) * 2020-05-26 2020-07-03 北京小米移动软件有限公司 Screen capturing method and device and storage medium
CN111369575B (en) * 2020-05-26 2020-09-04 北京小米移动软件有限公司 Screen capturing method and device and storage medium
CN115268741A (en) * 2021-04-30 2022-11-01 华为技术有限公司 Screen capture method, graphical interface and electronic equipment

Similar Documents

Publication Publication Date Title
CN106961706A (en) Method, mobile terminal and the computer-readable recording medium of communication pattern switching
CN107508994A (en) Touch-screen report point rate processing method, terminal and computer-readable recording medium
CN107566635A (en) Screen intensity method to set up, mobile terminal and computer-readable recording medium
CN107329682A (en) Edge exchange method and mobile terminal
CN107314774A (en) A kind of digital map navigation method, equipment and computer-readable recording 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
CN107239567A (en) A kind of recognition methods of object scene, equipment and computer-readable recording medium
CN107181865A (en) Processing method, terminal and the computer-readable recording medium of unread short messages
CN107172282A (en) Screen locking wallpaper displaying method, mobile terminal and computer-readable recording medium
CN107272906A (en) Using many account display control methods and mobile terminal
CN107239205A (en) A kind of photographic method, mobile terminal and storage medium
CN107566605A (en) A kind of interactive interface processing method, equipment and computer-readable recording medium
CN107295270A (en) Determination method, device, terminal and the computer-readable recording medium of a kind of image brightness values
CN107483804A (en) A kind of image pickup method, mobile terminal and computer-readable recording medium
CN107682630A (en) Dual camera anti-fluttering method, mobile terminal and computer-readable recording medium
CN107480003A (en) A kind of method, equipment and the computer-readable recording medium of backup radio frequency parameter
CN107329668A (en) A kind of method for realizing long sectional drawing, mobile terminal and computer-readable recording medium
CN107203986A (en) A kind of image interfusion method, device and computer-readable recording medium
CN107566735A (en) A kind of dual camera focusing method, mobile terminal and computer-readable recording medium
CN107610057A (en) A kind of depth map restorative procedure, terminal and computer-readable recording medium
CN107329558A (en) Reduce the method and mobile terminal of power consumption
CN107203278A (en) One-handed performance input method, mobile terminal and storage medium
CN107483823A (en) A kind of image processing method and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171107