CN109618210B - Video picture adjusting method and device, computer equipment and readable storage medium - Google Patents

Video picture adjusting method and device, computer equipment and readable storage medium Download PDF

Info

Publication number
CN109618210B
CN109618210B CN201811323429.9A CN201811323429A CN109618210B CN 109618210 B CN109618210 B CN 109618210B CN 201811323429 A CN201811323429 A CN 201811323429A CN 109618210 B CN109618210 B CN 109618210B
Authority
CN
China
Prior art keywords
operation control
video picture
video
display interface
determining
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
CN201811323429.9A
Other languages
Chinese (zh)
Other versions
CN109618210A (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.)
Beijing Microlive Vision Technology Co Ltd
Original Assignee
Beijing Microlive Vision 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 Beijing Microlive Vision Technology Co Ltd filed Critical Beijing Microlive Vision Technology Co Ltd
Priority to CN201811323429.9A priority Critical patent/CN109618210B/en
Publication of CN109618210A publication Critical patent/CN109618210A/en
Application granted granted Critical
Publication of CN109618210B publication Critical patent/CN109618210B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • 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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/434Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream

Abstract

The utility model relates to a video picture adjusting method, which comprises the steps of detecting a display interface, judging whether the video picture and an operation control are overlapped, determining the overlapping area of the video picture and the operation control, and adjusting the display interface except zooming according to the overlapping area, so that the video picture and the operation control are not shielded. The video picture adjusting method can effectively identify the situation that the video picture and the operation control are overlapped in a display interface and adjust the overlap, so that the video picture and the operation control are not shielded, the display effect of the video picture is improved, the user experience degree is improved, and the display effect of the video picture is good.

Description

