CN109389554A - Screenshot method and device - Google Patents
Screenshot method and device Download PDFInfo
- Publication number
- CN109389554A CN109389554A CN201811062376.XA CN201811062376A CN109389554A CN 109389554 A CN109389554 A CN 109389554A CN 201811062376 A CN201811062376 A CN 201811062376A CN 109389554 A CN109389554 A CN 109389554A
- Authority
- CN
- China
- Prior art keywords
- screenshot
- picture
- splicing
- area
- pictures
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000005096 rolling process Methods 0.000 claims abstract description 30
- 238000004590 computer program Methods 0.000 claims description 6
- 230000000737 periodic effect Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 12
- 238000004891 communication Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 8
- 238000012545 processing Methods 0.000 description 5
- 238000001514 detection method Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000003780 insertion Methods 0.000 description 2
- 230000037431 insertion Effects 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 210000003733 optic disk Anatomy 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06T3/4038—Image mosaicing, e.g. composing plane images from plane sub-images
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The present invention proposes a kind of screenshot method and device, and wherein method includes: to receive screenshot request;It include: screenshot area and screenshot mode in screenshot request;Screenshot mode is to roll screenshot or non-rolling screenshot;When screenshot mode is to roll screenshot, the screenshot area is extended, the content in screenshot area is intercepted, obtains screenshot sequence of pictures;Screenshot picture in screenshot sequence of pictures is spliced, generates and rolls splicing picture, so as to be requested according to the screenshot of user, automatically interception and concatenation are carried out to the content in screenshot area, the shot operation for reducing user reduces screenshot cost, improves screenshot efficiency.
Description
Technical field
The present invention relates to technical field of image processing more particularly to a kind of screenshot methods and device.
Background technique
Currently, screenshot is that we are common in communication with the development of smart machine and the promotion of information dissemination technology
Communication way.Current screenshot tool can only carry out screenshot to the content in current screen indication range.When need to webpage into
When row screenshot, since the content of webpage is more, current screen is difficult to completely show web page contents, needs through page turning etc.
Means obtain the content of webpage, and screenshot tool can only carry out screenshot to the content in current screen indication range, therefore, for
Webpage needs to carry out multiple screenshot, can just get the complete content of webpage, reduce screenshot efficiency, improves screenshot cost,
Reduce the screenshot experience of user.
Summary of the invention
The present invention is directed to solve at least some of the technical problems in related technologies.
For this purpose, the first purpose of this invention is to propose a kind of screenshot method, imitated for solving screenshot in the prior art
Rate is poor, problem at high cost.
Second object of the present invention is to propose a kind of screenshot device.
Third object of the present invention is to propose a kind of electronic equipment.
Fourth object of the present invention is to propose a kind of computer readable storage medium.
In order to achieve the above object, first aspect present invention embodiment proposes a kind of screenshot method, comprising:
Receive screenshot request;It include: screenshot area and screenshot mode in the screenshot request;The screenshot mode is rolling
Dynamic screenshot or non-rolling screenshot;
When the screenshot mode be roll screenshot when, extend the screenshot area, to the content in the screenshot area into
Row interception, obtains screenshot sequence of pictures;
Screenshot picture in the screenshot sequence of pictures is spliced, generates and rolls splicing picture.
Further, when the screenshot mode is to roll screenshot, the screenshot area is extended, in the screenshot area
Content intercepted, obtain screenshot sequence of pictures, comprising:
When the screenshot mode is to roll screenshot, the Current Content in the screenshot area is intercepted, obtains one
Frame screenshot picture;
When detecting the extended operation to the screenshot area, the content in the screenshot area periodically cut
It takes, obtains multiframe screenshot picture;
When the extended operation is not detected within a preset period of time, stop interception;
It by each frame screenshot picture, is ranked up according to the screenshot time, obtains screenshot sequence of pictures.
Further, the mode for extending the screenshot area is, to the scroll operation of content in the screenshot area;
The scroll operation includes: that content in the screenshot area is scrolled up and down and/or scrolled left and right.
Further, the screenshot picture in the screenshot sequence of pictures splices, and generates and rolls splicing picture,
Include:
First frame screenshot picture in the screenshot sequence of pictures is determined as initial spliced map;
For the spliced map, the screenshot picture of the pending splicing of next frame in the screenshot sequence of pictures is obtained;
The screenshot picture of the spliced map and the pending splicing of the next frame is spliced, updated splicing is generated
Figure, until the screenshot picture in the screenshot sequence of pictures is disposed;
By updated spliced map, it is determined as rolling splicing picture.
Further, the screenshot picture of the spliced map and the pending splicing of the next frame is spliced, is generated more
Spliced map after new, comprising:
Image recognition is carried out to the screenshot picture of the spliced map and the pending splicing of the next frame, obtains the splicing
Intersection in figure and the screenshot picture of the pending splicing of the next frame;
Intersection in the screenshot picture of the spliced map and the pending splicing of the next frame is overlapped, is generated
Updated spliced map;
If not there is no intersection in the spliced map and the screenshot picture of the pending splicing of the next frame, splice mistake
It loses.
Further, the screenshot picture in the screenshot sequence of pictures splices, and generates and rolls splicing picture,
Further include:
For the spliced map, if the spliced map and the splicing failure of the screenshot picture of the pending splicing of the next frame,
The screenshot picture for then obtaining the pending splicing of next frame from the screenshot sequence of pictures again, is spliced;
If the screenshot picture number of continuous splicing failure is greater than preset quantity threshold value, stop concatenation.
Further, the side of the screenshot area is provided with spliced map preview area, is used for real-time display spliced map, with
Just user's preview.
The screenshot method of the embodiment of the present invention, by receiving screenshot request;Screenshot request in include: screenshot area and cut
Chart-pattern;Screenshot mode is to roll screenshot or non-rolling screenshot;When screenshot mode is to roll screenshot, the screenshot area is extended
Domain intercepts the content in screenshot area, obtains screenshot sequence of pictures;Screenshot picture in screenshot sequence of pictures is carried out
Splicing generates and rolls splicing picture, so as to be cut to the content in screenshot area automatically according to the request of the screenshot of user
It takes and concatenation, reduces the shot operation of user, reduce screenshot cost, improve screenshot efficiency.
In order to achieve the above object, second aspect of the present invention embodiment proposes a kind of screenshot device, comprising:
Receiving module, for receiving screenshot request;It include: screenshot area and screenshot mode in the screenshot request;Institute
Screenshot mode is stated to roll screenshot or non-rolling screenshot;
Screen capture module, for the screenshot area being extended, to the screenshot area when the screenshot mode is to roll screenshot
Content in domain is intercepted, and screenshot sequence of pictures is obtained;
Splicing module generates for splicing to the screenshot picture in the screenshot sequence of pictures and rolls splicing picture.
Further, the screen capture module is specifically used for,
When the screenshot mode is to roll screenshot, the Current Content in the screenshot area is intercepted, obtains one
Frame screenshot picture;
When detecting the extended operation to the screenshot area, the content in the screenshot area periodically cut
It takes, obtains multiframe screenshot picture;
When the extended operation is not detected within a preset period of time, stop interception;
It by each frame screenshot picture, is ranked up according to the screenshot time, obtains screenshot sequence of pictures.
Further, the mode for extending the screenshot area is, to the scroll operation of content in the screenshot area;
The scroll operation includes: that content in the screenshot area is scrolled up and down and/or scrolled left and right.
Further, the splicing module is specifically used for,
First frame screenshot picture in the screenshot sequence of pictures is determined as initial spliced map;
For the spliced map, the screenshot picture of the pending splicing of next frame in the screenshot sequence of pictures is obtained;
The screenshot picture of the spliced map and the pending splicing of the next frame is spliced, updated splicing is generated
Figure, until the screenshot picture in the screenshot sequence of pictures is disposed;
By updated spliced map, it is determined as rolling splicing picture.
Further, the splicing module is specifically used for,
Image recognition is carried out to the screenshot picture of the spliced map and the pending splicing of the next frame, obtains the splicing
Intersection in figure and the screenshot picture of the pending splicing of the next frame;
Intersection in the screenshot picture of the spliced map and the pending splicing of the next frame is overlapped, is generated
Updated spliced map;
If not there is no intersection in the spliced map and the screenshot picture of the pending splicing of the next frame, splice mistake
It loses.
Further, the splicing module is specifically also used to,
For the spliced map, if the spliced map and the splicing failure of the screenshot picture of the pending splicing of the next frame,
The screenshot picture for then obtaining the pending splicing of next frame from the screenshot sequence of pictures again, is spliced;
If the screenshot picture number of continuous splicing failure is greater than preset quantity threshold value, stop concatenation.
Further, the side of the screenshot area is provided with spliced map preview area, is used for real-time display spliced map, with
Just user's preview.
The screenshot device of the embodiment of the present invention, by receiving screenshot request;Screenshot request in include: screenshot area and cut
Chart-pattern;Screenshot mode is to roll screenshot or non-rolling screenshot;When screenshot mode is to roll screenshot, the screenshot area is extended
Domain intercepts the content in screenshot area, obtains screenshot sequence of pictures;Screenshot picture in screenshot sequence of pictures is carried out
Splicing generates and rolls splicing picture, so as to be cut to the content in screenshot area automatically according to the request of the screenshot of user
It takes and concatenation, reduces the shot operation of user, reduce screenshot cost, improve screenshot efficiency.
In order to achieve the above object, third aspect present invention embodiment proposes a kind of electronic equipment, comprising: memory, processing
Device and storage are on a memory and the computer program that can run on a processor, which is characterized in that processor execution institute
Screenshot method as described above is realized when stating program.
To achieve the goals above, fourth aspect present invention embodiment proposes a kind of computer readable storage medium,
On be stored with computer program, which realizes screenshot method as described above when being executed by processor.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partially become from the following description
Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments
Obviously and it is readily appreciated that, in which:
Fig. 1 is a kind of flow diagram of screenshot method provided in an embodiment of the present invention;
Fig. 2 is the schematic diagram of spliced map preview area;
Fig. 3 is the flow diagram of another screenshot method provided in an embodiment of the present invention;
Fig. 4 is that first frame screenshot picture and the second frame screenshot picture are spliced, and obtains the schematic diagram of spliced map;
Fig. 5 is a kind of structural schematic diagram of screenshot device provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the screenshot method and device of the embodiment of the present invention are described.
Fig. 1 is a kind of flow diagram of screenshot method provided in an embodiment of the present invention.As shown in Figure 1, the screenshot method
The following steps are included:
S101, screenshot request is received;It include: screenshot area and screenshot mode in screenshot request;Screenshot mode is to roll
Screenshot or non-rolling screenshot.
The executing subject of screenshot method provided by the invention is screenshot device, and screenshot device is specifically as follows hardware device,
Such as software installed on terminal device, background server etc. or hardware device etc..Wherein, software can be independent soft
Part, or can be the software tool of the application software such as insertion wechat, QQ.
In the present embodiment, pre-set button, such as screenshot button when the user clicks, and selected screenshot area and screenshot mode
Afterwards, screenshot device determines the screenshot request for receiving user.Wherein, screenshot is rolled to refer to current interior in screenshot area
Content after holding and rolling all is intercepted.Non- rolling screenshot, which refers to, only cuts the Current Content in screenshot area
It takes.
S102, when screenshot mode be roll screenshot when, extend screenshot area, the content in screenshot area is intercepted,
Obtain screenshot sequence of pictures.
In the present embodiment, the mode for extending screenshot area is, to the scroll operation of content in screenshot area.Wherein, it rolls
Operation may include: that content in screenshot area is scrolled up and down and/or scrolled left and right.In the present embodiment, can specifically it pass through
Mouse drag, idler wheel roll, finger dragging, automatic the modes such as rolls to realize the scroll operation to content in screenshot area.Its
In, automatic roll for example can be the scroll operation controlled by screenshot device.
In the present embodiment, the process that screenshot device executes step 102 is specifically as follows, when screenshot mode is to roll screenshot
When, the Current Content in screenshot area is intercepted, a frame screenshot picture is obtained;Detecting the extension behaviour to screenshot area
When making, periodic intercepts are carried out to the content in screenshot area, obtain multiframe screenshot picture;When not detecting within a preset period of time
To when extended operation, stop interception;It by each frame screenshot picture, is ranked up according to the screenshot time, obtains screenshot sequence of pictures.
In the present embodiment, whether can be changed by content in detection screenshot area, to determine in screenshot area
Content whether have a scroll operation, and then whether determination has extended operation to screenshot area.For example, if content is sent out in screenshot area
Changing, it is determined that have scroll operation in screenshot area;If content does not change in screenshot area, it is determined that screenshot area
Content is without scroll operation in domain.Wherein, content changes in screenshot area, can refer to that content position is sent out in screenshot area
Raw movement.Wherein, the interception period can preset, or be determined according to the rolling speed of content in screenshot area.For example, interception week
Phase can be 0.1 second etc..
It is under normal circumstances, generally consistent to the rotating direction of content in screenshot area in the present embodiment, or when major part
Between it is consistent, therefore, each frame screenshot picture can be ranked up according to interception time, increase adjacent screenshot picture with coincidence part
The probability divided, to improve splicing efficiency.
In addition, only being intercepted to the Current Content in screenshot area when screenshot mode is non-rolling screenshot, obtaining one
Frame screenshot picture.
S103, the screenshot picture in screenshot sequence of pictures is spliced, generates and rolls splicing picture.
In addition, it is necessary to illustrate, in the present embodiment, spliced map preview area has been can be set in the side of screenshot area,
For spliced map obtained in real-time display splicing, so as to user's preview, and it is confirmed whether to stop splicing etc..Wherein,
As shown in Fig. 2, being the schematic diagram of spliced map preview area, the right side in Fig. 2 is spliced map preview area.
The screenshot method of the embodiment of the present invention, by receiving screenshot request;Screenshot request in include: screenshot area and cut
Chart-pattern;Screenshot mode is to roll screenshot or non-rolling screenshot;When screenshot mode is to roll screenshot, screenshot area is extended,
Content in screenshot area is intercepted, screenshot sequence of pictures is obtained;Screenshot picture in screenshot sequence of pictures is spelled
It connects, generates and roll splicing picture, so as to be intercepted to the content in screenshot area automatically according to the request of the screenshot of user
And concatenation, reduce the shot operation of user, reduce screenshot cost, improves screenshot efficiency.
Fig. 3 is the flow diagram of another screenshot method provided in an embodiment of the present invention, as shown in figure 3, shown in Fig. 1
On the basis of embodiment, step 103 can specifically include following steps:
S1031, the first frame screenshot picture in screenshot sequence of pictures is determined as initial spliced map.
S1032, it is directed to spliced map, obtains the screenshot picture of the pending splicing of next frame in screenshot sequence of pictures.
In the present embodiment, when spliced map is first frame screenshot picture, the pending splicing of next frame in screenshot sequence of pictures
Screenshot picture be the second frame screenshot picture;When spliced map is that first frame screenshot picture and the second frame screenshot picture splice
When spliced map, the screenshot picture of the pending splicing of next frame is third frame screenshot picture in screenshot sequence of pictures, and so on, it can
To get the screenshot picture of the pending splicing of the corresponding next frame of current spliced map.
S1033, the screenshot picture of spliced map and the pending splicing of next frame is spliced, generates updated splicing
Figure, until the screenshot picture in screenshot sequence of pictures is disposed.
In the present embodiment, screenshot device execute step 1033 process be specifically as follows, to spliced map and next frame wait for into
The screenshot picture of row splicing carries out image recognition, obtains the coincidence part in spliced map and the screenshot picture of the pending splicing of next frame
Point;Intersection in the screenshot picture of spliced map and the pending splicing of next frame is overlapped, updated splicing is generated
Figure;If not there is no intersection in spliced map and the screenshot picture of the pending splicing of next frame, splices and fail.Wherein, such as Fig. 4
Shown, first frame screenshot picture and the second frame screenshot picture are spliced, and obtain the schematic diagram of spliced map.
In the present embodiment, if splicing successfully, it is directed to updated spliced map, next frame in screenshot sequence of pictures is obtained and waits for
The screenshot picture spliced, continues concatenation.If splicing failure, count value adds 1, and reacquires screenshot picture
The screenshot picture of the pending splicing of next frame in sequence, to the screenshot picture of updated spliced map and the pending splicing of next frame
Concatenation is carried out, until there is no the screenshot pictures not being spliced in screenshot sequence of pictures.Wherein, the initial value of count value is
0 value.
In addition, if count value is more than default in the case where there is the screenshot picture not being spliced in screenshot sequence of pictures
Amount threshold, then it represents that intersection is all not present in spliced map and the screenshot picture more than preset quantity, then it represents that screenshot area
In content there may be dynamic changes, in the case, stop concatenation, currently available spliced map is as rolling splicing
Picture.
S1034, by updated spliced map, be determined as rolling splicing picture.
The screenshot method of the embodiment of the present invention, by receiving screenshot request;Screenshot request in include: screenshot area and cut
Chart-pattern;Screenshot mode is to roll screenshot or non-rolling screenshot;When screenshot mode is to roll screenshot, screenshot area is extended,
Content in screenshot area is intercepted, screenshot sequence of pictures is obtained;By the first frame screenshot picture in screenshot sequence of pictures
It is determined as initial spliced map;For spliced map, the screenshot picture of the pending splicing of next frame in screenshot sequence of pictures is obtained;It is right
Spliced map and the screenshot picture of the pending splicing of next frame are spliced, and updated spliced map is generated, until screenshot picture sequence
Screenshot picture in column is disposed;By updated spliced map, it is determined as rolling splicing picture, so as to according to user's
Screenshot request, carries out interception and concatenation to the content in screenshot area automatically, reduces the shot operation of user, reduces
Screenshot cost, improves screenshot efficiency.
Fig. 5 is a kind of structural schematic diagram of screenshot device provided in an embodiment of the present invention.As shown in Figure 5, comprising: receive mould
Block 51, screen capture module 52 and splicing module 53.
Wherein, receiving module 51, for receiving screenshot request;It include: screenshot area and screenshot in the screenshot request
Mode;The screenshot mode is to roll screenshot or non-rolling screenshot;
Screen capture module 52, for the screenshot area being extended, to the screenshot when the screenshot mode is to roll screenshot
Content in region is intercepted, and screenshot sequence of pictures is obtained;
Splicing module 53 generates for splicing to the screenshot picture in the screenshot sequence of pictures and rolls spliced map
Piece.
Screenshot device provided by the invention is specifically as follows hardware device, such as terminal device, background server etc., or
The software etc. installed on hardware device.Wherein, software can be independent software, or can be the applications such as insertion wechat, QQ
The software tool of software.
In the present embodiment, pre-set button, such as screenshot button when the user clicks, and selected screenshot area and screenshot mode
Afterwards, screenshot device determines the screenshot request for receiving user.Wherein, screenshot is rolled to refer to current interior in screenshot area
Content after holding and rolling all is intercepted.Non- rolling screenshot, which refers to, only cuts the Current Content in screenshot area
It takes.
In the present embodiment, the mode for extending screenshot area is, to the scroll operation of content in screenshot area.Wherein, it rolls
Operation may include: that content in screenshot area is scrolled up and down and/or scrolled left and right.In the present embodiment, can specifically it pass through
Mouse drag, idler wheel roll, finger dragging, automatic the modes such as rolls to realize the scroll operation to content in screenshot area.Its
In, automatic roll for example can be the scroll operation controlled by screenshot device.
In the present embodiment, screen capture module 52 specifically can be used for, when screenshot mode is to roll screenshot, in screenshot area
Current Content intercepted, obtain a frame screenshot picture;When detecting the extended operation to screenshot area, to screenshot area
In content carry out periodic intercepts, obtain multiframe screenshot picture;When extended operation is not detected within a preset period of time, stop
Only intercept;It by each frame screenshot picture, is ranked up according to the screenshot time, obtains screenshot sequence of pictures.
In the present embodiment, whether can be changed by content in detection screenshot area, to determine in screenshot area
Whether content has scroll operation, and then whether determination has extended operation to screenshot area.For example, if content occurs in screenshot area
Variation, it is determined that have scroll operation in screenshot area;If content does not change in screenshot area, it is determined that screenshot area
Middle content is without scroll operation.It wherein, for example can be to scroll up and down operation, left and right to the scroll operation of content in screenshot area
Scroll operation etc..Wherein, content changes in screenshot area, can refer to that content position is moved in screenshot area.
Wherein, the interception period can preset, or be determined according to the rolling speed of content in screenshot area.For example, the interception period can be with
It is 0.1 second etc..
It is under normal circumstances, generally consistent to the rotating direction of content in screenshot area in the present embodiment, or when major part
Between it is consistent, therefore, each frame screenshot picture can be ranked up according to interception time, increase adjacent screenshot picture with coincidence part
The probability divided, to improve splicing efficiency.
In addition, it is necessary to illustrate, in the present embodiment, spliced map preview area has been can be set in the side of screenshot area,
For spliced map obtained in real-time display splicing, so as to user's preview, and it is confirmed whether to stop splicing etc..
The screenshot device of the embodiment of the present invention, by receiving screenshot request;Screenshot request in include: screenshot area and cut
Chart-pattern;Screenshot mode is to roll screenshot or non-rolling screenshot;When screenshot mode is to roll screenshot, the screenshot area is extended
Domain intercepts the content in screenshot area, obtains screenshot sequence of pictures;Screenshot picture in screenshot sequence of pictures is carried out
Splicing generates and rolls splicing picture, so as to be cut to the content in screenshot area automatically according to the request of the screenshot of user
It takes and concatenation, reduces the shot operation of user, reduce screenshot cost, improve screenshot efficiency.
Further, on the basis of the above embodiments, the splicing module 53 specifically can be used for,
First frame screenshot picture in the screenshot sequence of pictures is determined as initial spliced map;
For the spliced map, the screenshot picture of the pending splicing of next frame in the screenshot sequence of pictures is obtained;
The screenshot picture of the spliced map and the pending splicing of the next frame is spliced, updated splicing is generated
Figure, until the screenshot picture in the screenshot sequence of pictures is disposed;
By updated spliced map, it is determined as rolling splicing picture.
In the present embodiment, when spliced map is first frame screenshot picture, the pending splicing of next frame in screenshot sequence of pictures
Screenshot picture be the second frame screenshot picture;When spliced map is that first frame screenshot picture and the second frame screenshot picture splice
When spliced map, the screenshot picture of the pending splicing of next frame is third frame screenshot picture in screenshot sequence of pictures, and so on, it can
To get the screenshot picture of the pending splicing of the corresponding next frame of current spliced map.
In the present embodiment, splicing module 53 splices the screenshot picture of spliced map and the pending splicing of next frame, raw
Process at updated spliced map is specifically as follows, and carries out image to the screenshot picture of spliced map and the pending splicing of next frame
Identification obtains the intersection in spliced map and the screenshot picture of the pending splicing of next frame;To spliced map and next frame wait for into
Intersection in the screenshot picture of row splicing is overlapped, and updated spliced map is generated;If spliced map and next frame wait for into
Not there is no intersection in the screenshot picture of row splicing, then splices and fail.
In the present embodiment, if splicing successfully, it is directed to updated spliced map, next frame in screenshot sequence of pictures is obtained and waits for
The screenshot picture spliced, continues concatenation.If splicing failure, count value adds 1, and reacquires screenshot picture
The screenshot picture of the pending splicing of next frame in sequence, to the screenshot picture of updated spliced map and the pending splicing of next frame
Concatenation is carried out, until there is no the screenshot pictures not being spliced in screenshot sequence of pictures.Wherein, the initial value of count value is
0 value.
In addition, if count value is more than default in the case where there is the screenshot picture not being spliced in screenshot sequence of pictures
Amount threshold, then it represents that intersection is all not present in spliced map and the screenshot picture more than preset quantity, then it represents that screenshot area
In content there may be dynamic changes, in the case, stop concatenation, currently available spliced map is as rolling splicing
Picture.
The screenshot device of the embodiment of the present invention, by receiving screenshot request;Screenshot request in include: screenshot area and cut
Chart-pattern;Screenshot mode is to roll screenshot or non-rolling screenshot;When screenshot mode is to roll screenshot, screenshot area is extended,
Content in screenshot area is intercepted, screenshot sequence of pictures is obtained;By the first frame screenshot picture in screenshot sequence of pictures
It is determined as initial spliced map;For spliced map, the screenshot picture of the pending splicing of next frame in screenshot sequence of pictures is obtained;It is right
Spliced map and the screenshot picture of the pending splicing of next frame are spliced, and updated spliced map is generated, until screenshot picture sequence
Screenshot picture in column is disposed;By updated spliced map, it is determined as rolling splicing picture, so as to according to user's
Screenshot request, carries out interception and concatenation to the content in screenshot area automatically, reduces the shot operation of user, reduces
Screenshot cost, improves screenshot efficiency.
Fig. 6 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.The electronic equipment includes:
Memory 1001, processor 1002 and it is stored in the calculating that can be run on memory 1001 and on processor 1002
Machine program.
Processor 1002 realizes the screenshot method provided in above-described embodiment when executing described program.
Further, electronic equipment further include:
Communication interface 1003, for the communication between memory 1001 and processor 1002.
Memory 1001, for storing the computer program that can be run on processor 1002.
Memory 1001 may include high speed RAM memory, it is also possible to further include nonvolatile memory (non-
Volatile memory), a for example, at least magnetic disk storage.
Processor 1002 realizes screenshot method described in above-described embodiment when for executing described program.
If memory 1001, processor 1002 and the independent realization of communication interface 1003, communication interface 1003, memory
1001 and processor 1002 can be connected with each other by bus and complete mutual communication.The bus can be industrial standard
Architecture (Industry Standard Architecture, referred to as ISA) bus, external equipment interconnection
(Peripheral Component, referred to as PCI) bus or extended industry-standard architecture (Extended Industry
Standard Architecture, referred to as EISA) bus etc..The bus can be divided into address bus, data/address bus, control
Bus processed etc..Only to be indicated with a thick line in Fig. 6, it is not intended that an only bus or a type of convenient for indicating
Bus.
Optionally, in specific implementation, if memory 1001, processor 1002 and communication interface 1003, are integrated in one
It is realized on block chip, then memory 1001, processor 1002 and communication interface 1003 can be completed mutual by internal interface
Communication.
Processor 1002 may be a central processing unit (Central Processing Unit, referred to as CPU), or
Person is specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC) or quilt
It is configured to implement one or more integrated circuits of the embodiment of the present invention.
The present invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, and the program is processed
Device realizes screenshot method as described above when executing.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples
It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance
Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or
Implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two, three
It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing custom logic function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable
Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction
The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass
Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment
It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings
Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.Such as, if realized with hardware in another embodiment, following skill well known in the art can be used
Any one of art or their combination are realized: have for data-signal is realized the logic gates of logic function from
Logic circuit is dissipated, the specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile
Journey gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries
It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium
In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module
It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above
The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as to limit of the invention
System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of the invention
Type.
Claims (10)
1. a kind of screenshot method characterized by comprising
Receive screenshot request;It include: screenshot area and screenshot mode in the screenshot request;The screenshot mode is to roll to cut
Figure or non-rolling screenshot;
When the screenshot mode is to roll screenshot, the screenshot area is extended, the content in the screenshot area is cut
It takes, obtains screenshot sequence of pictures;
Screenshot picture in the screenshot sequence of pictures is spliced, generates and rolls splicing picture.
2. the method according to claim 1, wherein when the screenshot mode is to roll screenshot, described in extension
Screenshot area intercepts the content in the screenshot area, obtains screenshot sequence of pictures, comprising:
When the screenshot mode is to roll screenshot, the Current Content in the screenshot area is intercepted, a frame is obtained and cuts
Figure picture;
When detecting the extended operation to the screenshot area, periodic intercepts are carried out to the content in the screenshot area,
Obtain multiframe screenshot picture;
When the extended operation is not detected within a preset period of time, stop interception;
It by each frame screenshot picture, is ranked up according to the screenshot time, obtains screenshot sequence of pictures.
3. method according to claim 1 or 2, which is characterized in that the mode for extending the screenshot area is, to described section
The scroll operation of content in graph region;
The scroll operation includes: that content in the screenshot area is scrolled up and down and/or scrolled left and right.
4. the method according to claim 1, wherein the screenshot picture in the screenshot sequence of pictures into
Row splicing generates and rolls splicing picture, comprising:
First frame screenshot picture in the screenshot sequence of pictures is determined as initial spliced map;
For the spliced map, the screenshot picture of the pending splicing of next frame in the screenshot sequence of pictures is obtained;
The screenshot picture of the spliced map and the pending splicing of the next frame is spliced, updated spliced map is generated,
Until the screenshot picture in the screenshot sequence of pictures is disposed;
By updated spliced map, it is determined as rolling splicing picture.
5. according to the method described in claim 4, it is characterized in that, to the spliced map and the pending splicing of the next frame
Screenshot picture is spliced, and updated spliced map is generated, comprising:
Image recognition is carried out to the screenshot picture of the spliced map and the pending splicing of the next frame, obtain the spliced map and
Intersection in the screenshot picture of the pending splicing of next frame;
Intersection in the screenshot picture of the spliced map and the pending splicing of the next frame is overlapped, generates and updates
Spliced map afterwards;
If not there is no intersection in the spliced map and the screenshot picture of the pending splicing of the next frame, splices and fail.
6. according to the method described in claim 4, it is characterized in that, the screenshot picture in the screenshot sequence of pictures into
Row splicing generates and rolls splicing picture, further includes:
For the spliced map, if the spliced map and the splicing failure of the screenshot picture of the pending splicing of the next frame, weigh
The screenshot picture that the pending splicing of next frame is newly obtained from the screenshot sequence of pictures, is spliced;
If the screenshot picture number of continuous splicing failure is greater than preset quantity threshold value, stop concatenation.
7. the method according to claim 1, wherein the side of the screenshot area is provided with spliced map preview region
Domain is used for real-time display spliced map, so as to user's preview.
8. a kind of screenshot device characterized by comprising
Receiving module, for receiving screenshot request;It include: screenshot area and screenshot mode in the screenshot request;Described section
Chart-pattern is to roll screenshot or non-rolling screenshot;
Screen capture module, for the screenshot area being extended, in the screenshot area when the screenshot mode is to roll screenshot
Content intercepted, obtain screenshot sequence of pictures;
Splicing module generates for splicing to the screenshot picture in the screenshot sequence of pictures and rolls splicing picture.
9. a kind of electronic equipment characterized by comprising
Memory, processor and storage are on a memory and the computer program that can run on a processor, which is characterized in that institute
State the screenshot method realized as described in any in claim 1-7 when processor executes described program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
The screenshot method as described in any in claim 1-7 is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811062376.XA CN109389554A (en) | 2018-09-12 | 2018-09-12 | Screenshot method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811062376.XA CN109389554A (en) | 2018-09-12 | 2018-09-12 | Screenshot method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109389554A true CN109389554A (en) | 2019-02-26 |
Family
ID=65418890
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811062376.XA Pending CN109389554A (en) | 2018-09-12 | 2018-09-12 | Screenshot method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109389554A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110297681A (en) * | 2019-06-24 | 2019-10-01 | 腾讯科技(深圳)有限公司 | Image processing method, device, terminal and storage medium |
CN114296842A (en) * | 2021-07-26 | 2022-04-08 | 海信视像科技股份有限公司 | Display device and scrolling text detection method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105278824A (en) * | 2014-07-31 | 2016-01-27 | 维沃移动通信有限公司 | Screen capturing method of terminal equipment and terminal equipment thereof |
CN105955604A (en) * | 2016-04-20 | 2016-09-21 | 乐视控股(北京)有限公司 | Method and device for screen capture |
CN106843700A (en) * | 2017-01-13 | 2017-06-13 | 珠海市魅族科技有限公司 | Screenshot method and device |
CN108108217A (en) * | 2017-12-29 | 2018-06-01 | 北京金山安全软件有限公司 | Method and device for cutting long screen |
-
2018
- 2018-09-12 CN CN201811062376.XA patent/CN109389554A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105278824A (en) * | 2014-07-31 | 2016-01-27 | 维沃移动通信有限公司 | Screen capturing method of terminal equipment and terminal equipment thereof |
CN105955604A (en) * | 2016-04-20 | 2016-09-21 | 乐视控股(北京)有限公司 | Method and device for screen capture |
CN106843700A (en) * | 2017-01-13 | 2017-06-13 | 珠海市魅族科技有限公司 | Screenshot method and device |
CN108108217A (en) * | 2017-12-29 | 2018-06-01 | 北京金山安全软件有限公司 | Method and device for cutting long screen |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110297681A (en) * | 2019-06-24 | 2019-10-01 | 腾讯科技(深圳)有限公司 | Image processing method, device, terminal and storage medium |
CN114296842A (en) * | 2021-07-26 | 2022-04-08 | 海信视像科技股份有限公司 | Display device and scrolling text detection method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108268433B (en) | Title abstracting method and device based on webpage article | |
US7979809B2 (en) | Gestured movement of object to display edge | |
CN107291802B (en) | Relation map methods of exhibiting and device | |
US10282386B1 (en) | Sampling a part of a content item | |
US9286574B2 (en) | Systems and methods for layered training in machine-learning architectures | |
US20130227484A1 (en) | Customizing a tag cloud | |
CN109447469A (en) | A kind of Method for text detection, device and equipment | |
CN104199603B (en) | Browser webpage control method and device and terminal | |
CN111813713B (en) | Data acceleration operation processing method and device and computer readable storage medium | |
CN109388317B (en) | Picture loading method, terminal device and storage medium | |
US20130141463A1 (en) | Combined interactive map and list view | |
JP2020038622A (en) | Lane line tracking method and device | |
US20160078010A1 (en) | Device And Method For Presenting Pictures | |
CN109389554A (en) | Screenshot method and device | |
CN107317853A (en) | Method, device and system for displaying dynamic effect of message popup window | |
CN107766108A (en) | A kind of method of interception image, terminal and computer-readable medium | |
CN105786920B (en) | Interface tab shows method and apparatus | |
CN109582882A (en) | Search result shows method, apparatus and electronic equipment | |
CN106484726A (en) | A kind of page display method and device | |
CN108959495A (en) | Page display method, device, equipment and the computer storage medium of H5 webpage | |
CN109743589A (en) | Article generation method and device | |
CN111124564A (en) | Method and device for displaying user interface | |
CN105094669A (en) | Method and device for switching multiple tab pages of browser | |
CN111597009B (en) | Application program display method and device and terminal equipment | |
CN109582153A (en) | information input method and device |
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 |