CN105635627A - Method and apparatus for adjusting focusing point of camera in video conversation - Google Patents
Method and apparatus for adjusting focusing point of camera in video conversation Download PDFInfo
- Publication number
- CN105635627A CN105635627A CN201511023810.XA CN201511023810A CN105635627A CN 105635627 A CN105635627 A CN 105635627A CN 201511023810 A CN201511023810 A CN 201511023810A CN 105635627 A CN105635627 A CN 105635627A
- Authority
- CN
- China
- Prior art keywords
- terminal
- focus
- focusing
- video image
- request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 54
- 230000004044 response Effects 0.000 claims abstract description 79
- 238000007493 shaping process Methods 0.000 claims description 35
- 230000009471 action Effects 0.000 claims description 13
- 238000001514 detection method Methods 0.000 claims description 6
- 230000008569 process Effects 0.000 abstract description 9
- 238000010586 diagram Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 8
- 238000004590 computer program Methods 0.000 description 7
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/14—Systems for two-way working
- H04N7/141—Systems for two-way working between two video terminals, e.g. videophone
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/67—Focus control based on electronic image sensor signals
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention provides a method and apparatus for adjusting a focusing point of a camera in video conversation. The method comprises: when a first terminal receives a first video image collected by a second terminal camera based on a first focusing point, a first request for adjusting a focusing point of the second terminal camera into a second focusing point is sent to a second terminal; and the first terminal receives a first response sent by the second terminal, wherein the first response includes a second video image being a video image collected by the second terminal camera based on the second focusing point. According to an effective scheme provided by the embodiment of the invention, during the video conversation process, the first terminal user can control the second terminal device to adjust the focusing point of the camera according to the demand, thereby obtaining a clear image of a part focused by the user. The method is simple and flexible; various regions of interest can be selected at any time; and thus the video conversation experience of the user can be improved substantially.
Description
Technical Field
The invention belongs to the technical field of video communication, and particularly relates to a method and a device for adjusting a focus of a camera in video call.
Background
At present, in a video call system, a camera is usually focused by manually setting a focal length in advance, or a full-automatic focusing mode is adopted to take an image center position as an in-focus point, that is, the in-focus point is fixed at the image center position, so as to provide a clearer image to an opposite user as much as possible. However, in some application scenarios, a user may want to carefully view the content of a local area in the opposite side picture at any time, but the area may be just not at the current focus of the camera, so the image content is blurred, but since the user is at a far end, the user cannot conveniently intervene in the opposite side user's focus, in this case, some important information may be missed.
A typical example is that when a video call is made in a business or conference, a far-end user often speaks content on a blackboard or a projector behind the user, and because the setting of the focus by the camera is fixed, the user watching the video locally often has difficulty in clearly seeing the content on the blackboard or the projector, and at this time, if the focus of the camera can be flexibly switched between a speaker and the blackboard or the projector, the user experience can be greatly improved.
Disclosure of Invention
In order to solve the problem that the focus of a camera cannot be flexibly adjusted in the video call process in the prior art, embodiments of the present invention are expected to provide a method and an apparatus for adjusting the focus of the camera in the video call.
The embodiment of the invention provides a method for adjusting a focus of a camera in video call, which comprises the following steps:
when the first terminal receives a first video image acquired by the second terminal camera according to the first focusing point, sending a first request for adjusting the focusing point of the second terminal camera to a second focusing point to the second terminal;
the first terminal receives a first response sent by a second terminal, wherein the first response comprises: and the second video image is a video image acquired by the second terminal camera according to the second focus.
Preferably, the first request includes: a second pair of focus position parameters, the second pair of focus position parameters comprising: the relative coordinate value of the second pair of focuses and the side length of the focusing area.
Preferably, before the sending of the first request for adjusting the focus of the camera of the second terminal to the second focus to the second terminal, the method further includes:
and when the first terminal detects the focusing action, determining a second focus position, and determining a second focus position parameter according to the second focus position.
Preferably, the generating a second pair of focus position parameters according to a second pair of focus positions comprises:
determining relative coordinate values (x1, y1) of the second pair of focal points P by:
x1=(a×1.0÷w)×100;
y1=(b×1.0÷H)×100;
wherein x1 is the abscissa value of the second pair of focal points P, and y1 is the ordinate value of the second pair of focal points P; w is the width value of the video image in the first terminal, and H is the height value of the video image in the first terminal; a is the horizontal distance of the point P relative to the upper left corner of the video image; b is the vertical distance of the point P relative to the upper left corner of the video image; wherein the unit of W, H, a and b is pixel;
determining the focusing area side length by the following method:
determining a square area which takes the P point as a center and has a side length of L pixels with a preset length as a focusing area;
and determining the preset length L as the side length of the focusing area.
Preferably, the first request further includes a preset length shaping sequence, and the first response sent by the second terminal includes the preset length shaping sequence.
The embodiment of the invention also discloses a method for adjusting the focus of the camera in the video call, which comprises the following steps:
when the second terminal sends a first video image collected according to the first focusing point to the first terminal, receiving a first request sent by the first terminal and used for adjusting the focusing point of a camera of the second terminal into a second focusing point;
the second terminal adjusts the focusing point of the camera according to a first request sent by the first terminal;
the second terminal returns a first response to the first terminal, wherein the first response comprises: and the second video image is a video image acquired by the second terminal camera according to the second focus.
Preferably, the first request includes: a second pair of focus position parameters, the second pair of focus position parameters comprising: the relative coordinate values (x1, y1) of the second pair of focal points P on the first terminal and the focusing area side length L.
Preferably, the adjusting the focus of the camera by the second terminal according to the first request sent by the first terminal includes:
the second terminal determines the relative coordinate value of the local focus and the focusing area according to the second focus position parameter in the first request;
and focusing by the second terminal camera according to the relative coordinate value of the local focusing point and the focusing area.
Preferably, the second terminal determines a relative coordinate value (x2, y2) of the local focus point Q according to the second pair of focus point location parameters in the first request, including:
x2=x1×1.0×M;
y2=y1×1.0×N;
wherein M is the width value of the video image in the second terminal, and N is the height value of the video image in the second terminal;
the second terminal determines a focusing area of the local focusing point Q according to the second focusing point position parameter in the first request, including:
and determining a square area with the point Q as the center and the side length of L pixels as a focusing area of the local focusing point Q.
Preferably, the first request further includes a preset length shaping sequence, and the first response sent by the second terminal includes the preset length shaping sequence.
The embodiment of the invention provides a device for adjusting the focus of a camera in video call, which comprises: the system comprises a video receiving module, a request sending module and a response receiving module; wherein,
the video receiving module is used for receiving a first video image collected by the second terminal camera according to the first focus;
the request sending module is used for sending a first request for adjusting the focus of the camera of the second terminal to a second focus to the second terminal when the video receiving module receives the first video image;
the response receiving module is configured to receive a first response sent by a second terminal, where the first response includes: and the second video image is a video image acquired by the second terminal camera according to the second focus.
Preferably, the first request includes: a second pair of focus position parameters, the second pair of focus position parameters comprising: the relative coordinate value of the second pair of focuses and the side length of the focusing area.
Preferably, the apparatus further comprises: the device comprises a detection module and a determination module; wherein,
the detection module is used for detecting focusing action before the request sending module sends a first request for adjusting the focus of the camera of the second terminal to a second focus to the second terminal;
the determining module is used for determining a second focus position when the focusing action is detected by the detecting module, and is also used for determining a second focus position parameter according to the second focus position.
Preferably, the determining module is configured to determine the relative coordinate values (x1, y1) of the second pair of focal points P by:
x1=(a×1.0÷w)×100;
y1=(b×1.0÷H)×100;
wherein x1 is the abscissa value of the second pair of focal points P, and y1 is the ordinate value of the second pair of focal points P; w is the width value of the video image in the first terminal, and H is the height value of the video image in the first terminal; a is the horizontal distance of the point P relative to the upper left corner of the video image; b is the vertical distance of the point P relative to the upper left corner of the video image; wherein the unit of W, H, a and b is pixel;
the determination module is further configured to determine the focusing region side length by:
determining a square area which takes the P point as a center and has a side length of L pixels with a preset length as a focusing area;
and determining the preset length L as the side length of the focusing area.
Preferably, the first request further includes a preset length shaping sequence, and the first response sent by the second terminal includes the preset length shaping sequence.
The embodiment of the invention provides a device for adjusting the focus of a camera in video call, which comprises: the device comprises a video image sending module, a request receiving module, an adjusting module and a response sending module; wherein,
the video image sending module is used for sending a first video image collected according to a first focusing point to a first terminal;
the request receiving module is used for receiving a first request which is sent by the first terminal and used for adjusting the focus of the camera of the second terminal to a second focus when the video image sending module sends the first video image to the first terminal;
the adjusting module is used for adjusting the focusing point of the camera according to a first request sent by the first terminal;
the response sending module is configured to return a first response to the first terminal, where the first response includes: and the second video image is a video image acquired by the second terminal camera according to the second focus.
Preferably, the first request includes: a second pair of focus position parameters, the second pair of focus position parameters comprising: the relative coordinate values (x1, y1) of the second pair of focal points P on the first terminal and the focusing area side length L.
Preferably, the adjusting module comprises a determining sub-module and a focusing sub-module: wherein,
the determining submodule is used for determining the relative coordinate value and the focusing area of the local focusing point according to the second focusing point position parameter in the first request;
and the focusing submodule is used for focusing the camera according to the relative coordinate value of the local focusing point and the focusing area.
Preferably, the determining submodule is configured to determine the relative coordinate values (x2, y2) of the local focusing point Q by:
x2=x1×1.0×M;
y2=y1×1.0×N;
wherein M is the width value of the video image in the second terminal, and N is the height value of the video image in the second terminal;
the determining submodule is used for determining the focusing area of the local focusing point Q by the following modes:
and determining a square area with the point Q as the center and the side length of L pixels as a focusing area of the local focusing point Q.
Preferably, the first request further includes a preset length shaping sequence, and the first response sent by the response sending module includes the preset length shaping sequence.
Compared with the prior art, the embodiment of the invention at least comprises the following advantages:
in the method for adjusting a focus of a camera in a video call provided by the embodiment of the present invention, a first terminal can send a first request for adjusting a focus of a second terminal camera to a second focus to the second terminal when receiving a first video image acquired by the second terminal camera according to the first focus, and then the first terminal receives a first response sent by the second terminal, where the first response includes: and the second video image is a video image acquired by the second terminal camera according to the second focus. That is, the first terminal user can control the second terminal device to adjust the focus of the camera according to the needs of the first terminal user so as to obtain a clear image of a part concerned by the first terminal user, the method is simple and flexible, various interested areas can be selected at any time, and the video call experience of the user can be greatly improved.
Drawings
Fig. 1 is a first flowchart of a method for adjusting a focus of a camera in a video call according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for adjusting a focus of a camera in a video call according to an embodiment of the present invention;
fig. 3 is a first basic structure diagram of an apparatus for adjusting a focus of a camera in a video call according to an embodiment of the present invention;
fig. 4 is a second basic structure diagram of an apparatus for adjusting a focus of a camera in a video call according to an embodiment of the present invention.
Detailed Description
Example one
Referring to fig. 1, a flowchart illustrating a first step of a first embodiment of a method for adjusting a focus of a camera in a video call according to the present invention may specifically include:
step 101, when a first terminal receives a first video image acquired by a second terminal camera according to a first focusing point, sending a first request for adjusting the focusing point of the second terminal camera to a second focusing point to the second terminal;
in this step, the first terminal and the second terminal are only used for distinguishing different terminals, and the types of the terminals are not limited; specifically, the first terminal is a terminal with a video image receiving function, and the second terminal is a terminal with video image collecting and sending functions; in practical applications, the first terminal and the second terminal may be: mobile phones, tablet computers, and the like.
For example, when the first terminal user wishes to adjust the focusing point of the camera of the second terminal during receiving and watching the first video image so as to see the picture in a specific area in the video image, a first request for requesting the second terminal to adjust the focusing point of the camera to the second focusing point may be sent to the second terminal.
Specifically, the first request includes: a second pair of focus position parameters, the second pair of focus position parameters comprising: the relative coordinate value of the second pair of focuses and the side length of the focusing area.
In another optional embodiment of the present invention, before sending the first request for adjusting the focus of the camera of the second terminal to the second focus to the second terminal, the method further comprises:
and when the first terminal detects the focusing action, determining a second focus position, and determining a second focus position parameter according to the second focus position.
Generating a second pair of focus position parameters from the second pair of focus positions comprises:
determining relative coordinate values (x1, y1) of the second pair of focal points P by:
x1=(a×1.0÷w)×100;
y1=(b×1.0÷H)×100;
wherein x1 is the abscissa value of the second pair of focal points P, and y1 is the ordinate value of the second pair of focal points P; w is the width value of the video image in the first terminal, and H is the height value of the video image in the first terminal; a is the horizontal distance of the point P relative to the upper left corner of the video image; b is the vertical distance of the point P relative to the upper left corner of the video image; wherein the unit of W, H, a and b is pixel;
determining the focusing area side length by the following method:
determining a square area which takes the P point as a center and has a side length of L pixels with a preset length as a focusing area;
and determining the preset length L as the side length of the focusing area.
In practical implementation, a user may perform a focusing action in multiple ways, for example, when the user uses a touch screen terminal to watch a video image, the user may click a certain position point on the touch screen, and the position point clicked by the user is determined as a focusing point P; when a user views a video image using a mouse-connected device, a location point on the video image may be clicked through the mouse, and the location point clicked by the user is determined as an in-focus point P.
The side length of the focusing area, i.e. the preset length L, can be set and adjusted according to actual needs, and is not limited herein.
Step 102, the first terminal receives a first response sent by the second terminal, and the first response includes: and the second video image is a video image acquired by the second terminal camera according to the second focus.
In another optional embodiment of the present invention, the first request further includes a preset length shaping sequence, and the first response sent by the second terminal includes the preset length shaping sequence.
That is, the first terminal may package the position parameter of the second focus and the preset length shaping sequence at the same time to generate a first request, where the first request may be in the form of an RTCPAPP message; after receiving the first request, the second terminal adjusts the focus of the camera according to the position parameters of the second focus, and after the camera is adjusted, sends a first response to the first terminal, where the first response may be in the form of an RTCPAPP message, and the message should include a received shaping sequence with a preset length, that is, the first request and the first response both include the same shaping sequence, so that the first terminal receiving the first response can determine whether the focusing operation is successfully executed according to the received first response; namely, when a first response received by the first terminal contains a preset length shaping sequence, the focusing operation is determined to be successfully executed; otherwise, the focusing operation fails to be performed.
Preferably, a timer may be set to preset a time period, and when a first response received by the first terminal within the preset time period includes a preset length shaping sequence, it is determined that focusing is successfully performed; otherwise, the focusing operation fails; the focusing failure condition comprises the following steps: and receiving no first response containing the preset length shaping sequence and receiving a first response containing the preset length shaping sequence within and outside the preset time period, wherein the receiving time exceeds the preset time period.
In summary, according to the method for adjusting a focus of a camera in a video call provided by the embodiment of the present invention, when receiving a first video image captured by a camera of a second terminal according to a first focus, a first terminal can send a first request for adjusting the focus of the camera of the second terminal to a second focus to the second terminal, and then the first terminal receives a first response sent by the second terminal, where the first response includes: and the second video image is a video image acquired by the second terminal camera according to the second focus. That is, the first terminal user can control the second terminal device to adjust the focus of the camera according to the needs of the first terminal user so as to obtain a clear image of a part concerned by the first terminal user, the method is simple and flexible, various interested areas can be selected at any time, and the video call experience of the user can be greatly improved.
Example two
Referring to fig. 2, a flowchart illustrating steps of an embodiment of a method for adjusting a focus of a camera in a video call according to the present invention is shown, which may specifically include:
step 201, when a second terminal sends a first video image collected according to a first focusing point to a first terminal, receiving a first request sent by the first terminal and used for adjusting the focusing point of a camera of the second terminal into a second focusing point;
in this step, the first terminal and the second terminal are only used for distinguishing different terminals, and the types of the terminals are not limited; specifically, the first terminal is a terminal with a video image receiving function, and the second terminal is a terminal with video image collecting and sending functions; in practical applications, the first terminal and the second terminal may be: mobile phones, tablet computers, and the like.
Specifically, the first request includes: a second pair of focus position parameters, the second pair of focus position parameters comprising: the relative coordinate values (x1, y1) of the second pair of focal points P on the first terminal and the focusing area side length L.
Step 202, the second terminal adjusts the focusing point of the camera according to a first request sent by the first terminal;
specifically, the adjusting the focus of the camera by the second terminal according to the first request sent by the first terminal includes:
the second terminal determines the relative coordinate value of the local focus and the focusing area according to the second focus position parameter in the first request;
and focusing by the second terminal camera according to the relative coordinate value of the local focusing point and the focusing area.
Specifically, the second focus is a focus on the first terminal, and is represented by a relative coordinate value on the first terminal; however, since the screen sizes and resolutions of the first terminal and the second terminal are different, the relative coordinate value of the point corresponding to the second focusing point on the second terminal needs to be determined again, and here, the point corresponding to the second focusing point on the second terminal is set as the local focusing point. In order to determine the position parameter of the local focus point, the relative coordinate value of the local focus point and the focusing area need to be determined.
Specifically, the second terminal determines a relative coordinate value (x2, y2) of the local focusing point Q according to the second pair of focus position parameters in the first request, and includes:
x2=x1×1.0×M;
y2=y1×1.0×N;
wherein M is the width value of the video image in the second terminal, and N is the height value of the video image in the second terminal;
the second terminal determines a focusing area of the local focusing point Q according to the second focusing point position parameter in the first request, including:
and determining a square area with the point Q as the center and the side length of L pixels as a focusing area of the local focusing point Q.
Step 203, the second terminal returns a first response to the first terminal, where the first response includes: and the second video image is a video image acquired by the second terminal camera according to the second focus.
Preferably, the first request further includes a preset length shaping sequence, and the first response sent by the second terminal includes the preset length shaping sequence.
That is, the first terminal may package the position parameter of the second focus and the preset length shaping sequence at the same time to generate a first request, where the first request may be in the form of an RTCPAPP message; after receiving the first request, the second terminal adjusts the focus of the camera according to the position parameters of the second focus, and after the camera is adjusted, sends a first response to the first terminal, where the first response may be in the form of an RTCPAPP message, and the message should include a received shaping sequence with a preset length, that is, the first request and the first response both include the same shaping sequence, so that the first terminal receiving the first response can determine whether the focusing operation is successfully executed according to the received first response; namely, when a first response received by the first terminal contains a preset length shaping sequence, the focusing operation is determined to be successfully executed; otherwise, the focusing operation fails to be performed.
As can be seen, with the method for adjusting the camera focus in a video call provided by the second embodiment of the present invention, when sending a first video image collected according to a first focus to a first terminal, a second terminal can receive a first request sent by the first terminal to adjust the focus of the camera of the second terminal to a second focus, and then the second terminal adjusts the focus of the camera according to the first request sent by the first terminal; after the focusing adjustment of the camera is completed, the second terminal returns a first response to the first terminal, wherein the first response comprises: and the second video image is a video image acquired by the second terminal camera according to the second focus. In other words, the second terminal can receive the first request sent by the first terminal at any time in the video acquisition process, adjust the focus of the local camera according to the first request, and send the video image after the focus adjustment to the first terminal.
Apparatus embodiment one
Referring to fig. 3, a block diagram of an embodiment of an apparatus for adjusting a focus of a camera in a video call according to the present invention is shown, the apparatus being located at a first terminal, and the apparatus comprising: a video receiving module 31, a request sending module 32 and a response receiving module 33; wherein,
the video receiving module 31 is configured to receive a first video image acquired by a second terminal camera according to a first focus;
the request sending module 32 is configured to send, to the second terminal, a first request for adjusting the focus of the second terminal camera to a second focus when the video receiving module 31 receives the first video image;
the response receiving module 33 is configured to receive a first response sent by the second terminal, where the first response includes: and the second video image is a video image acquired by the second terminal camera according to the second focus.
In practical implementation, the video receiving module 31 may be a Reliable Transport Protocol (RTP) receiver; the request transmission module 32 and the response reception module 33 may be implemented by a reliable transport protocol control protocol (RTCP) transceiver.
Specifically, the first request includes: a second pair of focus position parameters, the second pair of focus position parameters comprising: the relative coordinate value of the second pair of focuses and the side length of the focusing area.
In another optional embodiment of the invention, the apparatus further comprises: a detection module 34 and a determination module 35; wherein,
the detection module 34 is configured to detect a focusing action before the request sending module 32 sends the first request for adjusting the focus of the second terminal camera to the second focus to the second terminal;
the determining module 35 is configured to determine a second pair of focus positions when the detecting module 34 detects the focusing action, and is further configured to determine a second pair of focus position parameters according to the second pair of focus positions.
In an optional embodiment of the present invention, the determining module 35 is configured to determine the relative coordinate values (x1, y1) of the second pair of focal points P by:
x1=(a×1.0÷w)×100;
y1=(b×1.0÷H)×100;
wherein x1 is the abscissa value of the second pair of focal points P, and y1 is the ordinate value of the second pair of focal points P; w is the width value of the video image in the first terminal, and H is the height value of the video image in the first terminal; a is the horizontal distance of the point P relative to the upper left corner of the video image; b is the vertical distance of the point P relative to the upper left corner of the video image; wherein the unit of W, H, a and b is pixel;
the determination module is further configured to determine the focusing region side length by:
determining a square area which takes the P point as a center and has a side length of L pixels with a preset length as a focusing area;
and determining the preset length L as the side length of the focusing area.
In another optional embodiment of the present invention, the first request further includes a preset length shaping sequence, and the first response sent by the second terminal includes the preset length shaping sequence.
In a specific implementation process, the video receiving module 31, the request sending module 32, the response receiving module 33, the detecting module 34, and the determining module 35 may be implemented by a Central Processing Unit (CPU), a microprocessor unit (MPU), a Digital Signal Processor (DSP), or a programmable logic array (FPGA) in the first terminal.
Device embodiment II
Referring to fig. 4, a block diagram of an embodiment of an apparatus for adjusting a focus of a camera in a video call according to the present invention is shown, the apparatus is located on a mobile terminal, and includes: a video image sending module 41, a request receiving module 42, an adjusting module 43 and a response sending module 44; wherein,
the video image sending module 41 is configured to send a first video image acquired according to a first focus to a first terminal;
the request receiving module 42 is configured to receive a first request sent by the first terminal to adjust the focus of the second terminal camera to a second focus when the video image sending module 41 sends the first video image to the first terminal;
the adjusting module 43 is configured to adjust a focus of the camera according to a first request sent by the first terminal;
the response sending module 44 is configured to return a first response to the first terminal, where the first response includes: and the second video image is a video image acquired by the second terminal camera according to the second focus.
In practical implementation, the video image sending module 41 may be an RTP sender; the request receiving module 42 and the response sending module 44 may be implemented by RTCP transceivers.
Specifically, the first request includes: a second pair of focus position parameters, the second pair of focus position parameters comprising: the relative coordinate values (x1, y1) of the second pair of focal points P on the first terminal and the focusing area side length L.
Specifically, the adjusting module 43 includes a determining sub-module and a focusing sub-module: wherein,
the determining submodule is used for determining the relative coordinate value and the focusing area of the local focusing point according to the second focusing point position parameter in the first request;
and the focusing submodule is used for focusing the camera according to the relative coordinate value of the local focusing point and the focusing area.
Specifically, the determining submodule is configured to determine the relative coordinate value (x2, y2) of the local focusing point Q by:
x2=x1×1.0×M;
y2=y1×1.0×N;
wherein M is the width value of the video image in the second terminal, and N is the height value of the video image in the second terminal;
the determining submodule is used for determining the focusing area of the local focusing point Q by the following modes:
and determining a square area with the point Q as the center and the side length of L pixels as a focusing area of the local focusing point Q.
In another optional embodiment of the present invention, the first request further includes a preset length shaping sequence, and the first response sent by the response sending module 44 includes the preset length shaping sequence.
In a specific implementation process, the video image sending module 41, the request receiving module 42, the adjusting module 43, and the response sending module 44 may be implemented by a CPU, an MPU, a DSP, or an FPGA in the second terminal.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The method and the device for adjusting the focus of the camera in the video call provided by the invention are described in detail, and a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (20)
1. A method for adjusting camera focus during a video call, the method comprising:
when the first terminal receives a first video image acquired by the second terminal camera according to the first focusing point, sending a first request for adjusting the focusing point of the second terminal camera to a second focusing point to the second terminal;
the first terminal receives a first response sent by a second terminal, wherein the first response comprises: and the second video image is a video image acquired by the second terminal camera according to the second focus.
2. The method of claim 1, wherein the first request comprises: a second pair of focus position parameters, the second pair of focus position parameters comprising: the relative coordinate value of the second pair of focuses and the side length of the focusing area.
3. The method of claim 2, wherein prior to sending the first request to the second terminal to adjust the point-of-focus of the second terminal camera to the second point-of-focus, the method further comprises:
and when the first terminal detects the focusing action, determining a second focus position, and determining a second focus position parameter according to the second focus position.
4. The method of claim 3, wherein generating second pair of focus position parameters from the second pair of focus positions comprises:
determining relative coordinate values (x1, y1) of the second pair of focal points P by:
x1=(a×1.0÷w)×100;
y1=(b×1.0÷H)×100;
wherein x1 is the abscissa value of the second pair of focal points P, and y1 is the ordinate value of the second pair of focal points P; w is the width value of the video image in the first terminal, and H is the height value of the video image in the first terminal; a is the horizontal distance of the point P relative to the upper left corner of the video image; b is the vertical distance of the point P relative to the upper left corner of the video image; wherein the unit of W, H, a and b is pixel;
determining the focusing area side length by the following method:
determining a square area which takes the P point as a center and has a side length of L pixels with a preset length as a focusing area;
and determining the preset length L as the side length of the focusing area.
5. The method according to any of claims 1 to 4, wherein the first request further comprises a preset length shaping sequence, and the first response sent by the second terminal comprises the preset length shaping sequence.
6. A method for adjusting camera focus during a video call, the method comprising:
when the second terminal sends a first video image collected according to the first focusing point to the first terminal, receiving a first request sent by the first terminal and used for adjusting the focusing point of a camera of the second terminal into a second focusing point;
the second terminal adjusts the focusing point of the camera according to a first request sent by the first terminal;
the second terminal returns a first response to the first terminal, wherein the first response comprises: and the second video image is a video image acquired by the second terminal camera according to the second focus.
7. The method of claim 6, wherein the first request comprises: a second pair of focus position parameters, the second pair of focus position parameters comprising: the relative coordinate values (x1, y1) of the second pair of focal points P on the first terminal and the focusing area side length L.
8. The method of claim 7, wherein the adjusting the focus of the camera by the second terminal in response to the first request sent by the first terminal comprises:
the second terminal determines the relative coordinate value of the local focus and the focusing area according to the second focus position parameter in the first request;
and focusing by the second terminal camera according to the relative coordinate value of the local focusing point and the focusing area.
9. The method of claim 8, wherein the second terminal determining relative coordinate values (x2, y2) of the local point of focus Q based on the second pair of focus position parameters in the first request, comprises:
x2=x1×1.0×M;
y2=y1×1.0×N;
wherein M is the width value of the video image in the second terminal, and N is the height value of the video image in the second terminal;
the second terminal determines a focusing area of the local focusing point Q according to the second focusing point position parameter in the first request, including:
and determining a square area with the point Q as the center and the side length of L pixels as a focusing area of the local focusing point Q.
10. The method according to any of claims 6 to 9, wherein the first request further comprises a preset length shaping sequence, and the first response sent by the second terminal comprises the preset length shaping sequence.
11. An apparatus for adjusting a focus of a camera in a video call, the apparatus comprising: the system comprises a video receiving module, a request sending module and a response receiving module; wherein,
the video receiving module is used for receiving a first video image collected by the second terminal camera according to the first focus;
the request sending module is used for sending a first request for adjusting the focus of the camera of the second terminal to a second focus to the second terminal when the video receiving module receives the first video image;
the response receiving module is configured to receive a first response sent by a second terminal, where the first response includes: and the second video image is a video image acquired by the second terminal camera according to the second focus.
12. The apparatus of claim 11, wherein the first request comprises: a second pair of focus position parameters, the second pair of focus position parameters comprising: the relative coordinate value of the second pair of focuses and the side length of the focusing area.
13. The apparatus of claim 12, further comprising: the device comprises a detection module and a determination module; wherein,
the detection module is used for detecting focusing action before the request sending module sends a first request for adjusting the focus of the camera of the second terminal to a second focus to the second terminal;
the determining module is used for determining a second focus position when the focusing action is detected by the detecting module, and is also used for determining a second focus position parameter according to the second focus position.
14. The apparatus of claim 13, wherein the determining module is configured to determine the relative coordinate values (x1, y1) of the second pair of focal points P by:
x1=(a×1.0÷w)×100;
y1=(b×1.0÷H)×100;
wherein x1 is the abscissa value of the second pair of focal points P, and y1 is the ordinate value of the second pair of focal points P; w is the width value of the video image in the first terminal, and H is the height value of the video image in the first terminal; a is the horizontal distance of the point P relative to the upper left corner of the video image; b is the vertical distance of the point P relative to the upper left corner of the video image; wherein the unit of W, H, a and b is pixel;
the determination module is further configured to determine the focusing region side length by:
determining a square area which takes the P point as a center and has a side length of L pixels with a preset length as a focusing area;
and determining the preset length L as the side length of the focusing area.
15. The apparatus according to any of claims 11 to 14, wherein the first request further comprises a preset length shaping sequence, and the first response sent by the second terminal comprises the preset length shaping sequence.
16. An apparatus for adjusting a focus of a camera in a video call, the apparatus comprising: the device comprises a video image sending module, a request receiving module, an adjusting module and a response sending module; wherein,
the video image sending module is used for sending a first video image collected according to a first focusing point to a first terminal;
the request receiving module is used for receiving a first request which is sent by the first terminal and used for adjusting the focus of the camera of the second terminal to a second focus when the video image sending module sends the first video image to the first terminal;
the adjusting module is used for adjusting the focusing point of the camera according to a first request sent by the first terminal;
the response sending module is configured to return a first response to the first terminal, where the first response includes: and the second video image is a video image acquired by the second terminal camera according to the second focus.
17. The apparatus of claim 16, wherein the first request comprises: a second pair of focus position parameters, the second pair of focus position parameters comprising: the relative coordinate values (x1, y1) of the second pair of focal points P on the first terminal and the focusing area side length L.
18. The apparatus of claim 17, wherein the adjustment module comprises a determination sub-module and a focus sub-module: wherein,
the determining submodule is used for determining the relative coordinate value and the focusing area of the local focusing point according to the second focusing point position parameter in the first request;
and the focusing submodule is used for focusing the camera according to the relative coordinate value of the local focusing point and the focusing area.
19. The apparatus of claim 18, wherein the determining submodule is configured to determine the relative coordinate values (x2, y2) of the local focus point Q by:
x2=x1×1.0×M;
y2=y1×1.0×N;
wherein M is the width value of the video image in the second terminal, and N is the height value of the video image in the second terminal;
the determining submodule is used for determining the focusing area of the local focusing point Q by the following modes:
and determining a square area with the point Q as the center and the side length of L pixels as a focusing area of the local focusing point Q.
20. The apparatus according to any of claims 16 to 19, wherein the first request further comprises a preset length shaping sequence, and the first response sent by the response sending module comprises the preset length shaping sequence.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511023810.XA CN105635627A (en) | 2015-12-30 | 2015-12-30 | Method and apparatus for adjusting focusing point of camera in video conversation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511023810.XA CN105635627A (en) | 2015-12-30 | 2015-12-30 | Method and apparatus for adjusting focusing point of camera in video conversation |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105635627A true CN105635627A (en) | 2016-06-01 |
Family
ID=56050068
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201511023810.XA Pending CN105635627A (en) | 2015-12-30 | 2015-12-30 | Method and apparatus for adjusting focusing point of camera in video conversation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105635627A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109348128A (en) * | 2018-11-13 | 2019-02-15 | 深圳龙图腾创新设计有限公司 | A kind of control system and method controlling other people camera focus points |
CN111601065A (en) * | 2020-05-25 | 2020-08-28 | 维沃移动通信有限公司 | Video call control method and device and electronic equipment |
CN111601066A (en) * | 2020-05-26 | 2020-08-28 | 维沃移动通信有限公司 | Information acquisition method and device and electronic equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003230049A (en) * | 2002-02-06 | 2003-08-15 | Sharp Corp | Camera control method, camera controller and video conference system |
CN102109737A (en) * | 2009-12-24 | 2011-06-29 | 比亚迪股份有限公司 | Method and device for focusing user-defined area |
CN102377975A (en) * | 2010-08-10 | 2012-03-14 | 华为终端有限公司 | Video processing method used for video communication, apparatus thereof and system thereof |
CN102375649A (en) * | 2010-08-11 | 2012-03-14 | 乐金电子(中国)研究开发中心有限公司 | Image display method and mobile terminal |
CN102891959A (en) * | 2011-07-21 | 2013-01-23 | 宝硕财务科技股份有限公司 | Image photography control system and control method thereof |
CN103458184A (en) * | 2013-08-25 | 2013-12-18 | 浙江大学 | Method for carrying out long-range control on pan-tilt with cell phone |
CN104767931A (en) * | 2015-01-20 | 2015-07-08 | 广东欧珀移动通信有限公司 | Intelligent terminal photograph focus adjusting method and device |
-
2015
- 2015-12-30 CN CN201511023810.XA patent/CN105635627A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003230049A (en) * | 2002-02-06 | 2003-08-15 | Sharp Corp | Camera control method, camera controller and video conference system |
CN102109737A (en) * | 2009-12-24 | 2011-06-29 | 比亚迪股份有限公司 | Method and device for focusing user-defined area |
CN102377975A (en) * | 2010-08-10 | 2012-03-14 | 华为终端有限公司 | Video processing method used for video communication, apparatus thereof and system thereof |
CN102375649A (en) * | 2010-08-11 | 2012-03-14 | 乐金电子(中国)研究开发中心有限公司 | Image display method and mobile terminal |
CN102891959A (en) * | 2011-07-21 | 2013-01-23 | 宝硕财务科技股份有限公司 | Image photography control system and control method thereof |
CN103458184A (en) * | 2013-08-25 | 2013-12-18 | 浙江大学 | Method for carrying out long-range control on pan-tilt with cell phone |
CN104767931A (en) * | 2015-01-20 | 2015-07-08 | 广东欧珀移动通信有限公司 | Intelligent terminal photograph focus adjusting method and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109348128A (en) * | 2018-11-13 | 2019-02-15 | 深圳龙图腾创新设计有限公司 | A kind of control system and method controlling other people camera focus points |
CN111601065A (en) * | 2020-05-25 | 2020-08-28 | 维沃移动通信有限公司 | Video call control method and device and electronic equipment |
CN111601066A (en) * | 2020-05-26 | 2020-08-28 | 维沃移动通信有限公司 | Information acquisition method and device and electronic equipment |
CN111601066B (en) * | 2020-05-26 | 2022-03-25 | 维沃移动通信有限公司 | Information acquisition method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6330103B2 (en) | Network connection method and apparatus, program, and recording medium | |
KR102486803B1 (en) | Uplink transmission method and apparatus | |
CN105991962B (en) | Connection method, information display method, device and system | |
CN106488335B (en) | Live-broadcast control method and device | |
JP7125834B2 (en) | Image acquisition method and apparatus | |
CN107682714B (en) | Method and device for acquiring online video screenshot | |
CN103078924A (en) | Visual field sharing method and equipment | |
CN105120301B (en) | Method for processing video frequency and device, smart machine | |
JP6505327B2 (en) | Method, apparatus and system for acquiring video data and computer readable storage medium | |
US20120169828A1 (en) | Video telephony method and apparatus of mobile terminal | |
CN107147927B (en) | Live broadcast method and device based on live broadcast wheat connection | |
US10728583B2 (en) | Multimedia information playing method and system, standardized server and live broadcast terminal | |
CN102802129A (en) | Method and system for transmitting picture through mobile equipment | |
US20180191895A1 (en) | Phone call processing method and apparatus | |
US20150035934A1 (en) | Video message record terminal, video message transmitting server and method for leaving video message | |
US8760493B2 (en) | Video displaying apparatus and controlling method thereof | |
CN105635627A (en) | Method and apparatus for adjusting focusing point of camera in video conversation | |
CN105227947A (en) | Dirt detecting method and device | |
EP3070951A1 (en) | Video code stream obtaining method and apparatus | |
CN103873759A (en) | Shooting method and electronic equipment | |
US20210337462A1 (en) | Method and device for transmitting system information | |
CN109729438B (en) | Method and device for sending video packet and method and device for receiving video packet | |
US20150181167A1 (en) | Electronic device and method for video conference management | |
CN109688366B (en) | Online conference transfer method and device and mobile terminal | |
US10560505B2 (en) | ROI video implementation method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160601 |