CN114449156A - Camera control method and device, electronic equipment and storage medium - Google Patents

Camera control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114449156A
CN114449156A CN202011219353.2A CN202011219353A CN114449156A CN 114449156 A CN114449156 A CN 114449156A CN 202011219353 A CN202011219353 A CN 202011219353A CN 114449156 A CN114449156 A CN 114449156A
Authority
CN
China
Prior art keywords
camera
offset data
spatial attitude
connection
equipment
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
Application number
CN202011219353.2A
Other languages
Chinese (zh)
Inventor
张海坡
李国盛
郭鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202011219353.2A priority Critical patent/CN114449156A/en
Publication of CN114449156A publication Critical patent/CN114449156A/en
Pending legal-status Critical Current

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
    • 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/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters

Abstract

The disclosure relates to a camera control method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring a first preview image acquired by a camera of camera equipment; when the first preview image is acquired, acquiring the spatial attitude change of the electronic equipment to obtain spatial attitude offset data; and sending the spatial attitude deviation data to the camera equipment so that the camera equipment adjusts the view angle of a camera thereof according to the spatial attitude deviation data and corresponding spatial attitude change. The viewing angle of the camera can be adjusted by adjusting the space posture of the electronic equipment in the embodiment, the effect of synchronous adjustment of the camera and the electronic equipment can be achieved, the operation is more convenient and faster, and the use experience is promoted.

Description

