CN106445344A - Screenshot processing method and device - Google Patents
Screenshot processing method and device Download PDFInfo
- Publication number
- CN106445344A CN106445344A CN201610856557.4A CN201610856557A CN106445344A CN 106445344 A CN106445344 A CN 106445344A CN 201610856557 A CN201610856557 A CN 201610856557A CN 106445344 A CN106445344 A CN 106445344A
- Authority
- CN
- China
- Prior art keywords
- screenshot
- track
- pixel point
- picture
- user
- 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
- 238000003672 processing method Methods 0.000 title claims abstract description 16
- 238000000034 method Methods 0.000 claims abstract description 49
- 230000001788 irregular Effects 0.000 claims abstract description 34
- 238000012545 processing Methods 0.000 claims abstract description 31
- 230000015654 memory Effects 0.000 description 16
- 238000004891 communication Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 230000003993 interaction Effects 0.000 description 3
- 238000010295 mobile communication Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- WVOLTBSCXRRQFR-SJORKVTESA-N Cannabidiolic acid Natural products OC1=C(C(O)=O)C(CCCCC)=CC(O)=C1[C@@H]1[C@@H](C(C)=C)CCC(C)=C1 WVOLTBSCXRRQFR-SJORKVTESA-N 0.000 description 1
- 101000929942 Megasphaera elsdenii Acyl-CoA dehydrogenase, short-chain specific Proteins 0.000 description 1
- 241001465754 Metazoa Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- WVOLTBSCXRRQFR-DLBZAZTESA-M cannabidiolate Chemical compound OC1=C(C([O-])=O)C(CCCCC)=CC(O)=C1[C@H]1[C@H](C(C)=C)CCC(C)=C1 WVOLTBSCXRRQFR-DLBZAZTESA-M 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
-
- 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/04—Context-preserving transformations, e.g. by using an importance map
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention provides a screenshot processing method and a device. The processing method comprises the steps of identifying and recording a screenshot track done by a user to an original image, wherein the screenshot track is a closed and irregular curve which surrounds a target image the user intends to carry out a screenshot on; setting pixels outside the screenshot track of the original image to a transparent state, and generating a screenshot picture of the target image. The device comprises a track recording module and a transparence setting module. According to the screenshot processing method and the device, by identifying and recording the screenshot track done by the user to the original image on the intelligent terminal, an irregular figure ready to be subject to screenshot can be directly obtained, thus the method and the device are very quick and simple; meanwhile, by setting pixels outside the screenshot track of the original image to a transparent state, adoption of a specific image processing software to conduct fuss processing is avoided, thus the screenshot speed of the irregular figure is increased.
Description
Technical Field
The embodiment of the invention relates to the technical field of touch screen control, in particular to a screenshot processing method and device.
Background
With the rapid development and popularization of intelligent terminals such as mobile phones and tablets, the computing and processing capabilities of the intelligent terminals are more and more powerful, and the intelligent terminals are more and more convenient to use, so that more and more modern people can carry out communication, entertainment and even processing work through the intelligent terminals. In the process of communication, entertainment and processing work, many people are used to acquire information through web pages of intelligent terminals for rapid processing and dissemination, and often need to intercept specific pictures in a screen, for example, to intercept human faces, human outlines, animal outlines or other things in the pictures.
The existing intelligent terminal supports rectangular screenshot, when a user needs to intercept irregular graphs in a screen, the user needs to intercept the rectangular pictures firstly, then intercept the irregular graphs in the rectangular pictures through specific image processing software, and finish the screenshot of the irregular graphs through specific processing. For example, when a user chats with chat software, the user often needs to intuitively communicate their respective meanings through pictures, and often intercepts a certain irregular area in a picture in order to highlight the focus of the picture and avoid unnecessary misunderstandings, so that the prior art needs cumbersome picture processing and consumes much picture processing time.
In the process of implementing the embodiment of the invention, the inventor finds that the conventional irregular figure screenshot mode needs to go through a plurality of steps and needs to use specific image processing software, so that the method is inconvenient in the practical application process.
Disclosure of Invention
The embodiment of the invention provides a screenshot processing method and device, which are used for solving the problem that the conventional screenshot mode of an irregular graph needs to be performed through a plurality of steps, and meanwhile, special image processing software needs to be used, so that the screenshot is inconvenient in the actual application process.
The embodiment of the invention provides a screenshot processing method, which comprises the following steps:
identifying and recording a screenshot track of a user on an original picture, wherein the screenshot track is a closed irregular curve which surrounds a target image to be intercepted by the user;
and setting the pixel points outside the screenshot track in the original image to be in a transparent state, and generating the screenshot image of the target image.
Optionally, before identifying and recording a screenshot track of the original picture by the user, the method further includes:
intercepting a rectangular picture from the original picture, wherein the rectangular picture comprises a target image to be intercepted by the user;
the identification and recording of the screenshot track of the user on the original picture is as follows:
and identifying a screenshot track of the rectangular picture by the user.
Optionally, the capturing a rectangular picture from the original picture further includes:
acquiring two pixel points on the original image;
according to the coordinates of the two pixel points in the original picture, determining a third pixel point which has the same horizontal coordinate as the first pixel point and the same vertical coordinate as the second pixel point, and a fourth pixel point which has the same vertical coordinate as the first pixel point and the same horizontal coordinate as the second pixel point;
and intercepting a picture taking the first pixel point, the second pixel point, the third pixel point and the fourth pixel point as vertexes from the original picture as the rectangular picture.
Optionally, the identifying and recording a screenshot track of the user on the original picture further includes:
recording the screenshot track of the user on the original picture by a Path type moveTo method.
Optionally, the identifying and recording a screenshot track of the user on the original picture further includes:
recording the drawing state of the drawing track curve by an ontouchvent method, and determining the drawing track curve to be in a finished state.
According to the screenshot processing method provided by the embodiment of the invention, the screenshot track of the original picture on the intelligent terminal by the user is identified and recorded, so that the irregular figure to be intercepted can be directly obtained, and the method is quick, simple and convenient; meanwhile, the pixel points outside the screenshot track in the original image are set to be in a transparent state, so that tedious processing by adopting specific image processing software is avoided, and the screenshot speed of irregular images is increased.
An embodiment of the present invention provides a screenshot processing apparatus, including:
the track recording module is used for identifying and recording a screenshot track of an original picture of a user, wherein the screenshot track is a closed irregular curve which surrounds a target image to be intercepted by the user;
and the transparent setting module is used for setting pixel points outside the screenshot track in the original image into a transparent state and generating the screenshot image of the target image.
Optionally, the method further comprises:
the original picture intercepting module is used for intercepting a rectangular picture from the original picture, wherein the rectangular picture comprises a target image to be intercepted by the user;
the track recording module is used for: and identifying a screenshot track of the rectangular picture by the user.
Optionally, the original image capture module further includes:
the first pixel point acquisition unit is used for acquiring two pixel points on the original image;
the second pixel point acquisition unit is used for determining a third pixel point which has the same horizontal coordinate as the first pixel point and the same vertical coordinate as the second pixel point and a fourth pixel point which has the same vertical coordinate as the first pixel point and the same horizontal coordinate as the second pixel point according to the coordinates of the two pixel points in the original picture;
and the original image intercepting unit is used for intercepting a picture taking the first pixel point, the second pixel point, the third pixel point and the fourth pixel point as vertexes from the original picture as the rectangular picture.
Optionally, the track recording module is configured to: recording the screenshot track of the user on the original picture by a Path type moveTo method.
Optionally, the track recording module is configured to: recording the drawing state of the drawing track curve by an ontouchvent method, and determining the drawing track curve to be in a finished state.
The screenshot processing device provided by the embodiment of the invention can directly acquire the irregular figure to be intercepted by identifying and recording the screenshot track of the user on the original picture on the intelligent terminal, and is quick, simple and convenient; meanwhile, the pixel points outside the screenshot track in the original image are set to be in a transparent state, so that tedious processing by adopting specific image processing software is avoided, and the screenshot speed of irregular images is increased.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart diagram illustrating a screenshot processing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of screenshot processing in one embodiment of the present invention;
FIG. 3 is a schematic flow chart illustrating a screenshot processing method according to another embodiment of the present invention;
FIG. 4 is a flowchart illustrating screenshot processing according to another embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a screenshot processing apparatus according to an embodiment of the present invention;
fig. 6 is a logic block diagram of a screenshot processing terminal in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a screenshot processing method in this embodiment, an execution subject of the method may be, for example, an intelligent terminal, which includes but is not limited to a mobile phone, a tablet computer, or another terminal having computing and data processing capabilities and a display screen, and the processing method may include:
s101, identifying and recording a screenshot track of a user on an original picture, wherein the screenshot track is a closed irregular curve, and the closed irregular curve surrounds a target image to be intercepted by the user;
the screenshot track of the user on the original picture is the screenshot track of the user on the display screen of the intelligent terminal on the original picture, the screenshot track can be outlined through a finger of the user, the screenshot track can be outlined through a touch screen pen and other devices, and the preset screenshot track can be obtained from a database to be adjusted.
For example, when a user needs to acquire the outline of a person on the display screen of the intelligent terminal, the outline of the person can be outlined by fingers; the outline of a person can be outlined through a touch screen pen; and selecting a contour which is similar to the current target image to be intercepted from the database, and forming a screenshot track through simple adjustment. As shown in fig. 2(a), the white line outlines a screenshot track 201.
And S102, setting pixel points outside the screenshot track in the original image to be in a transparent state, and generating a screenshot image of the target image.
For example, the screenshot picture on the display screen of the intelligent terminal in fig. 2(B) is the picture after the pixel points outside the screenshot track 201 in the original picture shown in fig. 2(a) are set to be in the transparent state.
Wherein, each pixel point of the original picture is actually stored as 32-bit data, and alpha, red, green and blue respectively account for 8 bits, wherein the alpha bit controls the transparency of the pixel, when the alpha of the pixel is 0, the pixel is transparent, and when the alpha is 255, the pixel is completely opaque; alpha is translucent between 0 and 255.
The screenshot track is an irregular graph, and the existing intelligent terminal only supports rectangular picture files, so that the size of the screenshot picture needs to be determined according to the size of the screenshot track.
Specifically, a minimum rectangle including a screenshot track may be obtained, and an area having the same position and size as the minimum rectangle is captured to generate a screenshot picture.
In the generated screenshot picture, in order to distinguish the difference between the target image to be intercepted and the background, the pixel points outside the screenshot track are set to be in a transparent state so as not to influence the visual effect of the user.
Specifically, the step of setting a pixel point outside the screenshot track in the original image to be in a transparent state may include the following steps:
a1, constructing a left-closed right-opened area object;
a2, calculating the boundary of the control point;
a3, setting a region path and clipping the region described by the region path;
a4, returning true in the closed path and not returning false in the path;
a5, setting the pixel point returning false to transparent color, namely setting alpha of the pixel point to 0.
For example, as shown in fig. 4, the regional path may be ADBC, ACBD, CBDA, CADB, BCAD, BDAC, DACB, or DBCA; the area described by the area path is the rectangular ACBD.
Where path is the described area, i.e. the rectangular ACBD in fig. 4.
For example, taking the Android system as an example, whether a pixel point in the original picture is within a closed curve outlined by the user can be determined by the following software codes:
Region region=new Region();
RectF r=new RectF();
mPath.computeBounds(r,true);
region.setPath(mPath,new Region((int)r.left,(int)r.top,(int)r.right,(int)r.bottom));
region.contains(x,y);
wherein Region () is a Region object that is left closed and right open; the RectF () is a control point, which is an area for controlling the screenshot trajectory, i.e., a rectangular ACBD as shown in fig. 4; computebounds () is used to calculate the boundaries of control points; setpath () is used to set a region path and a region described by a clip; containment () is used to return true within a closed path and not false within a path.
In the embodiment, the capture track of the original picture on the intelligent terminal by the user is identified and recorded, so that the irregular figure to be captured can be directly obtained, and the method is quick, simple and convenient; meanwhile, the pixel points outside the screenshot track in the original image are set to be in a transparent state, so that tedious processing by adopting specific image processing software is avoided, and the screenshot speed of irregular images is increased.
Fig. 3 is a schematic flow chart of a screenshot processing method in this embodiment, where the method includes: s300, intercepting a rectangular picture from the original picture, wherein the rectangular picture comprises a target image to be intercepted by the user;
s301, identifying a screenshot track of the rectangular picture by a user, wherein the screenshot track is a closed irregular curve which surrounds a target image to be intercepted by the user;
s302, setting the pixel points outside the screenshot track in the original image to be in a transparent state, and generating the screenshot image of the target image.
The method comprises the steps that a displayed picture on a current display screen is processed into a picture format, so that a user can trigger a link on the screen in the process of drawing an irregular figure conveniently, and the intelligent terminal is led to jump to other interfaces; by intercepting the original picture, the content displayed on the display screen can be amplified according to specific requirements; the rectangular picture is used as the original picture, so that the rectangular picture is convenient to obtain.
S301-S302 correspond to S101-S102 in the embodiment corresponding to FIG. 1, and are not described herein again.
Further, on the basis of embodiment 2, S300 includes:
s3001, acquiring two pixel points on the original image;
the two pixel points on the display screen of the intelligent terminal can be located through the finger of a user, the two pixel points on the display screen of the intelligent terminal can also be located through the touch screen pen, and then the intelligent terminal obtains the located two pixel points.
S3002, according to the coordinates of the two pixel points in the original picture, determining a third pixel point which has the same abscissa as the first pixel point and has the same ordinate as the second pixel point, and a fourth pixel point which has the same ordinate as the first pixel point and has the same abscissa as the second pixel point;
and the coordinates of the intelligent terminal are the coordinates of a display screen of the intelligent terminal. For example, taking the lower left corner of the display screen as the origin of coordinates, as shown in fig. 4, if the coordinates of the two pixel points a and B at the intelligent terminal obtained in S1001 are a (30,40) and B (100,140), respectively, the coordinates of the third pixel point C are (30,140), the coordinates of the fourth pixel point D are (100,40), in the rectangular ACBD, point a and point B are two diagonal points, and point C and point D are two diagonal points.
S1003, intercepting a picture taking the first pixel point, the second pixel point, the third pixel point and the fourth pixel point as vertexes from the original picture as the rectangular picture.
By intercepting the original picture with the first pixel points, the second pixel points, the third pixel points and the fourth pixel points as vertexes, the original picture can be amplified to the area most concerned by the user, and irregular graphs can be conveniently and accurately outlined.
Further, on the basis of the above embodiment, S101 further includes:
s1011, recording a screenshot track of the user on the original image by a Path-type moveTo method;
the intelligent terminal adopts an Android operating system.
Of course, it should be noted that, in the embodiment of the present invention, only the Android operating system is taken as an example for description, the present invention is also applicable to the iOS operating system, and a specific method may also be adopted in the iOS operating system to record the screenshot track.
A Path class is provided in the Android, and a curve can be recorded by using methods such as moveTo of the Path class and the like. After a user enters a screenshot mode, recording a track outlined by the user into an object defined by a Path class according to a user touch event; when the user draws a simple closed curve, and the finger leaves the screen, the recording is finished, and at the moment, the track drawn by the user is saved in the Path object.
The screenshot mode refers to that the current display screen displays a captured original picture.
For example, the curve may be recorded by the moveTo method of the Path class as shown in the following software code:
public boolean onTouchEvent(MotionEvent event){
case MotionEvent.ACTION_DOWN:
mPath.moveTo(x,y);}
and a Path-type moveTo method is adopted, so that the screenshot track of the user on the original picture on the intelligent terminal can be conveniently recorded.
Further, on the basis of the above embodiment, S101 further includes:
s1012, recording the drawing state of the drawing track curve by an onTouchervent method, and determining that the drawing track curve is in a finished state.
The Android can record the point where the user manually outlines the track and sends an event, and meanwhile, the ontouchvent can respond to the event. After the user enters a screenshot mode, recording a track drawn by the user into an object defined by the Path class according to a user touch event in an ontouchvent function of the Activity of the intelligent terminal.
And conveniently recording the drawing state of the drawing track curve by an ontouchavent method.
Fig. 5 is a schematic structural diagram of a screenshot processing apparatus in this embodiment, where the screenshot processing apparatus includes a track recording module 501 and a transparent setting module 502; wherein,
the track recording module 501 is configured to identify and record a screenshot track of an original image of a user, where the screenshot track is a closed irregular curve, and the closed irregular curve surrounds a target image to be intercepted by the user;
the transparent setting module 502 is configured to set a pixel point of the original image, which is located outside the screenshot track, to be in a transparent state, and generate a screenshot picture of the target image.
Specifically, the track recording module 501 identifies and records a screenshot track of the original picture by the user, where the screenshot track is a closed irregular curve, and the closed irregular curve surrounds a target image to be intercepted by the user; the transparent setting module 502 sets the pixel points outside the screenshot track in the original image to be in a transparent state, and generates a screenshot image of the target image.
In the embodiment, the capture track of the original picture on the intelligent terminal by the user is identified and recorded, so that the irregular figure to be captured can be directly obtained, and the method is quick, simple and convenient; meanwhile, the pixel points outside the screenshot track in the original image are set to be in a transparent state, so that tedious processing by adopting specific image processing software is avoided, and the screenshot speed of irregular images is increased.
Further, the apparatus further comprises:
original image capture module 503 for
Intercepting a rectangular picture from the original picture, wherein the rectangular picture comprises a target image to be intercepted by the user;
the identification and recording of the screenshot track of the user on the original picture is as follows:
and identifying a screenshot track of the rectangular picture by the user.
Specifically, the original image capture module 503 further includes:
a first pixel point obtaining unit 5031, configured to obtain two pixel points on the original image;
a second pixel point obtaining unit 5032, configured to determine, according to coordinates of the two pixel points in the original picture, a third pixel point that is the same as the abscissa of the first pixel point and the ordinate of the second pixel point, and a fourth pixel point that is the same as the ordinate of the first pixel point and the abscissa of the second pixel point;
an original image capturing unit 5033, configured to capture, from the original image, an image with the first pixel point, the second pixel point, the third pixel point, and the fourth pixel point as vertices as the rectangular image.
Further, the track recording module 501 is configured to record a screenshot track of the original picture by the user through a Path-like moveTo method.
Further, the track recording module 501 is configured to record a drawing state of a drawing track curve by an onTouchEvent method, and determine that the drawing track curve is in a complete state.
The principle and technical effect of the screenshot processing device provided by the above embodiment are the same as those of the corresponding method embodiment, and are not described herein again.
Fig. 6 shows an entity structure schematic diagram of a screenshot processing terminal provided in an embodiment of the present invention, where the screenshot processing terminal includes: a processor 601, a memory 602, a communication interface 603 and a bus 604, wherein the processor 601, the memory 602 and the communication interface 603 complete communication with each other through the bus 604. The communication interface 603 may be used for information transfer between the server and the screenshot processing terminal.
The memory 602 is configured to store an original picture;
the processor 601 may call up the artwork in the memory 602 to perform the following method:
identifying and recording a screenshot track of a user on an original picture, wherein the screenshot track is a closed irregular curve which surrounds a target image to be intercepted by the user;
and setting the pixel points outside the screenshot track in the original image to be in a transparent state, and generating the screenshot image of the target image.
In addition, the original image in the memory 602 may be implemented in the form of a software functional unit and may be stored in a computer readable storage medium when the original image is sold or used as a separate product. Based on such understanding, the technical solution of the present invention or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium, including original pictures, for enabling a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The terminal may further include: input devices and output devices are coupled to the processor 601 and memory 602 by a bus or other connection.
The memory 602, serving as a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the processing method of the network resource access request in the embodiment of the present application. The processor 601 executes various functional applications and data processing of the server by running nonvolatile software programs, instructions and modules stored in the memory 602, namely, implementing the method for video program interaction of the above-described method embodiments.
The memory 602 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the network traffic control electronic device of the mobile terminal, and the like. Further, the memory 602 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 602 optionally includes memory remotely located from processor 601, and these remote memories may be connected to a video program interaction processing device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means may receive input numeric or character information and generate key signal inputs related to user settings and function control of the network flow control electronics of the mobile terminal. The output device may include a display device such as a display screen.
The one or more modules are stored in the memory 602 and when executed by the one or more processors 601, perform the method for network traffic control of a mobile terminal in any of the above-described method embodiments.
The product can execute the method provided by the embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the methods provided in the embodiments of the present application.
The electronic device of the embodiments of the present application exists in various forms, including but not limited to:
(1) mobile communication devices, which are characterized by mobile communication capabilities and are primarily targeted at providing voice and data communications. Such terminals include smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) The ultra-mobile personal computer equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include PDA, MID, and UMPC devices, such as ipads.
(3) Portable entertainment devices such devices may display and play multimedia content. Such devices include audio and video players (e.g., ipods), handheld game consoles, electronic books, as well as smart toys and portable car navigation devices.
(4) The server is similar to a general computer architecture, but has higher requirements on processing capability, stability, reliability, safety, expandability, manageability and the like because of the need of providing highly reliable services.
(5) And other electronic devices with data interaction functions.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In the embodiment, the capture track of the original picture on the intelligent terminal by the user is identified and recorded, so that the irregular figure to be captured can be directly obtained, and the method is quick, simple and convenient; meanwhile, the pixel points outside the screenshot track in the original image are set to be in a transparent state, so that tedious processing by adopting specific image processing software is avoided, and the screenshot speed of irregular images is increased.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
It should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. A screenshot processing method is characterized by comprising
Identifying and recording a screenshot track of a user on an original picture, wherein the screenshot track is a closed irregular curve which surrounds a target image to be intercepted by the user;
and setting the pixel points outside the screenshot track in the original image to be in a transparent state, and generating the screenshot image of the target image.
2. The method of claim 1, wherein before identifying and recording a screenshot track of a user on an original picture, the method further comprises:
intercepting a rectangular picture from the original picture, wherein the rectangular picture comprises a target image to be intercepted by the user;
the identification and recording of the screenshot track of the user on the original picture is as follows:
and identifying a screenshot track of the rectangular picture by the user.
3. The method of claim 2, wherein the truncating the rectangular picture from the original picture further comprises:
acquiring two pixel points on the original image;
according to the coordinates of the two pixel points in the original picture, determining a third pixel point which has the same horizontal coordinate as the first pixel point and the same vertical coordinate as the second pixel point, and a fourth pixel point which has the same vertical coordinate as the first pixel point and the same horizontal coordinate as the second pixel point;
and intercepting a picture taking the first pixel point, the second pixel point, the third pixel point and the fourth pixel point as vertexes from the original picture as the rectangular picture.
4. The method of claim 1, wherein the identifying and recording a screenshot track of a user on an original picture further comprises:
recording the screenshot track of the user on the original picture by a Path type moveTo method.
5. The method of claim 4, wherein the identifying and recording a screenshot track of a user on an original picture further comprises:
recording the drawing state of the drawing track curve by an ontouchvent method, and determining the drawing track curve to be in a finished state.
6. A screenshot processing apparatus, comprising
The track recording module is used for identifying and recording a screenshot track of an original picture of a user, wherein the screenshot track is a closed irregular curve which surrounds a target image to be intercepted by the user;
and the transparent setting module is used for setting pixel points outside the screenshot track in the original image into a transparent state and generating the screenshot image of the target image.
7. The apparatus of claim 6, further comprising:
the original picture intercepting module is used for intercepting a rectangular picture from the original picture, wherein the rectangular picture comprises a target image to be intercepted by the user;
the track recording module is used for: and identifying a screenshot track of the rectangular picture by the user.
8. The apparatus of claim 7, wherein the original picture clipping module comprises:
the first pixel point acquisition unit is used for acquiring two pixel points on the original image;
the second pixel point acquisition unit is used for determining a third pixel point which has the same horizontal coordinate as the first pixel point and the same vertical coordinate as the second pixel point and a fourth pixel point which has the same vertical coordinate as the first pixel point and the same horizontal coordinate as the second pixel point according to the coordinates of the two pixel points in the original picture;
and the original image intercepting unit is used for intercepting a picture taking the first pixel point, the second pixel point, the third pixel point and the fourth pixel point as vertexes from the original picture as the rectangular picture.
9. The apparatus of claim 6, wherein the track recording module is configured to: recording the screenshot track of the user on the original picture by a Path type moveTo method.
10. The apparatus of claim 9, wherein the track recording module is configured to: recording the drawing state of the drawing track curve by an ontouchvent method, and determining the drawing track curve to be in a finished state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610856557.4A CN106445344A (en) | 2016-09-27 | 2016-09-27 | Screenshot processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610856557.4A CN106445344A (en) | 2016-09-27 | 2016-09-27 | Screenshot processing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106445344A true CN106445344A (en) | 2017-02-22 |
Family
ID=58169434
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610856557.4A Pending CN106445344A (en) | 2016-09-27 | 2016-09-27 | Screenshot processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106445344A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107728899A (en) * | 2017-09-29 | 2018-02-23 | 深圳市聚宝汇科技有限公司 | A kind of picture intercept method and system |
CN108733281A (en) * | 2018-04-08 | 2018-11-02 | 深圳先搜科技有限公司 | A kind of image interception method, system and terminal device |
CN111338526A (en) * | 2020-02-25 | 2020-06-26 | 维沃移动通信有限公司 | Screenshot method and device |
WO2020133385A1 (en) * | 2018-12-29 | 2020-07-02 | 深圳市柔宇科技有限公司 | Note local selection method and apparatus, terminal, and readable storage medium |
CN113284174A (en) * | 2020-02-20 | 2021-08-20 | 北京沃东天骏信息技术有限公司 | Method and device for processing pictures |
CN114217892A (en) * | 2021-12-01 | 2022-03-22 | 深圳Tcl新技术有限公司 | Interface content intercepting method and device and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102708539A (en) * | 2012-04-21 | 2012-10-03 | 上海量明科技发展有限公司 | Method for obtaining image through twice-screenshot and client |
CN102707879A (en) * | 2012-04-17 | 2012-10-03 | 上海量明科技发展有限公司 | Method for selecting image contour of screenshot area, client and system |
CN105573611A (en) * | 2014-10-17 | 2016-05-11 | 中兴通讯股份有限公司 | Irregular capture method and device for intelligent terminal |
US20180018515A1 (en) * | 2016-07-14 | 2018-01-18 | Magic Leap, Inc. | Iris boundary estimation using cornea curvature |
-
2016
- 2016-09-27 CN CN201610856557.4A patent/CN106445344A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102707879A (en) * | 2012-04-17 | 2012-10-03 | 上海量明科技发展有限公司 | Method for selecting image contour of screenshot area, client and system |
CN102708539A (en) * | 2012-04-21 | 2012-10-03 | 上海量明科技发展有限公司 | Method for obtaining image through twice-screenshot and client |
CN105573611A (en) * | 2014-10-17 | 2016-05-11 | 中兴通讯股份有限公司 | Irregular capture method and device for intelligent terminal |
US20180018515A1 (en) * | 2016-07-14 | 2018-01-18 | Magic Leap, Inc. | Iris boundary estimation using cornea curvature |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107728899A (en) * | 2017-09-29 | 2018-02-23 | 深圳市聚宝汇科技有限公司 | A kind of picture intercept method and system |
CN108733281A (en) * | 2018-04-08 | 2018-11-02 | 深圳先搜科技有限公司 | A kind of image interception method, system and terminal device |
WO2020133385A1 (en) * | 2018-12-29 | 2020-07-02 | 深圳市柔宇科技有限公司 | Note local selection method and apparatus, terminal, and readable storage medium |
CN113284174A (en) * | 2020-02-20 | 2021-08-20 | 北京沃东天骏信息技术有限公司 | Method and device for processing pictures |
CN111338526A (en) * | 2020-02-25 | 2020-06-26 | 维沃移动通信有限公司 | Screenshot method and device |
CN114217892A (en) * | 2021-12-01 | 2022-03-22 | 深圳Tcl新技术有限公司 | Interface content intercepting method and device and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106445344A (en) | Screenshot processing method and device | |
WO2020207191A1 (en) | Method and apparatus for determining occluded area of virtual object, and terminal device | |
US12079940B2 (en) | Multi-endpoint mixed-reality meetings | |
CN110100251B (en) | Apparatus, method, and computer-readable storage medium for processing document | |
KR102173123B1 (en) | Method and apparatus for recognizing object of image in electronic device | |
CN103500066B (en) | Screenshot device and method suitable for touch screen equipment | |
WO2018000619A1 (en) | Data display method, device, electronic device and virtual reality device | |
WO2016192325A1 (en) | Method and device for processing logo on video file | |
CN108961157B (en) | Picture processing method, picture processing device and terminal equipment | |
CN107330858B (en) | Picture processing method and device, electronic equipment and storage medium | |
WO2019148968A1 (en) | Mobile terminal, facial unlocking method, and related product | |
CN108259810A (en) | A kind of method of video calling, equipment and computer storage media | |
CN111767554B (en) | Screen sharing method and device, storage medium and electronic equipment | |
WO2022188305A1 (en) | Information presentation method and apparatus, and electronic device, storage medium and computer program | |
TWI752473B (en) | Image processing method and apparatus, electronic device and computer-readable storage medium | |
US11556605B2 (en) | Search method, device and storage medium | |
WO2023051356A1 (en) | Virtual object display method and apparatus, and electronic device and storage medium | |
US20230316529A1 (en) | Image processing method and apparatus, device and storage medium | |
US10216381B2 (en) | Image capture | |
US20170192653A1 (en) | Display area adjusting method and electronic device | |
CN112990197A (en) | License plate recognition method and device, electronic equipment and storage medium | |
CN106774852B (en) | Message processing method and device based on virtual reality | |
TW202219822A (en) | Character detection method, electronic equipment and computer-readable storage medium | |
CN115883959B (en) | Picture content control method for privacy protection and related product | |
US20170169572A1 (en) | Method and electronic device for panoramic video-based region identification |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170222 |