CN109934769A - Method, terminal and the storage medium of the long screenshot of screen - Google Patents

Method, terminal and the storage medium of the long screenshot of screen Download PDF

Info

Publication number
CN109934769A
CN109934769A CN201910345281.7A CN201910345281A CN109934769A CN 109934769 A CN109934769 A CN 109934769A CN 201910345281 A CN201910345281 A CN 201910345281A CN 109934769 A CN109934769 A CN 109934769A
Authority
CN
China
Prior art keywords
full screen
printscreen
screen printscreen
linking line
displacement
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910345281.7A
Other languages
Chinese (zh)
Other versions
CN109934769B (en
Inventor
谢小军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910345281.7A priority Critical patent/CN109934769B/en
Publication of CN109934769A publication Critical patent/CN109934769A/en
Application granted granted Critical
Publication of CN109934769B publication Critical patent/CN109934769B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Analysis (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the present invention discloses method, terminal and the storage medium of a kind of long screenshot of screen, method includes the following steps: comparing the first full screen printscreen and the second full screen printscreen, calculates displacement of second full screen printscreen relative to the first full screen printscreen;It is obtained according to displacement and is connected line between the first full screen printscreen and the second full screen printscreen;Verification is compared to linking line by default verification height, only when Inspection passes through, is spliced by rank the first full screen printscreen of pair of connecting wires with the second full screen printscreen, obtains the long screenshot of screen.The embodiment of the present invention judges whether the picture currently spliced is correct by increasing verification scheme, occurs to reduce the situation of long screenshot splicing mistake.

Description

Method, terminal and the storage medium of the long screenshot of screen
Technical field
The present embodiments relate to terminal image processing technology more particularly to a kind of methods of the long screenshot of screen, end End and storage medium.
Background technique
The content shown in different screen is finally synthesized it is well known that the long screenshot of screen relies primarily on the analysis to image It needs to divide using to image to make long figure content obtain the lower content that should be shown of public cognition for the process of a Zhang Changtu The algorithm of analysis assists completing.The realization of current long screenshot is mainly completed by template matching algorithm, and template is exactly known to a width Small image, template matching is exactly in the big image of a width to search target, it is known that has the target to be looked in the figure, and the target is same Template has identical size, direction and image, can find target in figure by certain algorithm, determine its coordinate position, To obtain the linking line between the full screen printscreen of front and back two, the spelling that full screen printscreen is opened to front and back two can be realized based on the linking line It connects, obtains the long screenshot of screen.However, in actual use, it has been found that there are one to ask for this long screenshot implementation of screen Topic, heavy dependence algorithm obtains the relative displacement of two pictures, and mistake is calculated in relative displacement accounting sometimes, causes to splice picture Error, and have no idea to correct in time.
Summary of the invention
The main purpose of the embodiment of the present invention is to propose method, terminal and the storage medium of a kind of long screenshot of screen, purport The existing long screenshot mode of screen is being solved, if occurring calculating mistake when obtaining the relative displacement between two screenshots spliced, The technical issues of will lead to the error of splicing picture, can not correcting in time.
To achieve the above object, the embodiment of the present invention provides a kind of method of long screenshot of screen, and the method includes following Step: comparing the first full screen printscreen and the second full screen printscreen, calculates second full screen printscreen relative to described first full frame section The displacement of figure;It is obtained according to the displacement and is connected line between first full screen printscreen and second full screen printscreen;Pass through Verification is compared to the linking line in default verification height, only when the Inspection passes through, passes through the rank pair of connecting wires First full screen printscreen is spliced with second full screen printscreen, obtains the long screenshot of screen.
Optionally, the first full screen printscreen of the comparison and the second full screen printscreen, calculate second full screen printscreen relative to Before the step of displacement of first full screen printscreen, further includes: screen interface before screen printing sliding obtains described the One full screen printscreen, the screen interface after screen printing sliding obtain second full screen printscreen.
Optionally, the first full screen printscreen of the comparison and the second full screen printscreen, calculate second full screen printscreen relative to The step of displacement of first full screen printscreen, specifically includes: second full screen printscreen is longitudinally successively divided into the along screen One region, second area, third region and the fourth region;First full screen printscreen and institute are compared by template matching algorithm Second area is stated, the position that the second area occurs in first full screen printscreen is found out, to calculate the displacement.
Optionally, the linking line is connected line with described second including the first linking line, and the first linking line is located at institute State the first full screen printscreen, the second linking line is located at second full screen printscreen, described according to displacement acquisition described the Specifically including between one full screen printscreen and second full screen printscreen the step of being connected line: pass through first full screen printscreen Height subtracts the displacement, to obtain the position of the first linking line;Subtracted by the height of second full screen printscreen The height of the first area is gone, to obtain the position of the second linking line.
Optionally, described the step of verification is compared to the linking line by default verification height, specifically includes with institute On the basis of stating default verification height, the comparison model that the comparison range of the first linking line is connected line with described second is marked respectively It encloses;Pass through the ratio of content and the second linking line included by comparison range of the template matching algorithm to the first linking line Content included by range is compared, to realize the Inspection to the linking line.
Optionally, the comparison range of the first linking line is described in the described first position for being connected line up elapses The position of default verification height to the first linking line elapses the default verification height down;The second linking line Comparison range be that the position of the second linking line up elapses the default verification height and is connected line to described second Position elapse the default verification height down.
Optionally, described that verification is compared to the linking line by default verification height, only in the Inspection By when, spliced by the first full screen printscreen described in the rank pair of connecting wires with second full screen printscreen, it is long to obtain screen After the step of screenshot, further includes: if the Inspection is not over it is complete to recalculate described second by alternative scheme Shield displacement of the screenshot relative to first full screen printscreen, and obtain new linking line, to pass through the ratio in the new linking line After verification, is spliced by the first full screen printscreen described in the new rank pair of connecting wires with second full screen printscreen, shielded The long screenshot of curtain.
Optionally, the alternative scheme is specifically includes the following steps: longitudinal successively along screen by second full screen printscreen It is divided into the 5th region, the 6th region, District 7 domain, Section Eight domain and the 9th region, the 6th region and the described 7th Region is combined to form comparison area;First full screen printscreen and the comparison area are compared by template matching algorithm, The position that the comparison area occurs in first full screen printscreen is found out, to calculate the displacement.
In addition, to achieve the above object, the embodiment of the present invention also proposes that a kind of terminal, the terminal include memory, place Manage device, the program that is stored on the memory and can run on the processor and for realizing the processor and institute The data/address bus of the connection communication between memory is stated, described program realizes the step of above-mentioned method when being executed by the processor Suddenly.
In addition, to achieve the above object, the embodiment of the present invention also proposes a kind of storage medium, deposited for computer-readable Storage, the storage medium are stored with one or more program, and one or more of programs can be by one or more It manages device to execute, the step of to realize above-mentioned method.
Method, terminal and the storage medium for the long screenshot of screen that the embodiment of the present invention proposes are carrying out the long screenshot of screen When, the second full screen printscreen can be calculated relative to first in the first full screen printscreen and the second full screen printscreen for comparing the long screenshot of screen The displacement of full screen printscreen, and according to displacement obtain between the first full screen printscreen and the second full screen printscreen be connected line after, increase school Mechanism is tested, verification is compared to linking line by default verification height, finally, only passing through when the Inspection passes through First full screen printscreen of rank pair of connecting wires is spliced with the second full screen printscreen, obtains the long screenshot of final screen.So, originally Technical solution judges whether the picture currently spliced is correct by increasing verification scheme, to reduce long screenshot splicing mistake The case where occur.
Detailed description of the invention
The hardware structural diagram of Fig. 1 mobile terminal of each embodiment to realize the present invention.
Fig. 2 is the communication system architecture diagram that mobile terminal as shown in Figure 1 is based on.
Fig. 3 is the flow chart of the method for the long screenshot of one screen of the embodiment of the present invention.
Fig. 4 is the specific flow chart of step S110 in the method for the long screenshot of screen shown in Fig. 3.
Fig. 5 is the structural schematic diagram of the first full screen printscreen in the method for the long screenshot of screen shown in Fig. 3.
Fig. 6 is the structural schematic diagram of the second full screen printscreen in the method for the long screenshot of screen shown in Fig. 3.
Fig. 7 is the specific flow chart of step S120 in the method for the long screenshot of screen shown in Fig. 3
Fig. 8 is the specific flow chart of step S130 in the method for the long screenshot of screen shown in Fig. 3.
Fig. 9 is that the comparison range of the first linking line of the first full screen printscreen shown in Fig. 5 divides schematic diagram.
Figure 10 is that the comparison range of the second linking line of the second full screen printscreen shown in Fig. 6 divides schematic diagram.
Figure 11 is the another flow chart of the method for the long screenshot of one screen of the embodiment of the present invention.
Figure 12 is the specific flow chart of step S140 in the method for the long screenshot of screen shown in Figure 11.
Figure 13 is the structural block diagram of two terminal of the embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific 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 subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate electricity Brain, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable matchmaker Body player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. are mobile The fixed terminals such as terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components 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 may include components more more or fewer than diagram, Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used in messaging or communication process, and signal sends and receivees, specifically, by base station Downstream message receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, 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 with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless 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, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex 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 to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent 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 (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further 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 sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of 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 sensor, details are not described herein.
Display unit 106 is for showing message input by user or being supplied to the message of user.Display unit 106 can wrap 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) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller received from touch detecting apparatus touch message, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, 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 According to message, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least 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 entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 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, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communication system that mobile terminal of the invention is based below into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communication system architecture diagram provided in an embodiment of the present invention, the communication system System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN 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 details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may 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 The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use The dedicated message in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may 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 should know the present invention is not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new communication system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the method for the present invention is proposed.
Embodiment one
As shown in figure 3, a kind of method that the embodiment of the present invention one proposes long screenshot of screen, this method specifically include following step It is rapid:
Step S110: comparing the first full screen printscreen and the second full screen printscreen, and it is complete relative to first to calculate the second full screen printscreen Shield the displacement of screenshot.
Specifically, the composition of the long screenshot of current screen is mainly two full screen printscreens of screen sliding front and back, i.e., by the two The full screen printscreen can be obtained by being stitched together, thus, " the first full screen printscreen and second full frame section are compared executing this step Figure calculates displacement of second full screen printscreen relative to the first full screen printscreen " before further include: screen circle before screen printing sliding Face obtains the first full screen printscreen, and screen interface after screen printing sliding obtains the second full screen printscreen.
After we successively obtain the first full screen printscreen and the second full screen printscreen by above method step, can be based on should First full screen printscreen executes this method step with second full screen printscreen and is spliced, to obtain the long screenshot of final screen.Such as Shown in Fig. 4, the long screenshot of final screen is obtained by the method for the long screenshot of this screen, firstly, executing this step " it is complete to compare first Shield screenshot and the second full screen printscreen, calculate displacement of second full screen printscreen relative to the first full screen printscreen ", detailed process packet It includes:
Step S111: the second full screen printscreen is longitudinally successively divided into first area, second area, third region along screen And the fourth region.
Step S112: comparing the first full screen printscreen and second area by template matching algorithm, finds out second area the The position occurred in one full screen printscreen, to calculate the displacement.
As shown in figure 5, it is screen interface before screen printing sliding the first full screen printscreen 100 for acquiring.Such as Shown in Fig. 6, it is the screen interface after screen printing sliding come the second full screen printscreen 200 acquired, is walked according to the above method Suddenly it is sayed, which is longitudinally successively divided into first area 201, second area 202, third area along screen Domain 203 and the fourth region 204 then can (template be exactly small image, template known to a width by template matching algorithm Matching is exactly in the big image of a width to search target, it is known that have the target to be looked in the figure, and the target have with template it is identical Size, direction and image can find target by certain algorithm in figure, determine its coordinate position) compare it is first full frame Screenshot 100 and second area 202 (be using the reason of second area 202, first area 201 be easy to appear interference region (by In the presence of same background, cause the top and bottom content of full screen printscreen often identical), increase displacement calculate mistake Rate, third region 203 and the fourth region 204 are often emerging content, it is not easy to calculate displacement), find out second area 202 positions occurred in the first full screen printscreen 100, calculate displacement with this.As shown in figure 5, region 101 and the secondth area in figure Domain 202 matches, i.e., 101 position of region is the position that second area 202 occurs in the first full screen printscreen 100 in figure It sets, finally, second full frame section of calculating can be calculated by calculating the present position in the first full screen printscreen 100 of region 101 in figure Displacement Y of the figure relative to the first full screen printscreen.
Step S120: it is obtained according to the displacement and is connected line between the first full screen printscreen and the second full screen printscreen.
Specifically, the second full screen printscreen 200 is calculated relative to the first full screen printscreen 100 by above method step After being displaced Y, it can be obtained according to displacement Y between the first full screen printscreen 100 and the second full screen printscreen 200 and be connected line, the rank Wiring specifically includes the first linking line and is connected line with second, as shown in figure 5, the first linking line 11 is located at the first full screen printscreen 100, position can subtract displacement Y by the height H of the first full screen printscreen 100 to obtain;As shown in fig. 6, this second Linking line 21 is located at the second full screen printscreen 200, and position can subtract the firstth area by the height H of the second full screen printscreen 200 The height H in domain1(by the second full screen printscreen in this present embodiment along screen longitudinally be successively divided into first area, second area, Third region and the fourth region, therefore the H in the present embodiment1=1/4H) it obtains.
Thus, as shown in fig. 7, execute this step " according to the displacement obtain the first full screen printscreen and the second full screen printscreen it Between linking line " detailed process includes:
Step S121: subtracting the displacement by the height of the first full screen printscreen, to obtain the position of the first linking line.
Step S122: subtracting the height of first area by the height of the second full screen printscreen, to obtain the second linking line Position.
Step S130: verification is compared to the linking line by default verification height, only when Inspection passes through, is led to It crosses first full screen printscreen of rank pair of connecting wires to be spliced with the second full screen printscreen, obtains the long screenshot of screen.
Specifically, it is obtained by above method step and is connected line (packet between the first full screen printscreen and the second full screen printscreen Include the first linking line 11 and be connected line 21 with second) behind position, it can be by default verification height to the linking line (including the One linking line 11 is connected line 21 with second) verification is compared, as shown in figure 8, detailed process includes:
Step S131: on the basis of default verification height, the comparison range for marking the first linking line respectively is connected with second The comparison range of line.
Step S132: content included by the comparison range for being connected line to first by template matching algorithm is connected with second Content included by the comparison range of line is compared, to realize the Inspection to the linking line.
Directly picture is not spliced here, but on the basis of default verification height X, as shown in figure 9, marking the The comparison range of one linking line 11, the position of the specially first linking line 11 up elapse default verification height X to first The position of linking line 11 elapse down default verifies height X (i.e. two dotted line area defined H-Y+X-- > H-Y- in Fig. 9 X);As shown in Figure 10, the comparison range of the second linking line 21 is marked, the position of the specially second linking line 21 up elapses The position that default verification height X to second is connected line 21 elapses default verification height X down, and (i.e. two dotted lines are enclosed in Figure 10 At region H-H1+X-->H-H1-X).Then, the comparison range of line 11 is connected (i.e. in Fig. 9 to first by template matching algorithm Two dotted line area defined H-Y+X-- > H-Y-X) included by content be connected the comparison range of line (i.e. two in Figure 10 with second Dotted line area defined H-H1+X-->H-H1- X) included by content be compared, to realize to the comparison school of the linking line It tests.At this point, if the displacement Y value calculated before is accurate (the linking line accordingly acquired is also accurate), the Content and the included by the comparison range (i.e. two dotted line area defined H-Y+X-- > H-Y-X in Fig. 9) of one linking line 11 Comparison range (the i.e. two dotted line area defined H-H in Figure 10 of two linking lines1+X-->H-H1- X) included by content should be Striking resemblances compare the two regions by template matching algorithm at this time, and such as returning to relative displacement is 0, then it represents that is calculated before Displacement Y be correct (the linking line accordingly acquired is also accurate), indicate to pass through the rank pair of connecting wires first full frame Screenshot is spliced with the second full screen printscreen, can finally acquire the long screenshot of accurate screen.
In addition, as shown in figure 11, has executed this step " verification is compared to line is connected by default verification height, Only when Inspection passes through, is spliced by rank the first full screen printscreen of pair of connecting wires with the second full screen printscreen, it is long to obtain screen After screenshot ", further includes:
Step S140: if the Inspection is not over it is opposite to recalculate the second full screen printscreen by alternative scheme In the displacement of the first full screen printscreen, and new linking line is obtained, to pass through the new rank after the new linking line is by the Inspection The first full screen printscreen of pair of connecting wires is spliced with the second full screen printscreen, obtains the long screenshot of screen.
It specifically, is 0 as returned to relative displacement, then it represents that the displacement Y calculated before is correctly (accordingly to acquire The linking line is also accurate), expression is spliced by first full screen printscreen of rank pair of connecting wires with the second full screen printscreen, Finally acquire the long screenshot of accurate screen.It otherwise is not 0 as returned to relative displacement, then it represents that the displacement Y calculated before is Mistake, it can not be spliced by first full screen printscreen of rank pair of connecting wires and the second full screen printscreen (if at this time still by being somebody's turn to do Rank the first full screen printscreen of pair of connecting wires is spliced with the second full screen printscreen, then it is wrong to generate splicing), at this point it is possible to by into One step, which increases new departure and passes through alternative scheme, recalculates displacement of second full screen printscreen relative to the first full screen printscreen, and obtains New linking line is taken, to pass through first full screen printscreen of new rank pair of connecting wires and second after the new linking line is by the Inspection Full screen printscreen is spliced, and the long screenshot of screen is obtained.As shown in figure 12, which preferably includes following steps:
Step S141: the second full screen printscreen is longitudinally successively divided into the 5th region, the 6th region, District 7 along screen Domain, Section Eight domain and the 9th region, the 6th region and District 7 domain are combined to form comparison area.
Step S142: comparing the first full screen printscreen and comparison area by template matching algorithm, finds out comparison area the The position occurred in one full screen printscreen, to calculate displacement.
As it can be seen that by alternative scheme calculate the second full screen printscreen relative to the displacement of the first full screen printscreen basic principle with The basic principle of original scheme is identical, the difference is that only, alternative scheme is by changing in the second full screen printscreen for carrying out The region (area for increasing the comparison area) of comparison obtains to improve the computational accuracy of displacement to constantly improve long screenshot Correct result.Thus, to those skilled in the art, other similar alternative schemes can be used also to realize.
Embodiment two
As shown in figure 13, the embodiment of the present invention two proposes a kind of terminal 30, which includes memory 31, processor 32, be stored in the program that can be run on the memory and on the processor and for realizing processor 31 and memory 32 it Between connection communication data/address bus 33, when which is executed by the processor, cut with realizing in above-described embodiment one that screen is long The step of method of figure, as detailed above, details are not described herein again.
It should be noted that 30 embodiment of terminal of the embodiment of the present invention and embodiment of the method one belong to same design, Specific implementation process is shown in embodiment of the method one in detail, and the technical characteristic in embodiment of the method one is right in 30 embodiment of terminal It should be applicable in, which is not described herein again.
Embodiment three
The embodiment of the present invention three proposes a kind of storage medium, is used for computer-readable storage, which is stored with one A or multiple programs, which can be executed by one or more processor, to realize above-described embodiment The specific steps of the method for the long screenshot of screen in one.
It should be noted that above-mentioned storage medium and embodiment of the method belong to same design, specific implementation process is detailed See embodiment of the method one, and the technical characteristic in embodiment of the method one is corresponding applicable in storage medium embodiment, here not It repeats again.
Method, terminal and the storage medium for the long screenshot of screen that the embodiment of the present invention proposes are carrying out the long screenshot of screen When, the second full screen printscreen can be calculated relative to first in the first full screen printscreen and the second full screen printscreen for comparing the long screenshot of screen The displacement of full screen printscreen, and according to displacement obtain between the first full screen printscreen and the second full screen printscreen be connected line after, increase school Mechanism is tested, verification is compared to linking line by default verification height, finally, only passing through when the Inspection passes through First full screen printscreen of rank pair of connecting wires is spliced with the second full screen printscreen, obtains the long screenshot of final screen.So, originally Technical solution judges whether the picture currently spliced is correct by increasing verification scheme, to reduce long screenshot splicing mistake The case where occur.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of method of the long screenshot of screen, which is characterized in that the described method comprises the following steps:
The first full screen printscreen and the second full screen printscreen are compared, calculates second full screen printscreen relative to first full screen printscreen Displacement;
It is obtained according to the displacement and is connected line between first full screen printscreen and second full screen printscreen;
Verification is compared to the linking line by default verification height, only when the Inspection passes through, by described First full screen printscreen described in rank pair of connecting wires is spliced with second full screen printscreen, obtains the long screenshot of screen.
2. the method according to claim 1, wherein the first full screen printscreen of the comparison and the second full screen printscreen, Before the step of calculating displacement of second full screen printscreen relative to first full screen printscreen, further includes:
Screen interface before screen printing sliding obtains first full screen printscreen, and the screen interface after screen printing sliding comes Obtain second full screen printscreen.
3. the method according to claim 1, wherein the first full screen printscreen of the comparison and the second full screen printscreen, The step of calculating displacement of second full screen printscreen relative to first full screen printscreen specifically includes:
Second full screen printscreen is longitudinally successively divided into first area, second area, third region and the 4th along screen Region;
First full screen printscreen and the second area are compared by template matching algorithm, finds out the second area described The position occurred in first full screen printscreen, to calculate the displacement.
4. according to the method described in claim 3, it is characterized in that, the linking line includes the first linking line and second rank Wiring, the first linking line are located at first full screen printscreen, and the second linking line is located at second full screen printscreen, institute It states and specifically wrapping between first full screen printscreen and second full screen printscreen the step of being connected line is obtained according to the displacement It includes:
The displacement is subtracted by the height of first full screen printscreen, to obtain the position of the first linking line;
The height of the first area is subtracted, by the height of second full screen printscreen to obtain the institute of the second linking line In position.
5. according to the method described in claim 4, it is characterized in that, described carry out the linking line by default verification height The step of Inspection, specifically includes:
On the basis of the default verification height, the comparison range for marking the first linking line respectively is connected line with described second Comparison range;
It is connected line with described second by content included by comparison range of the template matching algorithm to the first linking line It compares content included by range to be compared, to realize the Inspection to the linking line.
6. according to the method described in claim 5, it is characterized in that, the comparison range of the first linking line is first rank Described in the position that the position of wiring up elapses default verification height to the first linking line elapses down Default verification height;The comparison range of the second linking line up elapses described pre- for the position of the second linking line If the position of verification height to the second linking line elapses the default verification height down.
7. according to the method described in claim 4, it is characterized in that, described carry out the linking line by default verification height Inspection is complete with described second by the first full screen printscreen described in the rank pair of connecting wires only when the Inspection passes through After the step of screen screenshot is spliced, obtains screen long screenshot, further includes:
If the Inspection is not over recalculating second full screen printscreen relative to described by alternative scheme The displacement of one full screen printscreen, and obtain new linking line, with after the new linking line is by the Inspection, by it is described newly First full screen printscreen described in rank pair of connecting wires is spliced with second full screen printscreen, obtains the long screenshot of screen.
8. the method according to the description of claim 7 is characterized in that the alternative scheme specifically includes the following steps:
Second full screen printscreen is longitudinally successively divided into the 5th region, the 6th region, District 7 domain, Section Eight domain along screen And the 9th region, the 6th region and the District 7 domain are combined to form comparison area;
First full screen printscreen and the comparison area are compared by template matching algorithm, finds out the comparison area described The position occurred in first full screen printscreen, to calculate the displacement.
9. a kind of terminal characterized by comprising memory, processor are stored on the memory and can be in the processing The program run on device and the data/address bus for realizing the connection communication between the processor and the memory, it is described The step of program realizes method a method as claimed in any one of claims 1-8 when being executed by the processor.
10. a kind of storage medium, be used for computer-readable storage, which is characterized in that the storage medium be stored with one or Multiple programs, one or more of programs can be executed by one or more processor, to realize that claim 1-8 such as appoints The step of method described in one.
CN201910345281.7A 2019-04-26 2019-04-26 Method, terminal and storage medium for long screenshot of screen Active CN109934769B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910345281.7A CN109934769B (en) 2019-04-26 2019-04-26 Method, terminal and storage medium for long screenshot of screen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910345281.7A CN109934769B (en) 2019-04-26 2019-04-26 Method, terminal and storage medium for long screenshot of screen

Publications (2)

Publication Number Publication Date
CN109934769A true CN109934769A (en) 2019-06-25
CN109934769B CN109934769B (en) 2023-09-19

Family

ID=66991044

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910345281.7A Active CN109934769B (en) 2019-04-26 2019-04-26 Method, terminal and storage medium for long screenshot of screen

Country Status (1)

Country Link
CN (1) CN109934769B (en)

Cited By (4)

* 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
CN110475016A (en) * 2019-07-10 2019-11-19 努比亚技术有限公司 A kind of long screenshotss control method, terminal and computer readable storage medium
CN110764852A (en) * 2019-08-27 2020-02-07 努比亚技术有限公司 Screenshot method, terminal and computer readable 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
US20130151240A1 (en) * 2011-06-10 2013-06-13 Lucas J. Myslinski Interactive fact checking system
CN106296577A (en) * 2015-05-19 2017-01-04 富士通株式会社 Image split-joint method and image mosaic device
CN106502507A (en) * 2016-11-01 2017-03-15 上海传英信息技术有限公司 Screenshotss method and mobile terminal
CN106527906A (en) * 2016-10-31 2017-03-22 维沃移动通信有限公司 Picture capture method and mobile terminal
CN106775301A (en) * 2016-11-29 2017-05-31 珠海市魅族科技有限公司 The screenshot method and terminal device of a kind of terminal
CN107229401A (en) * 2017-04-18 2017-10-03 硕诺科技(深圳)有限公司 A kind of long screenshotss method of mobile terminal
US20180103196A1 (en) * 2016-10-10 2018-04-12 Lg Electronics Inc. Mobile terminal and operating method thereof
WO2018072413A1 (en) * 2016-10-19 2018-04-26 中兴通讯股份有限公司 Terminal screenshot method and apparatus, and mobile terminal and storage medium
CN108037871A (en) * 2017-11-07 2018-05-15 维沃移动通信有限公司 Screenshotss method and mobile terminal
CN108681428A (en) * 2018-04-04 2018-10-19 四川巧夺天工信息安全智能设备有限公司 A kind of rolling screenshotss method under windows systems

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130151240A1 (en) * 2011-06-10 2013-06-13 Lucas J. Myslinski Interactive fact checking system
CN106296577A (en) * 2015-05-19 2017-01-04 富士通株式会社 Image split-joint method and image mosaic device
US20180103196A1 (en) * 2016-10-10 2018-04-12 Lg Electronics Inc. Mobile terminal and operating method thereof
WO2018072413A1 (en) * 2016-10-19 2018-04-26 中兴通讯股份有限公司 Terminal screenshot method and apparatus, and mobile terminal and storage medium
CN106527906A (en) * 2016-10-31 2017-03-22 维沃移动通信有限公司 Picture capture method and mobile terminal
CN106502507A (en) * 2016-11-01 2017-03-15 上海传英信息技术有限公司 Screenshotss method and mobile terminal
CN106775301A (en) * 2016-11-29 2017-05-31 珠海市魅族科技有限公司 The screenshot method and terminal device of a kind of terminal
CN107229401A (en) * 2017-04-18 2017-10-03 硕诺科技(深圳)有限公司 A kind of long screenshotss method of mobile terminal
CN108037871A (en) * 2017-11-07 2018-05-15 维沃移动通信有限公司 Screenshotss method and mobile terminal
CN108681428A (en) * 2018-04-04 2018-10-19 四川巧夺天工信息安全智能设备有限公司 A kind of rolling screenshotss method under windows systems

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MASAHIRO SEINO 等: ""A framework for supporting the recall of the scenes in complicated documenting processes using screenshots"", 2017 IEEE INTERNATIONAL CONFERENCE ON CYBERNETICS AND COMPUTATIONAL INTELLIGENCE (CYBERNETICSCOM) *

Cited By (7)

* 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
CN110475016A (en) * 2019-07-10 2019-11-19 努比亚技术有限公司 A kind of long screenshotss control method, terminal and computer readable storage medium
CN110475016B (en) * 2019-07-10 2021-05-04 努比亚技术有限公司 Long screen capture control 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
CN110764852A (en) * 2019-08-27 2020-02-07 努比亚技术有限公司 Screenshot method, terminal and computer readable storage medium
CN110764852B (en) * 2019-08-27 2023-08-22 努比亚技术有限公司 Screenshot method, terminal and computer readable storage medium
CN115268741A (en) * 2021-04-30 2022-11-01 华为技术有限公司 Screen capture method, graphical interface and electronic equipment

Also Published As

Publication number Publication date
CN109934769B (en) 2023-09-19

Similar Documents

Publication Publication Date Title
CN109934769A (en) Method, terminal and the storage medium of the long screenshot of screen
CN108159688A (en) Interface sharing method, mobile terminal and computer readable storage medium
CN109376705A (en) Dance training methods of marking, device and computer readable storage medium
CN107770725A (en) Arcade shop premises air navigation aid and mobile terminal
CN108537021A (en) Unlocked by fingerprint method, terminal and computer readable storage medium based on double-sided screen
CN109358831A (en) A kind of display control method, mobile terminal and computer readable storage medium
CN108172161A (en) Display methods, mobile terminal and computer readable storage medium based on flexible screen
CN108241752A (en) Photo display methods, mobile terminal and computer readable storage medium
CN107239567A (en) A kind of recognition methods of object scene, equipment and computer-readable recording medium
CN109816619A (en) Image interfusion method, device, terminal and computer readable storage medium
CN109710159A (en) A kind of flexible screen response method, equipment and computer readable storage medium
CN109584897A (en) Vedio noise reduction method, mobile terminal and computer readable storage medium
CN108182664A (en) A kind of image processing method, mobile terminal and computer readable storage medium
CN110064196A (en) Method for controlling mobile terminal, mobile terminal and computer readable storage medium
CN110052024A (en) Method of adjustment, adjustment device, mobile terminal and the storage medium of game vibration
CN109348071A (en) Call-information display methods, terminal and computer readable storage medium
CN108848321A (en) Expose optimization method, device and computer readable storage medium
CN108566456A (en) Image pickup method, mobile terminal and computer readable storage medium
CN109740121A (en) A kind of searching method of mobile terminal, mobile terminal and storage medium
CN109410814A (en) The method, apparatus and computer readable storage medium of screen area display control
CN109919858A (en) A kind of image-region verification method, terminal and computer readable storage medium
CN109766211A (en) Method, terminal and the storage medium of shuangping san false-touch prevention
CN110099212A (en) A kind of photographic method, mobile terminal and computer readable storage medium
CN109358796A (en) A kind of game visual field sharing method, terminal and readable storage medium storing program for executing
CN109714460A (en) Press key expansion device, terminal, key expansion method and storage medium

Legal Events

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