Camera control method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of control technologies, and in particular, to a camera control method and apparatus, an electronic device, and a storage medium.
Background
At present, the existing monitoring camera or the distributed camera has an independent mechanical holder, and the mechanical holder is used for carrying out angle rotation with a larger visual angle, so that a larger viewing angle can be obtained under the condition of lens distortion as small as possible. In practical application, the application program at the mobile phone end is connected with the camera, and the user can control the rotation of the mechanical holder through the operation buttons of the control interface in the application program, so that the effect of adjusting the view angle of the camera is achieved.
However, when the user controls the mechanical holder to rotate by operating the button, the slight rotation of the button can cause the mechanical platform to rotate greatly, so that the viewing angle is changed greatly, and the control experience and the remote monitoring experience are poor.
Disclosure of Invention
The present disclosure provides a camera control method and apparatus, an electronic device, and a storage medium to solve the deficiencies of the related art.
According to a first aspect of the embodiments of the present disclosure, there is provided a camera control method applied to an electronic device, including:
acquiring a first preview image acquired by a camera of camera equipment;
when the first preview image is obtained, obtaining the space attitude change of the electronic equipment to obtain space attitude offset data;
and sending the spatial attitude deviation data to the camera equipment so that the camera equipment adjusts the view angle of a camera thereof according to the spatial attitude deviation data and corresponding spatial attitude change.
Optionally, sending the spatial attitude offset data to the image capturing apparatus includes:
acquiring a communication connection between the electronic device and the image pickup device, wherein the communication connection comprises an end-to-end connection between the electronic device and the image pickup device, and the end-to-end connection mode comprises at least one of the following modes: bluetooth connection, WiFi connection, infrared data transmission connection, ZigBee connection and ultra-wideband connection;
and sending the spatial attitude deviation data to the camera equipment through the end-to-end connection.
Optionally, sending the spatial attitude offset data to the image capturing apparatus includes:
acquiring communication connection between the electronic equipment and the camera equipment, wherein the communication connection comprises the connection between the electronic equipment and the camera equipment through a server;
and sending the spatial attitude deviation data to the server so that the server forwards the spatial attitude deviation data to the image pickup equipment.
Optionally, after obtaining the spatial attitude offset data, the method further includes:
a scale covering layer is arranged in a display interface of the electronic equipment; the scale covering layer comprises a cross-shaped scale with an initial central point positioned at the central position of the display interface;
acquiring the offset position of the initial central point according to the spatial attitude offset data;
moving the cross-shaped scale so that the initial center point is at the offset position.
Optionally, after sending the spatial attitude offset data to the image capturing apparatus, the method further includes:
acquiring a second preview image acquired by a camera of the camera equipment;
acquiring the similarity of the second preview image and the first preview image;
and when the similarity exceeds a preset similarity threshold, generating a prompt message for representing that the rotation to the limit position is carried out.
Optionally, the method further comprises:
and stopping sending the spatial attitude deviation data in response to detecting the trigger operation of starting the locking key in the display interface.
According to a second aspect of the embodiments of the present disclosure, there is provided a camera control device applied to an electronic device, including:
the first image acquisition module is used for acquiring a first preview image acquired by a camera of the camera equipment;
the offset data acquisition module is used for acquiring the spatial attitude change of the electronic equipment when the first preview image is acquired, so as to obtain spatial attitude offset data;
and the offset data sending module is used for sending the spatial attitude offset data to the camera equipment so that the camera equipment can adjust the view angle of a camera thereof according to the spatial attitude offset data and corresponding spatial attitude change.
Optionally, the offset data sending module includes:
a communication connection acquiring unit, configured to acquire a communication connection between the electronic device and the image capturing device, where the communication connection includes an end-to-end connection between the electronic device and the image capturing device, and an end-to-end connection manner includes at least one of: bluetooth connection, WiFi connection, infrared data transmission connection, ZigBee connection and ultra-wideband connection;
an offset data transmitting unit configured to transmit the spatial orientation offset data to the image pickup apparatus through the end-to-end connection.
Optionally, the offset data sending module includes:
a communication connection acquisition unit, configured to acquire a communication connection between the electronic device and the image pickup device, where the communication connection includes connection between the electronic device and the image pickup device through a server;
and the offset data sending unit is used for sending the spatial attitude offset data to the server so as to enable the server to forward the spatial attitude offset data to the image pickup equipment.
Optionally, the apparatus further comprises:
the scale covering layer adding module is used for arranging a scale covering layer in a display interface of the electronic equipment; the scale covering layer comprises a cross-shaped scale with an initial central point positioned at the central position of the display interface;
the offset position acquisition module is used for acquiring the offset position of the initial central point according to the spatial attitude offset data;
and the central point moving module is used for moving the cross-shaped scale so that the initial central point is positioned at the offset position.
Optionally, the apparatus further comprises:
the second image acquisition module is used for acquiring a second preview image acquired by a camera of the camera equipment;
a similarity obtaining module, configured to obtain a similarity between the second preview image and the first preview image;
and the prompt message generation module is used for generating a prompt message for representing that the rotation to the limit position is realized when the similarity exceeds a preset similarity threshold value.
Optionally, the apparatus further comprises:
and the offset data sending stopping module is used for stopping sending the spatial attitude offset data in response to detecting the triggering operation of the locking key in the representation opening display interface.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing a computer program executable by the processor;
wherein the processor is configured to execute the computer program in the memory to implement the method as described above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, in which an executable computer program is capable of implementing the method as described above when executed by a processor.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the embodiment, the first preview image acquired by the camera of the camera equipment can be acquired; when the first preview image is acquired, acquiring the spatial attitude change of the electronic equipment to obtain spatial attitude offset data; and sending the spatial attitude deviation data to the camera equipment so that the camera equipment adjusts the view angle of a camera thereof according to the spatial attitude deviation data and corresponding spatial attitude change. Like this, can adjust the angle of framing of camera among the camera equipment through the space gesture of adjustment electronic equipment in this embodiment, can reach the effect of camera and electronic equipment synchronous adjustment, operate more convenient and fast, be favorable to promoting to use and experience.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a camera control method according to an exemplary embodiment.
FIG. 2 is a schematic diagram illustrating an electronic device connected end-to-end with a camera according to an example embodiment.
Fig. 3 is a schematic diagram illustrating an electronic device connected to a camera via a server according to an exemplary embodiment.
FIG. 4 is a flow diagram illustrating a method of transmitting spatial attitude offset data in accordance with an exemplary embodiment.
FIG. 5 is a flow diagram illustrating another method of transmitting spatial pose offset data, according to an example embodiment.
Fig. 6 is a flow chart illustrating another camera control method according to an example embodiment.
FIG. 7 illustrates a display effect of a set scale mask according to an exemplary embodiment.
Fig. 8 is a diagram illustrating a display effect of indicating a rotation angle by a scale mask according to an exemplary embodiment.
Fig. 9 is a flowchart illustrating yet another camera control method according to an exemplary embodiment.
Fig. 10 is a block diagram illustrating a camera control device according to an exemplary embodiment.
FIG. 11 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The following exemplary described embodiments do not represent all embodiments consistent with the present disclosure. Rather, they are merely examples of devices consistent with certain aspects of the present disclosure as recited in the claims below.
In order to solve the above technical problem, an embodiment of the present disclosure provides a camera control method, and fig. 1 is a flowchart of a camera control method shown according to an exemplary embodiment, and is applicable to an electronic device, where the electronic device may include a smart phone, a tablet computer, a personal computer, and other devices, the camera device may include a monitoring camera or a distributed camera, and the camera device includes a cradle head, and an effect of adjusting a view angle of the camera is achieved by controlling the cradle head to rotate left, right, up, or down.
Referring to fig. 1, a camera control method includes steps 11 to 13, where:
in step 11, a first preview image captured by a camera of an imaging device is acquired.
In this embodiment, the electronic device may establish a communication connection with the image capturing device, where the communication connection may include an end-to-end connection between the electronic device and the image capturing device, and the end-to-end connection mode includes at least one of the following: bluetooth connection, WiFi connection, infrared data transmission connection, ZigBee connection and ultra wide band connection, and the effect is as shown in figure 2. Referring to fig. 2, the electronic apparatus 10 may be connected with the image pickup apparatus 20 by end-to-end. In an example, the communication connection may further include the electronic device connecting with the image capturing device through a server, and the effect is as shown in fig. 3. Referring to fig. 3, the electronic apparatus 10 is connected to the image pickup apparatus through the server 30.
In this embodiment, after the communication connection is established, the electronic device may obtain a real-time image acquired by a camera of the image pickup device, which is hereinafter referred to as a first preview image. In this way, the first preview image can be displayed in the display interface of the electronic device.
In step 12, when the first preview image is acquired, acquiring a spatial attitude change of the electronic device to obtain spatial attitude offset data.
In this embodiment, when the first preview image is acquired, the electronic device may acquire a spatial posture of the electronic device at the current time, which is referred to as an initial spatial posture hereinafter. The initial spatial attitude may be obtained by a spatial attitude sensor built in the electronic device, such as at least one of a gravity sensor, an acceleration sensor, and a gyroscope.
In an example, the electronic device may acquire angle information of the electronic device as spatial attitude data through a built-in gravity sensor. Taking the example that the electronic device is a mobile phone, the angle information of the mobile phone obtained by the gravity sensor built in the mobile phone is as follows: the tilt angle with respect to the X-axis and/or the Y-axis in the plane XOY in which the display screen lies.
The plane XOY on which the display screen is located is a coordinate system plane formed by taking any point on the display screen as a coordinate origin O, taking the direction of the height as a Y axis, and taking the direction of the width as an X axis.
In another example, the electronic device may acquire spatial pose data through a built-in acceleration sensor. Taking the electronic device as an example of a mobile phone, when the mobile phone is placed horizontally, an acceleration sensor built in the mobile phone detects an inclination angle of the mobile phone with respect to an X axis and/or a Y axis in a plane XOY where a display screen is located.
In another example, the electronic device may obtain the tilt angle information through a built-in gyroscope, and determine the spatial attitude of the electronic device according to the tilt angle information. Taking the electronic device as an example of a mobile phone, a gyroscope built in the mobile phone detects an inclination angle of the mobile phone with respect to an X axis and/or a Y axis in a plane XOY where a display screen is located and an inclination angle with respect to a Z axis in the plane XOY where the display screen is located. Wherein the Z-axis is perpendicular to the XOY plane.
It should be noted that, considering that the cloud platform in the camera can rotate left or right around the Y axis, or rotate up or down around the X axis, in this embodiment, only the tilt angles with respect to the X axis and the Y axis are required to be acquired.
After determining the initial spatial attitude, the electronic device may continue to communicate with the attitude sensor to obtain spatial attitude data. And when the difference value of the two adjacent spatial attitude data is not zero, determining that the attitude of the electronic equipment is detected to be changed. When the change of the attitude of the electronic equipment is detected, the relative change of the electronic equipment relative to the initial space attitude is obtained, and space attitude offset data is obtained. For example, when the user holds the mobile phone and rotates the mobile phone 5 degrees to the left, the mobile phone may determine that the display screen rotates 5 degrees to the left around the Y axis, and the spatial attitude offset data is: x, -5 degrees.
In step 13, the spatial attitude offset data is sent to the image pickup apparatus, so that the image pickup apparatus adjusts the view angle of the camera thereof with a corresponding spatial attitude change according to the spatial attitude offset data.
In this embodiment, the electronic device may send the spatial attitude offset data to the image capturing device, and the sending method may include:
in one example, referring to fig. 4, in step 41, the electronic device may acquire a communication connection between the electronic device and the image capturing device, where the communication connection includes an end-to-end connection between the electronic device and the image capturing device, and the end-to-end connection includes at least one of: bluetooth connection, WiFi connection, infrared data transmission connection, ZigBee connection and ultra-wideband connection. In step 42, the electronic device may send spatial pose offset data to the camera device over the end-to-end connection. In this way, the electronic device can realize close-range control of the view angle of the camera in the image pickup device.
In another example, referring to fig. 5, in step 51, the electronic device may acquire a communication connection between the electronic device and the image capturing device, which may include the electronic device connecting with the image capturing device through a server. In step 52, the electronic device may send the spatial pose offset data to the server for the server to forward to the camera device.
It should be noted that the electronic device may be connected to the image capturing device through the end-to-end connection and the server at the same time, and in this case, the electronic device may randomly select, or select a communication connection with a larger bandwidth, or a communication connection with a better network signal for transmission, which is not limited herein.
In this embodiment, after the image capturing apparatus receives the spatial attitude offset data, the orientation of the camera thereof may be adjusted by the steering of the pan/tilt head, so as to adjust the viewing angle of the camera. Like this, can adjust the angle of framing of camera through the space gesture of adjustment electronic equipment in this embodiment, make camera and electronic equipment synchronous adjustment, operate more convenient and fast. Further analysis, this embodiment can reach the effect that similar user directly rotated the camera with the hand, and the adjustment is experienced like on-the-spot adjustment, is favorable to promoting to use and experiences.
Considering that the rotating electronic device is only a directional adjustment, in an embodiment, referring to fig. 6, in step 61, the electronic device may set a ruler covering layer in the display interface of the electronic device, and the effect is as shown in fig. 7. Referring to fig. 7, the scale covering layer includes a cross-shaped scale having an initial center point a located at the center of the display interface, and the cross-shaped scale rotates along with the rotation of the electronic device. In practical applications, the minimum resolution angle T of the cross scale may be set according to a specific scene, for example, the minimum resolution angle is 1 degree. In step 62, the electronic device may obtain the offset position of the initial center point according to the spatial attitude offset data, that is, the final stop position when the initial center point rotates along with the electronic device or the real-time position corresponding to the time when the sensor collects the spatial attitude data. In step 63, the electronics can move the cross-shaped scale so that the initial center point is at the offset position, the effect being shown in FIG. 8. Referring to fig. 8, as the electronic device rotates left about the Y axis, the initial center point will move to the right. Therefore, in the embodiment, the rotation angle on the X axis and/or the Y axis can be conveniently determined by the user through the number of the scales (minimum resolution angles) by moving the scale, and the view angle of the camera can be controlled more accurately.
Considering that the pan-tilt head of the camera has a rotation range, for example, the left-right rotation range is [ 90, 90 ] degrees, and the up-down rotation range is [ 90, 90 ] degrees, that is, unlimited rotation cannot be realized. In an embodiment, referring to fig. 9, in step 91, the electronic device may acquire an actual image captured by a camera of the camera device, which is referred to as a second preview image. The second preview image is an image acquired by a camera of the electronic device after the electronic device sends the spatial attitude offset data to the camera device.
In step 92, the electronic device may obtain a similarity of the second preview image and the first preview image. It can be understood that, if the camera adjusts the view angle after receiving the spatial attitude offset data, actual images acquired at different view angles are different, that is, the first preview image and the second preview image are different. In this step, the electronic device may obtain the feature vectors of the first preview image and the second preview image by using a preset feature extraction algorithm, where the feature extraction algorithm may complete a trained deep learning algorithm, such as a neural network (e.g., a convolutional neural network), a blob detection algorithm (e.g., a method for detecting a gaussian operator (LOG), a method using a Hessian matrix (second order differential) of a pixel point and a determinant value thereof (DOH)), a corner detection algorithm (e.g., a Harris algorithm and a FAST algorithm), a binary string feature descriptor, and the like. After the feature vectors are obtained, cosine values, i.e., similarity, of the two feature vectors can be calculated by using a cosine formula. When the cosine value is larger, it is said that the two feature vectors are more similar, i.e., the first preview image and the second preview image are more similar to each other.
In step 92, a preset similarity threshold, such as 0.95, may be stored in the electronic device. The electronic device may compare the similarity obtained in step 91 to the similarity threshold described above. In step 93, when the similarity is smaller than the similarity threshold, it indicates that the view angle of the camera is changed; when the similarity exceeds the similarity threshold value, it is indicated that the view angle of the camera is not changed, that is, the camera does not rotate after receiving the spatial attitude offset data, and at this time, the electronic device can generate a prompt message representing that the camera rotates to a limit position. The prompting message may be "the camera has rotated to the leftmost side, please rotate to the right", or "the camera has rotated to the rightmost side, please rotate to the left". Like this, can make the user in time know the rotation state of camera through generating the suggestion message in this embodiment, avoid the user to suspect the camera and damage, communication connection disconnection scheduling problem, be favorable to promoting and use experience.
Considering that the camera needs to take a picture or record a video after being adjusted to the view angle of the user's heart instrument, the user may cause the camera to continue to adjust by operating the electronic device at this time. In an embodiment, a lock key may be preset in a display interface of the electronic device, when the lock key is turned off, the electronic device may normally send the spatial attitude offset data, and after the lock key is turned on, the electronic device stops sending the spatial attitude offset data. Therefore, the electronic equipment can not influence the view angle of the camera no matter how the electronic equipment rotates, so that a user can conveniently take a picture or record a video, and the use experience is improved.
Fig. 10 is a block diagram of a camera control apparatus according to an exemplary embodiment, and the camera control apparatus may be applied to an electronic device, where the electronic device may include a smart phone, a tablet computer, a personal computer, and the like, and the camera device may include a surveillance camera or a distributed camera, and the camera device includes a cradle head, and the camera device may achieve an effect of adjusting a viewing angle of the camera by controlling the cradle head to rotate left, right, up, or down. Referring to fig. 10, a camera control device includes:
a first image obtaining module 101, configured to obtain a first preview image acquired by a camera of the image pickup apparatus;
the offset data acquisition module 102 is configured to acquire a spatial attitude change of the electronic device when the first preview image is acquired, so as to obtain spatial attitude offset data;
and the offset data sending module 103 is configured to send the spatial attitude offset data to the image pickup apparatus, so that the image pickup apparatus adjusts a view angle of a camera thereof according to the spatial attitude offset data with a corresponding spatial attitude change.
In one embodiment, the offset data sending module includes:
a communication connection acquiring unit, configured to acquire a communication connection between the electronic device and the image capturing device, where the communication connection includes an end-to-end connection between the electronic device and the image capturing device, and an end-to-end connection manner includes at least one of: bluetooth connection, WiFi connection, infrared data transmission connection, ZigBee connection and ultra-wideband connection;
an offset data transmitting unit configured to transmit the spatial orientation offset data to the image pickup apparatus through the end-to-end connection.
In one embodiment, the offset data sending module includes:
a communication connection acquisition unit configured to acquire a communication connection between the electronic apparatus and the image pickup apparatus, the communication connection including a connection of the electronic apparatus with the image pickup apparatus through a server;
and the offset data sending unit is used for sending the spatial attitude offset data to the server so as to enable the server to forward the spatial attitude offset data to the image pickup equipment.
In one embodiment, the apparatus further comprises:
the scale covering layer adding module is used for arranging a scale covering layer in a display interface of the electronic equipment; the scale covering layer comprises a cross-shaped scale with an initial central point positioned at the central position of the display interface;
the offset position acquisition module is used for acquiring the offset position of the initial central point according to the spatial attitude offset data;
and the central point moving module is used for moving the cross-shaped scale so that the initial central point is positioned at the offset position.
In one embodiment, the apparatus further comprises:
the second image acquisition module is used for acquiring a second preview image acquired by a camera of the camera equipment;
a similarity obtaining module, configured to obtain a similarity between the second preview image and the first preview image;
and the prompt message generating module is used for generating a prompt message for representing that the rotation to the limit position is realized when the similarity exceeds a preset similarity threshold.
In one embodiment, the apparatus further comprises:
and the offset data sending stopping module is used for stopping sending the spatial attitude offset data in response to detecting the triggering operation of the locking key in the representation opening display interface.
It can be understood that the apparatus provided in the embodiment of the present disclosure corresponds to the method shown in fig. 1, and specific contents may refer to the contents of each embodiment of the method, which are not described herein again.
FIG. 11 is a block diagram illustrating an electronic device in accordance with an example embodiment. For example, the electronic device 1100 may be a smartphone, a computer, a digital broadcast terminal, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
Referring to fig. 11, electronic device 1100 may include one or more of the following components: processing component 1102, memory 1104, power component 1106, multimedia component 1108, audio component 1110, input/output (I/O) interface 1112, sensor component 1114, communication component 1116, and image capture component 1118.
The processing component 1102 generally controls the overall operation of the electronic device 1100, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1102 may include one or more processors 1120 to execute computer programs. Further, the processing component 1102 may include one or more modules that facilitate interaction between the processing component 1102 and other components. For example, the processing component 1102 may include a multimedia module to facilitate interaction between the multimedia component 1108 and the processing component 1102.
The memory 1104 is configured to store various types of data to support operations at the electronic device 1100. Examples of such data include computer programs for any application or method operating on the electronic device 1100, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1104 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 1106 provides power to the various components of the electronic device 1100. The power components 1106 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 1100. The power supply assembly 1106 may include a power chip that the controller may communicate to control the power chip to turn the switching device on or off to allow the battery to supply power or not to supply power to the motherboard circuitry.
The multimedia component 1108 includes a screen that provides an output interface between the electronic device 1100 and the target object. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a target object. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
The audio component 1110 is configured to output and/or input audio signals. For example, the audio component 1110 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 1100 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1104 or transmitted via the communication component 1116. In some embodiments, the audio assembly 1110 further includes a speaker for outputting audio signals.
The I/O interface 1112 provides an interface between the processing component 1102 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc.
The sensor assembly 1114 includes one or more sensors for providing various aspects of state assessment for the electronic device 1100. For example, the sensor component 1114 may detect an open/closed state of the electronic device 1100, the relative positioning of components, such as a display and keypad of the electronic device 1100, the sensor component 1114 may also detect a change in the position of the electronic device 1100 or a component, the presence or absence of a target object in contact with the electronic device 1100, orientation or acceleration/deceleration of the electronic device 1100, and a change in the temperature of the electronic device 1100. In this example, the sensor assembly 1114 may include a magnetic sensor, a gyroscope, and a magnetic field sensor, wherein the magnetic field sensor includes at least one of: hall sensor, thin film magneto-resistance sensor, magnetic liquid acceleration sensor.
The communication component 1116 is configured to facilitate wired or wireless communication between the electronic device 1100 and other devices. The electronic device 1100 may access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, or a combination thereof. In an exemplary embodiment, the communication component 1116 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1116 also includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 1100 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components.
In an exemplary embodiment, a non-transitory readable storage medium is also provided that includes an executable computer program, such as the memory 1104 that includes instructions, that are executable by the processor. The readable storage medium may be, among others, ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (14)