Video picture adjusting method and device, computer equipment and readable storage medium
Technical Field
The present disclosure relates to the field of image processing, and in particular, to a method and an apparatus for adjusting a video frame, a computer device, and a readable storage medium.
Background
At present, with the increasing improvement of living standard and the continuous development of video technology, video display is visible everywhere in life. At the same time, the demands of users on video display are also increasing.
The position of the video displayed in the screen can be various when the video is recorded, previewed or played. When a video is displayed, the picture frames of the video are all located in the middle of the screen. However, when the video is recorded, previewed or played, if other operations are needed, the operation control needs to be displayed at the same time. Therefore, when the video frame and the operation control are simultaneously displayed on the screen, the operation control may block part of the video interface, so that the video frame is incomplete, and the video watching effect is affected.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a video picture adjustment method, apparatus, computer device and readable storage medium for solving the problems of poor display effect and low quality and resolution of video pictures.
A method for adjusting a video picture comprises the following steps:
detecting a display interface, and judging whether a video picture and an operation control are overlapped;
if so, determining an overlapping area of the video picture and the operation control;
and according to the overlapping area, adjusting the display interface except zooming so that the video picture and the operation control are not shielded.
In one embodiment, the detecting the display interface and determining whether the video frame and the operation control are overlapped includes:
acquiring the position coordinates of the video picture;
acquiring the position coordinates of the operation control;
and judging whether the video picture and the operation control are overlapped or not according to the position coordinate of the video picture and the position coordinate of the operation control.
In one embodiment, the determining the overlapping area of the video frame and the operation control comprises:
acquiring repeated coordinates in the position coordinates of the video picture and the position coordinates of the operation control;
and determining the overlapping area of the video picture and the operation control according to the repeated coordinates.
In one embodiment, the adjusting, other than zooming, the display interface according to the overlapping area to enable the video frame and the operation control not to be occluded from each other includes:
determining the translation direction of the video picture according to the relative position of the video picture and the operation control;
determining the translation amount of the video picture according to the overlapping area;
and translating the video picture according to the translation direction and the translation amount, so that the video picture and the operation control are not shielded from each other.
In one embodiment, the direction of panning of the video frame is opposite to the relative orientation of the operational control on the video frame.
In one embodiment, the determining, according to the relative position of the video frame and the operation control, a panning direction for the video frame includes:
and determining the translation direction of the video picture according to the repeated coordinates.
In one embodiment, determining the amount of translation for the video picture based on the overlap region comprises:
and calculating the translation amount of the video picture according to the repeated coordinates.
In one embodiment, the adjusting, other than zooming, the display interface according to the overlapping area to enable the video frame and the operation control not to be occluded from each other includes:
and transparently displaying the overlapping area in the operation control.
In one embodiment, according to the overlap region, performing adjustment, other than zooming, on the display interface to make the video frame and the operation control not be occluded with each other includes:
and replacing the operation control by a preset replacement control through a preset switching mode.
According to the video picture adjusting method provided by the embodiment of the disclosure, whether a video picture overlaps an operation control is judged by detecting a display interface, then an overlapping area of the video picture and the operation control is determined, and according to the overlapping area, adjustment except zooming is performed on the display interface, so that the video picture and the operation control are not shielded from each other. Compared with the prior art, the video picture adjusting method provided by the embodiment of the disclosure adjusts the display interface except for zooming, the size of the video picture is not changed, and the quality, the resolution and the like of the video picture are not changed, so that the video picture provided by the video picture adjusting method provided by the embodiment of the disclosure has a good display effect.
A video picture adjustment apparatus comprising:
the judging module is used for detecting the display interface and judging whether the video picture and the operation control are overlapped;
the determining module is used for determining an overlapping area of the video picture and the operation control;
and the adjusting module is used for adjusting the display interface except for zooming according to the overlapping area, so that the video picture and the operation control are not shielded.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the method as claimed above when the processor executes the computer program.
A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method as set forth above.
The video picture adjusting device, the computer device and the computer readable storage medium provided by the embodiment of the disclosure can judge whether a video picture and an operation control are overlapped by detecting a display interface, then determine an overlapping area of the video picture and the operation control, and adjust the display interface except for zooming according to the overlapping area, so that the video picture and the operation control are not shielded from each other. The video picture adjusting device, the computer device, and the computer-readable storage medium provided by the embodiment of the disclosure perform adjustment, other than scaling, on the display interface, the size of the video picture is not changed, and the quality, resolution, and the like of the video picture are not changed, so that the video picture adjusting device, the computer device, and the computer-readable storage medium provided by the embodiment of the disclosure have a good display effect.
Drawings
Fig. 1 is a diagram of an application scenario provided by an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of a video frame adjustment method according to an embodiment of the disclosure;
fig. 3 is a schematic flow chart illustrating a process of detecting a display interface and determining whether a video frame and an operation control overlap with each other according to an embodiment of the present disclosure;
fig. 4 is an application scene diagram of a video picture adjustment method according to an embodiment of the present disclosure;
fig. 5 is a schematic flow chart illustrating a process of determining an overlapping area between the video frame and the operation control according to an embodiment of the present disclosure;
fig. 6 is a schematic flow chart illustrating a process of adjusting the display interface except for zooming according to the overlap area so that the video frame and the operation control are not occluded with each other according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a video frame adjustment apparatus according to an embodiment of the disclosure;
fig. 8 is a schematic structural diagram of a determining module according to an embodiment of the present disclosure;
FIG. 9 is a schematic diagram of a module structure for determining according to an embodiment of the present disclosure;
fig. 10 is a schematic structural diagram of an adjusting module according to an embodiment of the present disclosure;
fig. 11 is a schematic structural diagram of an adjusting module according to an embodiment of the present disclosure;
fig. 12 is a schematic structural diagram of an adjusting module according to an embodiment of the present disclosure.
Detailed Description
The video picture adjusting method provided by the present disclosure may be applied to a computer device shown in fig. 1, which includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing video files and the like in the embodiments of the present disclosure. The network interface of the computer device is used for communicating with an external terminal through a network connection. Optionally, the computer device may be a server, may be a PC, may also be a personal digital assistant, may also be other terminal devices, such as a PAD, a mobile phone, and the like, and may also be a cloud or a remote server, and the specific form of the computer device is not limited in the embodiment of the present disclosure.
In order to make the objects, technical solutions and advantages of the present disclosure more clearly understood, the technical solutions in the embodiments of the present disclosure are further described in detail by the following embodiments in combination with the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the disclosure and are not limiting of the application.
Referring to fig. 2, an embodiment of the present disclosure provides a method for adjusting a video frame, including:
and S10, detecting the display interface and judging whether the video picture and the operation control are overlapped.
The display interface refers to the content displayed on the screen of the computer equipment. The display interface may include options, menus and the like for user operation, and may also include display of the running state of the application program. When the computer device runs a video application program, the display interface display content can comprise the video frame and the operation control. The video picture refers to a picture displayed during video recording, previewing or playing. The operation control means an option or a menu for acquiring and executing a user command. For example, a video recording interface, the operating controls may include a start recording option, a stop recording option, a save option, an insert music option, and so on. The operation control can also comprise a progress bar and the like for displaying the video playing progress and state.
According to different settings of the application program, the display positions of the video pictures on the display interface can be different. The video picture can be displayed on the display interface in the middle, can be displayed on the display interface in an upper or lower mode, and can be displayed on the display interface in a left or right mode. And the display position and the size of the operation control are different according to different running stages of the application program. Therefore, the relative positions of the video screen and the operation control are different. The video frame and the operation control may overlap. For example, when the video frame is longitudinally full of the display interface, the operation control is located below the operation interface. The operation control is located in a picture frame of the video picture, and the operation control is overlapped with the video picture.
The computer equipment detects the size of a video picture of the display interface, the display position of the video picture, the size of the operation control and the display position of the operation control, and judges whether the video picture and the operation control are overlapped or not by combining the size of the display interface and the like. Therefore, whether the operation control blocks the video picture or not or whether the video picture blocks the operation control is judged. The method for judging whether the video frame and the operation control are overlapped can be selected according to different application programs, different specific requirements and the like, and the disclosure is not limited at all.
And S20, if yes, determining the overlapping area of the video picture and the operation control.
According to the judgment result of S10, if the video frame and the operation control overlap, the computer device determines an overlapping area of the video frame and the operation control. The overlapping area of the video frame and the operation control can be characterized by coordinates, or can be characterized by the relative position of the video frame and the operation control or the area of the overlapping area between the video frame and the operation control.
And S30, according to the overlapping area, adjusting the display interface except zooming to ensure that the video picture and the operation control are not blocked.
The adjustment of the display interface except for zooming refers to an adjustment method for not reducing or enlarging the sizes of the video picture and the operation control. The adjustment other than zooming may be position adjustment, adjustment of a display method, or any other adjustment that does not zoom in or out on the display interface and enables the video frame and the operation control not to be shielded from each other. The adjustment amount of the adjustment of the display interface other than the zoom may be determined according to the size and the position of the overlapping area determined in S20. And the computer equipment eliminates the overlapping of the operation control and the video picture through adjustment, so that the video picture and the operation control are not shielded. The adjusted video picture is not influenced by the operation control, the display is complete, and the playing effect of the video is improved.
In this embodiment, a display interface is detected to determine whether a video frame and an operation control overlap, an overlap region of the video frame and the operation control is determined, and an adjustment other than zooming is performed on the display interface according to the overlap region, so that the video frame and the operation control are not shielded from each other. The video picture adjusting method provided by the embodiment of the disclosure can effectively identify the situation that the video picture and the operation control are overlapped in the display interface, and adjust the overlap, so that the video picture and the operation control are not shielded from each other, the display effect of the video picture is improved, and the user experience is improved.
In addition, the video picture adjusting method provided by this embodiment adjusts the display interface except for zooming, and the size of the video picture is not changed, and the quality, resolution, and the like of the video picture are not changed, so that the video picture provided by the video picture adjusting method provided by this embodiment has a good display effect.
Referring to fig. 3 and 4, in an embodiment, the step S10 of detecting the display interface and determining whether there is an overlap between the video frame and the operation control includes:
and S110, acquiring the position coordinates of the video picture.
And the computer equipment detects the display interface and acquires the position coordinates of the video picture. The computer device may acquire only the position coordinates of the video screen frame of the video screen, or may acquire the position coordinates of all the points included in the video screen. The position coordinates of the video pictures are used for representing the size, the shape, the position on the display interface and the like of the video pictures.
And S120, acquiring the position coordinates of the operation control.
And the computer equipment detects the display interface and acquires the position coordinates of the operation control. The computer device may acquire only the position coordinates of the operation control box. The operation control box refers to a display box of the operation control. The computer device may also obtain the position coordinates of all points included in the operation control. The position coordinates of the operation control are used for representing the size, the shape, the position on the display interface and the like of the operation control.
And S130, judging whether the video picture and the operation control are overlapped or not according to the position coordinate of the video picture and the position coordinate of the operation control.
If the position coordinates of all the points included in the video picture are obtained in S110 and the position coordinates of all the points included in the operation control are obtained in S120, the computer device determines whether there is a repeated coordinate in the position coordinates of all the points included in the video picture and the position coordinates of all the points included in the operation control. If so, indicating that the video picture and the operation control are overlapped, and if not, indicating that the video picture and the operation control are not overlapped. For example, assume that there exists a set of repeated coordinates in the position coordinates of the video frame and the operation control: (10, 5), (11, 5), (12, 5), (13, 5), (14, 5), (15, 5), it indicates that there is an overlap between the operation control and the video frame.
If only the position coordinates of the video screen frame are acquired in S110 and only the position coordinates of the operation control frame are acquired in S120, the computer device calculates the size and the position of the video screen frame according to the position coordinates of the video screen frame. And the computer equipment calculates the size and the position of the operation control box according to the position coordinates of the operation control box. And the computer equipment judges whether the video picture and the operation control are overlapped or not according to the sizes and the positions of the video picture frame and the operation control frame and the size of a display interface frame of the display interface. For example, assume that the video frame has a length L1 of 8cm and a height H1 of 16cm, which is determined according to the position coordinates of the video frame, and is centered on the display interface. And judging that the length L2 of the operation control box is 6cm and the height H2 of the operation control box is 4cm according to the position coordinates of the operation control box, and the operation control box is positioned below the display interface. The display interface frame size is: the length L is 8cm and the height H is 19 cm. Then, since the sum of the height of the video screen frame and the height of the operation control is greater than the height of the display interface frame, the video screen and the operation control overlap in the height direction.
It should be noted that the method for calculating and determining whether the video frame and the operation control overlap is not limited to the method listed in this disclosure, and other algorithms may be selected according to actual needs as long as it can be determined whether the video frame and the operation control overlap.
In this embodiment, by obtaining the position coordinates of the video frame and the position coordinates of the operation control, and then determining whether the video frame and the operation control overlap or not according to the position coordinates of the video frame and the position coordinates of the operation control, the determination method is simple, the determination result is accurate, and the operation speed and the adjustment quality of video frame adjustment are improved.
Referring to fig. 5, in an embodiment, the determining the overlapping area of the video frame and the operation control at S20 includes:
s210, acquiring repeated coordinates in the position coordinates of the video frame and the position coordinates of the operation control.
And the computer equipment compares the position coordinates according to the video picture with the position coordinates of the operation control and screens out repeated coordinates. And the repeated coordinates in the position coordinates of the video picture and the position coordinates of the operation control represent the position, the size, the shape and the like of the overlapping area of the video picture and the operation control.
S220, determining the overlapping area of the video picture and the operation control according to the repeated coordinates.
And calculating the size of the overlapping area, the shape of the overlapping area, the position of the overlapping area on the display interface and the like according to the repeated coordinates in the position coordinates of the video frame and the position coordinates of the operation control acquired in the step S210.
In this embodiment, the overlapping area between the video frame and the operation control is determined by obtaining a repetition coordinate in the position coordinates of the video frame and the position coordinates of the operation control, and according to the repetition coordinate. The video picture adjusting method provided by the embodiment can accurately and quickly determine the overlapping area, and improves the operation speed and the adjusting quality of video picture adjustment.
Referring to fig. 6, in an embodiment, the step S30, in which the adjusting, other than zooming, of the display interface according to the overlapping area to enable the video frame and the operation control not to be occluded with each other includes:
s310, determining the translation direction of the video picture according to the relative position of the video picture and the operation control.
In one embodiment, in S310, the panning direction of the video frame is opposite to the relative orientation of the operation control in the video frame.
It should be noted that the directions "up", "down", "left", "right", and the like used for describing the positions of the video frame and the operation control are all placed right on the display interface, and the observer or the user faces the display interface and is defined by taking the symmetry line of the display interface as a boundary. The methods and processes described in this example are illustrative of the present method only and are not limiting of the present method.
If the overlapping area is located below the display interface and the operation control is located below the video picture, the translation direction is up;
if the overlapping area is located above the display interface and the operation control is located above the video picture, the translation direction is downward;
if the overlapping area is located on the left side of the display interface and the operation control is located on the left side of the video picture, the translation direction is right;
and if the overlapping area is positioned on the right side of the display interface and the operation control is positioned on the right side of the video picture, the translation direction is left.
S320, determining the translation amount of the video picture according to the overlapping area.
The amount of translation may include a distance or area that the video frame moves. And calculating and determining the translation amount of the video picture according to the size of the overlapping area and the position of the overlapping area on the display interface. For example, if the overlap area is located below the display interface, and the length of the overlap area is 8cm and the height of the overlap area is 2cm, the translation amount is 2 cm.
S330, translating the video picture according to the translation direction and the translation amount, so that the video picture and the operation control are not shielded.
According to the translation direction determined in S310 and the translation amount determined in S320, the computer device translates the video picture by the translation amount distance along the translation direction to eliminate the occlusion of the video picture and the operation control.
In this embodiment, a translation direction of the video picture is determined according to the relative position of the video picture and the operation control, a translation amount of the video picture is determined according to the overlap region, and then the video picture is translated according to the translation direction and the translation amount, so that the video picture and the operation control are not shielded from each other. The video picture adjusting method provided by the embodiment eliminates the occlusion by translating the video picture, has a simple operation method, and improves the adjusting speed. Meanwhile, the method provided by the embodiment can accurately calculate the translation direction and the translation amount, and translate the video picture according to the translation direction and the translation amount, so that the accuracy of video picture adjustment is improved.
In one embodiment, the determining, according to the relative position of the video frame and the operation control, a panning direction for the video frame S310 includes:
s311, determining the translation direction of the video picture according to the repeated coordinates.
The repeated coordinates characterize the location, size, shape, etc. of the overlapping region. Thus, the translation direction can be determined from the repeated coordinates. For example, assume that the repetitive coordinates of the operation control and the video screen are (10, 3), (11, 3), (12, 3), (13, 3), (14, 3), (15, 3), (10, 4), (11, 4), (12, 4), (13, 4), (14, 4), (15, 4), (10, 5), (11, 5), (12, 5), (13, 5), (14, 5), (15, 5). As can be seen from the repeated coordinates, the repeated area is located below the display interface, and the operation control is located below the video frame, so that the panning direction is upward.
In one embodiment, the determining the amount of translation of the video picture according to the overlap region S320 includes:
s321, calculating the translation amount of the video picture according to the repeated coordinates.
As an example in the above embodiment, the translation amount is determined to be 3 according to the above repeated coordinates.
In this embodiment, the translation direction and the translation amount of the video picture can be accurately calculated by the repeated coordinates of the overlapping area, so that the accuracy of adjusting the video picture is improved.
In one embodiment, the step S30, the adjusting, other than zooming, the display interface according to the overlapping area to enable the video frame and the operation control not to be occluded with each other includes:
s340, transparently displaying the overlapping area in the operation control.
For the overlapped part of the operation control and the video picture, in addition to the method described above, the position of the operation control corresponding to the overlapped area can be transparently displayed, so that the video picture can be normally displayed, and the occlusion is eliminated. The method of transparent display is not specifically limited, as long as transparent display can be achieved.
In one embodiment, the step S30, the adjusting, other than zooming, the display interface according to the overlapping area to enable the video frame and the operation control not to be occluded with each other includes:
and S350, replacing the operation control with a preset replacement control in a preset switching mode.
The replacement control may be a control or an option that is smaller in size than the operational control. And replacing the operation control by the replacement control, so that the replacement control does not overlap with the video picture, and the occlusion can be eliminated. The size and the shape of the replacement control can be set according to actual requirements, shielding can be eliminated, and the switching mode of the replacement control and the operation control can be selected according to the actual requirements. In one embodiment, the replacement control may be a shortcut button, and the shortcut button is not occluded from the video frame. The shortcut button and the operation control can be switched with each other. And when the operation is not needed, the shortcut button is displayed, and the operation control is hidden. When the operation control needs to be operated, a command can be input to the shortcut button in an interactive mode such as clicking, touching or voice input, and the operation control is called. In the embodiment, the preset replacement control is used for replacing the operation control according to the preset switching mode, so that the shielding of the video picture and the operation control is eliminated, the operation mode is flexible, and the human-computer interaction intelligence is improved.
It should be understood that although the steps in the flowcharts of fig. 2, 3, 5, and 6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2, 3, 5, and 6 may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least some of the sub-steps or stages of other steps.
Referring to fig. 7, an embodiment of the disclosure provides a video frame adjusting apparatus 1000, which includes a determining module 100, a determining module 200, and an adjusting module 300. The judging module 100 is configured to detect a display interface, and judge whether a video frame and an operation control overlap. The determining module 200 is configured to determine an overlapping area of the video frame and the operation control. The adjusting module 300 is configured to perform adjustment, other than zooming, on the display interface according to the overlapping area, so that the video frame and the operation control are not occluded with each other.
The video frame adjusting apparatus provided in this embodiment may implement the method embodiments described above, and the implementation principle and the technical effect are similar, which are not described herein again.
Referring to fig. 8, in an embodiment, the determining module 100 includes a first obtaining unit 110, a second obtaining unit 120, and an overlap determining unit 130. The first obtaining unit 110 is configured to obtain position coordinates of the video frame. The second obtaining unit 120 is configured to obtain the position coordinates of the operation control. The overlap determining unit 130 is configured to determine whether there is an overlap between the video frame and the operation control according to the position coordinate of the video frame and the position coordinate of the operation control.
Referring to fig. 9, in one embodiment, the determining module 200 includes a repeated coordinate obtaining unit 210 and a repeated region determining unit 220. The repeated coordinate acquiring unit 210 is configured to acquire a repeated coordinate of the position coordinates of the video frame and the position coordinates of the operation space. The repeated region determining unit 220 is configured to determine the overlapping region of the video frame and the operation control according to the repeated coordinates.
Referring to fig. 10, in one embodiment, the adjusting module 300 includes a translation direction determining unit 310, a translation amount determining unit 320, and a translating unit 330. The panning direction determining unit 310 is configured to determine a panning direction for the video picture according to a relative position of the video picture and the operation control. The translation amount determining unit 320 is configured to determine a translation amount for the video picture according to the overlap region. The translation unit 330 is configured to translate the video frame according to the translation direction and the translation amount, so that the video frame and the operation control are not occluded with each other.
In one embodiment, the direction of panning of the video frame is opposite to the relative orientation of the operational control in the video frame.
In an embodiment, the panning direction determining unit 310 is specifically configured to determine a panning direction for the video picture according to the repetition coordinate.
In an embodiment, the translation amount determining unit 320 is specifically configured to calculate a translation amount of the video picture according to the repetition coordinate.
Referring to fig. 11, in an embodiment, the adjusting module 300 further includes a transparent display unit 340. The transparent display unit 340 is configured to transparently display the overlapping area in the operation control.
Referring to fig. 12, in an embodiment, the adjusting module 300 further includes a replacing unit 350. The replacing unit 350 is configured to replace the operation control with a preset replacing control through a preset switching manner.
For specific limitations of the video picture adjusting apparatus, reference may be made to the above limitations of the video picture adjusting method, which are not described herein again. The modules in the video picture adjusting device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
One embodiment of the present disclosure provides a computer device comprising a memory and a processor, the memory storing a computer program. The processor, when executing the computer program, implements the steps of:
and S10, detecting the display interface and judging whether the video picture and the operation control are overlapped.
And S20, if yes, determining the overlapping area of the video picture and the operation control.
And S30, according to the overlapping area, adjusting the display interface except zooming to ensure that the video picture and the operation control are not blocked.
The implementation principle and technical effect of the computer device provided by the above embodiment are similar to those of the above method embodiment, and are not described herein again.
One embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon. The computer program when executed by a processor implementing the steps of:
and S10, detecting the display interface and judging whether the video picture and the operation control are overlapped.
And S20, if yes, determining the overlapping area of the video picture and the operation control.
And S30, according to the overlapping area, adjusting the display interface except zooming to ensure that the video picture and the operation control are not blocked.
The implementation principle and technical effect of the computer-readable storage medium provided by the above embodiments are similar to those of the above method embodiments, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided by the present disclosure may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present disclosure, and the description thereof is more specific and detailed, but not construed as limiting the claims. It should be noted that, for those skilled in the art, various changes and modifications can be made without departing from the concept of the present disclosure, and these changes and modifications are all within the scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the appended claims.

