WO2022166432A1 - 摄像头的控制方法、装置、电子设备及存储介质 - Google Patents

摄像头的控制方法、装置、电子设备及存储介质 Download PDF

Info

Publication number
WO2022166432A1
WO2022166432A1 PCT/CN2021/139169 CN2021139169W WO2022166432A1 WO 2022166432 A1 WO2022166432 A1 WO 2022166432A1 CN 2021139169 W CN2021139169 W CN 2021139169W WO 2022166432 A1 WO2022166432 A1 WO 2022166432A1
Authority
WO
WIPO (PCT)
Prior art keywords
camera
electronic device
position information
parameter
adjustment parameter
Prior art date
Application number
PCT/CN2021/139169
Other languages
English (en)
French (fr)
Inventor
舒舢
Original Assignee
歌尔科技有限公司
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 歌尔科技有限公司 filed Critical 歌尔科技有限公司
Publication of WO2022166432A1 publication Critical patent/WO2022166432A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/695Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects

Definitions

  • the embodiments of the present disclosure relate to the technical field of cameras, and more particularly, the embodiments of the present disclosure relate to a control method for a camera, a control device for a camera, an electronic device, and a computer storage medium.
  • the smart camera has the functions of turning left and right, tilting up and down, and zooming in.
  • the user can remotely view the content captured by the smart camera through the terminal device, and can remotely control the rotation of the smart camera through the terminal device.
  • the rotation of the smart camera is usually controlled through UI (User Interface, user interface) interaction.
  • UI User Interface, user interface
  • the user needs to operate on the control interface of the terminal device to control the rotation of the smart camera, which is cumbersome.
  • a new camera control method is proposed.
  • the purpose of the embodiments of the present disclosure is to provide a new technical solution for camera control.
  • a method for controlling a camera is provided, which is applied to an electronic device, where the electronic device is communicatively connected to the camera, and the method includes:
  • the method further includes:
  • a picture captured by the camera in the adjusted posture is acquired, and the picture is displayed.
  • the first adjustment parameter includes a rotation angle and a rotation direction
  • the adjusting the posture of the camera according to the first adjustment parameter includes:
  • the posture of the camera is adjusted according to the rotation angle and the rotation direction.
  • the first adjustment parameter further includes a fourth offset parameter; the method further includes:
  • the focal length of the camera is adjusted according to the fourth offset parameter and a preset fourth ratio.
  • the method further includes:
  • the screen content corresponding to the display area is displayed.
  • the second adjustment parameter includes a first offset parameter and a second offset parameter
  • the determining the display area of the picture according to the second adjustment parameter includes:
  • the first offset value is less than or equal to a preset first distance threshold
  • the second offset value is less than or equal to a preset second distance threshold
  • the second adjustment parameter further includes a third offset parameter
  • the screen content corresponding to the display area includes:
  • the obtaining the initial location information of the electronic device includes:
  • the method also includes:
  • the camera In response to the operation instruction, the camera is adjusted to an initial posture.
  • a control device for a camera which is applied to the electronic device, and the device includes:
  • an acquisition module for acquiring initial position information and current position information of the electronic device
  • a first determining module configured to determine a first adjustment parameter according to the initial position information and the current position information when the first adjustment mode is selected
  • a first adjustment module configured to adjust the posture of the camera according to the first adjustment parameter.
  • an electronic device including a sensor, and the electronic device further includes:
  • a processor configured to execute the method according to the first aspect of the embodiments of the present disclosure according to the control of the executable computer program
  • the senor is connected with the processor to output the collected position information of the electronic device to the processor.
  • a computer-readable storage medium having computer instructions stored thereon, the computer instructions executing the method described in the first aspect of the embodiments of the present disclosure when the computer instructions are executed by a processor.
  • the initial position information and current position information of the electronic device are collected by the sensor of the electronic device, the first adjustment parameter is determined according to the initial position information and the current position information of the electronic device, and the posture of the camera is adjusted according to the first adjustment parameter , the camera posture can be adjusted in real time according to the motion trajectory of the electronic device, so that the user can view the content captured by the camera conveniently.
  • the camera control method provided by the embodiment of the present disclosure controls the response of the camera based on data collected by the sensor, is convenient to operate, can realize VR-type control, and has better user experience. Moreover, it is avoided to receive the operation information input by the user through the screen and to process the operation information, which can reduce the delay and improve the response speed.
  • FIG. 1 is a schematic diagram of a hardware configuration of a control system that can be used to implement an embodiment of the present disclosure
  • FIG. 2 is a schematic flowchart of a method for controlling a camera according to an embodiment of the present disclosure
  • FIG. 3 is a schematic diagram of location information of an electronic device according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic diagram of a display area of a screen according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic flowchart of a method for controlling a camera according to an example of the present disclosure
  • FIG. 6 is a schematic flowchart of a method for controlling a camera according to another example of the present disclosure
  • FIG. 7 is a structural block diagram of a control device for a camera according to an embodiment of the present disclosure.
  • FIG. 8 is a structural block diagram of an electronic device according to an embodiment of the present disclosure.
  • FIG. 1 is a schematic diagram of the composition and structure of a control system capable of implementing the control method of a camera according to an embodiment of the present disclosure.
  • the control system 100 includes an electronic device 1000 and a camera 2000 .
  • the electronic device 1000 and the camera 2000 are communicatively connected through the network 3000 .
  • the network 3000 may be a wireless network or a wired network, and may be a local area network or a wide area network.
  • the camera 2000 may be, for example, a 360° rotatable camera, a surveillance camera, a web camera, a wide-angle camera, an ultra-wide-angle camera, a telephoto camera, and the like.
  • the electronic device 1000 may be used to control the rotation of the camera, and acquire and display a picture captured by the camera.
  • the electronic device 1000 may include a processor 1100 , a memory 1200 , an interface device 1300 , a communication device 1400 , a display device 1500 , an input device 1600 , an audio device 1700 and a sensor 1800 as shown in FIG. 1 .
  • the processor 1100 may include, but is not limited to, a central processing unit CPU, a microprocessor MCU, and the like.
  • the memory 1200 includes, for example, a ROM (Read Only Memory), a RAM (Random Access Memory), a nonvolatile memory such as a hard disk, and the like.
  • the interface device 1300 includes, for example, various bus interfaces, such as a serial bus interface (including a USB interface), a parallel bus interface, and the like.
  • the communication device 1400 is capable of, for example, wired or wireless communication.
  • the display device 1500 is, for example, a liquid crystal display, an LED display, a touch display, or the like.
  • the input device 1600 may include, for example, a touch screen, a keyboard, a mouse, a somatosensory input, and the like.
  • the audio device 1700 may be used to input/output voice information.
  • the sensor 1800 can be, for example, an image sensor, an infrared sensor, a laser sensor, a pressure sensor, a gyroscope sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, an ambient light sensor, a fingerprint sensor, a touch sensor, a temperature sensor, etc.
  • the sensor 1800 It can be used to measure the position information of the electronic device 1000 .
  • the electronic device 1000 may be an electronic device having a communication function and a service processing capability.
  • the electronic device 1000 may be, for example, a mobile terminal, a portable computer, a tablet computer, a palmtop computer, a wearable device, a VR (Virtual Reality, Virtual Reality) device, and the like.
  • the display apparatus 1500 may be integrated into the electronic device 1000, for example, a mobile terminal or a head-mounted display device.
  • the display apparatus 1500 may also be provided independently of the electronic device 1000 .
  • the memory 1200 of the electronic device 1000 is used to store instructions for controlling the processor 1100 to operate to implement or support the implementation of the camera-based control method according to any embodiment.
  • a skilled person can design instructions according to the solutions disclosed in this specification. How the instruction controls the processor to operate is well known in the art, so it will not be described in detail here.
  • the electronic device 1000 in this embodiment of the present specification may only involve some of the devices, for example, only the processor 1100, the memory 1200, communication device 1400, sensor 1800, etc.
  • control system 100 shown in FIG. 1 is illustrative only and is in no way intended to limit this specification, its application, or uses.
  • FIG. 1 shows only one electronic device 1000 and one camera 2000 , the respective numbers are not meant to be limited, and the control system 100 may include multiple electronic devices 1000 and/or multiple cameras 2000 .
  • FIG. 2 shows a control method of a camera according to an embodiment of the present disclosure.
  • the control method may be implemented by the electronic device 1000 shown in FIG. 1 .
  • the electronic device is communicated and connected with the camera, and is used to control the rotation of the camera and obtain the picture captured by the camera.
  • the camera control method provided by this embodiment may include the following steps S2100-S2400.
  • Step S2100 acquiring initial location information and current location information of the electronic device.
  • the initial position information may be the information of the initial position of the electronic device moving, that is, the information of the position of the electronic device when the function of controlling the camera is turned on.
  • the initial position of the electronic device corresponds to the initial posture of the camera.
  • the current location information may be information of the current location after the electronic device moves.
  • the current position of the electronic device corresponds to the posture to be adjusted by the camera.
  • the step of acquiring the initial location information of the electronic device may further include: steps S3100-S3300.
  • Step S3100 providing a first interactive interface.
  • the first interactive interface may be, for example, an interface capable of connecting an input device.
  • the input device includes, for example, a touch screen, a keyboard, a mouse, and other devices that can be used by the user to input information.
  • Step S3200 receiving an operation instruction input through the second interactive interface.
  • the operation command is used to start the function of controlling the camera.
  • the operation instruction may be, for example, a pressing operation, other touch operations, or a voice instruction, etc., which are not limited herein.
  • Step S3300 in response to the operation instruction, use the position information of the electronic device when the operation instruction is received as the initial position information of the electronic device.
  • a collection signal is sent to the sensor of the electronic device, so as to obtain the initial position information of the electronic device collected by the sensor.
  • control method may further include: adjusting the camera to an initial posture in response to an operation instruction.
  • the orientation of the camera can be controlled by adjusting the posture of the camera.
  • the initial posture of the camera may be preset, for example, the camera faces straight ahead.
  • the initial posture of the camera corresponds to the initial position of the movement of the electronic device.
  • the camera is controlled to be adjusted to the initial posture.
  • the user can further adjust the posture of the camera based on the initial posture of the camera, which is convenient for the user to control.
  • Step S2200 in the case of selecting the first adjustment mode, determine the first adjustment parameter according to the initial position information and the current position information.
  • the electronic device includes two adjustment methods.
  • the posture of the camera can be adjusted according to the initial position information and the current position information of the electronic device, and the picture captured by the camera can be acquired and displayed.
  • the first adjustment method is applicable to the case where the size of the image captured by the camera is adapted to the display size of the display.
  • the display screen of the electronic device can be adjusted according to the initial position information and the current position information of the electronic device, so as to view all the content captured by the camera.
  • the second adjustment method is applicable to the case where the size of the image captured by the camera is larger than the display size of the display. Take, for example, a wide-angle camera.
  • the user may input the corresponding adjustment mode, and in response to the user's input, the adjustment mode is determined.
  • Step S2300 adjust the posture of the camera according to the first adjustment parameter.
  • the first adjustment parameter includes a rotation angle and a rotation direction.
  • the step of adjusting the posture of the camera according to the first adjustment parameter may further include: adjusting the posture of the camera according to the rotation angle and the rotation direction.
  • the initial position of the electronic device is point O
  • the current position is point A
  • the actual motion trajectory of the electronic device is R.
  • the movement distance information and movement direction information of the electronic device from the initial position (point O) to the current position (point A) can be obtained, that is, the actual movement of the electronic device can be obtained.
  • the rotation direction and rotation angle can be determined according to the included angle Axr and the included angle Ayr, for example, turn left by 45° and turn upward by 20°, and further, adjust the posture of the camera according to the rotation angle and rotation direction.
  • the first adjustment parameter further includes a fourth offset parameter.
  • the control method further includes: adjusting the focal length of the camera according to the fourth offset parameter and the preset fourth ratio.
  • the information on the moving distance of the electronic device from the initial position (point O) to the current position (point A) can be obtained through the built-in gyroscope sensor and/or acceleration sensor of the electronic device, that is, the actual position of the electronic device can be obtained.
  • the offset value of the motion track R on the Z axis, and further, the focal length of the camera is adjusted according to the fourth offset parameter and the preset fourth ratio.
  • the focal length f of the camera can be obtained by the following formula:
  • f is the adjusted focal length of the camera
  • Rz1 is a fourth offset parameter
  • d1 is a preset fourth ratio.
  • the above-mentioned preset fourth ratio can be set by those skilled in the art according to the change range of the focal length of the camera. This embodiment of the present disclosure does not limit the size of the preset fourth ratio.
  • the control method provided by the embodiment of the present disclosure can adjust the focal length of the camera according to the initial position information and the current position information, so as to realize the real-time adjustment of the focal length of the camera according to the motion trajectory of the electronic device, and update the display screen, which is more convenient to use.
  • control method may further include: acquiring a picture captured by the camera in the adjusted posture, and displaying the picture.
  • the electronic device after adjusting the posture of the camera, obtains the picture captured by the camera in the adjusted posture through the communication module, and transmits the picture to the display module to display the picture to the user, thereby realizing remote control
  • the camera pans and sees what the camera captures.
  • the picture can also be transmitted to an external display, so as to show the picture to the user through the external display.
  • the electronic device and the display are set separately, and the user can easily view the camera while the user controls the camera through the electronic device.
  • the content of the captured screen is not limited to
  • the initial position information and current position information of the electronic device are collected by the sensor of the electronic device, the first adjustment parameter is determined according to the initial position information and the current position information of the electronic device, and the posture of the camera is adjusted according to the first adjustment parameter , the camera posture can be adjusted in real time according to the motion trajectory of the electronic device, so that the user can view the content captured by the camera conveniently.
  • the camera control method provided by the embodiment of the present disclosure controls the response of the camera based on data collected by the sensor, is convenient to operate, can realize VR-type control, and has better user experience. Moreover, it is avoided to receive the operation information input by the user through the screen and to process the operation information, which can reduce the delay and improve the response speed.
  • the second adjustment method is applicable to the case where the size of the image captured by the camera is larger than the display size of the display.
  • the display screen of the electronic device can be adjusted according to the initial position information and the current position information of the electronic device, so as to view all the content captured by the camera.
  • the display screen of the electronic device can be adjusted according to the initial position information and current position information of the electronic device, so as to view all the content captured by the camera.
  • the camera control method may further include: steps S4100-S4300.
  • Step S4100 in the case of selecting the second adjustment mode, determine the second adjustment parameter according to the initial position information and the current position information.
  • the initial position information may be the information of the initial position of the electronic device moving, that is, the information of the position of the electronic device when the function of adjusting the display screen is enabled.
  • the initial position of the electronic device corresponds to the initial display area of the screen, that is, when the electronic device enables the function of adjusting the display screen, the electronic device displays the screen content corresponding to the initial display area.
  • the initial display area may be preset, and as shown in FIG. 4 , the initial display area may also be an area (area a) located at the upper left corner of the image captured by the camera. It can be understood that the initial display area can also be preset in other ways than the above-mentioned ways.
  • the initial display area may be an area located in the center of the captured image of the camera, and so on.
  • the current location of the electronic device may reflect the display area of the screen.
  • the second adjustment parameter is determined according to the initial position information and the current position information of the electronic device.
  • the second adjustment parameter may be used to determine the display area of the image, that is, to determine the display area of the image captured by the camera according to the second adjustment parameter, obtain the content captured by the camera according to the display area, and display the image content corresponding to the display area.
  • the right side of the user may be set as the positive direction of the X-axis
  • the upper side of the user may be set as the positive direction of the Y-axis. That is, when the user moves the electronic device to the right, the display area is shifted to the right; when the user moves the electronic device to the left, the display area is shifted to the left; when the user moves the electronic device up, the display area is shifted upward, and the user is down
  • the second adjustment parameter includes the first offset parameter and the second offset parameter.
  • the first offset parameter is the offset distance along the X axis
  • the second offset parameter is the offset distance along the Y axis.
  • the initial position of the electronic device is point O
  • the current position is point A.
  • the first offset parameter is the offset distance Rx along the X axis
  • the second offset parameter is the offset distance Ry along the Y axis.
  • Step S4200 Determine the display area of the screen according to the second adjustment parameter.
  • the step of determining the display area of the picture may further include: steps S4210-S4230.
  • Step S4210 Determine the first offset value according to the first offset parameter and the preset first ratio.
  • the first offset parameter is the actual moving distance of the electronic device along the X direction.
  • the first offset value can be determined according to the first offset parameter, that is, the first offset value is the offset distance of the display area along the width direction of the captured image.
  • a first offset value is determined.
  • the first offset value dx can be obtained by the following formula:
  • dx is a first offset value
  • Rx is a first offset parameter
  • k1 is a preset first ratio
  • the above-mentioned preset first ratio can be set by those skilled in the art according to the actual situation.
  • the preset first ratio may be 0.5, 0.2, etc., and the size of the preset first ratio is not limited in this embodiment of the present disclosure.
  • Step S4220 Determine a second offset value according to the second offset parameter and the preset second ratio.
  • the second offset parameter is the actual moving distance of the electronic device along the Y direction.
  • the second offset value can be determined according to the second offset parameter, that is, the second offset value is an offset distance by which the display area moves along the height of the shot screen.
  • a first offset value is determined.
  • the second offset value dy can be obtained by the following formula:
  • dy is a second offset value
  • Ry is a second offset parameter
  • k2 is a preset second ratio
  • the above-mentioned preset second ratio can be set by those skilled in the art according to the actual situation.
  • the preset second ratio may be 0.5, 0.2, etc., and the size of the preset second ratio is not limited in this embodiment of the present disclosure.
  • Step S4230 Determine the display area of the screen according to the first offset value and the second offset value.
  • the initial display area is located in the area (area a) in the upper left corner of the image captured by the camera, and the adjusted display area is area b.
  • the first offset value is less than or equal to the preset first distance threshold value
  • the second offset value is less than or equal to the preset second distance threshold value
  • the first distance threshold and the second distance threshold may be set according to the size of the image captured by the camera and the display size of the display.
  • the first distance threshold is the width Cw of the image captured by the camera and the screen width Dw of the display difference value.
  • the second distance threshold is the difference between the height Ch of the image captured by the camera and the screen height Dh of the display.
  • the electronic device when the first offset value reaches the first distance threshold, the electronic device sends out first prompt information, and when the second offset value reaches the second distance threshold, the electronic device sends out a second prompt information to remind the user to adjust the second adjustment parameter in time.
  • Step S4300 displaying the screen content corresponding to the display area.
  • the electronic device after adjusting the second adjustment parameter, the display area of the picture is determined according to the second adjustment parameter, the electronic device obtains the picture content corresponding to the display area captured by the camera through the communication module, and transmits the picture content to the display module , to show the picture to the user, so as to realize the remote control of the camera rotation and view the content captured by the camera.
  • the picture can also be transmitted to an external display, so as to show the picture to the user through the external display. In this way, the electronic device and the display are set separately, and the user can easily view the camera while the user controls the camera through the electronic device. The content of the captured screen.
  • the display area of the image can be adjusted through the second adjustment parameter, so as to realize the adjustment according to the electronic device.
  • the motion trajectory of the display screen is updated in real time.
  • the embodiment of the present disclosure controls the response of the camera based on the data collected by the sensor, which is convenient to operate, can realize VR-type control, and has better user experience. Moreover, it is avoided to receive the operation information input by the user through the screen and to process the operation information, which can reduce the delay and improve the response speed.
  • the second adjustment parameter further includes a third offset parameter
  • the focal length of the camera is adjusted according to the third offset parameter, so as to obtain a picture captured by the camera under the adjusted focal length.
  • the step of displaying the screen content corresponding to the display area may further include: steps S5100-S5200.
  • Step S5100 Adjust the focal length of the camera according to the third offset parameter and the preset third ratio.
  • the front of the user can be set as the positive direction of the Z axis, that is, when the user moves the electronic device forward, the focal length becomes larger, and when the user moves the electronic device backward, the focal length becomes smaller.
  • the second adjustment parameter is the offset distance Rz along the Z axis.
  • the focal length f of the camera can be obtained by the following formula:
  • f is the adjusted focal length of the camera
  • Rz2 is a third offset parameter
  • d2 is a preset third ratio.
  • the above-mentioned preset third ratio can be set by those skilled in the art according to the change range of the focal length of the camera. This embodiment of the present disclosure does not limit the size of the preset third ratio.
  • step S5100 may further include: adjusting the focal length of the camera according to the third offset parameter, the preset third ratio and the set focal length range.
  • the set focal length range may be the allowable maximum focal length range of the camera, or may be set by those skilled in the art according to the actual situation.
  • the minimum value of the focal length of the camera is set to m, where m ⁇ 0, and the maximum value is n, where n>0.
  • the third offset parameter Rz2>0 that is, when the user moves the electronic device forward, the focal length increases.
  • the adjusted focal length f is less than or equal to the maximum value n of the focal length of the camera.
  • the adjusted focal length f is the product of the absolute value of Rz2 and the third ratio, and the adjusted focal length f is less than or equal to the minimum focal length of the camera The absolute value of the value m.
  • the electronic device when the adjusted focal length of the camera exceeds the set focal length range, the electronic device sends a third prompt message,
  • control method of the camera may further include: steps S6100-S6200.
  • Step S6100 providing a second interactive interface.
  • the second interactive interface may be, for example, an interface capable of connecting an input device.
  • the input device includes, for example, a touch screen, a keyboard, a mouse, and other devices that can be used by the user to input information.
  • Step S6200 receiving the set focal length range input through the second interactive interface.
  • Step S5200 displaying the image content corresponding to the display area captured by the camera under the adjusted focal length.
  • the display area of the screen is determined according to the initial position information and the current position information of the electronic device, and the focal length of the camera is adjusted according to the initial position information and the current position information of the electronic device. In this way, the display screen can be updated in real time according to the motion trajectory of the electronic device.
  • the camera control method is described below by taking a rotatable camera as an example. Referring to FIG. 5 , the control method of the camera includes the following steps.
  • Step S501 acquiring initial location information and current location information of the electronic device.
  • Step S502 Determine a first adjustment parameter according to the initial position information and the current position information, where the first adjustment parameter includes a rotation angle, a rotation direction and a fourth offset parameter.
  • Step S503 adjust the posture of the camera according to the rotation angle and the rotation direction.
  • Step S504 Adjust the focal length of the camera according to the fourth offset parameter and the preset fourth ratio.
  • Step S505 acquiring a picture captured by the camera under the adjusted posture and focal length, and displaying the picture.
  • steps S503-S504 may be alternated, or may be executed simultaneously.
  • the initial position information and current position information of the electronic device are collected by the sensor of the electronic device, the first adjustment parameter is determined according to the initial position information and the current position information of the electronic device, and the posture of the camera is adjusted according to the first adjustment parameter.
  • Real-time adjustment of the camera posture according to the motion trajectory of the electronic device is realized, so that the user can view the content captured by the camera conveniently.
  • the camera control method provided by the embodiment of the present disclosure controls the response of the camera based on data collected by the sensor, is convenient to operate, can realize VR-type control, and has better user experience.
  • the camera control method is described below by taking a non-rotatable camera as an example. Referring to FIG. 6 , the control method of the camera includes the following steps.
  • Step S601 acquiring initial location information and current location information of the electronic device.
  • Step S602 Determine a second adjustment parameter according to the initial position information and the current position information, where the second adjustment parameter includes a first offset parameter, a second offset parameter and a third offset parameter.
  • Step S603 Determine the display area of the picture according to the first offset parameter and the second offset parameter.
  • Step S604 Adjust the focal length of the camera according to the third offset parameter and the preset third ratio.
  • Step S605 displaying the image content corresponding to the display area captured by the camera under the adjusted focal length.
  • steps S603-S604 may be alternated, and may also be executed simultaneously.
  • the display area of the screen is determined by the initial position information and current position information of the electronic device, and the focal length of the camera is adjusted according to the initial position information and current position information of the electronic device.
  • the movement track of the electronic device updates the display screen in real time.
  • an embodiment of the present disclosure provides a camera control apparatus 700 .
  • the camera control apparatus 700 includes an acquisition module 710 , a first determination module 720 and a first adjustment module 730 .
  • the obtaining module 710 is configured to obtain initial position information and current position information of the electronic device.
  • the first determining module 720 is configured to determine a first adjustment parameter according to the initial position information and the current position information when the first adjustment mode is selected.
  • the first adjustment module 730 is configured to adjust the posture of the camera according to the first adjustment parameter.
  • the first adjustment parameter includes a rotation angle and a rotation direction.
  • the first adjustment module 730 is specifically configured to adjust the posture of the camera according to the rotation angle and the rotation direction.
  • the first adjustment parameter further includes a fourth offset parameter.
  • the first adjustment module 730 is also specifically configured to adjust the focal length of the camera according to the fourth offset parameter and a preset fourth ratio.
  • the camera control device 700 further includes a display module.
  • the display module is configured to acquire a picture captured by the camera in the adjusted posture, and display the picture.
  • the camera control apparatus 700 further includes a second determination module and a second adjustment module.
  • the second determination module is configured to determine a second adjustment parameter according to the initial position information and the current position information when the second adjustment mode is selected.
  • the second adjustment module is configured to determine the display area of the picture according to the second adjustment parameter.
  • the display module is also used for displaying the picture content corresponding to the display area.
  • the second adjustment parameter includes a first offset parameter and a second offset parameter.
  • the second determining module is specifically configured to determine the first offset value according to the first offset parameter and the preset first ratio.
  • the second determining module is specifically configured to determine the second offset value according to the second offset parameter and the preset second ratio
  • the second determining module is specifically configured to determine the display area of the picture according to the first offset value and the second offset value.
  • the first offset value is less than or equal to a preset first distance threshold
  • the second offset value is less than or equal to a preset second distance threshold
  • the second adjustment parameter further includes a third offset parameter.
  • the second adjustment module is also specifically configured to adjust the focal length of the camera according to the third offset parameter and a preset third ratio.
  • the display module is specifically configured to display the picture content corresponding to the display area captured by the camera under the adjusted focal length.
  • an embodiment of the present disclosure further provides an electronic device 800 .
  • the electronic device 800 may be, for example, the electronic device 1000 shown in FIG. 1 .
  • the electronic device includes a processor 810 , a memory 820 , and a sensor 830 .
  • the memory 820 is used to store executable computer programs.
  • the processor 810 is configured to execute the camera control method according to any one of the foregoing method embodiments according to the control of the executable computer program.
  • the sensor 830 is connected to the processor 810 for collecting the position information of the electronic device 800 and outputting it to the processor 810 .
  • the electronic device 800 further includes a display 840 .
  • the display 840 is connected to the processor 810, and is used for receiving the picture output by the processor 810 to display the picture.
  • the display 840 may be integrated into the electronic device 800, for example, a mobile terminal or a head-mounted display device.
  • the display 840 may also be provided external to the electronic device 800, eg, a head mounted display device and a control handle. In this way, the electronic device is set apart from the display, and while the user controls the camera through the electronic device, it is convenient for the user to view the picture content captured by the camera.
  • the electronic device 1000 may be an electronic device having a communication function and a service processing capability.
  • the electronic device 1000 may be, for example, a mobile terminal, a portable computer, a tablet computer, a palmtop computer, a wearable device, a VR (Virtual Reality, Virtual Reality) device, and the like.
  • the electronic device 800 is connected to the camera, and is used to control the camera to work.
  • the camera 2000 may be, for example, a 360° rotatable camera, a surveillance camera, a web camera, a wide-angle camera, an ultra-wide-angle camera, a telephoto camera, and the like.
  • the initial position information and the current position information of the electronic device are collected by the sensor of the electronic device, and the posture of the camera is adjusted according to the initial position information and the current position information of the electronic device, so that the movement of the electronic device can be realized according to the movement of the electronic device.
  • the trajectory adjusts the camera posture in real time, so that users can easily view the content captured by the camera.
  • the camera response is controlled based on the data collected by the sensor, the operation is convenient, VR-style control can be realized, and the user experience is better.
  • the display screen can also be updated in real time according to the motion trajectory of the electronic device.
  • the embodiments of the present disclosure further provide a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are executed by the processor to execute the camera control method provided by the embodiments of the present disclosure.
  • the present invention may be a system, method and/or computer program product.
  • the computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of the present invention.
  • a computer-readable storage medium may be a tangible device that can hold and store instructions for use by the instruction execution device.
  • the computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing.
  • Non-exhaustive list of computer readable storage media include: portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM) or flash memory), static random access memory (SRAM), portable compact disk read only memory (CD-ROM), digital versatile disk (DVD), memory sticks, floppy disks, mechanically coded devices, such as printers with instructions stored thereon Hole cards or raised structures in grooves, and any suitable combination of the above.
  • RAM random access memory
  • ROM read only memory
  • EPROM erasable programmable read only memory
  • flash memory static random access memory
  • SRAM static random access memory
  • CD-ROM compact disk read only memory
  • DVD digital versatile disk
  • memory sticks floppy disks
  • mechanically coded devices such as printers with instructions stored thereon Hole cards or raised structures in grooves, and any suitable combination of the above.
  • Computer-readable storage media are not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (eg, light pulses through fiber optic cables), or through electrical wires transmitted electrical signals.
  • the computer readable program instructions described herein may be downloaded to various computing/processing devices from a computer readable storage medium, or to an external computer or external storage device over a network such as the Internet, a local area network, a wide area network, and/or a wireless network.
  • the network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers.
  • a network adapter card or network interface in each computing/processing device receives computer-readable program instructions from a network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing/processing device .
  • the computer program instructions for carrying out the operations of the present invention may be assembly instructions, instruction set architecture
  • ISA ISA
  • machine instructions machine-dependent instructions
  • microcode firmware instructions
  • state setting data or source or object code written in any combination of one or more programming languages, including object-oriented Programming languages - such as Smalltalk, C++, etc., as well as conventional procedural programming languages - such as "eg" languages or similar programming languages.
  • the computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server implement.
  • the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN) network, or may be connected to an external computer (eg, using an Internet service provider through the Internet connect).
  • LAN local area network
  • WAN wide area network
  • custom electronic circuits such as programmable logic circuits, field programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), can be personalized by utilizing state information of computer readable program instructions.
  • Computer readable program instructions are executed to implement various aspects of the present invention.
  • These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer or other programmable data processing apparatus to produce a machine that causes the instructions when executed by the processor of the computer or other programmable data processing apparatus , resulting in means for implementing the functions/acts specified in one or more blocks of the flowchart and/or block diagrams.
  • These computer readable program instructions can also be stored in a computer readable storage medium, these instructions cause a computer, programmable data processing apparatus and/or other equipment to operate in a specific manner, so that the computer readable medium on which the instructions are stored includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks of the flowchart and/or block diagrams.
  • Computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other equipment to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other equipment to produce a computer-implemented process , thereby causing instructions executing on a computer, other programmable data processing apparatus, or other device to implement the functions/acts specified in one or more blocks of the flowcharts and/or block diagrams.
  • each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more functions for implementing the specified logical function(s) executable instructions.
  • the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented in dedicated hardware-based systems that perform the specified functions or actions , or can be implemented in a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that implementation in hardware, implementation in software, and implementation in a combination of software and hardware are all equivalent.