1. A camera control method is applied to electronic equipment and comprises the following steps:
acquiring a first preview image acquired by a camera of camera equipment;
when the first preview image is obtained, obtaining the space attitude change of the electronic equipment to obtain space attitude offset data;
and sending the spatial attitude deviation data to the camera equipment so that the camera equipment adjusts the view angle of a camera thereof according to the spatial attitude deviation data and corresponding spatial attitude change.
2. The camera control method according to claim 1, wherein transmitting the spatial attitude offset data to the image pickup apparatus includes:
acquiring a communication connection between the electronic device and the image pickup device, wherein the communication connection comprises an end-to-end connection between the electronic device and the image pickup device, and the end-to-end connection mode comprises at least one of the following modes: bluetooth connection, WiFi connection, infrared data transmission connection, ZigBee connection and ultra-wideband connection;
and sending the spatial attitude offset data to the camera equipment through the end-to-end connection.
3. The camera control method according to claim 1, wherein transmitting the spatial attitude offset data to the image pickup apparatus includes:
acquiring communication connection between the electronic equipment and the camera equipment, wherein the communication connection comprises the connection between the electronic equipment and the camera equipment through a server;
and sending the spatial attitude offset data to the server so that the server forwards the spatial attitude offset data to the camera equipment.
4. The camera control method of claim 1, wherein after obtaining the spatial pose offset data, the method further comprises:
a scale covering layer is arranged in a display interface of the electronic equipment; the scale covering layer comprises a cross-shaped scale with an initial central point positioned at the central position of the display interface;
acquiring the offset position of the initial central point according to the spatial attitude offset data;
moving the cross-shaped scale so that the initial center point is at the offset position.
5. The camera control method according to claim 1, wherein after transmitting the spatial attitude offset data to the image pickup apparatus, the method further comprises:
acquiring a second preview image acquired by a camera of the camera equipment;
acquiring the similarity of the second preview image and the first preview image;
and when the similarity exceeds a preset similarity threshold, generating a prompt message representing that the rotation to the limit position is realized.
6. The camera control method according to claim 1, further comprising:
and stopping sending the spatial attitude deviation data in response to detecting the trigger operation of starting the locking key in the display interface.
7. A camera control device, applied to an electronic apparatus, includes:
the first image acquisition module is used for acquiring a first preview image acquired by a camera of the camera equipment;
the offset data acquisition module is used for acquiring the spatial attitude change of the electronic equipment when the first preview image is acquired, so as to obtain spatial attitude offset data;
and the offset data sending module is used for sending the spatial attitude offset data to the camera equipment so that the camera equipment can adjust the view angle of a camera thereof according to the spatial attitude offset data and corresponding spatial attitude change.
8. The camera control device according to claim 7, wherein the offset data transmission module includes:
a communication connection acquiring unit, configured to acquire a communication connection between the electronic device and the image capturing device, where the communication connection includes an end-to-end connection between the electronic device and the image capturing device, and an end-to-end connection manner includes at least one of: bluetooth connection, WiFi connection, infrared data transmission connection, ZigBee connection and ultra-wideband connection;
an offset data transmitting unit configured to transmit the spatial orientation offset data to the image pickup apparatus through the end-to-end connection.
9. The camera control device according to claim 7, wherein the offset data transmission module includes:
a communication connection acquisition unit, configured to acquire a communication connection between the electronic device and the image pickup device, where the communication connection includes connection between the electronic device and the image pickup device through a server;
and the offset data sending unit is used for sending the spatial attitude offset data to the server so as to enable the server to forward the spatial attitude offset data to the image pickup equipment.
10. The camera control device of claim 7, wherein the device further comprises:
the scale covering layer adding module is used for arranging a scale covering layer in a display interface of the electronic equipment; the scale masking layer comprises a cross-shaped scale with an initial central point positioned at the central position of the display interface;
the offset position acquisition module is used for acquiring the offset position of the initial central point according to the spatial attitude offset data;
and the central point moving module is used for moving the cross-shaped scale so that the initial central point is positioned at the offset position.
11. The camera control device of claim 7, wherein the device further comprises:
the second image acquisition module is used for acquiring a second preview image acquired by a camera of the camera equipment;
a similarity obtaining module, configured to obtain a similarity between the second preview image and the first preview image;
and the prompt message generation module is used for generating a prompt message for representing that the rotation to the limit position is realized when the similarity exceeds a preset similarity threshold value.
12. The camera control device of claim 7, wherein the device further comprises:
and the offset data sending stopping module is used for stopping sending the spatial attitude offset data in response to detecting the triggering operation of the locking key in the representation opening display interface.
13. An electronic device, comprising:
a processor;
a memory for storing a computer program executable by the processor;
wherein the processor is configured to execute the computer program in the memory to implement the method of any of claims 1-6.
14. A computer-readable storage medium, characterized in that an executable computer program in the storage medium, when executed by a processor, is capable of implementing the method according to any one of claims 1 to 6.
CN202011219353.2A 2020-11-04 2020-11-04 Camera control method and device, electronic equipment and storage medium Pending CN114449156A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011219353.2A CN114449156A (en) 2020-11-04 2020-11-04 Camera control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011219353.2A CN114449156A (en) 2020-11-04 2020-11-04 Camera control method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114449156A true CN114449156A (en) 2022-05-06