Claims (11)

1. A method for adjusting a video frame, comprising:
detecting a display interface, and judging whether a video picture and an operation control are overlapped;
if so, determining an overlapping area of the video picture and the operation control;
according to the overlapping area, the display interface is adjusted except for zooming, so that the video picture and the operation control are not shielded from each other, and the specific adjustment method comprises the following steps: replacing the operation control with a preset replacement control, wherein the size of the replacement control is smaller than that of the operation control, the replacement control is not overlapped with the video picture, the replacement control is a shortcut button, the shortcut button is not shielded from the video picture, the shortcut button and the operation control are switched with each other, when the operation is not needed, the shortcut button is displayed, and the operation control is hidden; when the operation control needs to be operated, the operation control is called out by inputting a command to the shortcut button.
2. The method according to claim 1, wherein the detecting the display interface and determining whether the video frame and the operation control overlap each other comprises:
acquiring the position coordinates of the video picture;
acquiring the position coordinates of the operation control;
and judging whether the video picture and the operation control are overlapped or not according to the position coordinate of the video picture and the position coordinate of the operation control.
3. The method of claim 2, wherein the determining the overlap region of the video frame and the operation control comprises:
acquiring repeated coordinates in the position coordinates of the video picture and the position coordinates of the operation control;
and determining the overlapping area of the video picture and the operation control according to the repeated coordinates.
4. The method according to claim 3, wherein the adjusting the display interface according to the overlap area, except for zooming, so that the video frame and the operation control are not occluded with each other comprises:
determining the translation direction of the video picture according to the relative position of the video picture and the operation control;
determining the translation amount of the video picture according to the overlapping area;
and translating the video picture according to the translation direction and the translation amount, so that the video picture and the operation control are not shielded from each other.
5. The method of claim 4, wherein the panning direction of the video frame is opposite to the relative orientation of the operational control in the video frame.
6. The method of claim 4, wherein determining the panning direction for the video frame based on the relative position of the video frame and the operation control comprises:
and determining the translation direction of the video picture according to the repeated coordinates.
7. The method of claim 4, wherein determining the amount of translation for the video picture based on the overlap region comprises:
and calculating the translation amount of the video picture according to the repeated coordinates.
8. The method according to claim 1, wherein the adjusting the display interface according to the overlapping area except for zooming so that the video frame and the operation control are not occluded with each other comprises:
and transparently displaying the overlapping area in the operation control.
9. A video picture adjustment apparatus, comprising:
the judging module is used for detecting the display interface and judging whether the video picture and the operation control are overlapped;
the determining module is used for determining an overlapping area of the video picture and the operation control;
an adjusting module, configured to perform adjustment, other than zooming, on the display interface according to the overlapping area, so that the video frame and the operation control are not occluded with each other, where the specific adjusting method includes: replacing the operation control with a preset replacement control, wherein the size of the replacement control is smaller than that of the operation control, the replacement control is not overlapped with the video picture, the replacement control is a shortcut button, the shortcut button is not shielded from the video picture, the shortcut button and the operation control are switched with each other, when the operation is not needed, the shortcut button is displayed, and the operation control is hidden; when the operation control needs to be operated, the operation control is called out by inputting a command to the shortcut button.
10. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 8 when executing the computer program.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.
CN201811323429.9A 2018-11-08 2018-11-08 Video picture adjusting method and device, computer equipment and readable storage medium Active CN109618210B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811323429.9A CN109618210B (en) 2018-11-08 2018-11-08 Video picture adjusting method and device, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811323429.9A CN109618210B (en) 2018-11-08 2018-11-08 Video picture adjusting method and device, computer equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN109618210A CN109618210A (en) 2019-04-12
CN109618210B true CN109618210B (en) 2022-03-15

