CN106131628B - A kind of method of video image processing and device - Google Patents

A kind of method of video image processing and device Download PDF

Info

Publication number
CN106131628B
CN106131628B CN201610550261.XA CN201610550261A CN106131628B CN 106131628 B CN106131628 B CN 106131628B CN 201610550261 A CN201610550261 A CN 201610550261A CN 106131628 B CN106131628 B CN 106131628B
Authority
CN
China
Prior art keywords
coordinate
touch signal
slip signals
area
video image
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.)
Active
Application number
CN201610550261.XA
Other languages
Chinese (zh)
Other versions
CN106131628A (en
Inventor
胡昌威
柴彪
曹小敏
周晨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Keda Technology Co Ltd
Original Assignee
Suzhou Keda Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Keda Technology Co Ltd filed Critical Suzhou Keda Technology Co Ltd
Priority to CN201610550261.XA priority Critical patent/CN106131628B/en
Publication of CN106131628A publication Critical patent/CN106131628A/en
Application granted granted Critical
Publication of CN106131628B publication Critical patent/CN106131628B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/414Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
    • H04N21/41407Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance embedded in a portable device, e.g. video client on a mobile phone, PDA, laptop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction 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/0488Interaction 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47202End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand

Abstract

The present invention relates to field of video broadcasting technology, and in particular to a kind of method of video image processing and device.Wherein, method includes: to receive the first slip signals and the second slip signals, and the first slip signals include the first initial touch signal and first terminates touch signal, and the second slip signals include that the second initial touch signal and second terminate touch signal;According to the first initial touch signal and the second initial touch signal determine video source being played on to zoom area;Determine to zoom in and out treated target area to zoom area according to the first end touch signal and the second end touch signal;And it is played out target area is plotted to the video image in zoom area.Through the invention, the region and the target area after scaling that user can according to need selection scaling, do not generate black background when video image is reduced and played, and can also compare in amplification and check other region contents, meet user demand, substantially increases user experience.

Description

A kind of method of video image processing and device
Technical field
The present invention relates to field of video broadcasting technology, and in particular to a kind of method of video image processing and device.
Background technique
With the continuous development of video display arts, the specific gravity that people browse the time of video in life is greatly increased. When browsing video, sometimes can need to zoom in or out to video according to different, for example, in order to adjust figure in real time Picture when observing the details in some region, needs to amplify the video image in the region.
Currently, this function of zooming in or out to video image, usually using Digital Zoom technology come pair Video image is handled, and since in the industry cycle there is no unified standards for Digital Zoom image, current existing method is will to regard Frequency image is integrally used as an object to zoom in or out, to realize that some part amplifies to video image Or it reduces.However, this mode although realize partial enlargement in video image or and reduce, still, still remain Some defects, for example, will appear black background when needing to carry out image to reduce processing on the boundary of diminution, leading to user Experience it is not good etc. enough;When amplifying to image, the region of the amplification is only shown on interface, can not be compared and be checked other areas Domain content.
Summary of the invention
The technical problem to be solved in the present invention is that the video image zooming function of the prior art is easy to produce when reducing Black background can not compare in amplification and check other region contents, to provide a kind of method of video image processing and device.
According to an aspect of the invention, there is provided a kind of method of video image processing, comprising: receive the first slip signals With the second slip signals, wherein first slip signals and the second slip signals are respectively two fingers of user in touch screen On slip signals, first slip signals include the first initial touch signal and first terminate touch signal, described second Slip signals include that the second initial touch signal and second terminate touch signal;According to the first initial touch signal and described Second initial touch signal determine video source being played on to zoom area;Terminate touch signal and institute according to described first State the second end touch signal determine it is described to the zoom area target area that zooms in and out that treated;And by described wait contract It puts the video image in region and is plotted to the target area and play out.
Further, it is determined according to the first initial touch signal and the second initial touch signal being played on Video source comprises determining that the first initial touch signal is fastened pair in the resolution coordinates of the touch screen to zoom area The first coordinate and the second initial touch signal answered are fastened corresponding second in the resolution coordinates of the touch screen and are sat Mark;First coordinate is converted into the third coordinate on the coordinate system of the video source, and second coordinate is converted At the 4-coordinate on the coordinate system of the video source;Using the third coordinate and the 4-coordinate as the first rectangular area Two vertex, using first rectangular area as described to zoom area.
Further, the video image in zoom area is plotted to the target area and played out and include: Determine that the first end touch signal fastens corresponding Five Axis and described the in the resolution coordinates of the touch screen Two end touch signals fasten corresponding 6th coordinate in the resolution coordinates of the touch screen;With the Five Axis and described 6th coordinate is two vertex, determines the second rectangular area;The apex coordinate of first rectangular area is mapped to described The apex coordinate of second rectangular area draws the video image of first rectangular area in second rectangular area.
Further, after receiving the first slip signals and the second slip signals, the method also includes: according to described The glide direction of first slip signals and second slip signals determines that the video image to zoom area is that amplification is gone back It is to reduce, wherein the glide direction of the glide direction of first slip signals and second slip signals is opposite, it is determined that To reduce;The glide direction of the glide direction of first slip signals and second slip signals is opposite, it is determined that put Greatly;Alternatively, being determined according to the sliding distance of first slip signals and second slip signals described to zoom area Video image is amplification or reduces, wherein if the corresponding coordinate of the first initial touch signal and described second is initially The distance between corresponding coordinate of touch signal, which is greater than described first, which terminates the corresponding coordinate of touch signal and described second, terminates The distance between corresponding coordinate of touch signal, it is determined that reduce;If the corresponding coordinate of the first initial touch signal The distance between coordinate corresponding with the second initial touch signal, which is less than described first, terminates the corresponding coordinate of touch signal The distance between coordinate corresponding with the second end touch signal, it is determined that for amplification.
Further, the method also includes: if the sliding of first slip signals and second slip signals Direction is in the same direction, it is determined that is movement to the operation to zoom area;According to first slip signals and described second Slip signals calculate the mobile vector coordinate to zoom area;The apex coordinate to zoom area is added into the shifting Dynamic vector coordinate moved after region apex coordinate, to determine the region after the movement;After the movement It is drawn in region described to the video image in zoom area.
According to another aspect of the present invention, a kind of video image processing device is provided, comprising: receiving unit, for connecing Receive the first slip signals and the second slip signals, wherein first slip signals and the second slip signals are respectively user two The slip signals of root finger on the touchscreen, first slip signals include that the first initial touch signal and first terminate to touch Signal, second slip signals include that the second initial touch signal and second terminate touch signal;First determination unit, is used for The area to be scaled of video source being played on is determined according to the first initial touch signal and the second initial touch signal Domain;Second determination unit, it is described for being determined according to the first end touch signal and the second end touch signal To the zoom area target area that zooms in and out that treated;And broadcast unit, for by the video in zoom area Image Rendering is played out to the target area.
Further, first determination unit includes: the first determining module, for determining the first initial touch letter Number corresponding first coordinate and the second initial touch signal are fastened in the touching in the resolution coordinates of the touch screen The resolution coordinates for touching screen fasten corresponding second coordinate;Conversion module, for first coordinate to be converted into the video Third coordinate on the coordinate system in source, and by second coordinate be converted on the coordinate system of the video source the 4th sit Mark;Second determining module, for inciting somebody to action using the third coordinate and the 4-coordinate as two vertex of the first rectangular area First rectangular area is as described to zoom area.
Further, the broadcast unit includes: third determining module, for determining that the first end touch signal exists The resolution coordinates of the touch screen fasten corresponding Five Axis and the second end touch signal in the touch screen Resolution coordinates fasten corresponding 6th coordinate;4th determining module, for the Five Axis and the 6th coordinate For two vertex, the second rectangular area is determined;Mapping block, for the apex coordinate of first rectangular area to be mapped to The apex coordinate of second rectangular area draws the video figure of first rectangular area in second rectangular area Picture.
Further, described device further include: third determination unit, for receiving the first slip signals and the second sliding After signal, determined according to the glide direction of first slip signals and second slip signals described to zoom area Video image is amplification or reduces, wherein the cunning of the glide direction of first slip signals and second slip signals Dynamic direction is opposite, it is determined that reduce;The sliding side of the glide direction of first slip signals and second slip signals To opposite, it is determined that for amplification;Alternatively, the 4th determination unit, for according to first slip signals and second sliding The sliding distance of signal determines that the video image to zoom area is amplification or reduces, wherein if at the beginning of described first The distance between the corresponding coordinate of beginning touch signal and the corresponding coordinate of the second initial touch signal are greater than first knot The corresponding coordinate of beam touch signal and described second terminates the distance between corresponding coordinate of touch signal, it is determined that reduce; If the distance between the corresponding coordinate of the first initial touch signal and the corresponding coordinate of the second initial touch signal Terminating the corresponding coordinate of touch signal and described second less than described first terminates the distance between corresponding coordinate of touch signal, Then it is determined as amplifying.
Further, described device further include: the 5th determination unit, if for first slip signals and described the The glide direction of two slip signals is in the same direction, it is determined that is movement to the operation to zoom area;First computing unit is used According to first slip signals and second slip signals calculating mobile vector coordinate to zoom area;Second Computing unit, for adding the region after the mobile vector coordinate is moved after the apex coordinate of zoom area for described Apex coordinate, to determine the region after the movement;Wherein, the broadcast unit is also used in the region after the movement It draws described to the video image in zoom area.
According to the present invention, by receiving the first slip signals and the second slip signals;Believed according to first initial touch Number and the second initial touch signal determine video source being played on to zoom area;Terminate to touch according to described first Signal and the second end touch signal are determined described to the zoom area target area that zooms in and out that treated;And it will The video image in zoom area is plotted to the target area and plays out, so that user selects to scale by finger Region, and scaling size, and after the part to video image zooms in or out processing, the video figure of the part The broadcasting of picture does not influence the broadcasting of the other parts content of video, the broadcasting of the video content in coverage goal region, in this way, Black background is not generated when video image is reduced and played, can also be compared in amplification and check other region contents, used The region and the target area after scaling that family can according to need selection scaling, meet user demand, substantially increase user Experience.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow chart of a specific example of method of video image processing in the embodiment of the present invention 1;
Fig. 2 a and 2b are the schematic diagram of a specific example of video image amplification in the embodiment of the present invention;
Fig. 3 is the functional block diagram of a specific example of video image processing device in the embodiment of the present invention 2.
Specific embodiment
Technical solution of the present invention is clearly and completely described below in conjunction with attached drawing, it is clear that described implementation Example is a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill Personnel's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
As long as in addition, the non-structure each other of technical characteristic involved in invention described below different embodiments It can be combined with each other at conflict.
Embodiment 1
The present embodiment provides a kind of method of video image processing, this method can be used for having in the terminal of touch screen, such as Mobile phone, tablet computer etc..
As shown in Figure 1, this method comprises:
Step S101 receives the first slip signals and the second slip signals.Wherein, the first slip signals and the second sliding letter It number is respectively the slip signals of two fingers of user on the touchscreen, the first slip signals include the first initial touch signal and the One terminates touch signal, and the second slip signals include that the second initial touch signal and second terminate touch signal.
Step S102 determines video source being played on according to the first initial touch signal and the second initial touch signal To zoom area.
Step S103 determines to contract to zoom area according to the first end touch signal and the second end touch signal Target area of putting that treated.
Step S104 is played out target area is plotted to the video image in zoom area.
When user needs to zoom in or out video being played on, selection is touched by finger and needs area to be scaled Then domain is determined that the video image to the region is amplification or reduces by sliding finger, stopped after two finger slidings Position between region be scaling processing after target area.By amplification for, user when watching video being played on, When needing to amplify some region, as shown in Figure 2 a, user is selected by finger to zoom area, wherein two differences "×" shape respectively indicates the first initial touch signal and the second initial touch signal, and region therebetween is to zoom area.Finger After selection is to zoom area, (as shown by arrows in figure) is slided to opposite direction, slides into position shown in "○" in Fig. 2 b (first, which terminates touch signal and second, terminates touch signal) is set, is therebetween target area.In this way, in playing process later In, the video image originally to play in zoom area is plotted in target area and is played out, is realized to video image Partial enlargement processing.
It should be noted that in the present embodiment, after the part to video image zooms in or out processing, the portion The broadcasting of the video image divided does not influence the broadcasting of the other parts content of video, the video content in coverage goal region It plays, in this way, not generating black background when video image is reduced and played, can also be compared in amplification and check other areas Domain content, the region and the target area after scaling that user can according to need selection scaling, substantially increases user experience.
Preferably, according to the first initial touch signal and the second initial touch signal determine video source being played on to Zoom area comprises determining that the first initial touch signal fastens corresponding first coordinate in the resolution coordinates of touch screen, and Second initial touch signal fastens corresponding second coordinate in the resolution coordinates of touch screen;First coordinate is converted into video source Coordinate system on third coordinate, and the 4-coordinate the second coordinate being converted on the coordinate system of video source;It is sat with third Mark and two vertex of the 4-coordinate as the first rectangular area, using the first rectangular area as to zoom area.
It is all the coordinate in the resolution ratio of touch screen since touch signal is corresponding, user is in touch screen in the present embodiment Upper touch signal is first fastened in the resolution coordinates of touch screen and determines its corresponding coordinate, then by the conversion of coordinate system, The coordinate (third coordinate and 4-coordinate) converted thereof into video source coordinate system obtains regarding using the coordinate as vertex The first rectangular area on the coordinate system of frequency source, the region are band zoom area, thereby determine that out and need to amplify in video source Or the region reduced.
Further, target area will be plotted to the video image in zoom area and played out comprise determining that first End touch signal fastens corresponding Five Axis in the resolution coordinates of touch screen and the second end touch signal is touching The resolution coordinates of screen fasten corresponding 6th coordinate;With Five Axis and the 6th coordinate for two vertex, the second square is determined Shape region;The apex coordinate of first rectangular area is mapped to the apex coordinate of the second rectangular area, in the second rectangular area Draw the video image of the first rectangular area.
When carrying out the diminution or enhanced processing with zoom area, it is thus necessary to determine that target area on the screen.According to The touch signal (the first end touch signal and the second end touch signal) of user's finger determines its corresponding coordinate the (the 5th Coordinate and the 6th coordinate), the second rectangular area i.e. target area is determined in this, as vertex, broadcasting after that is to say scaling processing Window is put, the apex coordinate of the first rectangular area (on the coordinate system of video source) is then being mapped to the (touching of the second rectangular area The resolution coordinates for touching screen are fastened), the video image that the first rectangular area is then drawn in the second rectangular area plays out.
Preferably, after receiving the first slip signals and the second slip signals, method further include: believed according to the first sliding Number and the glide directions of the second slip signals determine that the video image to zoom area is amplification or reduces, wherein first is sliding The glide direction of dynamic signal and the glide direction of the second slip signals are opposite, it is determined that reduce;The sliding of first slip signals The glide direction of direction and the second slip signals is opposite, it is determined that for amplification.
In the present embodiment, the amplification of video image is still reduced, can be believed by the first slip signals and the second sliding Number glide direction determine.As shown in Figure 2 a, the direction of two slip signals is opposite, then is amplification, whereas if thinking It is right, then it is diminution.
Optionally, it can also be and determined according to the sliding distance of the first slip signals and the second slip signals to zoom area Video image be amplification or reduce, wherein if the corresponding coordinate of the first initial touch signal and the second initial touch letter The distance between number corresponding coordinate, which is greater than first, terminates the corresponding coordinate of touch signal and second to terminate touch signal corresponding The distance between coordinate, it is determined that reduce;If the corresponding coordinate of the first initial touch signal and the second initial touch signal The distance between corresponding coordinate, which terminates the corresponding coordinate of touch signal and second less than first, terminates the corresponding seat of touch signal The distance between mark, it is determined that for amplification.
For example, the distance between initial touch signal is L1, terminating the distance between touch signal is L2, if L1 is greater than L2 is then diminution;It is then amplification that L1, which is less than L2,.Wherein, in carrying out the calculating process such as coordinate conversion, L1 and L2 can also be utilized Calculate pantograph ratio, i.e. L1/L2, wherein the scaling multiple of image-region is square of the pantograph ratio.
Preferably, method further include: if the glide direction of the first slip signals and the second slip signals be it is in the same direction, really Surely the operation of zoom area is treated as movement;The movement to zoom area is calculated according to the first slip signals and the second slip signals Phasor coordinate;The apex coordinate in the region after mobile vector coordinate is moved will be added after the apex coordinate of zoom area, with Region after determining movement;It draws in region after movement to the video image in zoom area.
In the present embodiment, the region of selection can also be moved, can be and moved after zooming in or out, And only part is moved without zooming in or out.In moving process, sliding finger is also needed, thus in terminal In the present embodiment, the movement to zoom area is calculated according to the first slip signals and the second slip signals for upper generation slip signals Then phasor coordinate adds the mobile vector coordinate by the apex coordinate of moving area respectively, the vertex after movement can be obtained Coordinate is drawn out video image in the corresponding region of the apex coordinate and is played out.
Embodiment 2
Originally it applies example and a kind of video image processing device is provided, as shown in Figure 1, comprising:
Receiving unit 10 is for receiving the first slip signals and the second slip signals, wherein the first slip signals and second Slip signals are respectively the slip signals of two fingers of user on the touchscreen, and the first slip signals are believed including the first initial touch Number and first terminate touch signal, the second slip signals include the second initial touch signal and second terminate touch signal;
First determination unit 20 is used to be playing according to the first initial touch signal and the determination of the second initial touch signal Video source to zoom area;
Second determination unit 30 is used to be determined according to the first end touch signal and the second end touch signal wait scale Region zooms in and out that treated target area;
Broadcast unit 40 is played out for will be plotted to target area to the video image in zoom area.
When user needs to zoom in or out video being played on, selection is touched by finger and needs area to be scaled Then domain is determined that the video image to the region is amplification or reduces by sliding finger, stopped after two finger slidings Position between region be scaling processing after target area.By amplification for, user when watching video being played on, When needing to amplify some region, as shown in Figure 2 a, user is selected by finger to zoom area, wherein two differences "×" shape respectively indicates the first initial touch signal and the second initial touch signal, and region therebetween is to zoom area.Finger After selection is to zoom area, (as shown by arrows in figure) is slided to opposite direction, slides into position shown in "○" in Fig. 2 b (first, which terminates touch signal and second, terminates touch signal) is set, is therebetween target area.In this way, in playing process later In, the video image originally to play in zoom area is plotted in target area and is played out, is realized to video image Partial enlargement processing.
It should be noted that in the present embodiment, after the part to video image zooms in or out processing, the portion The broadcasting of the video image divided does not influence the broadcasting of the other parts content of video, the video content in coverage goal region It plays, in this way, not generating black background when video image is reduced and played, can also be compared in amplification and check other areas Domain content, the region and the target area after scaling that user can according to need selection scaling, substantially increases user experience.
Preferably, the first determination unit includes: the first determining module, for determining the first initial touch signal in touch screen Resolution coordinates fasten corresponding first coordinate and the second initial touch signal and fastened pair in the resolution coordinates of touch screen The second coordinate answered;Conversion module, the third coordinate for being converted into the first coordinate on the coordinate system of video source, and by Two coordinates are converted into the 4-coordinate on the coordinate system of video source;Second determining module, for third coordinate and 4-coordinate As two vertex of the first rectangular area, using the first rectangular area as to zoom area.
It is all the coordinate in the resolution ratio of touch screen since touch signal is corresponding, user is in touch screen in the present embodiment Upper touch signal is first fastened in the resolution coordinates of touch screen and determines its corresponding coordinate, then by the conversion of coordinate system, The coordinate (third coordinate and 4-coordinate) converted thereof into video source coordinate system obtains regarding using the coordinate as vertex The first rectangular area on the coordinate system of frequency source, the region are band zoom area, thereby determine that out and need to amplify in video source Or the region reduced.
Further, broadcast unit includes: third determining module, for determining the first end touch signal in touch screen Resolution coordinates fasten corresponding Five Axis and the second end touch signal and fasten correspondence in the resolution coordinates of touch screen The 6th coordinate;4th determining module, for, for two vertex, determining the second rectangle region with Five Axis and the 6th coordinate Domain;Mapping block, for the apex coordinate of the first rectangular area to be mapped to the apex coordinate of the second rectangular area, in the second square The video image of the first rectangular area is drawn in shape region.
When carrying out the diminution or enhanced processing with zoom area, it is thus necessary to determine that target area on the screen.According to The touch signal (the first end touch signal and the second end touch signal) of user's finger determines its corresponding coordinate the (the 5th Coordinate and the 6th coordinate), the second rectangular area i.e. target area is determined in this, as vertex, broadcasting after that is to say scaling processing Window is put, the apex coordinate of the first rectangular area (on the coordinate system of video source) is then being mapped to the (touching of the second rectangular area The resolution coordinates for touching screen are fastened), the video image that the first rectangular area is then drawn in the second rectangular area plays out.
Preferably, device further include: third determination unit, for receive the first slip signals and the second slip signals it Afterwards, according to the glide direction of the first slip signals and the second slip signals determine to zoom area video image be amplification or It reduces, wherein the glide direction of the glide direction of the first slip signals and the second slip signals is opposite, it is determined that reduce;The The glide direction of the glide direction of one slip signals and the second slip signals is opposite, it is determined that for amplification.
In the present embodiment, the amplification of video image is still reduced, can be believed by the first slip signals and the second sliding Number glide direction determine.As shown in Figure 2 a, the direction of two slip signals is opposite, then is amplification, whereas if thinking It is right, then it is diminution.
Optionally, it can also be that device may include: the 4th determination unit, for sliding according to the first slip signals and second The sliding distance of dynamic signal determines that the video image to zoom area is amplification or reduces, wherein if the first initial touch It is corresponding that the distance between the corresponding coordinate of signal and the corresponding coordinate of the second initial touch signal are greater than the first end touch signal Coordinate and second terminate the distance between corresponding coordinate of touch signal, it is determined that reduce;If the first initial touch is believed It is corresponding that the distance between number corresponding coordinate and the corresponding coordinate of the second initial touch signal terminate touch signal less than first Coordinate and second terminates the distance between corresponding coordinate of touch signal, it is determined that for amplification.
For example, the distance between initial touch signal is L1, terminating the distance between touch signal is L2, if L1 is greater than L2 is then diminution;It is then amplification that L1, which is less than L2,.Wherein, in carrying out the calculating process such as coordinate conversion, L1 and L2 can also be utilized Calculate pantograph ratio, i.e. L1/L2, wherein the scaling multiple of image-region is square of the pantograph ratio.
Preferably, device further include: the 5th determination unit, if the cunning for the first slip signals and the second slip signals Dynamic direction is in the same direction, it is determined that treats the operation of zoom area as movement;First computing unit, for according to the first slip signals The mobile vector coordinate to zoom area is calculated with the second slip signals;Second computing unit, for will be to the top of zoom area Point coordinate adds the apex coordinate in the region after mobile vector coordinate is moved, to determine the region after movement;Wherein, it broadcasts Unit is put to be also used to draw in region after movement to the video image in zoom area.
In the present embodiment, the region of selection can also be moved, can be and moved after zooming in or out, And only part is moved without zooming in or out.In moving process, sliding finger is also needed, thus in terminal In the present embodiment, the movement to zoom area is calculated according to the first slip signals and the second slip signals for upper generation slip signals Then phasor coordinate adds the mobile vector coordinate by the apex coordinate of moving area respectively, the vertex after movement can be obtained Coordinate is drawn out video image in the corresponding region of the apex coordinate and is played out.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Obviously, the above embodiments are merely examples for clarifying the description, and does not limit the embodiments.It is right For those of ordinary skill in the art, can also make on the basis of the above description it is other it is various forms of variation or It changes.There is no necessity and possibility to exhaust all the enbodiments.And it is extended from this it is obvious variation or It changes still within the protection scope of the invention.

Claims (10)

1. a kind of method of video image processing characterized by comprising
Receive the first slip signals and the second slip signals, wherein first slip signals and the second slip signals are respectively The slip signals of two fingers of user on the touchscreen, first slip signals include the first initial touch signal and the first knot Beam touch signal, second slip signals include that the second initial touch signal and second terminate touch signal;
According to the first initial touch signal and the second initial touch signal determine video source being played on wait contract Put region;
It determines described to contract to zoom area according to the first end touch signal and the second end touch signal Target area of putting that treated;And
The video image in zoom area is plotted to the target area to play out, so as to the office of video image After portion zooms in or out processing, the broadcasting of the video image of the part does not influence the broadcasting of the other parts content of video, The broadcasting of video content in coverage goal region.
2. the method according to claim 1, wherein according at the beginning of the first initial touch signal and described second What beginning touch signal determined video source being played on includes: to zoom area
Determine that the first initial touch signal fastens corresponding first coordinate, Yi Jisuo in the resolution coordinates of the touch screen It states the second initial touch signal and fastens corresponding second coordinate in the resolution coordinates of the touch screen;
First coordinate is converted into the third coordinate on the coordinate system of the video source, and second coordinate is converted At the 4-coordinate on the coordinate system of the video source;
Using the third coordinate and the 4-coordinate as two vertex of the first rectangular area, by first rectangular area As described to zoom area.
3. according to the method described in claim 2, it is characterized in that, the video image in zoom area is plotted to institute It states target area and plays out and include:
Determine that the first end touch signal fastens corresponding Five Axis, Yi Jisuo in the resolution coordinates of the touch screen It states the second end touch signal and fastens corresponding 6th coordinate in the resolution coordinates of the touch screen;
With the Five Axis and the 6th coordinate for two vertex, the second rectangular area is determined;
The apex coordinate of first rectangular area is mapped to the apex coordinate of second rectangular area, in second square The video image of first rectangular area is drawn in shape region.
4. the method according to claim 1, wherein receive the first slip signals and the second slip signals it Afterwards, the method also includes:
The video to zoom area is determined according to the glide direction of first slip signals and second slip signals Image is amplification or reduces, wherein the sliding side of the glide direction of first slip signals and second slip signals To opposite, it is determined that reduce;The glide direction phase of the glide direction of first slip signals and second slip signals Back, it is determined that for amplification;Alternatively,
The video to zoom area is determined according to the sliding distance of first slip signals and second slip signals Image is amplification or reduces, wherein if the corresponding coordinate of the first initial touch signal and second initial touch The distance between corresponding coordinate of signal, which is greater than described first, which terminates the corresponding coordinate of touch signal and described second, terminates to touch The distance between corresponding coordinate of signal, it is determined that reduce;If the corresponding coordinate of the first initial touch signal and institute It states the distance between corresponding coordinate of the second initial touch signal and is less than the corresponding coordinate of the first end touch signal and institute State the distance between corresponding coordinate of the second end touch signal, it is determined that for amplification.
5. the method according to claim 1, wherein the method also includes:
If the glide direction of first slip signals and second slip signals is in the same direction, it is determined that described wait scale The operation in region is movement;
The mobile vector coordinate to zoom area is calculated according to first slip signals and second slip signals;
By it is described after the apex coordinate of zoom area plus the mobile vector coordinate moved after region apex coordinate, To determine the region after the movement;
It is drawn in the region after the movement described to the video image in zoom area.
6. a kind of video image processing device characterized by comprising
Receiving unit, for receiving the first slip signals and the second slip signals, wherein first slip signals and second are slided Dynamic signal is respectively the slip signals of two fingers of user on the touchscreen, and first slip signals include the first initial touch Signal and first terminates touch signal, and second slip signals include that the second initial touch signal and second terminate to touch letter Number;
First determination unit, for being broadcast according to the first initial touch signal and the second initial touch signal determination The video source put to zoom area;
Second determination unit, it is described for being determined according to the first end touch signal and the second end touch signal To the zoom area target area that zooms in and out that treated;And
Broadcast unit is played out for the video image in zoom area to be plotted to the target area, so that After zooming in or out processing to the part of video image, the broadcasting of the video image of the part does not influence other portions of video Divide the broadcasting of content, the broadcasting of the video content in coverage goal region.
7. device according to claim 6, which is characterized in that first determination unit includes:
First determining module, for determining that the first initial touch signal fastens correspondence in the resolution coordinates of the touch screen The first coordinate and the second initial touch signal the resolution coordinates of the touch screen fasten it is corresponding second sit Mark;
Conversion module, for first coordinate to be converted into the third coordinate on the coordinate system of the video source, and by institute State the 4-coordinate that the second coordinate is converted on the coordinate system of the video source;
Second determining module, for using the third coordinate and the 4-coordinate as two vertex of the first rectangular area, Using first rectangular area as described to zoom area.
8. device according to claim 7, which is characterized in that the broadcast unit includes:
Third determining module, for determining that the first end touch signal fastens correspondence in the resolution coordinates of the touch screen Five Axis and it is described second end touch signal the resolution coordinates of the touch screen fasten it is corresponding 6th sit Mark;
4th determining module, for, for two vertex, determining the second rectangle region with the Five Axis and the 6th coordinate Domain;
Mapping block, the vertex for the apex coordinate of first rectangular area to be mapped to second rectangular area are sat Mark, draws the video image of first rectangular area in second rectangular area.
9. device according to claim 6, which is characterized in that described device further include:
Third determination unit, for being believed after receiving the first slip signals and the second slip signals according to first sliding Number and the glide directions of second slip signals determine that the video image to zoom area is amplification or reduces, In, the glide direction of the glide direction of first slip signals and second slip signals is opposite, it is determined that reduce;Institute The glide direction of the glide direction and second slip signals of stating the first slip signals is opposite, it is determined that for amplification;Alternatively,
4th determination unit, for according to the determination of the sliding distance of first slip signals and second slip signals Video image to zoom area be amplification or reduce, wherein if the corresponding coordinate of the first initial touch signal and The distance between corresponding coordinate of the second initial touch signal be greater than described first terminate the corresponding coordinate of touch signal and Described second terminates the distance between corresponding coordinate of touch signal, it is determined that reduce;If the first initial touch letter The distance between number corresponding coordinate and the corresponding coordinate of the second initial touch signal, which are less than described first, to be terminated to touch letter Number corresponding coordinate and described second terminates the distance between corresponding coordinate of touch signal, it is determined that for amplification.
10. device according to claim 6, which is characterized in that described device further include:
5th determination unit, if the glide direction for first slip signals and second slip signals be it is in the same direction, Then determine that the operation to zoom area be movement;
First computing unit, it is described to zoom area for being calculated according to first slip signals and second slip signals Mobile vector coordinate;
Second computing unit, for by described after the apex coordinate of zoom area is moved plus the mobile vector coordinate Region apex coordinate, to determine the region after the movement;
Wherein, the broadcast unit is also used to draw in the region after the movement described to the video figure in zoom area Picture.
CN201610550261.XA 2016-07-13 2016-07-13 A kind of method of video image processing and device Active CN106131628B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610550261.XA CN106131628B (en) 2016-07-13 2016-07-13 A kind of method of video image processing and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610550261.XA CN106131628B (en) 2016-07-13 2016-07-13 A kind of method of video image processing and device

Publications (2)

Publication Number Publication Date
CN106131628A CN106131628A (en) 2016-11-16
CN106131628B true CN106131628B (en) 2019-06-04

Family

ID=57283260

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610550261.XA Active CN106131628B (en) 2016-07-13 2016-07-13 A kind of method of video image processing and device

Country Status (1)

Country Link
CN (1) CN106131628B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110694270A (en) * 2019-10-17 2020-01-17 腾讯科技(深圳)有限公司 Video stream display method, device and system
CN110944186B (en) * 2019-12-10 2022-02-01 杭州当虹科技股份有限公司 High-quality viewing method for local area of video
CN111652799A (en) * 2020-04-14 2020-09-11 北京奇艺世纪科技有限公司 Image processing method and device, electronic equipment and readable storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7812826B2 (en) * 2005-12-30 2010-10-12 Apple Inc. Portable electronic device with multi-touch input
US8736561B2 (en) * 2010-01-06 2014-05-27 Apple Inc. Device, method, and graphical user interface with content display modes and display rotation heuristics
US20120092381A1 (en) * 2010-10-19 2012-04-19 Microsoft Corporation Snapping User Interface Elements Based On Touch Input
US9933935B2 (en) * 2011-08-26 2018-04-03 Apple Inc. Device, method, and graphical user interface for editing videos
EP2759921B1 (en) * 2013-01-25 2020-09-23 Morpho, Inc. Image display apparatus, image displaying method and program

Also Published As

Publication number Publication date
CN106131628A (en) 2016-11-16

Similar Documents

Publication Publication Date Title
US8581938B2 (en) Information processing apparatus, information processing method and program for magnifying a screen and moving a displayed content
US9143685B2 (en) Image stabilization device, image stabilization method, and program
US8593530B2 (en) Image stabilization device, image stabilization method, and program
US20120139952A1 (en) Image transmission method, device, and computer-readable storage medium storing image transmission program
US10901587B2 (en) Widget area adjustment method and apparatus
CN106131628B (en) A kind of method of video image processing and device
AU2022258350A1 (en) Control display method and apparatus, and electronic device and storage medium
US20130314358A1 (en) Input apparatus, input method, and recording medium
CN105898523B (en) A kind of video broadcasting method and device
US8774466B2 (en) Image stabilization device, image stabilization method, and program
CN112468863A (en) Screen projection control method and device and electronic device
JP2014106980A (en) Apparatus and method for segmenting contour in image based on user interaction
US20140082539A1 (en) Computer-implemented methods and systems for multi-touch duplication and swapping interactions
US11863835B2 (en) Interaction method and apparatus, and electronic device
CN103248941B (en) A kind of method of multi-channel video source simultaneous display and device
CN102375685A (en) Display control apparatus and method of controlling the same
EP2778880A2 (en) Method for controlling display function and an electronic device thereof
US11209915B2 (en) Method and apparatus for performing display of content according to detected moving track
US20130132889A1 (en) Information processing apparatus and information processing method to achieve efficient screen scrolling
CN112954441B (en) Video editing and playing method, device, equipment and medium
CN110177295A (en) Processing method, device and the electronic equipment that subtitle crosses the border
CN111258519B (en) Screen split implementation method, device, terminal and medium
CN112073647A (en) Image zooming display method, image processing device and display system
CN109656639A (en) A kind of interface rolling motion method, apparatus, equipment and medium
CN113342230A (en) Control display method, device, equipment and medium

Legal Events

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