Family

ID=81360995

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011219353.2A Pending CN114449156A (en) 2020-11-04 2020-11-04 Camera control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114449156A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104378587A (en) * 2014-10-27 2015-02-25 小米科技有限责任公司 Camera equipment control method, device and equipment
CN105808062A (en) * 2016-03-08 2016-07-27 上海小蚁科技有限公司 Method for controlling intelligent device and terminal
CN108366208A (en) * 2018-03-29 2018-08-03 燕山大学 A kind of unmanned plane stereoscopic vision servomechanism applied to disaster area search
CN108363415A (en) * 2018-03-29 2018-08-03 燕山大学 A kind of vision remote control servomechanism and method applied to underwater robot
CN111031246A (en) * 2019-12-24 2020-04-17 维沃移动通信有限公司 Shooting method and electronic equipment
CN111147743A (en) * 2019-12-30 2020-05-12 维沃移动通信有限公司 Camera control method and electronic equipment
CN111314616A (en) * 2020-03-16 2020-06-19 维沃移动通信有限公司 Image acquisition method, electronic device, medium and wearable device
CN111882608A (en) * 2020-07-14 2020-11-03 中国人民解放军军事科学院国防科技创新研究院 Pose estimation method between augmented reality glasses tracking camera and human eyes

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104378587A (en) * 2014-10-27 2015-02-25 小米科技有限责任公司 Camera equipment control method, device and equipment
CN105808062A (en) * 2016-03-08 2016-07-27 上海小蚁科技有限公司 Method for controlling intelligent device and terminal
CN108366208A (en) * 2018-03-29 2018-08-03 燕山大学 A kind of unmanned plane stereoscopic vision servomechanism applied to disaster area search
CN108363415A (en) * 2018-03-29 2018-08-03 燕山大学 A kind of vision remote control servomechanism and method applied to underwater robot
CN111031246A (en) * 2019-12-24 2020-04-17 维沃移动通信有限公司 Shooting method and electronic equipment
CN111147743A (en) * 2019-12-30 2020-05-12 维沃移动通信有限公司 Camera control method and electronic equipment
CN111314616A (en) * 2020-03-16 2020-06-19 维沃移动通信有限公司 Image acquisition method, electronic device, medium and wearable device
CN111882608A (en) * 2020-07-14 2020-11-03 中国人民解放军军事科学院国防科技创新研究院 Pose estimation method between augmented reality glasses tracking camera and human eyes