Abstract

本公开实施例公开了摄像头的控制方法、装置、电子设备及存储介质,该摄像头的控制方法,应用于电子设备,所述电子设备与摄像头通信连接,该方法包括:获取所述电子设备的初始位置信息和当前位置信息;在选取第一调整方式的情况下,根据所述初始位置信息和所述当前位置信息,确定第一调整参数;根据所述第一调整参数调整所述摄像头的姿态。

Description

摄像头的控制方法、装置、电子设备及存储介质
本申请要求于2021年02月05日提交中国专利局、申请号为202110162704.9、发明名称为“摄像头的控制方法、装置、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本公开实施例涉及摄像头技术领域,更具体地,本公开实施例涉及一种摄像头的控制方法、摄像头的控制装置、电子设备及计算机存储介质。
背景技术
智能摄像头具有左右转动、上下倾斜与放大等功能。用户通过终端设备可以远程查看智能摄像头拍摄的内容,并且可以通过终端设备远程控制智能摄像头旋转。
在相关技术中,通常是通过UI(User Interface,用户界面)交互的方式控制智能摄像头旋转,例如,用户需要在终端设备的操控界面进行操作,以控制智能摄像头旋转,操作较为繁琐。为此,提出一种新的摄像头的控制方法。
发明内容
本公开实施例的目的在于提供一种摄像头的控制的新的技术方案。
根据本公开实施例第一方面,提供了一种摄像头的控制方法,应用于电子设备,所述电子设备与摄像头通信连接,所述方法包括:
获取所述电子设备的初始位置信息和当前位置信息;
在选取第一调整方式的情况下,根据所述初始位置信息和所述当前位置信息,确定第一调整参数;
根据所述第一调整参数调整所述摄像头的姿态。
可选地,所述方法还包括:
获取所述摄像头在调整后的姿态下拍摄的画面,并显示所述画面。
可选地,所述第一调整参数包括转动角度和转动方向;
所述根据所述第一调整参数调整所述摄像头的姿态,包括:
根据所述转动角度和所述转动方向调整所述摄像头的姿态。
可选地,所述第一调整参数还包括第四偏移参数;所述方法还包括:
根据所述第四偏移参数和预设的第四比例调整所述摄像头的焦距。
可选地,所述方法还包括:
在选取第二调整方式的情况下,根据所述初始位置信息和所述当前位置信息,确定第二调整参数;
根据所述第二调整参数,确定所述画面的显示区域;
显示所述显示区域对应的画面内容。
可选地,所述第二调整参数包括第一偏移参数和第二偏移参数;
所述根据所述第二调整参数,确定所述画面的显示区域,包括:
根据所述第一偏移参数和预设的第一比例,确定第一偏移值;
根据所述第二偏移参数和预设的第二比例,确定第二偏移值;
根据所述第一偏移值和所述第二偏移值,确定所述画面的显示区域;
其中,所述第一偏移值小于或等于预设的第一距离阈值,所述第二偏移值小于或等于预设的第二距离阈值。
可选地,所述第二调整参数还包括第三偏移参数;
所述显示区域对应的画面内容,包括:
根据所述第三偏移参数和预设的第三比例调整所述摄像头的焦距;
显示所述摄像头在调整后的焦距下拍摄的对应于所述显示区域的画面内容。
可选地,所述获取所述电子设备的初始位置信息,包括:
提供第一交互接口;
接收通过所述第一交互接口输入的操作指令;
响应于所述操作指令,将所述电子设备在接收到所述操作指令时的位置信息作为所述电子设备的初始位置信息;
所述方法还包括:
响应于所述操作指令,将所述摄像头调整至初始姿态。
根据本公开实施例第二方面,提供了一种摄像头的控制装置,应用于所 述电子设备,所述装置包括:
获取模块,用于获取所述电子设备的初始位置信息和当前位置信息;
第一确定模块,用于在选取第一调整方式的情况下,根据所述初始位置信息和所述当前位置信息,确定第一调整参数;
第一调整模块,用于根据所述第一调整参数调整所述摄像头的姿态。
根据本公开实施例第三方面,提供了一种电子设备,包括传感器,所述电子设备还包括:
存储器,用于存储可执行的计算机程序;
处理器,用于根据所述可执行的计算机程序的控制,执行根据本公开实施例第一方面所述的方法;
其中,所述传感器与所述处理器连接,以将采集到的所述电子设备的位置信息输出至所述处理器。
根据本公开实施例第四方面,提供了一种计算机可读存储介质,其上存储有计算机指令,所述计算机指令被处理器运行时执行本公开实施例第一方面所述的方法。
根据本公开实施例,通过电子设备的传感器采集电子设备的初始位置信息和当前位置信息,根据电子设备的初始位置信息和当前位置信息,确定第一调整参数,根据第一调整参数调整摄像头的姿态,可以实现根据电子设备的运动轨迹实时调整摄像头姿态,以方便用户查看摄像头拍摄的内容。本公开实施例提供的摄像头的控制方法,基于传感器采集的数据控制摄像头响应,操作方便,可以实现VR式控制,用户体验更好。并且,避免了通过屏幕接收用户输入的操作信息以及对操作信息的处理过程,可以降低延迟,提高响应速度。
通过以下参照附图对本发明的示例性实施例的详细描述,本发明的其它特征及其优点将会变得清楚。
附图说明
为了更清楚地说明本公开实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍。应当理解,以下附图仅示出了本发明的某些实施例,因此不应被看作是对范围的限定。对于本领域普通技术人员来讲,在不 付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。
图1是可用于实现本公开实施例的控制系统的硬件配置示意图;
图2是根据本公开的一个实施例的摄像头的控制方法的流程示意图;
图3是根据本公开的一个实施例的电子设备的位置信息的示意图;
图4是根据本公开的一个实施例的画面的显示区域的示意图;
图5是根据本公开的一个例子的摄像头的控制方法的流程示意图;
图6是根据本公开的另一个例子的摄像头的控制方法的流程示意图
图7是根据本公开的一个实施例的摄像头的控制装置的结构方框图;
图8是根据本公开的一个实施例的电子设备的结构方框图。
具体实施方式
现在将参照附图来详细描述本发明的各种示例性实施例。应注意到:除非另外具体说明,否则在这些实施例中阐述的部件和步骤的相对布置、数字表达式和数值不限制本发明的范围。
以下对至少一个示例性实施例的描述实际上仅仅是说明性的,决不作为对本发明及其应用或使用的任何限制。
对于相关领域普通技术人员已知的技术、方法和设备可能不作详细讨论,但在适当情况下,所述技术、方法和设备应当被视为说明书的一部分。
在这里示出和讨论的所有例子中,任何具体值应被解释为仅仅是示例性的,而不是作为限制。因此,示例性实施例的其它例子可以具有不同的值。
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步讨论。
<硬件配置>
图1是能够实现本公开实施例的摄像头的控制方法的控制系统的组成结构示意图。如图1所示,该控制系统100包括电子设备1000和摄像头2000。电子设备1000与摄像头2000之间通过网络3000通信连接。该网络3000可以是无线网络也可以是有线网络,可以是局域网也可以是广域网。
在一个实施例中,摄像头2000例如可以是360°可旋转摄像头、监控摄像头、网络摄像头、广角摄像头、超广角摄像头以及长焦摄像头等。
在一个实施例中,电子设备1000可以用于控制摄像头旋转,以及获取摄像头拍摄的画面,并显示该画面。
在一个实施例中,电子设备1000可以如图1所示,包括处理器1100、存储器1200、接口装置1300、通信装置1400、显示装置1500、输入装置1600、音频装置1700和传感器1800。处理器1100可以包括但不限于中央处理器CPU、微处理器MCU等。存储器1200例如包括ROM(只读存储器)、RAM(随机存取存储器)、诸如硬盘的非易失性存储器等。接口装置1300例如包括各种总线接口,例如串行总线接口(包括USB接口)、并行总线接口等。通信装置1400例如能够进行有线或无线通信。显示装置1500例如是液晶显示屏、LED显示屏、触摸显示屏等。输入装置1600例如可以包括触摸屏、键盘、鼠标、体感输入等。音频装置1700可以用于输入/输出语音信息。传感器1800例如可以是图像传感器、红外传感器、激光传感器、压力传感器、陀螺仪传感器、磁传感器、加速度传感器、距离传感器、接近光传感器、环境光传感器、指纹传感器、触摸传感器、温度传感器等,传感器1800可以用于测量电子设备1000的位置信息。
在一个实施例中,电子设备1000可以是具有通信功能、业务处理能力的电子设备。该电子设备1000例如可以是移动终端、便携式电脑、平板电脑、掌上电脑、可穿戴设备、VR(虚拟现实,Virtual Reality)设备等。
其中,显示装置1500可以集成于电子设备1000,例如,移动终端或、头戴显示设备等。显示装置1500也可以独立于电子设备1000设置。
本实施例中,电子设备1000的存储器1200用于存储指令,该指令用于控制处理器1100进行操作以实施或者支持实施根据任意实施例的基于摄像头的控制方法。技术人员可以根据本说明书所公开方案设计指令。指令如何控制处理器进行操作,这是本领域公知,故在此不再详细描述。
本领域技术人员应当理解,尽管在图1中示出了电子设备1000的多个装置,但是,本说明书实施例的电子设备1000可以仅涉及其中的部分装置,例如,只涉及处理器1100、存储器1200、通信装置1400和传感器1800等。
图1所示的控制系统100仅是解释性的,并且决不是为了要限制本说明书、其应用或用途。例如,尽管图1仅示出一个电子设备1000和一个摄像头2000,但不意味着限制各自的数量,控制系统100可以包含多个电子设备1000 和/或多个摄像头2000。
下面,参照附图描述根据本公开的各个实施例和例子。
<方法实施例>
图2示出了本公开的一个实施例的摄像头的控制方法,该控制方法例如可以由如图1所示的电子设备1000实施。该电子设备与摄像头通信连接,用于控制摄像头旋转,以及获取摄像头拍摄的画面。
该实施例提供的摄像头的控制方法可以包括以下步骤S2100~S2400。
步骤S2100,获取电子设备的初始位置信息和当前位置信息。
初始位置信息可以是电子设备移动的初始位置的信息,也就是电子设备在开启控制摄像头的功能时所处位置的信息。电子设备的初始位置与摄像头的初始姿态对应。
当前位置信息可以是电子设备移动后的当前位置的信息。电子设备的当前位置与摄像头所要调整的姿态对应。
在本公开的一个实施例中,获取电子设备的初始位置信息的步骤,可以进一步包括:步骤S3100~S3300。
步骤S3100,提供第一交互接口。
第一交互接口例如可以是能够连接输入设备的接口。该输入设备例如包括触摸屏、键盘、鼠标等能够供用户输入信息的设备。
步骤S3200,接收通过第二交互接口输入的操作指令。
操作指令用于启动控制摄像头的功能。该操作指令例如可以是按压操作,也可以是其他触控操作,或者语音指令等,在此不作限制。
步骤S3300,响应于操作指令,将电子设备在接收到操作指令时的位置信息作为电子设备的初始位置信息。
示例性的,响应于操作指令,向电子设备的传感器发出采集信号,以便获取传感器采集的电子设备的初始位置信息。
为了方便用户准确控制摄像头,在本公开的一个实施例中,在步骤S3200之后,该控制方法还可以包括:响应于操作指令,将摄像头调整至初始姿态。
通过调整摄像头的姿态可以控制摄像头的朝向。摄像头的初始姿态可以是预先设定的,例如,摄像头朝向正前方。摄像头的初始姿态与电子设备移 动的初始位置对应,在启动控制摄像头的功能时,控制摄像头调整至初始姿态,用户可以基于摄像头的初始姿态进一步调整摄像头的姿态,方便用户控制。
步骤S2200,在选取第一调整方式的情况下,根据初始位置信息和当前位置信息,确定第一调整参数。
在本实施例中,电子设备包括两种调整方式。对于第一调整方式,可以根据电子设备的初始位置信息和当前位置信息,调整摄像头的姿态,并获取并显示摄像头拍摄的画面。第一调整方式适用于摄像头的拍摄画面的尺寸与显示器的显示尺寸适配的情况。对于第二调整方式,可以根据电子设备的初始位置信息和当前位置信息,调整电子设备的显示画面,以查看摄像头拍摄的所有内容。第二调整方式适用于摄像头的拍摄画面的尺寸大于显示器的显示尺寸的情况。例如,采用广角摄像头。在具体实施时,用户可以输入相应的调整方式,响应于用户的输入,确定调整方式。
步骤S2300,根据第一调整参数调整摄像头的姿态。
在本公开的一个实施例中,第一调整参数包括转动角度和转动方向。根据第一调整参数调整摄像头的姿态的步骤可以进一步包括:根据转动角度和转动方向调整摄像头的姿态。
示例性的,如图3所示,电子设备的初始位置为O点,当前位置为A点,即电子设备的实际运动轨迹为R。通过电子设备内置的陀螺仪传感器和/或加速度传感器可以获取电子设备从初始位置(O点)移动至当前位置(A点)的移动距离信息以及移动方向信息,也就是可以获取电子设备的实际运动轨迹R与X轴的夹角Axr、电子设备的实际运动轨迹R与Y轴的夹角Ayr。根据夹角Axr和夹角Ayr可以确定转动方向和转动角度,例如,向左转45°,向上转20°,进一步地,根据转动角度和转动方向调整摄像头的姿态。
在本公开的一个实施例中,第一调整参数还包括第四偏移参数。该控制方法还包括:根据第四偏移参数和预设的第四比例调整摄像头的焦距。
在具体实施时,通过电子设备内置的陀螺仪传感器和/或加速度传感器可以获取电子设备从初始位置(O点)移动至当前位置(A点)的移动距离信息,也就是可以获取电子设备的实际运动轨迹R在Z轴上的偏移值,进一步地,根据第四偏移参数和预设的第四比例调整摄像头的焦距。
示例性的,摄像头的焦距f可以通过如下公式获得:
f=R z1*d 1
其中,f为调整后的摄像头的焦距,Rz1为第四偏移参数,d1为预设的第四比例。上述预设的第四比例可以由本领域技术人员根据摄像头的焦距变化范围进行设置。本公开实施例对预设的第四比例的大小不做限定。
本公开实施例提供的控制方法,可以根据初始位置信息和当前位置信息调整摄像头的焦距,从而实现根据电子设备的运动轨迹实时调整摄像头的焦距,并更新显示画面,使用更方便。
在本公开的一个实施例中,在根据第一调整参数调整摄像头的姿态之后,该控制方法还可以包括:获取摄像头在调整后的姿态下拍摄的画面,并显示画面。
在具体实施时,在调整摄像头的姿态后,电子设备通过通信模块获取摄像头在调整后的姿态下拍摄的画面,并将该画面传输至显示模块,以将该画面展示给用户,从而实现远程控制摄像头转动并查看摄像头拍摄的内容。
在具体实施时,也可以将该画面传输至外部的显示器,以通过外部的显示器将画面展示给用户,这样,电子设备与显示器分离设置,在用户通过电子设备控制摄像头的同时,方便用户查看摄像头拍摄的画面内容。
根据本公开实施例,通过电子设备的传感器采集电子设备的初始位置信息和当前位置信息,根据电子设备的初始位置信息和当前位置信息,确定第一调整参数,根据第一调整参数调整摄像头的姿态,可以实现根据电子设备的运动轨迹实时调整摄像头姿态,以方便用户查看摄像头拍摄的内容。本公开实施例提供的摄像头的控制方法,基于传感器采集的数据控制摄像头响应,操作方便,可以实现VR式控制,用户体验更好。并且,避免了通过屏幕接收用户输入的操作信息以及对操作信息的处理过程,可以降低延迟,提高响应速度。
在本实施例中,第二调整方式适用于摄像头的拍摄画面的尺寸大于显示器的显示尺寸的情况。对于第二调整方式,可以根据电子设备的初始位置信息和当前位置信息,调整电子设备的显示画面,以查看摄像头拍摄的所有内 容。例如,采用广角摄像头拍摄,可以根据电子设备的初始位置信息和当前位置信息,调整电子设备的显示画面,以查看摄像头拍摄的所有内容。
在本公开的一个实施例中,该摄像头的控制方法还可以包括:步骤S4100-S4300。
步骤S4100,在选取第二调整方式的情况下,根据初始位置信息和当前位置信息,确定第二调整参数。
初始位置信息可以是电子设备移动的初始位置的信息,也就是电子设备在开启调整显示画面的功能时所处位置的信息。电子设备的初始位置与画面的初始显示区域对应,也就是,在电子设备开启调整显示画面的功能时,电子设备显示与初始显示区域对应的画面内容。初始显示区域可以预先设定,如图4所示,初始显示区域也可以是位于摄像头的拍摄画面的左上角的区域(区域a)。可以理解的是,也可以采用除上述方式以外的其他方式预先设定初始显示区域。例如,初始显示区域可以是位于摄像头的拍摄画面的中心的区域,等等。
电子设备的当前位置可以反映画面的显示区域。根据电子设备的初始位置信息和当前位置信息,确定第二调整参数。
第二调整参数可以用于确定画面的显示区域,即根据第二调整参数确定摄像头的拍摄画面的显示区域,根据显示区域获取摄像头的拍摄内容,并显示对应于该显示区域的画面内容。
在实施步骤S4100时,可以设定用户的右侧为X轴的正方向,用户的上方为Y轴的正方向。也就是说,用户向右移动电子设备时,显示区域向右偏移,用户向左移动电子设备时,显示区域向左偏移,用户向上移动电子设备时,显示区域向上偏移,用户向下移动电子设备时,显示区域向下偏移。基于此,第二调整参数包括第一偏移参数和第二偏移参数。例如,第一偏移参数为沿X轴的偏移距离,第二偏移参数为沿Y轴的偏移距离。如图3所示,例如,电子设备的初始位置为O点,当前位置为A点。第一偏移参数为沿X轴的偏移距离Rx、第二偏移参数为沿Y轴的偏移距离Ry。
步骤S4200,根据第二调整参数,确定画面的显示区域。
在一个更具体的例子中,根据所述第二调整参数,确定所述画面的显示区域的步骤可以进一步包括:步骤S4210~S4230。
步骤S4210,根据第一偏移参数和预设的第一比例,确定第一偏移值。
第一偏移参数为电子设备沿X方向的实际移动距离。根据第一偏移参数可以确定第一偏移值,即第一偏移值为显示区域沿拍摄画面的宽度方向的偏移距离。
为了避免由于电子设备的实际移动距离过大,导致画面的显示区域的变化幅度过大,而影响用户查看摄像头拍摄的画面内容,本公开实施例根据第一偏移比例和预设的第一比例确定第一偏移值。
示例性的,第一偏移值dx可以通过如下公式获得:
d x=R x*k 1
其中,dx为第一偏移值,Rx为第一偏移参数,k1为预设的第一比例。
上述预设的第一比例可以由本领域技术人员根据实际情况进行设置。例如,预设的第一比例可以是0.5、0.2等等,本公开实施例对预设的第一比例的大小不做限定。
步骤S4220,根据第二偏移参数和预设的第二比例,确定第二偏移值。
第二偏移参数为电子设备沿Y方向的实际移动距离。根据第二偏移参数可以确定第二偏移值,即第二偏移值为显示区域沿拍摄画面的高度移动的偏移距离。
为了避免由于电子设备的实际移动距离过大,导致画面的显示区域的变化幅度过大,而影响用户查看摄像头拍摄的画面内容,本公开实施例根据第二偏移比例和预设的第二比例确定第一偏移值。
示例性的,第二偏移值dy可以通过如下公式获得:
d y=R y*k 2
其中,dy为第二偏移值,Ry为第二偏移参数,k2为预设的第二比例。
上述预设的第二比例可以由本领域技术人员根据实际情况进行设置。例如,预设的第二比例可以是0.5、0.2等等,本公开实施例对预设的第二比例的大小不做限定。
步骤S4230,根据第一偏移值和第二偏移值,确定画面的显示区域。
示例性,如图4所示,初始显示区域位于摄像头的拍摄画面的左上角的区域(区域a),调整后的显示区域为区域b。
需要说明的是,第一偏移值小于或等于预设的第一距离阈值,第二偏移 值小于或等于预设的第二距离阈值。
第一距离阈值和第二距离阈值可以根据摄像头的拍摄画面的尺寸和显示器的显示尺寸设置。例如,参见图4,针对第一偏移值,也就是画面的显示区域沿摄像头的拍摄画面的宽度方向的偏移距离,第一距离阈值为摄像头的拍摄画面的宽度Cw与显示器的屏幕宽度Dw的差值。针对第二偏移值,也就是画面的显示区域沿摄像头的拍摄画面的高度方向的偏移距离,第二距离阈值为摄像头的拍摄画面的高度Ch与显示器的屏幕高度Dh的差值。
在本公开的一个实施例中,在第一偏移值达到第一距离阈值时,电子设备发出第一提示信息,以及在第二偏移值达到第二距离阈值时,电子设备发出第二提示信息,以提醒用户及时调整第二调整参数。
步骤S4300,显示显示区域对应的画面内容。
在具体实施时,在调整第二调整参数后,根据第二调整参数确定画面的显示区域,电子设备通过通信模块获取摄像头拍摄的对应于显示区域的画面内容,并将该画面内容传输至显示模块,以将该画面展示给用户,从而实现远程控制摄像头转动并查看摄像头拍摄的内容。在具体实施时,也可以将该画面传输至外部的显示器,以通过外部的显示器将画面展示给用户,这样,电子设备与显示器分离设置,在用户通过电子设备控制摄像头的同时,方便用户查看摄像头拍摄的画面内容。
本公开实施例提供的控制方法,对于摄像头的拍摄画面的尺寸与显示器的显示尺寸不适配的情况或者摄像头不可旋转的情况,可以通过第二调整参数调整画面的显示区域,从而实现根据电子设备的运动轨迹实时更新显示画面。此外,本公开实施例基于传感器采集的数据控制摄像头响应,操作方便,可以实现VR式控制,用户体验更好。并且,避免了通过屏幕接收用户输入的操作信息以及对操作信息的处理过程,可以降低延迟,提高响应速度。
在本实施例中,第二调整参数还包括第三偏移参数,根据第三偏移参数,调整摄像头的焦距,以获取摄像头在调整后的焦距下拍摄的画面。在一个具体的例子中,显示显示区域对应的画面内容的步骤可以进一步包括:步骤S5100~S5200。
步骤S5100,根据第三偏移参数和预设的第三比例调整摄像头的焦距。
在具体实施时,可以设定用户的前方为Z轴的正方向,也就是说,用户 向前移动电子设备时,焦距变大,用户向后移动电子设备时,焦距变小。参见图3,第二调整参数为沿Z轴的偏移距离Rz。
示例性的,摄像头的焦距f可以通过如下公式获得:
f=R z2*d 2
其中,f为调整后的摄像头的焦距,Rz2为第三偏移参数,d2为预设的第三比例。上述预设的第三比例可以由本领域技术人员根据摄像头的焦距变化范围进行设置。本公开实施例对预设的第三比例的大小不做限定。
在本公开的一个实施例中,步骤S5100可以进一步包括:根据第三偏移参数、预设的第三比例和设定焦距范围调整摄像头的焦距。
设定焦距范围可以是摄像头的允许的最大焦距范围,也可以是由本领域技术人员根据实际情况设置。例如,设定摄像头的焦距最小值为m,m<0,最大值为n,n>0。在具体实施时,在第三偏移参数Rz2>0时,即用户向前移动电子设备,焦距增大,此时,调整后的焦距f小于或等于摄像头的焦距的最大值n。在第三偏移参数Rz2<0时,即焦距为负,此时,调整后的焦距f为Rz2的绝对值与第三比例的乘积,且调整后的焦距f小于或等于摄像头的焦距的最小值m的绝对值。
在本公开的一个实施例中,在调整后的摄像头的焦距超出设定焦距范围时,电子设备发出第三提示信息,
在本公开的一个实施例中,该摄像头的控制方法还可以包括:步骤S6100~S6200。
步骤S6100,提供第二交互接口。
第二交互接口例如可以是能够连接输入设备的接口。该输入设备例如包括触摸屏、键盘、鼠标等能够供用户输入信息的设备。
步骤S6200,接收通过第二交互接口输入的设定焦距范围。
步骤S5200,显示摄像头在调整后的焦距下拍摄的对应于显示区域的画面内容。
本公开实施例提供的控制方法,通过电子设备的初始位置信息和当前位置信息,确定画面的显示区域,以及根据电子设备的初始位置信息和当前位置信息调整摄像头的焦距,在摄像头不可旋转的情况下,可以实现根据电子设备的运动轨迹实时更新显示画面。
下面以可旋转的摄像头为例说明摄像头的控制方法。参见图5,该摄像头的控制方法包括如下步骤。
步骤S501,获取电子设备的初始位置信息和当前位置信息。
步骤S502,根据初始位置信息和当前位置信息,确定第一调整参数,第一调整参数包括转动角度、转动方向和第四偏移参数。
步骤S503,根据转动角度和转动方向调整摄像头的姿态。
步骤S504,根据第四偏移参数和预设的第四比例调整摄像头的焦距。
步骤S505,获取摄像头在调整后的姿态和焦距下拍摄的画面,并显示画面。
需要说明的是,步骤S503-S504的执行顺序可以交替,也可以同时执行。
根据该例子,通过电子设备的传感器采集电子设备的初始位置信息和当前位置信息,根据电子设备的初始位置信息和当前位置信息,确定第一调整参数,根据第一调整参数调整摄像头的姿态,可以实现根据电子设备的运动轨迹实时调整摄像头姿态,以方便用户查看摄像头拍摄的内容。本公开实施例提供的摄像头的控制方法,基于传感器采集的数据控制摄像头响应,操作方便,可以实现VR式控制,用户体验更好。
下面以不可旋转的摄像头为例说明摄像头的控制方法。参见图6,该摄像头的控制方法包括如下步骤。
步骤S601,获取电子设备的初始位置信息和当前位置信息。
步骤S602,根据初始位置信息和当前位置信息,确定第二调整参数,第二调整参数包括第一偏移参数、第二偏移参数和第三偏移参数。
步骤S603,根据第一偏移参数和第二偏移参数,确定画面的显示区域。
步骤S604,根据第三偏移参数和预设的第三比例调整摄像头的焦距。
步骤S605,显示摄像头在调整后的焦距下拍摄的对应于显示区域的画面内容。
需要说明的是,步骤S603-S604的执行顺序可以交替,也可以同时执行。
根据该例子,通过电子设备的初始位置信息和当前位置信息,确定画面的显示区域,以及根据电子设备的初始位置信息和当前位置信息调整摄像头 的焦距,在摄像头不可旋转的情况下,可以实现根据电子设备的运动轨迹实时更新显示画面。
<装置实施例>
参见图7所示,本公开实施例提供了摄像头的控制装置700,该摄像头的控制装置700包括获取模块710、第一确定模块720和第一调整模块730。
该获取模块710用于获取所述电子设备的初始位置信息和当前位置信息。
该第一确定模块720用于在选取第一调整方式的情况下,根据所述初始位置信息和所述当前位置信息,确定第一调整参数。
该第一调整模块730用于根据所述第一调整参数调整所述摄像头的姿态。
在一个更具体的例子中,所述第一调整参数包括转动角度和转动方向。该第一调整模块730具体用于根据所述转动角度和所述转动方向调整所述摄像头的姿态。
在一个更具体的例子中,第一调整参数还包括第四偏移参数。该第一调整模块730还具体用于根据所述第四偏移参数和预设的第四比例调整所述摄像头的焦距。
在一个实施例中,该摄像头的控制装置700还包括显示模块。该显示模块用于获取所述摄像头在调整后的姿态下拍摄的画面,并显示所述画面。
在本公开的一个实施例中,该摄像头的控制装置700还包括第二确定模块和第二调整模块。
该第二确定模块用于在选取第二调整方式的情况下,根据所述初始位置信息和所述当前位置信息,确定第二调整参数。
该第二调整模块用于根据所述第二调整参数,确定所述画面的显示区域。
该显示模块还用于显示所述显示区域对应的画面内容。
在一个更具体的例子中,第二调整参数包括第一偏移参数和第二偏移参数。
该第二确定模块具体用于根据所述第一偏移参数和预设的第一比例,确定第一偏移值。
该第二确定模块具体用于根据所述第二偏移参数和预设的第二比例,确定第二偏移值
该第二确定模块具体用于根据所述第一偏移值和所述第二偏移值,确定所述画面的显示区域。
其中,所述第一偏移值小于或等于预设的第一距离阈值,所述第二偏移值小于或等于预设的第二距离阈值。
在一个更具体的例子中,第二调整参数还包括第三偏移参数。该第二调整模块还具体用于根据所述第三偏移参数和预设的第三比例调整所述摄像头的焦距。
在一个更具体的例子中,该显示模块具体用于显示所述摄像头在调整后的焦距下拍摄的对应于所述显示区域的画面内容。
<设备实施例>
参见图8所示,本公开实施例还提供了一种电子设备800。该电子设备800例如可以是如图1所示的电子设备1000。
该电子设备包括处理器810、存储器820、传感器830。
该存储器820用于存储可执行的计算机程序。
该处理器810,用于根据所述可执行的计算机程序的控制,执行根据前述方法实施例中任一项所述的摄像头的控制方法。
该传感器830与处理器810连接,用于采集电子设备800的位置信息并输出至处理器810。
参见图8所示,在一个实施例中,该电子设备800还包括显示器840。该显示器840与处理器810连接,用于接收处理器810输出的画面,以显示该画面。
需要说明的是,显示器840可以集成于电子设备800,例如,移动终端或、头戴显示设备等。显示器840也可以设置在电子设备800的外部,例如,头戴显示设备和控制手柄。这样,电子设备与显示器分离设置,在用户通过电子设备控制摄像头的同时,方便用户查看摄像头拍摄的画面内容。
在一个实施例中,电子设备1000可以是具有通信功能、业务处理能力的电子设备。该电子设备1000例如可以是移动终端、便携式电脑、平板电脑、掌上电脑、可穿戴设备、VR(虚拟现实,Virtual Reality)设备等。
在实施例中,该电子设备800与摄像头连接,用于控制摄像头工作。摄 像头2000例如可以是360°可旋转摄像头、监控摄像头、网络摄像头、广角摄像头、超广角摄像头以及长焦摄像头等。
根据本公开实施例提供的电子设备,通过电子设备的传感器采集电子设备的初始位置信息和当前位置信息,根据电子设备的初始位置信息和当前位置信息调整摄像头的姿态,可以实现根据电子设备的运动轨迹实时调整摄像头姿态,以方便用户查看摄像头拍摄的内容。这样,基于传感器采集的数据控制摄像头响应,操作方便,可以实现VR式控制,用户体验更好。并且,在摄像头不可旋转的情况下,也可以实现根据电子设备的运动轨迹实时更新显示画面。
<计算机可读存储介质>
本公开实施例还提供了一种计算机可读存储介质,其上存储有计算机指令,所述计算机指令被处理器运行时执行本公开实施例提供的摄像头的控制方法。
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分相互参见即可,每个实施例重点说明的都是与其他实施例的不同之处,但本领域技术人员应当清楚的是,上述各实施例可以根据需要单独使用或者相互结合使用。另外,对于装置实施例而言,由于其是与方法实施例相对应,所以描述得比较简单,相关之处参见方法实施例的对应部分的说明即可。以上所描述的系统实施例仅仅是示意性的,其中作为分离部件说明的模块可以是或者也可以不是物理上分开的。
本发明可以是系统、方法和/或计算机程序产品。计算机程序产品可以包括计算机可读存储介质,其上载有用于使处理器实现本发明的各个方面的计算机可读程序指令。
计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是――但不限于――电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、 可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。这里所使用的计算机可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。
这里所描述的计算机可读程序指令可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。
用于执行本发明操作的计算机程序指令可以是汇编指令、指令集架构
(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及常规的过程式编程语言—诸如“如“语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络—包括局域网(LAN)或广域网(WAN)网连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路可以执行计算机可读程序指令,从而实现本发明的各个方面。
这里参照根据本发明实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本发明的各个方面。应当理解,流程图和/或框图的 每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。
这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。
也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。
附图中的流程图和框图显示了根据本发明的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,所述模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。对于本领域技术人员来说公知的是,通过硬件方式实现、通过软件方式实现以及通过软件和硬件结合的方式实现都是等价的。
以上已经描述了本发明的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显 而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。本发明的范围由所附权利要求来限定。

Claims (11)

  1. 一种摄像头的控制方法,其特征在于,应用于电子设备,所述电子设备与摄像头通信连接,所述方法包括:
    获取所述电子设备的初始位置信息和当前位置信息;
    在选取第一调整方式的情况下,根据所述初始位置信息和所述当前位置信息,确定第一调整参数;
    根据所述第一调整参数调整所述摄像头的姿态。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    获取所述摄像头在调整后的姿态下拍摄的画面,并显示所述画面。
  3. 根据权利要求1所述的方法,其特征在于,所述第一调整参数包括转动角度和转动方向;
    所述根据所述第一调整参数调整所述摄像头的姿态,包括:
    根据所述转动角度和所述转动方向调整所述摄像头的姿态。
  4. 根据权利要求1所述的方法,其特征在于,所述第一调整参数还包括第四偏移参数;所述方法还包括:
    根据所述第四偏移参数和预设的第四比例调整所述摄像头的焦距。
  5. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    在选取第二调整方式的情况下,根据所述初始位置信息和所述当前位置信息,确定第二调整参数;
    根据所述第二调整参数,确定所述画面的显示区域;
    显示所述显示区域对应的画面内容。
  6. 根据权利要求5所述的方法,其特征在于,所述第二调整参数包括第一偏移参数和第二偏移参数;
    所述根据所述第二调整参数,确定所述画面的显示区域,包括:
    根据所述第一偏移参数和预设的第一比例,确定第一偏移值;
    根据所述第二偏移参数和预设的第二比例,确定第二偏移值;
    根据所述第一偏移值和所述第二偏移值,确定所述画面的显示区域;
    其中,所述第一偏移值小于或等于预设的第一距离阈值,所述第二偏移值小于或等于预设的第二距离阈值。
  7. 根据权利要求5所述的方法,其特征在于,所述第二调整参数还包括第三偏移参数;
    所述显示区域对应的画面内容,包括:
    根据所述第三偏移参数和预设的第三比例调整所述摄像头的焦距;
    显示所述摄像头在调整后的焦距下拍摄的对应于所述显示区域的画面内容。
  8. 根据权利要求1~5任一所述的方法,其特征在于,所述获取所述电子设备的初始位置信息,包括:
    提供第一交互接口;
    接收通过所述第一交互接口输入的操作指令;
    响应于所述操作指令,将所述电子设备在接收到所述操作指令时的位置信息作为所述电子设备的初始位置信息;
    所述方法还包括:
    响应于所述操作指令,将所述摄像头调整至初始姿态。
  9. 一种摄像头的控制装置,其特征在于,应用于所述电子设备,所述装置包括:
    获取模块,用于获取所述电子设备的初始位置信息和当前位置信息;
    第一确定模块,用于在选取第一调整方式的情况下,根据所述初始位置信息和所述当前位置信息,确定第一调整参数;
    第一调整模块,用于根据所述第一调整参数调整所述摄像头的姿态。
  10. 一种电子设备,其特征在于,包括传感器,所述电子设备还包括:
    存储器,用于存储可执行的计算机程序;
    处理器,用于根据所述可执行的计算机程序的控制,执行根据权利要求1-7中任一项所述的方法;
    其中,所述传感器与所述处理器连接,以将采集到的所述电子设备的位置信息输出至所述处理器。
  11. 一种计算机可读存储介质,其上存储有计算机指令,所述计算机指令被处理器运行时执行权利要求1-8任一项所述的方法。
PCT/CN2021/139169 2021-02-05 2021-12-17 摄像头的控制方法、装置、电子设备及存储介质 WO2022166432A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110162704.9 2021-02-05
CN202110162704.9A CN112995501A (zh) 2021-02-05 2021-02-05 摄像头的控制方法、装置、电子设备及存储介质

Publications (1)

Publication Number Publication Date
WO2022166432A1 true WO2022166432A1 (zh) 2022-08-11

Family

ID=76348190

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/139169 WO2022166432A1 (zh) 2021-02-05 2021-12-17 摄像头的控制方法、装置、电子设备及存储介质

Country Status (2)

Country Link
CN (1) CN112995501A (zh)
WO (1) WO2022166432A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115914844A (zh) * 2022-12-22 2023-04-04 深圳小湃科技有限公司 基于摄像头的看守位位置校正方法、设备及可读存储介质

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112995501A (zh) * 2021-02-05 2021-06-18 歌尔科技有限公司 摄像头的控制方法、装置、电子设备及存储介质
CN114422706A (zh) * 2022-02-16 2022-04-29 维沃移动通信有限公司 拍摄参数调整方法、装置、电子设备及介质
CN114885278A (zh) * 2022-04-22 2022-08-09 歌尔股份有限公司 耳机的连接方法、装置、耳机及介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103927937A (zh) * 2013-01-14 2014-07-16 冠捷投资有限公司 具广角摄影功能的显示器及其显示方法
US20170048427A1 (en) * 2014-05-16 2017-02-16 Lg Electronics Inc. Mobile terminal and control method therefor
CN107637066A (zh) * 2015-05-12 2018-01-26 三星电子株式会社 使用可穿戴装置的远程控制方法和装置
CN110505401A (zh) * 2019-08-16 2019-11-26 维沃移动通信有限公司 一种摄像头控制方法及电子设备
CN110610465A (zh) * 2019-08-26 2019-12-24 Oppo广东移动通信有限公司 图像校正方法和装置、电子设备、计算机可读存储介质
CN112995501A (zh) * 2021-02-05 2021-06-18 歌尔科技有限公司 摄像头的控制方法、装置、电子设备及存储介质

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104378587B (zh) * 2014-10-27 2019-02-19 小米科技有限责任公司 摄像设备控制方法、装置及设备
CN105808062A (zh) * 2016-03-08 2016-07-27 上海小蚁科技有限公司 一种用于控制智能装置的方法和终端
CN106791385A (zh) * 2016-12-09 2017-05-31 深圳创维-Rgb电子有限公司 一种基于虚拟现实技术的观景方法、装置及系统
CN111314616A (zh) * 2020-03-16 2020-06-19 维沃移动通信有限公司 图像获取方法、电子设备、介质及可穿戴设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103927937A (zh) * 2013-01-14 2014-07-16 冠捷投资有限公司 具广角摄影功能的显示器及其显示方法
US20170048427A1 (en) * 2014-05-16 2017-02-16 Lg Electronics Inc. Mobile terminal and control method therefor
CN107637066A (zh) * 2015-05-12 2018-01-26 三星电子株式会社 使用可穿戴装置的远程控制方法和装置
CN110505401A (zh) * 2019-08-16 2019-11-26 维沃移动通信有限公司 一种摄像头控制方法及电子设备
CN110610465A (zh) * 2019-08-26 2019-12-24 Oppo广东移动通信有限公司 图像校正方法和装置、电子设备、计算机可读存储介质
CN112995501A (zh) * 2021-02-05 2021-06-18 歌尔科技有限公司 摄像头的控制方法、装置、电子设备及存储介质

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115914844A (zh) * 2022-12-22 2023-04-04 深圳小湃科技有限公司 基于摄像头的看守位位置校正方法、设备及可读存储介质

Also Published As

Publication number Publication date
CN112995501A (zh) 2021-06-18

Similar Documents

Publication Publication Date Title
WO2022166432A1 (zh) 摄像头的控制方法、装置、电子设备及存储介质
US20180007340A1 (en) Method and system for motion controlled mobile viewing
EP2770725B1 (en) Apparatus and method for processing an image in device
US10969949B2 (en) Information display device, information display method and information display program
CN107835375B (zh) 全景摄像的方法及装置
US10375312B2 (en) Imaging device and video generation method by imaging device
JP6273081B2 (ja) ポインティング装置を用いたコンテンツ移動方法および装置
EP3197148A1 (en) Method for controlling motions and actions of an apparatus including an image capture device
CN104394452A (zh) 一种智能移动终端的浸入式视频呈现方法
US20130222363A1 (en) Stereoscopic imaging system and method thereof
EP2824905B1 (en) Group recording method, machine-readable storage medium, and electronic device
CN111418202A (zh) 相机缩放级别和图像帧捕获控制
WO2017075966A1 (zh) 列表内容显示方法及装置
US9870139B2 (en) Portable apparatus and method for sharing content with remote device thereof
JP2018502313A (ja) 投影される対話型仮想デスクトップ
US9921054B2 (en) Shooting method for three dimensional modeling and electronic device supporting the same
US10979700B2 (en) Display control apparatus and control method
JP2010092086A (ja) ユーザ入力装置、デジタルカメラ、入力制御方法、および入力制御プログラム
KR102294599B1 (ko) 디스플레이 디바이스 및 그 제어 방법
KR20150007875A (ko) 전자 장치의 촬영 이미지 생성 방법 및 장치
CN110083174B (zh) 无人机控制方法、装置及系统
EP3962062A1 (en) Photographing method and apparatus, electronic device, and storage medium
CN112738404B (zh) 电子设备的控制方法及电子设备
CN111381750B (zh) 电子装置及其控制方法和计算机可读存储介质
US20150312482A1 (en) User input technique for adjusting successive image capturing

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21924425

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21924425

Country of ref document: EP

Kind code of ref document: A1