Family

ID=66003138

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811323429.9A Active CN109618210B (en) 2018-11-08 2018-11-08 Video picture adjusting method and device, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN109618210B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113170224A (en) * 2019-04-30 2021-07-23 华为技术有限公司 Video processing method and device
CN110740371A (en) * 2019-09-12 2020-01-31 晶晨半导体(深圳)有限公司 Video preview window system of intelligent televisions
CN111104699A (en) * 2019-11-29 2020-05-05 苏宁云计算有限公司 Collision driving method and system for graphic control
CN112256169B (en) * 2020-10-14 2021-08-10 北京达佳互联信息技术有限公司 Content display method and device, electronic equipment and storage medium
CN112162672A (en) * 2020-10-19 2021-01-01 腾讯科技(深圳)有限公司 Information flow display processing method and device, electronic equipment and storage medium
CN112423086A (en) * 2020-11-10 2021-02-26 北京达佳互联信息技术有限公司 Video display method and device, electronic equipment and storage medium
CN112800273A (en) * 2021-02-05 2021-05-14 北京字节跳动网络技术有限公司 Page content display method and terminal equipment
CN115396718B (en) * 2022-08-30 2024-01-30 中国银行股份有限公司 Video display control method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1893590A (en) * 2005-05-28 2007-01-10 三星电子株式会社 Display system, display apparatus, and method of controlling video source and display apparatus
CN101622593A (en) * 2007-02-28 2010-01-06 诺基亚公司 Multi-state unified pie user interface
CN101902595A (en) * 2009-05-29 2010-12-01 Lg电子株式会社 Image display device and control method thereof
CN102419690A (en) * 2006-09-11 2012-04-18 苹果公司 Touch actuation controller for multi-state media presentation
CN105872710A (en) * 2016-03-31 2016-08-17 乐视控股(北京)有限公司 Video playing method, device and client
CN107302724A (en) * 2016-04-14 2017-10-27 北京搜狗科技发展有限公司 A kind of video playing control method, device and electronic equipment
CN107920271A (en) * 2017-11-03 2018-04-17 天脉聚源(北京)教育科技有限公司 The method and device that a kind of play area for handling video overlaps

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7992103B2 (en) * 2004-04-26 2011-08-02 Microsoft Corporation Scaling icons for representing files
TW201106250A (en) * 2009-08-13 2011-02-16 Wistron Corp Electronic device and method for simultaneously displaying widget and video signal in display device
JP5411049B2 (en) * 2010-04-07 2014-02-12 オムロン株式会社 Image processing device
JP5308509B2 (en) * 2011-04-15 2013-10-09 シャープ株式会社 Menu screen display control method
US9081498B2 (en) * 2012-02-24 2015-07-14 Blackberry Limited Method and apparatus for adjusting a user interface to reduce obscuration
CN104754179B (en) * 2013-12-31 2017-11-07 澜起科技(上海)有限公司 The fully-automated synthesis method and system of static nature information in dynamic image
CN106775182A (en) * 2015-11-19 2017-05-31 北京奇虎科技有限公司 A kind for the treatment of method and apparatus of suspension control
CN106648324B (en) * 2016-12-28 2020-11-10 合肥恒研智能科技有限公司 Hidden icon control method and device and terminal
CN106873855A (en) * 2017-02-15 2017-06-20 努比亚技术有限公司 A kind of suspension icon control method, device and terminal
CN107092421B (en) * 2017-04-12 2020-03-27 广州三星通信技术研究有限公司 Method and device for displaying control of application

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1893590A (en) * 2005-05-28 2007-01-10 三星电子株式会社 Display system, display apparatus, and method of controlling video source and display apparatus
CN102419690A (en) * 2006-09-11 2012-04-18 苹果公司 Touch actuation controller for multi-state media presentation
CN101622593A (en) * 2007-02-28 2010-01-06 诺基亚公司 Multi-state unified pie user interface
CN101902595A (en) * 2009-05-29 2010-12-01 Lg电子株式会社 Image display device and control method thereof
CN105872710A (en) * 2016-03-31 2016-08-17 乐视控股(北京)有限公司 Video playing method, device and client
CN107302724A (en) * 2016-04-14 2017-10-27 北京搜狗科技发展有限公司 A kind of video playing control method, device and electronic equipment
CN107920271A (en) * 2017-11-03 2018-04-17 天脉聚源(北京)教育科技有限公司 The method and device that a kind of play area for handling video overlaps