Similar Documents

Publication Publication Date Title
US10292004B2 (en) Method, device and medium for acquiring location information
WO2021104197A1 (en) Object tracking method and electronic device
CN110971823B (en) Parameter adjusting method and terminal equipment
WO2019174628A1 (en) Photographing method and mobile terminal
US9491371B2 (en) Method and device for configuring photographing parameters
US20210158560A1 (en) Method and device for obtaining localization information and storage medium
CN109558837B (en) Face key point detection method, device and storage medium
KR20180023310A (en) Mobile terminal and method for controlling the same
KR20160084306A (en) Method and device for shooting a picture
US9652823B2 (en) Method and terminal device for controlling display of video image
CN106503682B (en) Method and device for positioning key points in video data
KR20180040409A (en) Mobile terminal and method for controlling the same
US10191708B2 (en) Method, apparatrus and computer-readable medium for displaying image data
CN111432195A (en) Image shooting method and electronic equipment
WO2021238564A1 (en) Display device and distortion parameter determination method, apparatus and system thereof, and storage medium
KR20170029404A (en) Method and apparatus for controlling video image and terminal
CN112202962B (en) Screen brightness adjusting method and device and storage medium
CN108317992A (en) A kind of object distance measurement method and terminal device
CN111031246A (en) Shooting method and electronic equipment
CN106973275A (en) The control method and device of projector equipment
CN114071001B (en) Control method, control device, electronic equipment and storage medium
CN114430453A (en) Camera anti-shake system, control method, equipment and medium
CN104284093A (en) Panorama shooting method and device
CN114449156A (en) Camera control method and device, electronic equipment and storage medium
EP3789849A1 (en) Contactless gesture control method, apparatus and storage medium

Legal Events

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