Also Published As

Publication number Publication date
CN109618210A (en) 2019-04-12

Similar Documents

Publication Publication Date Title
CN109618210B (en) Video picture adjusting method and device, computer equipment and readable storage medium
WO2017063324A1 (en) Window displaying method and mobile terminal
KR101893275B1 (en) Method and apparatus for zooming in on selected area of preview interface
KR101750060B1 (en) Method and program for making reactive video
WO2022110819A1 (en) Video switching method and apparatus
CN111669507A (en) Photographing method and device and electronic equipment
WO2018010440A1 (en) Projection picture adjusting method and apparatus, and projection terminal
WO2021243788A1 (en) Screenshot method and apparatus
CN112019891B (en) Multimedia content display method and device, terminal and storage medium
TW201413641A (en) Apparatus and method capable of changing picture
US9509733B2 (en) Program, communication apparatus and control method
CN110443772B (en) Picture processing method and device, computer equipment and storage medium
TW201413640A (en) Apparatus and method capable of changing picture
CN113282262B (en) Control method and device for projection display picture, mobile terminal and storage medium
CN110248147B (en) Image display method and device
CN112463084A (en) Split screen display method and device, terminal equipment and computer readable storage medium
CN113918070A (en) Synchronous display method and device, readable storage medium and electronic equipment
CN106126057B (en) Screen capture method and device and terminal equipment
CN110619683B (en) Three-dimensional model adjustment method, device, terminal equipment and storage medium
WO2018054097A1 (en) Self-portrait line-of-sight alignment method, device, and terminal
CN109766530B (en) Method and device for generating chart frame, storage medium and electronic equipment
WO2016188199A1 (en) Method and device for clipping pictures
CN114612584B (en) Image processing method, device, equipment and storage medium
CN115657893A (en) Display control method, display control device and intelligent equipment
CN113422967B (en) Screen projection display control method and device, terminal equipment and storage medium

Legal Events

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